/*
Theme Name: KNOWOL
Theme URI: https://knowol.com
Author: KNOWOL
Description: Premium theme for America's history archive
Version: 2.0
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --navy-dark: #0a1628;
  --navy: #003366;
  --navy-light: #1a5a8a;
  --gold: #c9a84c;
  --gold-light: #f4c75a;
  --white: #ffffff;
  --off-white: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* ============================================
   BASE / RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0.5rem;
  position: relative;
}

.site-logo a {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.site-logo .custom-logo-link img,
.site-logo .custom-logo {
  height: 100px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_parent a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.header-actions {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-search-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: all var(--transition);
}

.header-search-toggle:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.header-search-form {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  min-width: 280px;
}

.header-search-form.active {
  display: block;
}

.header-search-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0.4rem;
}

/* ============================================
   HERO — DARK SECTION (base styles)
   ============================================ */
.hero-dark {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.hero-paper-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 40%, transparent 90%);
  pointer-events: none;
}

.hero-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.hero-compass {
  position: absolute;
  right: 3%;
  bottom: 8%;
  width: 120px;
  height: 120px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 2;
}

.hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201,168,76,0.3);
  pointer-events: none;
  z-index: 15;
}

.hero-corner--tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.hero-corner--tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.hero-corner--bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.hero-corner--br { bottom: 18px; right: 18px; border-left: none; border-top: none; }

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 10;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  padding: 6px 16px 6px 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.hero-pulse {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; box-shadow: 0 0 4px rgba(201,168,76,0.3); }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(201,168,76,0.6); }
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  z-index: 2;
}

.hero-search form {
  display: flex;
}

.hero-search input[type="search"] {
  width: 100%;
  padding: 14px 20px 14px 44px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition);
}

.hero-search input[type="search"]:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.hero-search input[type="search"]::placeholder {
  color: #64748b;
}

/* Map container */
.hero-map-wrap {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1000px;
  padding: 0 2rem 2rem;
  perspective: 1800px;
}

.hero-map-stage {
  position: relative;
  transform-style: flat;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.hero-map-grid-floor {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.hero-map-shadow {
  position: absolute;
  bottom: -18px;
  left: 8%;
  right: 8%;
  height: 50px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(0,0,0,0.45) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.hero-map-dof {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, transparent 40%, rgba(8,20,38,0.7) 100%);
  pointer-events: none;
  z-index: 5;
}

.hero-map-svg-wrap {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-map-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-map-svg-wrap svg text {
  pointer-events: none;
  user-select: none;
}

/* State path styling */
.hero-dark .state-path {
  fill: #1a5a8a;
  stroke: #c9a84c;
  stroke-width: 0.8;
  stroke-opacity: 0.7;
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.2s ease, stroke-opacity 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

.hero-dark .state-path:hover,
.hero-dark .state-path:focus {
  fill: #c9a84c !important;
  stroke: #fff !important;
  stroke-opacity: 1 !important;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.5));
  outline: none;
}

/* Floating tooltip */
.hero-map-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 20px));
  background: rgba(8, 20, 38, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 180px;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-map-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 24px));
}

.hero-map-tooltip .tooltip-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-map-tooltip .tooltip-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.hero-map-tooltip .tooltip-count .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
}

.hero-map-tooltip .tooltip-count .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-map-tooltip .tooltip-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.hero-map-tooltip .tooltip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.hero-map-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(8, 20, 38, 0.92);
  border-right: 1px solid rgba(201,168,76,0.45);
  border-bottom: 1px solid rgba(201,168,76,0.45);
}

/* ============================================
   HOME SECTIONS
   ============================================ */
.home-section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.view-all:hover {
  color: var(--gold);
}

/* ============================================
   POST CARDS & GRID — MASTER PASS
   ============================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 14px 34px -24px rgba(2, 8, 20, 0.28),
    0 1px 0 rgba(255,255,255,0.7) inset;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 51, 102, 0.16);
  box-shadow:
    0 24px 50px -28px rgba(2, 8, 20, 0.34),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

.post-card-media-link {
  display: block;
  color: inherit;
}

.post-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  background:
    linear-gradient(135deg, #0a1628 0%, #16385d 100%);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 320ms ease,
    filter 320ms ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.035);
  filter: saturate(1.03) contrast(1.02);
}

.post-card-image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,168,76,0.18), transparent 30%),
    linear-gradient(135deg, #08111f 0%, #12345a 100%);
}

.post-card-image-fallback__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201,168,76,0.24);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-card-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,16,31,0.00) 34%, rgba(4,16,31,0.10) 62%, rgba(4,16,31,0.36) 100%);
  pointer-events: none;
}

.post-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(8, 20, 38, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 18px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 20px;
}

.post-card-meta__item {
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.post-card-meta__item--category {
  color: var(--gold);
}

.post-card-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(100,116,139,0.55);
  flex: 0 0 auto;
}

.post-card-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--navy-dark);
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.post-card-title a:hover {
  color: var(--navy);
}

.post-card-excerpt {
  margin: 12px 0 0;
  color: #526277;
  font-size: 0.95rem;
  line-height: 1.65;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 16px;
}

.post-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.post-card-cta:hover {
  color: var(--gold);
}

.post-card:hover .post-card-cta__arrow {
  transform: translateX(2px);
}

.post-card-cta__arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

/* ============================================
   ARCHIVE / CATEGORY
   ============================================ */
.archive-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 1rem 0;
  color: var(--white);
}

.archive-header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.archive-header h1 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0;
}

.archive-header .archive-description {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
}

.archive-header .post-count {
  background: rgba(255,255,255,0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}

.archive-shop-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.4rem 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.archive-shop-cta:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.archive-content {
  padding: 3rem 0;
}

/* ============================================
   SINGLE POST / ARTICLE
   ============================================ */
.article-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 3rem 0 2.5rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.article-header-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.article-title {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.badge-state {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition);
}

.badge-state:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.article-hero-image {
  max-width: 900px;
  width: 100%;
  margin: -1.5rem auto 2rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.article-content-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #334155;
}

.article-body p { margin-bottom: 1.5rem; }

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.article-body img {
  border-radius: 8px;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

.article-body a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0,51,102,0.3);
  text-underline-offset: 2px;
}

.article-body a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}
/* ============================================
   WORDPRESS IMAGE CAPTIONS & ALIGNMENTS
   ============================================ */
.article-body .wp-caption {
  max-width: 100%; /* This is the magic bullet that overrides the inline width */
  height: auto;
  margin: 1.5rem auto; 
}

.article-body .wp-caption img {
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
}

.article-body .wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}

/* Ensure WordPress alignment classes respect the layout */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* Clear floats so text doesn't awkwardly wrap past the end of the article */
.article-body::after {
  content: "";
  display: table;
  clear: both;
}
.shop-cta-banner {
  max-width: 760px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.shop-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 16px;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
}

.shop-cta-text .cta-title {
  color: var(--white);
  margin-bottom: 0.35rem;
}

.shop-cta-text .cta-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  margin: 0;
}

.shop-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all var(--transition);
}

.shop-cta-button .cta-icon {
  margin-right: 8px;
  opacity: 0.8;
}

.shop-cta-button:hover {
  background: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.related-posts {
  padding: 3rem 0;
  background: var(--off-white);
}

.related-posts .related-title {
  margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 280px;
}

.footer-brand .site-logo a {
  color: var(--white);
  font-size: 1.25rem;
}

.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--gold);
}

/* ============================================
   SEARCH & 404
   ============================================ */
.search-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 2.5rem 0;
  color: var(--white);
  text-align: center;
}

.search-header h1 {
  color: var(--white);
}

.search-content,
.error-404,
.page-content {
  padding: 3rem 0;
}

.search-form-wrap {
  max-width: 600px;
  margin: 1.5rem auto 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.nav-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.nav-links a {
  background: var(--off-white);
  color: var(--text);
}

.nav-links a:hover {
  background: var(--navy);
  color: var(--white);
}

.nav-links .current {
  background: var(--navy);
  color: var(--white);
}

/* ============================================
   HOMEPAGE REFINEMENT PASS — 2026
   ============================================ */

.hero-dark {
  min-height: clamp(860px, 100vh, 1100px);
  background:
    radial-gradient(circle at 18% 20%, rgba(38, 90, 148, 0.22) 0%, transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(201,168,76,0.08) 0%, transparent 28%),
    radial-gradient(ellipse 72% 60% at 50% 42%, rgba(14,39,70,0.92) 0%, rgba(6,18,35,0.95) 60%, rgba(2,8,20,1) 100%),
    linear-gradient(180deg, #04101f 0%, #020814 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.hero-orb--left {
  width: 240px;
  height: 240px;
  left: -40px;
  top: 110px;
  background: rgba(42, 102, 170, 0.22);
}

.hero-orb--right {
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: 120px;
  background: rgba(201,168,76,0.12);
}

.hero-inner {
  max-width: 1500px;
  padding: 52px 42px 28px;
}

.hero-copy {
  max-width: 900px;
  margin: 0 auto 18px;
}

.hero-headline {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.hero-sub {
  max-width: 720px;
  margin-bottom: 22px;
  color: rgba(232, 240, 252, 0.78);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero-stat {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 20px 40px -24px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-stat span {
  display: block;
  color: rgba(179, 196, 219, 0.86);
  font-size: 0.84rem;
  line-height: 1.45;
}

.hero-search-shell {
  max-width: 680px;
  margin: 0 auto;
}

.hero-search {
  max-width: 680px;
}

.hero-quicklinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 12px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.83rem;
}

.hero-quicklinks span {
  color: rgba(148, 163, 184, 0.9);
}

.hero-quicklinks a {
  color: rgba(255,255,255,0.88);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-quicklinks a:hover {
  color: #fff;
  border-color: rgba(201,168,76,0.32);
  background: rgba(255,255,255,0.06);
}

.hero-map-wrap {
  max-width: 1200px;
  padding: 0 1.25rem 2rem;
}

.hero-map-stage {
  transform: rotateX(14deg) rotateZ(-0.8deg);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-map-panel {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  padding: 18px 18px 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.028)),
    linear-gradient(180deg, rgba(6,17,31,0.84), rgba(8,18,32,0.94));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 40px 100px -50px rgba(0,0,0,0.95),
    0 0 0 1px rgba(201,168,76,0.05),
    inset 0 1px 0 rgba(255,255,255,0.08);
  z-index: 2;
}

.hero-map-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 4px 12px;
  color: rgba(201,168,76,0.9);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-map-svg-wrap {
  position: relative;
  z-index: 2;
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(10px, 1.5vw, 16px);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.05) 0%, transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0.008));
}

.hero-map-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.38));
}

.hero-map-svg-wrap svg text {
  pointer-events: none;
  user-select: none;
}

.hero-map-grid-floor {
  inset: -16% -8%;
  opacity: 0.52;
}

.hero-map-shadow {
  bottom: -24px;
  left: 9%;
  right: 9%;
  height: 64px;
  filter: blur(20px);
}

.hero-map-dof {
  inset: -8%;
  background: radial-gradient(ellipse 60% 50% at 50% 46%, transparent 36%, rgba(8,20,38,0.52) 100%);
  z-index: 4;
}

.hero-map-glow {
  position: absolute;
  inset: 10% 18%;
  background: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.08), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.hero-map-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.hero-map-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-map-meta-item .label {
  color: rgba(148, 163, 184, 0.88);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-map-meta-item .value {
  color: #f8fbff;
  font-weight: 700;
  font-size: 0.94rem;
}

.hero-dark .state-path {
  stroke: rgba(234, 241, 250, 0.75) !important;
  stroke-width: 0.85;
  stroke-opacity: 0.55;
  transition:
    fill 180ms ease,
    stroke 180ms ease,
    stroke-opacity 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
  transform-origin: center center;
}

.hero-dark .state-path:hover,
.hero-dark .state-path:focus {
  fill: #d8b154 !important;
  stroke: #ffffff !important;
  stroke-opacity: 1 !important;
  stroke-width: 1.2;
  filter: drop-shadow(0 0 10px rgba(216,177,84,0.45));
  outline: none;
}

.hero-map-tooltip {
  min-width: 190px;
  padding: 15px 18px;
}

.home-section--tight {
  padding-top: 3rem;
}

.home-section--soft {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-family: monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.state-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px -24px rgba(15, 23, 42, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.state-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -28px rgba(15, 23, 42, 0.28);
  border-color: rgba(0, 51, 102, 0.18);
}

.state-tile__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.state-tile__count {
  font-size: 0.86rem;
  color: var(--text-light);
}

.home-section--shop {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.shop-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy-dark), #08386b 65%, #0b4d8f 100%);
  box-shadow: 0 28px 60px -30px rgba(0, 26, 51, 0.55);
}

.shop-feature__copy h2 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.shop-feature__copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
}

.shop-feature__actions {
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .state-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 680px;
  }
}

@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .main-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-dark);
    padding: 1.5rem;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .menu-toggle {
    display: block;
  }

  .hero-dark {
    min-height: auto;
  }

  .hero-inner {
    padding: 30px 18px 18px;
  }

  .hero-copy {
    margin-bottom: 12px;
  }

  .hero-headline {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-corner,
  .hero-compass {
    display: none;
  }

  .hero-search-shell {
    max-width: 100%;
  }

  .hero-quicklinks {
    justify-content: flex-start;
  }

  .hero-map-wrap {
    padding: 0 1rem 1.5rem;
  }

  .hero-map-stage {
    transform: none !important;
  }

  .hero-map-panel {
    border-radius: 20px;
    padding: 12px 12px 12px;
  }

  .hero-map-topline {
    font-size: 10px;
    letter-spacing: 0.13em;
    padding-bottom: 10px;
  }

  .hero-map-meta {
    grid-template-columns: 1fr;
  }

  .state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-feature {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .article-body p,
  .article-body li {
    font-size: 1rem;
  }

  .archive-header h1 {
    font-size: 1.25rem;
  }

  .archive-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .archive-shop-cta {
    margin-left: 0;
  }

  .shop-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .post-card-body {
    padding: 16px;
  }

  .post-card-title {
    font-size: 1.08rem;
  }

  .post-card-excerpt {
    font-size: 0.92rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    gap: 10px;
  }

  .hero-stat {
    padding: 13px 14px;
  }

  .state-grid {
    grid-template-columns: 1fr;
  }

  .hero-quicklinks a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.85rem;
  }

  .hero-eyebrow {
    font-size: 9px;
  }

  .post-card-body {
    padding: 1rem;
  }

  .post-card-title {
    font-size: 1rem;
  }
}