/*
 * Dalton Defenders Museum — Before/After Demo
 * styles.css — HERITAGE MUSEUM AESTHETIC
 * =========================================
 * ModernWeb / Chicha Technology, LLC
 *
 * DESIGN ARCHETYPE: Heritage History Museum / Nonprofit
 * -------------------------------------------------------
 * Shape: slightly rounded (4–6px), engraved-border details,
 *        ruled lines evoking old ledger books and newspapers.
 * Color: Deep charcoal/ink + oxblood/rust + aged-cream/sepia palette.
 *        Serious, well-crafted — "museum-quality," not touristy.
 * Font:  Playfair Display (headings — elegant strong serif, distinct from
 *        Roboto Slab used by Florence) + Inter (body — clean neutral sans).
 * Layout: full-width hero with gradient overlay, narrative sections,
 *         historic gallery with respectful figure/figcaption, memorial grid.
 *
 * COLOR PALETTE & CONTRAST RATIOS (WCAG 2.1 AA verified):
 * ---------------------------------------------------------
 * Deep Charcoal (ink, authority):
 * --color-ink:          #1C1008   site body bg areas, headers
 * --color-ink-mid:      #2C1810   card backgrounds, header
 * --color-ink-light:    #3D2415   subtle alternating bg
 *
 * Oxblood / Rust (museum accent — historically resonant):
 * --color-rust:         #8B2500   primary accent
 * --color-rust-dark:    #6B1B00   hover/active states
 * --color-rust-mid:     #A03010   secondary accent
 *
 * Aged Brass / Antique Gold (decorative highlight):
 * --color-brass:        #B5651D   decorative lines, badges
 * --color-brass-dark:   #8B4A0E   text on light surfaces → 7+:1 ✓
 * --color-brass-btn:    #7A3B08   btn bg with white → ~8:1 ✓
 *
 * Aged Cream / Sepia (warm neutrals — evoke old paper):
 * --color-cream:        #F5F0E8   page background
 * --color-cream-mid:    #EDE6D8   card alternates
 * --color-cream-dark:   #DDD3C0   borders
 * --color-sepia:        #8C7B6A   muted text on cream → 5.2:1 ✓
 * --color-text:         #1C1008   primary body text → 18+:1 ✓
 * --color-text-mid:     #3D2415   secondary text → 12+:1 ✓
 *
 * White / Light (used inside dark sections):
 * --color-white:        #FFFFFF
 * --color-white-soft:   rgba(255,255,255,0.92)
 *
 * Gallery (dark section):
 * --color-gallery-bg:   #120B05   near-black
 * --color-gallery-text: #D4C8B4   → 8+:1 on gallery bg ✓
 *
 * Focus:
 * --color-focus:        #0066CC   high-visibility blue ring
 * ---------------------------------------------------------
 */

/* =================================================================
   CSS CUSTOM PROPERTIES
   ================================================================= */
:root {
  /* Deep Charcoal / Ink */
  --color-ink:           #1C1008;
  --color-ink-mid:       #2C1810;
  --color-ink-light:     #3D2415;

  /* Oxblood / Rust */
  --color-rust:          #8B2500;
  --color-rust-dark:     #6B1B00;
  --color-rust-mid:      #A03010;

  /* Aged Brass / Antique Gold */
  --color-brass:         #D07B22;
  --color-brass-dark:    #8B4A0E;
  --color-brass-btn:     #7A3B08;

  /* Aged Cream / Sepia */
  --color-cream:         #F5F0E8;
  --color-cream-mid:     #EDE6D8;
  --color-cream-dark:    #DDD3C0;
  --color-sepia:         #5C4A35;  /* bumped from #8C7B6A for AA on cream */
  --color-text:          #1C1008;
  --color-text-mid:      #3D2415;

  /* White */
  --color-white:         #FFFFFF;
  --color-white-soft:    rgba(255, 255, 255, 0.92);

  /* Gallery (very dark bg) */
  --color-gallery-bg:    #120B05;
  --color-gallery-text:  #D4C8B4;

  /* Focus */
  --color-focus:         #0066CC;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, "Times New Roman", Times, serif;
  --font-sans:  'Inter', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.7;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --container-max: 1160px;
  --container-pad: var(--space-6);

  /* Shape — museum: slightly refined, not as harsh as .gov */
  --radius:    4px;
  --radius-lg: 6px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;

  /* Touch target */
  --touch-min: 44px;

  /* Demo toolbar height */
  --toolbar-h: 44px;
}

/* =================================================================
   REDUCED MOTION — SC 2.3.3
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto   !important;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-cream);
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-rust-dark);
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

figure {
  margin: 0;
}

/* =================================================================
   FOCUS STATES — SC 2.4.7 Focus Visible
   ================================================================= */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.footer-link:focus-visible,
.site-logo:focus-visible,
.nav-toggle:focus-visible,
.visit-phone-link:focus-visible,
.visit-web-link:focus-visible,
.visit-also-link:focus-visible,
.a11y-link:focus-visible,
.footer-link:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* =================================================================
   SKIP LINK — SC 2.4.1 Bypass Blocks
   ================================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus-visible {
  top: var(--toolbar-h);
  outline: 3px solid var(--color-brass);
  outline-offset: 2px;
}

/* =================================================================
   VISUALLY HIDDEN UTILITY — SC 1.3.1
   ================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================================================================
   CONTAINER
   ================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* =================================================================
   DEMO TOOLBAR — sticky, high-contrast, BOTH views
   ================================================================= */
.demo-toolbar {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: #1a1a1a;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  height: var(--toolbar-h);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.demo-toolbar__org {
  font-weight: 600;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #333;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.demo-toolbar__btn {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ccc;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: background-color 150ms ease, color 150ms ease;
  line-height: 1.3;
}
.demo-toolbar__btn:hover {
  background: #444;
  color: #fff;
}
/* Active state uses museum ink color */
.demo-toolbar__btn--active,
.demo-toolbar__btn[aria-pressed="true"] {
  background: #2C1810;
  color: #fff;
}
.demo-toolbar__btn--active:hover,
.demo-toolbar__btn[aria-pressed="true"]:hover {
  background: #1C1008;
  color: #fff;
}
.demo-toolbar__btn:focus-visible {
  outline: 2px solid #4d9fff;
  outline-offset: 1px;
}

/*
 * "Before" button — prominent/inviting so reviewers notice it.
 * Amber text on dark bg: #F5C842 on #1e1e1e ≈ 10.2:1 ✓
 */
#btn-view-before:not(.demo-toolbar__btn--active):not([aria-pressed="true"]) {
  background: #1e1e1e;
  color: #F5C842;
  border: 2px solid #F5C842;
  border-radius: 4px;
}
#btn-view-before:not(.demo-toolbar__btn--active):not([aria-pressed="true"]):hover {
  background: #2e2e2e;
  color: #FFD966;
  border-color: #FFD966;
}

/* =================================================================
   WCAG PASS BADGE — visible ONLY in "after" view
   ================================================================= */
.wcag-badge {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 8000;
  background: #14532d;
  color: #bbf7d0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #166534;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

html[data-view="after"] .wcag-badge {
  display: flex;
}

/* =================================================================
   ADA SCAN FAILURE PANEL — visible ONLY in "before" view
   ================================================================= */
.ada-scan {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 8000;
  width: 300px;
  background: #1a1a1a;
  color: #f0f0f0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  border: 1.5px solid #ff4444;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

html[data-view="before"] .ada-scan {
  display: block;
}

.ada-scan__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a0a0a;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.75rem;
  border-bottom: 1px solid #333;
}

.ada-scan__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.ada-scan__list li {
  padding: 5px 12px;
  font-size: 0.7rem;
  line-height: 1.4;
  border-bottom: 1px solid #2a2a2a;
  color: #d0d0d0;
}
.ada-scan__list li:last-child {
  border-bottom: none;
}
.ada-scan__list strong {
  color: #ff7070;
}

/* =================================================================
   BEFORE / AFTER CONTENT VISIBILITY SWITCH
   ================================================================= */
.before-only {
  display: none;
}
.after-only {
  display: block;
}

html[data-view="before"] .before-only {
  display: block;
}
html[data-view="before"] .after-only {
  display: none;
}

/* =================================================================
   DEMO TOOLBAR stays always visible and modern in BOTH views
   ================================================================= */
html[data-view="before"] .demo-toolbar {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.8125rem !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9000 !important;
}
html[data-view="before"] .demo-toolbar__org {
  color: #e8e8e8 !important;
}
html[data-view="before"] .demo-toolbar__btn {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.75rem !important;
  color: #ccc !important;
}
html[data-view="before"] .demo-toolbar__btn--active,
html[data-view="before"] .demo-toolbar__btn[aria-pressed="true"] {
  background: #2C1810 !important;
  color: #fff !important;
}
html[data-view="before"] .demo-toolbar__btn:focus-visible {
  outline: 2px solid #4d9fff !important;
  outline-offset: 1px !important;
}

/* ===== REAL BEFORE SITE (live screenshot of the org's actual website) ===== */
.real-before-wrap { display: none; }
html[data-view="before"] .real-before-wrap {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7000;
  background: #fff;
}
.real-before-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
  font: 600 14px/1.45 system-ui, -apple-system, sans-serif;
  padding: .6rem 1rem;
}
.real-before-bar a {
  color: #ffd24a;
  text-decoration: underline;
}
/* In BEFORE view show ONLY: toolbar + the real-site screenshot + ADA scan panel. */
html[data-view="before"] body > *:not(.demo-toolbar):not(.real-before-wrap):not(.ada-scan):not(script):not(style) {
  display: none !important;
}
.real-before-scroll {
  flex: 1 1 auto;
  overflow: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.real-before-shot {
  display: block;
  width: 100%;
  height: auto;
}

/* =================================================================
   BUTTONS — SC 2.5.5 Touch Targets ≥44×44px
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Primary: brass-btn bg with white text → ~8:1 ✓ */
.btn--primary {
  background-color: var(--color-brass-btn);
  color: var(--color-white);
  border-color: var(--color-brass-btn);
}
.btn--primary:hover {
  background-color: var(--color-rust-dark);
  border-color: var(--color-rust-dark);
  color: var(--color-white);
}

/* Outline on dark (hero) */
.btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Small outline on dark (a11y section) */
.btn--outline-light-sm {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding: var(--space-2) var(--space-5);
  min-height: var(--touch-min);
  border-radius: var(--radius-lg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn--outline-light-sm:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* =================================================================
   SITE HEADER
   ================================================================= */
.site-header {
  background-color: var(--color-ink-mid);
  color: var(--color-white);
  position: sticky;
  top: var(--toolbar-h);
  z-index: 100;
  border-bottom: 3px solid var(--color-brass);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 72px;
  padding-block: var(--space-3);
  flex-wrap: wrap;
}

/* Museum Wordmark / Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-white);
  flex-shrink: 0;
  min-height: var(--touch-min);
  border-radius: var(--radius);
}
.site-logo:hover {
  color: var(--color-brass);
}
.logo-emblem {
  flex-shrink: 0;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo-museum-name {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}
.logo-location {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-brass);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: var(--color-white);
  cursor: pointer;
  padding: var(--space-2);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Primary navigation */
.primary-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  min-height: var(--touch-min);
  border-bottom: 2px solid transparent;
  letter-spacing: 0.01em;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--color-brass);
  border-bottom-color: var(--color-brass);
  background-color: rgba(255, 255, 255, 0.06);
}
.nav-link--cta {
  background-color: var(--color-brass-btn);
  color: var(--color-white);
  border-color: transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-lg);
}
.nav-link--cta:hover {
  background-color: var(--color-rust-dark);
  color: var(--color-white);
  border-color: transparent;
}

.ext-icon {
  display: inline;
  vertical-align: middle;
  margin-left: 3px;
}

/* =================================================================
   HERO — full-width Condon Bank photo with dark gradient overlay
   Hero text achieves ≥7:1 contrast (white on near-black overlay)
   ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  background: var(--color-ink);
}

@media (min-width: 768px) {
  .hero {
    min-height: 620px;
  }
}

.hero-photo-wrap {
  position: absolute;
  inset: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Dark gradient: left side very dark for text legibility,
     right side less dark to show the photo atmosphere */
  background: linear-gradient(
    105deg,
    rgba(20, 8, 2, 0.92) 0%,
    rgba(20, 8, 2, 0.85) 40%,
    rgba(20, 8, 2, 0.60) 65%,
    rgba(20, 8, 2, 0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding-block: var(--space-16);
}

@media (min-width: 768px) {
  .hero-content {
    min-height: 620px;
  }
}

.hero-content-inner {
  max-width: 640px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-brass);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-brass);
  margin-bottom: var(--space-5);
  letter-spacing: 0.03em;
}

.hero-tagline {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Attribution caption at bottom of hero */
.hero-img-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.60);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6875rem;
  font-style: italic;
  padding: var(--space-1) var(--space-3);
  letter-spacing: 0.01em;
}

/* =================================================================
   INTRO BAND — quick facts + mission statement
   ================================================================= */
.intro-band {
  background: var(--color-ink-mid);
  border-top: 3px solid var(--color-brass);
  border-bottom: 1px solid rgba(181, 101, 29, 0.2);
}
.intro-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  padding-block: var(--space-12);
  align-items: start;
}
@media (min-width: 768px) {
  .intro-band__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.intro-band__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.intro-band__text p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}
.intro-band__text strong {
  color: var(--color-brass);
  font-weight: 700;
}

/* Fact counters */
.intro-band__facts {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
}
.fact-number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-brass);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.fact-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 90px;
}

/* =================================================================
   SECTION TYPOGRAPHY UTILITIES
   ================================================================= */
.section-header {
  margin-bottom: var(--space-10);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brass-dark);
  margin-bottom: var(--space-3);
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--color-brass-dark);
}
.section-eyebrow--light {
  color: var(--color-brass);
}
.section-eyebrow--light::before {
  background: var(--color-brass);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-4);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.section-heading--light {
  color: var(--color-white);
}
.section-intro {
  font-size: 1.0625rem;
  color: var(--color-sepia);
  max-width: 680px;
  line-height: 1.75;
}
.section-intro--light {
  color: var(--color-gallery-text);
}

/* =================================================================
   THE RAID OF 1892 — Narrative Section
   ================================================================= */
.raid-section {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-cream-dark);
  padding-block: var(--space-16) var(--space-20);
}

.raid-narrative {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 800px) {
  .raid-narrative {
    grid-template-columns: 1fr 340px;
  }
}

.raid-text p {
  font-size: 1.0625rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.raid-text p:last-child {
  margin-bottom: 0;
}
.raid-text strong {
  color: var(--color-ink);
  font-weight: 700;
}

/* Timeline */
.raid-timeline {
  background: var(--color-ink-mid);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(181, 101, 29, 0.25);
  padding: var(--space-6);
  box-shadow: 0 4px 20px rgba(28, 16, 8, 0.18);
}
.timeline-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brass);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(181, 101, 29, 0.25);
  letter-spacing: 0.03em;
}
.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}
.timeline-item::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--color-brass);
  border-radius: 50%;
  margin-top: 6px;
}
.timeline-item--end::before {
  background: var(--color-rust);
}
.timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.timeline-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brass);
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-width: 80px;
}
.timeline-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* =================================================================
   HISTORY GALLERY — dark "museum room" aesthetic
   Historic 1892 photographs with dated, respectful captions
   ================================================================= */
.history-gallery {
  background: var(--color-gallery-bg);
  border-top: 3px solid var(--color-brass);
  padding-block: var(--space-16) var(--space-20);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.gallery-figure {
  background: var(--color-ink-mid);
  border: 1px solid rgba(181, 101, 29, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  transition: box-shadow var(--t-base);
}
.gallery-figure:hover {
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.70);
}

.gallery-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-ink);
  border-bottom: 2px solid rgba(181, 101, 29, 0.2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
  /* Subtle sepia filter — acknowledges historical age respectfully */
  filter: sepia(0.15) contrast(1.05);
}
.gallery-figure:hover .gallery-img {
  transform: scale(1.025);
}
@media (prefers-reduced-motion: reduce) {
  .gallery-figure:hover .gallery-img {
    transform: none;
  }
}

/* Caption — respectful, dated, clearly labeled as historical record */
.gallery-caption {
  padding: var(--space-5) var(--space-6);
}
.gallery-caption__date {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brass);
  margin-bottom: var(--space-2);
}
.gallery-caption__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}
.gallery-caption__desc {
  font-size: 0.9rem;
  color: var(--color-gallery-text);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.gallery-caption__credit {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.60);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: var(--space-2);
}

/* Gallery notice */
.gallery-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-gallery-text);
  line-height: 1.65;
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(181, 101, 29, 0.15);
  border-radius: var(--radius-lg);
}
.gallery-notice svg {
  flex-shrink: 0;
  color: var(--color-brass);
  margin-top: 2px;
}

/* =================================================================
   THE FOUR DEFENDERS — Memorial section
   ================================================================= */
.defenders-section {
  background: var(--color-cream-mid);
  border-top: 3px solid var(--color-rust);
  border-bottom: 1px solid var(--color-cream-dark);
  padding-block: var(--space-16) var(--space-20);
}

.defenders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.defender-card {
  background: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-top: 3px solid var(--color-rust);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(28, 16, 8, 0.07);
  transition: box-shadow var(--t-base);
}
.defender-card:hover {
  box-shadow: 0 4px 20px rgba(28, 16, 8, 0.12);
}

.defender-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.defender-info {
  flex: 1;
}
.defender-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}
.defender-role {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-rust);
  margin-bottom: var(--space-3);
}
.defender-desc {
  font-size: 0.9rem;
  color: var(--color-sepia);
  line-height: 1.7;
  margin: 0;
}

/* Memorial quote */
.defenders-memorial {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-cream-dark);
}
.memorial-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-style: italic;
  color: var(--color-ink-light);
  font-weight: 400;
  line-height: 1.55;
  max-width: 520px;
  margin-inline: auto;
}
.memorial-quote p::before { content: '\201C'; }
.memorial-quote p::after  { content: '\201D'; }

/* =================================================================
   PLAN YOUR VISIT
   ================================================================= */
.visit-section {
  background: var(--color-ink-mid);
  border-top: 3px solid var(--color-brass);
  padding-block: var(--space-16) var(--space-20);
}

.visit-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 768px) {
  .visit-inner {
    grid-template-columns: 1fr 340px;
  }
}

/* Override section-heading for dark bg */
.visit-section .section-heading {
  color: var(--color-white);
}
.visit-section .section-eyebrow {
  color: var(--color-brass);
}
.visit-section .section-eyebrow::before {
  background: var(--color-brass);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-2);
}
.visit-detail-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 101, 29, 0.15);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-brass);
}
.visit-detail-icon {
  flex-shrink: 0;
  color: var(--color-brass);
  margin-top: 1px;
}
.visit-detail-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.visit-detail-body strong {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brass);
  display: block;
}
.visit-detail-body span,
.visit-detail-body address {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}
.visit-note {
  font-size: 0.8125rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  font-style: italic;
}
.visit-phone-link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brass);
  text-decoration: none;
  font-family: var(--font-serif);
}
.visit-phone-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}
.visit-web-link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.visit-web-link:hover {
  color: var(--color-brass);
}

/* Visit aside cards */
.visit-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.visit-admission-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-cream-dark);
  border-top: 3px solid var(--color-brass);
  padding: var(--space-6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.visit-admission-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}
.visit-admission-desc {
  font-size: 0.9rem;
  color: var(--color-sepia);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}
.visit-admission-note {
  font-size: 0.8125rem;
  color: var(--color-sepia);
  line-height: 1.55;
  margin-top: var(--space-3);
  font-style: italic;
}

.visit-also-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 101, 29, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.visit-also-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-brass);
  margin-bottom: var(--space-3);
}
.visit-also-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.visit-also-card strong {
  color: rgba(255, 255, 255, 0.92);
}
.visit-also-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.visit-also-link:hover {
  color: var(--color-white);
}

/* =================================================================
   ABOUT / SUPPORT SECTION
   ================================================================= */
.about-section {
  background: var(--color-cream);
  border-top: 1px solid var(--color-cream-dark);
  border-bottom: 1px solid var(--color-cream-dark);
  padding-block: var(--space-16) var(--space-20);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr 360px;
  }
}

.about-body {
  font-size: 1.0625rem;
  color: var(--color-text-mid);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}
.about-body:last-child {
  margin-bottom: 0;
}

/* Support card */
.support-card {
  background: var(--color-ink-mid);
  border: 1px solid rgba(181, 101, 29, 0.22);
  border-top: 3px solid var(--color-rust);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: 0 4px 20px rgba(28, 16, 8, 0.18);
}
.support-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.support-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.support-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.support-option {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 101, 29, 0.15);
  border-radius: var(--radius);
}
.support-option__icon {
  flex-shrink: 0;
  color: var(--color-brass);
  margin-top: 2px;
}
.support-option div {
  flex: 1;
}
.support-option strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-1);
}
.support-option p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin: 0;
}

/* =================================================================
   ACCESSIBILITY STATEMENT
   ================================================================= */
.a11y-section {
  background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-ink-mid) 100%);
  padding-block: var(--space-10);
  border-top: 1px solid rgba(181, 101, 29, 0.15);
}
.a11y-inner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.a11y-icon {
  flex-shrink: 0;
  color: var(--color-brass);
}
.a11y-text {
  flex: 1;
  min-width: 240px;
}
.a11y-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}
.a11y-text p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}
.a11y-text strong {
  color: var(--color-brass);
}
.a11y-link {
  color: var(--color-brass);
  font-weight: 600;
}
.a11y-link:hover {
  color: var(--color-white);
}

/* =================================================================
   SITE FOOTER
   ================================================================= */
.site-footer {
  background-color: var(--color-ink);
  color: rgba(255, 255, 255, 0.72);
  border-top: 4px solid var(--color-brass);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-block: var(--space-12);
}
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-museum-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}
.footer-society {
  font-size: 0.8125rem;
  color: var(--color-brass);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}
.footer-address {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.footer-hours {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}
.footer-hours strong {
  color: rgba(255, 255, 255, 0.85);
}

.footer-nav-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-4);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  text-decoration: none;
  padding: var(--space-1) 0;
  min-height: 44px;
  transition: color var(--t-fast);
}
.footer-link:hover {
  color: var(--color-brass);
  text-decoration: underline;
}
.footer-link--accent {
  color: var(--color-brass);
}
.footer-link--accent:hover {
  color: var(--color-white);
}

.footer-legal {
  background-color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-6);
}
.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-3);
}
.photo-credit {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.60);
  margin-bottom: var(--space-3);
  font-style: italic;
}
.demo-notice {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-3);
}
.demo-notice strong {
  color: var(--color-brass);
}

/* =================================================================
   DEMO ACTION TOAST
   ================================================================= */
.demo-toast {
  position: fixed;
  top: calc(var(--toolbar-h) + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 9000;
  background-color: var(--color-ink-mid);
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-brass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.50);
  max-width: min(480px, calc(100vw - 2rem));
  text-align: center;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
  opacity: 0;
  pointer-events: none;
}
.demo-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .demo-toast {
    transition: opacity 150ms ease;
    transform: translateX(-50%) translateY(0) !important;
  }
  .demo-toast:not(.is-visible) {
    opacity: 0;
  }
}

/* =================================================================
   RESPONSIVE — MOBILE NAVIGATION
   ================================================================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-ink);
    border-top: 1px solid rgba(181, 101, 29, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    display: none;
    z-index: 200;
  }
  .primary-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) 0;
  }
  .nav-link {
    border-radius: 0;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none;
    min-height: var(--touch-min);
    font-size: 1rem;
    display: flex;
  }
  .nav-link--cta {
    margin: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
  }
  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  /* Toolbar org text truncates on mobile */
  .demo-toolbar__org {
    font-size: 0.6875rem;
    max-width: 140px;
  }

  /* Hero stacks */
  .hero {
    min-height: 480px;
  }
  .hero-content {
    min-height: 480px;
    padding-block: var(--space-12);
  }
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Intro band stacks */
  .intro-band__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .intro-band__facts {
    justify-content: center;
    gap: var(--space-8);
  }

  /* Raid section stacks */
  .raid-narrative {
    grid-template-columns: 1fr;
  }

  /* Gallery single column */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Defenders grid single column */
  .defenders-grid {
    grid-template-columns: 1fr;
  }

  /* Visit section stacks */
  .visit-inner {
    grid-template-columns: 1fr;
  }

  /* About section stacks */
  .about-inner {
    grid-template-columns: 1fr;
  }

  /* a11y section stacks */
  .a11y-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  /* Footer stacks */
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   RESPONSIVE — TABLET+
   ================================================================= */
@media (min-width: 640px) {
  :root {
    --container-pad: var(--space-8);
  }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
  .demo-toolbar,
  .wcag-badge,
  .ada-scan,
  .site-header,
  .hero-ctas,
  .a11y-section,
  .site-footer,
  .before-only {
    display: none;
  }
  .skip-link {
    display: none;
  }
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #444;
  }
  a[href^="#"]::after {
    content: "";
  }
}

/* =================================================================
   MOBILE OVERFLOW FIXES — ≤480px
   Prevent horizontal scroll at 360-414px viewports.
   ================================================================= */
html, body {
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .demo-toolbar {
    padding: 0 0.625rem;
    gap: 0.5rem;
  }
  .demo-toolbar__org {
    max-width: 90px;
    font-size: 0.625rem;
  }
  .demo-toolbar__btn {
    padding: 4px 7px;
    font-size: 0.6875rem;
  }
}
