/* ============================================
   SILVER STATE HISTORY — Style System
   ============================================ */

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

:root {
  /* Light Mode (default) */
  --color-bg: #F5F3EE;
  --color-surface: #FAF8F4;
  --color-surface-2: #EDEAE3;
  --color-border: #D4CFBF;
  --color-text: #1A1814;
  --color-text-muted: #6B6558;
  --color-text-faint: #A09B8E;
  --color-primary: #1B3A5C;
  --color-primary-hover: #142D47;
  --color-accent: #A0522D;
  --color-silver: #8B9DAF;

  /* Typography Scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.76rem + 0.22vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-hero: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);

  /* Spacing (4px system) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --content-narrow: 680px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26,24,20,0.06), 0 1px 2px rgba(26,24,20,0.04);
  --shadow-md: 0 4px 12px rgba(26,24,20,0.08), 0 2px 4px rgba(26,24,20,0.04);
  --shadow-lg: 0 12px 32px rgba(26,24,20,0.1), 0 4px 8px rgba(26,24,20,0.05);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);
}

/* Dark Mode */
[data-theme="dark"] {
  --color-bg: #111015;
  --color-surface: #1A1820;
  --color-surface-2: #222028;
  --color-border: #333040;
  --color-text: #D4D0C8;
  --color-text-muted: #8A8578;
  --color-text-faint: #5A5650;
  --color-primary: #6B9AC4;
  --color-primary-hover: #8BB4D6;
  --color-accent: #C47A50;
  --color-silver: #9AACBE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25), 0 2px 4px rgba(0,0,0,0.15);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.2);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-4);
}

/* --- FOCUS STATES --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Zodiak', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-hover); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.4em; }

/* --- UTILITY CLASSES --- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}
.section-cta {
  text-align: center;
  margin-top: var(--space-10);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-border);
  color: var(--color-text);
}

/* --- CHIPS / FILTERS --- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.chip.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.site-header.scrolled {
  background: rgba(245,243,238,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(17,16,21,0.92);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo-link:hover { color: var(--color-primary); }
.logo-svg {
  width: 180px;
  height: 30px;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-1);
  padding: 0;
}
.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.01em;
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav-link.active {
  color: var(--color-primary);
  background: rgba(27,58,92,0.08);
}
[data-theme="dark"] .nav-link.active {
  background: rgba(107,154,196,0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.theme-toggle svg { width: 20px; height: 20px; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-md);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  top: 56px;
  background: var(--color-bg);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: var(--space-6) var(--space-4);
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-list {
  list-style: none;
  padding: 0;
}
.mobile-nav-list li { margin-bottom: var(--space-1); }
.mobile-nav-list a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.mobile-nav-list a:hover,
.mobile-nav-list a.active {
  background: var(--color-surface-2);
  color: var(--color-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-shape { display: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 80%, rgba(160,82,45,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(27,58,92,0.05) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(139,157,175,0.04) 100%);
}
[data-theme="dark"] .hero-bg::before {
  background:
    radial-gradient(ellipse 80% 60% at 70% 80%, rgba(196,122,80,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(107,154,196,0.04) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(154,172,190,0.03) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  max-width: 700px;
}

.hero-logo {
  width: clamp(120px, 20vw, 200px);
  height: auto;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.hero-tagline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ON THIS DAY
   ============================================ */
.on-this-day {
  padding-block: var(--space-8);
}
.on-this-day-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}
.on-this-day-label {
  display: inline-block;
  font-family: 'Zodiak', serif;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.on-this-day-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.on-this-day-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================
   TIMELINE TEASER (Horizontal Scroll)
   ============================================ */
.timeline-teaser { overflow: hidden; }

.timeline-scroll-wrapper {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
}
.timeline-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.timeline-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.timeline-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.timeline-scroll {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) var(--space-4) var(--space-4) max(var(--space-4), calc((100vw - var(--content-wide)) / 2 + var(--space-4)));
  min-width: max-content;
}

.timeline-scroll-item {
  flex: 0 0 220px;
  position: relative;
  padding-top: var(--space-8);
}
.timeline-scroll-year {
  display: block;
  font-family: 'Zodiak', serif;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.timeline-scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute;
  top: 0;
  left: 0;
}
.timeline-scroll-dot::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 10px;
  width: calc(220px + var(--space-6) - 10px);
  height: 2px;
  background: var(--color-border);
}
.timeline-scroll-item:last-child .timeline-scroll-dot::after { display: none; }

.timeline-scroll-item h3 {
  font-family: 'Zodiak', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.timeline-scroll-item p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   FEATURED TOPICS GRID
   ============================================ */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.topic-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  color: var(--color-text);
  text-decoration: none;
  display: block;
}
.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.topic-card--large {
  grid-column: span 2;
  grid-row: span 2;
  padding: var(--space-8);
}
.topic-card--large h3 { font-size: var(--text-lg); }
.topic-card--large p { font-size: var(--text-base); }

.topic-card--wide {
  grid-column: span 2;
}

.topic-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.topic-card--large .topic-icon {
  width: 64px;
  height: 64px;
}
.topic-icon svg { width: 100%; height: 100%; }

.topic-card h3 {
  font-family: 'Zodiak', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.topic-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   DID YOU KNOW
   ============================================ */
.did-you-know {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.dyk-wrapper {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.dyk-label {
  display: inline-block;
  font-family: 'Zodiak', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.dyk-carousel {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dyk-fact {
  position: absolute;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0;
  transition: opacity var(--transition-slow);
  padding-inline: var(--space-4);
}
.dyk-fact.active {
  opacity: 1;
  position: relative;
}

.dyk-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.dyk-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dyk-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.dyk-btn svg { width: 18px; height: 18px; }

.dyk-dots {
  display: flex;
  gap: var(--space-2);
}
.dyk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.dyk-dot.active { background: var(--color-primary); }

/* ============================================
   MUSEUMS PREVIEW
   ============================================ */
.museums-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-4);
}
.museum-preview-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.museum-preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.museum-preview-card--large {
  grid-row: span 2;
}
.museum-preview-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.museum-preview-card--large .museum-preview-visual {
  height: 240px;
}
.museum-preview-visual svg { width: 80px; height: 80px; }
.museum-preview-card h3 {
  font-family: 'Zodiak', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-4) var(--space-1);
}
.museum-preview-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: 0 var(--space-4) var(--space-4);
  line-height: 1.5;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner-inner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  text-align: center;
}
.cta-banner-inner h2 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.cta-banner-inner p {
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
}
.cta-banner-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner-actions .btn-primary {
  background: #fff;
  color: var(--color-primary);
}
.cta-banner-actions .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}
.cta-banner-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.cta-banner-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ============================================
   PAGE HEADERS (interior pages)
   ============================================ */
.page-header {
  padding-top: clamp(var(--space-12), 6vw, var(--space-20));
  padding-bottom: clamp(var(--space-8), 4vw, var(--space-12));
  border-bottom: 1px solid var(--color-border);
}
.page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.page-intro {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.6;
}

/* ============================================
   VERTICAL TIMELINE
   ============================================ */
.timeline-vertical {
  position: relative;
  padding-left: var(--space-8);
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-era {
  position: relative;
  margin-bottom: var(--space-10);
  opacity: 1;
  transition: opacity var(--transition-base);
}
.timeline-era.hidden { display: none; }

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-8) + 1px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-date {
  display: inline-block;
  font-family: 'Zodiak', serif;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.timeline-era-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.timeline-era-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.timeline-detail {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.timeline-detail p {
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 65ch;
}
.timeline-why {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-4) 0;
  font-size: var(--text-sm);
}
.timeline-key-dates {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.timeline-key-dates li { margin-bottom: var(--space-1); }

.timeline-expand {
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}
.timeline-expand:hover { color: var(--color-primary-hover); }

/* ============================================
   MAP PAGE
   ============================================ */
.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  align-items: flex-start;
}

.map-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}
.map-search {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}
.map-search:focus { border-color: var(--color-primary); }
.map-search::placeholder { color: var(--color-text-faint); }

.map-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-top: var(--space-1);
  box-shadow: var(--shadow-md);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}
.map-search-result {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.map-search-result:hover { background: var(--color-surface-2); }

.map-layers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.layer-btn {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.layer-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.layer-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.map-container {
  display: flex;
  gap: var(--space-4);
  min-height: 500px;
}

.map-svg-wrapper {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 500px;
}
.map-svg-wrapper svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  padding: 12px;
}

.map-panel {
  width: 360px;
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow-y: auto;
  max-height: 600px;
  animation: slideInRight var(--transition-base) forwards;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.map-panel-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
}
.map-panel-close:hover { background: var(--color-border); color: var(--color-text); }

.map-panel-content h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.map-panel-content h3 {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  color: var(--color-accent);
}
.map-panel-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.map-tooltip {
  position: fixed;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* Map SVG counties */
.county-path {
  fill: var(--color-surface-2);
  stroke: var(--color-border);
  stroke-width: 1;
  stroke-linejoin: round;
  cursor: pointer;
  pointer-events: all;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}
.county-path:hover {
  fill: rgba(27,58,92,0.15);
  stroke: var(--color-primary);
  stroke-width: 1.5;
}
[data-theme="dark"] .county-path:hover {
  fill: rgba(107,154,196,0.15);
}
.county-path.selected {
  fill: rgba(27,58,92,0.2);
  stroke: var(--color-primary);
  stroke-width: 2;
}
[data-theme="dark"] .county-path.selected {
  fill: rgba(107,154,196,0.2);
}

.map-marker {
  fill: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.map-marker.visible { opacity: 0.8; }
.map-marker:hover { opacity: 1; }

.map-trail {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.map-trail.visible { opacity: 0.6; }

/* ============================================
   COUNTIES PAGE
   ============================================ */
.counties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.county-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.county-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}
.county-card--featured {
  grid-column: span 2;
}

.county-card-name {
  font-family: 'Zodiak', serif;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.county-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.county-card-meta span {
  background: var(--color-surface-2);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}
.county-card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.county-card-highlight {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}
.county-card-fact {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}

/* County Detail Modal */
.county-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn var(--transition-fast) forwards;
}
.county-detail-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

.county-detail {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-8);
  position: relative;
  animation: slideUp var(--transition-base) forwards;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.county-detail-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all var(--transition-fast);
}
.county-detail-close:hover { background: var(--color-border); color: var(--color-text); }

.county-detail-content h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.county-detail-content h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--color-accent);
}
.county-detail-content p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ============================================
   FUN FACTS
   ============================================ */
.facts-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.facts-controls .filter-chips { margin-bottom: 0; }

.shuffle-btn svg { vertical-align: middle; }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-4);
}

.fact-card {
  perspective: 600px;
  min-height: 180px;
  cursor: pointer;
}
.fact-card.hidden { display: none; }

.fact-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.fact-card.flipped .fact-card-inner { transform: rotateY(180deg); }

.fact-card-front, .fact-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fact-card-front {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.fact-card-back {
  background: var(--color-primary);
  color: #fff;
  transform: rotateY(180deg);
}

.fact-card-category {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.fact-card-question {
  font-family: 'Zodiak', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}
.fact-card-answer {
  font-size: var(--text-sm);
  line-height: 1.5;
}
.fact-card-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: auto;
  padding-top: var(--space-3);
}
.fact-card-back .fact-card-hint { color: rgba(255,255,255,0.6); }

/* ============================================
   QUIZ
   ============================================ */
.quiz-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.quiz-question {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.quiz-question-text {
  font-family: 'Zodiak', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.quiz-options {
  display: flex;
  gap: var(--space-2);
}
.quiz-option {
  flex: 1;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: transparent;
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.quiz-option:hover { border-color: var(--color-primary); color: var(--color-primary); }
.quiz-option.correct {
  background: #2d6a2e;
  color: #fff;
  border-color: #2d6a2e;
}
.quiz-option.incorrect {
  background: #a13544;
  color: #fff;
  border-color: #a13544;
}
.quiz-option.disabled { pointer-events: none; opacity: 0.6; }

.quiz-explanation {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.quiz-results {
  text-align: center;
  padding: var(--space-8);
}
.quiz-score {
  font-family: 'Zodiak', serif;
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* ============================================
   MUSEUMS PAGE
   ============================================ */
.view-toggle {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}
.view-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.view-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.museums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}
.museums-grid.list-view {
  grid-template-columns: 1fr;
}

.museum-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.museum-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.museum-card-header {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.list-view .museum-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.list-view .museum-card-header {
  height: 100%;
  min-height: 120px;
}

.museum-card-body {
  padding: var(--space-4);
}
.museum-card-name {
  font-family: 'Zodiak', serif;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.museum-card-location {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.museum-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}
.museum-card-why {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: var(--space-4);
}
.museum-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
}
.museum-card-link:hover { color: var(--color-primary-hover); }

/* ============================================
   ARTICLES PAGE
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.article-card.hidden { display: none; }

.article-card-header {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-body {
  padding: var(--space-5);
}
.article-card-category {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}
.article-card-title {
  font-family: 'Zodiak', serif;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.article-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Article Detail */
.back-to-articles {
  margin-bottom: var(--space-8);
}

.article-content {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: var(--space-8);
  max-width: 900px;
}

.article-main h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}
.article-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-8);
}
.article-body {
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 65ch;
}
.article-body h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.article-body p { margin-bottom: 1.2em; }

.article-pullquote {
  font-family: 'Zodiak', serif;
  font-size: var(--text-lg);
  font-weight: 500;
  font-style: italic;
  color: var(--color-primary);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
  margin: var(--space-8) 0;
  line-height: 1.4;
}

.article-sidebar {
  position: sticky;
  top: calc(56px + var(--space-6));
  align-self: start;
}
.article-toc-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.article-toc-list {
  list-style: none;
  padding: 0;
}
.article-toc-list li {
  margin-bottom: var(--space-2);
}
.article-toc-list a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.article-toc-list a:hover { color: var(--color-primary); }

.related-stories {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  grid-column: 1 / -1;
}
.related-stories h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.related-list {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.related-link {
  font-size: var(--text-sm);
  color: var(--color-primary);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  font-family: 'Satoshi', sans-serif;
  transition: all var(--transition-fast);
}
.related-link:hover { background: var(--color-border); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content h2 {
  font-size: var(--text-lg);
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
}
.about-content h2:first-child { margin-top: 0; }
.about-content p {
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 65ch;
}
.about-audience, .about-sources {
  margin: var(--space-4) 0;
  padding-left: 0;
  list-style: none;
}
.about-audience li, .about-sources li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.about-cta { margin-top: var(--space-8); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-8);
  background: var(--color-surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-logo {
  width: 140px;
  height: auto;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer-nav h3 {
  font-family: 'Satoshi', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.footer-nav ul {
  list-style: none;
  padding: 0;
}
.footer-nav li { margin-bottom: var(--space-2); }
.footer-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-nav a:hover { color: var(--color-primary); }

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-note {
  font-style: italic;
  margin-top: var(--space-1);
}

/* ============================================
   GLOSSARY TOOLTIP
   ============================================ */
.glossary-term {
  border-bottom: 1px dashed var(--color-accent);
  cursor: help;
}

.glossary-tooltip {
  position: fixed;
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  max-width: 280px;
  line-height: 1.5;
  z-index: 300;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header, .site-footer, .hamburger, .theme-toggle, .mobile-nav-overlay,
  .hero-bg, .btn, .filter-chips, .dyk-controls, .shuffle-btn, .view-toggle,
  .map-controls, .map-panel-close, .timeline-expand, .quiz-section,
  .back-to-articles, .cta-banner, .section-cta { display: none !important; }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }
  h1, h2, h3 { color: #000; }
  .page { display: block !important; }
  .page[hidden] { display: none !important; }

  .article-content { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }

  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #666; }
  a[href^="#"]::after { content: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .topic-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .topic-card--wide {
    grid-column: span 2;
  }

  .map-container { flex-direction: column; }
  .map-panel {
    width: 100%;
    max-height: 400px;
    animation: slideUp var(--transition-base) forwards;
  }

  .article-content {
    grid-template-columns: 1fr;
  }
  .article-sidebar { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .topic-card--large,
  .topic-card--wide {
    grid-column: span 1;
  }

  .museums-preview-grid {
    grid-template-columns: 1fr;
  }
  .museum-preview-card--large {
    grid-row: span 1;
  }

  .county-card--featured {
    grid-column: span 1;
  }

  .list-view .museum-card {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand { grid-column: span 1; }

  .facts-controls {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: center; }

  .counties-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .museums-grid { grid-template-columns: 1fr; }

  .county-detail { padding: var(--space-5); }
  .map-panel { padding: var(--space-4); }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
