/* ================================================================
   MAP THE FIGHT — Design System
   Aesthetic: Dark civic editorial — bold, purposeful, urgent
   Fonts: Playfair Display (headlines) + DM Sans (body)
   Fully responsive: mobile-first, all breakpoints covered
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

:root {
  /* Core palette */
  --ink:        #0d0f14;
  --ink-mid:    #1a1d26;
  --ink-soft:   #262a38;
  --cream:      #f5f0e8;
  --cream-dark: #ede7d9;
  --white:      #ffffff;

  /* Accent palette */
  --red:        #c0392b;
  --red-hot:    #e74c3c;
  --amber:      #d97706;
  --gold:       #f59e0b;
  --green:      #16a34a;
  --muted:      #64748b;

  /* Tier colors */
  --tier1: #c0392b;
  --tier2: #d97706;
  --tier3: #ca8a04;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs:  0.375rem;
  --sp-sm:  0.75rem;
  --sp-md:  1.25rem;
  --sp-lg:  2rem;
  --sp-xl:  3.5rem;
  --sp-2xl: 6rem;

  /* Layout */
  --max-w:  1240px;
  --radius: 4px;
  --radius-lg: 10px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.12);
  --shadow:    0 4px 20px rgba(0,0,0,.15);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.25);

  /* Transitions */
  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h1 { font-size: clamp(2rem, 7vw, 4.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 4vw, 3rem);   font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { line-height: 1.75; color: var(--ink-soft); }
a  { color: inherit; text-decoration: none; }

strong { font-weight: 700; color: var(--ink); }

img, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}
svg { max-width: 100%; }

p, li,
.state-card__name,
.org-card h3,
.donate-option h4,
.race-item__name,
.map-panel__inner h3,
.page-hero h1 {
  overflow-wrap: anywhere;
}

/* ── Layout Helpers ───────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.section   { padding: var(--sp-2xl) 0; }
.section--dark  { background: var(--ink); color: var(--cream); }
.section--dark p { color: rgba(245,240,232,.7); }
.section--cream { background: var(--cream); }
.section--mid   { background: var(--ink-mid); color: var(--cream); }
.section-intro { max-width: 580px; }
.section-cta-center { text-align: center; margin-top: 2.5rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; font-family: var(--font-body);
  font-size: .875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--ease); white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  min-height: 44px; /* iOS tap target */
}
.btn-primary {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-hot); border-color: var(--red-hot);
  transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,57,43,.35);
}
.btn-outline {
  background: transparent; color: var(--cream); border-color: rgba(245,240,232,.4);
}
.btn-outline:hover {
  border-color: var(--cream); background: rgba(245,240,232,.08);
}
.btn-donate {
  background: var(--green); color: var(--white); border-color: var(--green);
  font-size: 1rem; padding: .9rem 2rem;
}
.btn-donate:hover {
  background: #15803d; transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(22,163,74,.35);
}
.btn-sm { padding: .5rem 1rem; font-size: .8rem; min-height: 38px; }
.btn-block-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,15,20,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,240,232,.08);
  transition: all var(--ease);
}
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 1rem;
  height: 60px;
}
.nav__logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 900;
  color: var(--cream); letter-spacing: -.01em;
  min-width: 0;
  max-width: calc(100% - 52px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav__logo-icon {
  width: 30px; height: 30px; background: var(--red);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: white; flex-shrink: 0;
}
.nav__links {
  display: flex; align-items: center; list-style: none; gap: .25rem;
}
.nav__links a {
  color: rgba(245,240,232,.7); font-size: .875rem; font-weight: 500;
  padding: .5rem .75rem; border-radius: var(--radius);
  transition: color var(--ease), background var(--ease);
}
.nav__links a:hover, .nav__links a.active {
  color: var(--cream); background: rgba(245,240,232,.08);
}
.nav__cta { margin-left: .5rem; }

.nav__hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: .5rem; min-width: 44px; min-height: 44px;
  touch-action: manipulation;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: all var(--ease);
}
/* Hamburger animation when open */
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column;
  background: var(--ink-mid); padding: .75rem 1rem 1.25rem;
  border-top: 1px solid rgba(245,240,232,.08);
  max-height: calc(100vh - 60px); overflow-y: auto;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  color: rgba(245,240,232,.8); padding: .85rem .5rem;
  border-bottom: 1px solid rgba(245,240,232,.06);
  font-size: .975rem; min-height: 44px;
  display: flex; align-items: center;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile .btn {
  margin-top: .75rem; width: 100%; justify-content: center;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: var(--ink);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 60px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(192,57,43,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(217,119,6,.07) 0%, transparent 60%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .03;
  background-image:
    linear-gradient(rgba(245,240,232,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,240,232,1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding: 3rem 1rem;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--red);
  background: rgba(192,57,43,.12); border: 1px solid rgba(192,57,43,.25);
  padding: .35rem .85rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}
.hero__title { color: var(--cream); margin-bottom: 1.25rem; }
.hero__title em { font-style: italic; color: var(--red); display: block; }
.hero__title-break { display: inline; }
.hero__desc {
  font-size: 1.05rem; color: rgba(245,240,232,.65);
  margin-bottom: 2rem; max-width: 480px; line-height: 1.8;
}
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__stats {
  display: flex; gap: 1.5rem; margin-top: 2.5rem;
  padding-top: 2rem; border-top: 1px solid rgba(245,240,232,.1);
  flex-wrap: wrap;
}
.hero__stats > div { min-width: 0; }
.hero__stat-value {
  display: block; font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 900; color: var(--cream);
}
.hero__stat-label {
  font-size: .75rem; color: rgba(245,240,232,.45);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Hero map preview */
.hero__map-wrap { position: relative; }
.hero__map-bg {
  background: #0d0f14; border-radius: var(--radius-lg);
  padding: 1.5rem; border: 1px solid rgba(245,240,232,.08);
  box-shadow: var(--shadow-lg);
}
.hero__map-label {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(245,240,232,.35); margin-bottom: 1rem;
}
#hero-mini-map { width: 100%; height: auto; }
.hero__map-legend {
  display: flex; gap: 1.25rem; margin-top: 1.25rem; flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; color: rgba(245,240,232,.55);
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── How It Works ─────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.step-card {
  padding: 1.75rem; background: var(--cream);
  border-radius: var(--radius-lg); position: relative;
  border: 1px solid rgba(13,15,20,.06);
  transition: transform var(--ease), box-shadow var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-display); font-size: 4rem; font-weight: 900;
  color: rgba(192,57,43,.12); position: absolute; top: 1rem; right: 1.25rem;
  line-height: 1;
}
.step-icon {
  width: 46px; height: 46px; background: var(--red);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 1.1rem; color: white; flex-shrink: 0;
}
.step-card h3 { margin-bottom: .5rem; font-size: 1.05rem; color: var(--ink); }
.step-card p  { font-size: .875rem; }

/* ── Map Section ──────────────────────────────────────────── */
.map-section { background: var(--ink); padding: var(--sp-2xl) 0; }
.map-section__header { text-align: center; margin-bottom: 2.5rem; }
.map-section__header h2 { color: var(--cream); }
.map-section__header p  { color: rgba(245,240,232,.6); max-width: 560px; margin: .75rem auto 0; }

.map-container {
  background: rgba(255,255,255,.04); border-radius: var(--radius-lg);
  padding: 1.25rem; border: 1px solid rgba(255,255,255,.08);
  position: relative; box-shadow: 0 16px 48px rgba(0,0,0,.16);
}
.map-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem; align-items: start;
}
.map-visual {
  position: relative; min-height: 480px; padding: 1rem;
  background: rgba(13,15,20,.9); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.map-panel { display: flex; align-items: flex-start; }
.map-panel__inner {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1px solid rgba(13,15,20,.08); width: 100%;
}
.map-panel__inner h3 {
  margin-top: .25rem; margin-bottom: .875rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}
.map-panel__inner p {
  color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem;
}
.map-panel__meta {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.map-panel__meta .tier-badge { font-size: .78rem; }
.btn.disabled { opacity: .55; pointer-events: none; cursor: default; }

#usa-map { width: 100%; height: 100%; min-height: 420px; display: block; cursor: default; }
.state-path {
  stroke: rgba(255,255,255,.08); stroke-width: 0.4;
  transition: fill .18s ease, opacity .18s ease, filter .18s ease;
}
.state-active  { cursor: pointer; opacity: 0.95; }
.state-active:hover, .state-active:focus { opacity: 1; filter: brightness(1.08); }
.state-inactive { fill: #252a35 !important; cursor: default; opacity: .68; }
.state-inactive:hover { opacity: .68 !important; }
.state-active:focus {
  outline: none; stroke: rgba(245,240,232,.95);
  stroke-width: 1.4; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

.map-tooltip {
  display: none; position: absolute;
  background: var(--ink); color: var(--cream);
  padding: .6rem 1rem; border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; pointer-events: none;
  white-space: normal; z-index: 20;
  max-width: min(260px, calc(100vw - 2rem));
  line-height: 1.4;
  border: 1px solid rgba(245,240,232,.12); box-shadow: var(--shadow);
}
.map-tooltip__tier {
  font-size: .7rem; font-weight: 400;
  color: rgba(245,240,232,.55); display: block; margin-top: .15rem;
}
.map-legend {
  display: flex; gap: 1.5rem; justify-content: center;
  margin-top: 1.75rem; flex-wrap: wrap;
}
.map-legend__item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; color: rgba(245,240,232,.55);
}
.map-legend__swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }

/* Mobile map dropdown */
.map-dropdown-wrap {
  display: none; margin-top: 1.5rem;
}
.map-dropdown-wrap label {
  display: block; font-size: .85rem; font-weight: 600;
  color: rgba(245,240,232,.6); margin-bottom: .5rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.map-dropdown-wrap select {
  width: 100%; padding: .875rem 1rem; border-radius: var(--radius);
  background: var(--ink-soft); color: var(--cream);
  border: 1px solid rgba(245,240,232,.15); font-size: 1rem;
  font-family: var(--font-body); cursor: pointer; min-height: 48px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(245,240,232,.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}

.map-priority-list { display: none; margin-top: 1.5rem; }
.map-priority-list__grid {
  display: grid; gap: .875rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.map-priority-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 1rem;
  display: flex; flex-direction: column; gap: .6rem;
  text-decoration: none; color: inherit;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.map-priority-item:hover, .map-priority-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
  border-color: rgba(255,255,255,.18);
}
.map-priority-item h4 { margin: 0; font-size: .95rem; color: var(--cream); }
.map-priority-item p  { margin: 0; font-size: .85rem; color: rgba(245,240,232,.65); line-height: 1.5; }
.map-priority-item .tier-badge { align-self: flex-start; }

/* ── State Ticker ─────────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden; background: var(--red);
  padding: .6rem 0; border-top: 1px solid rgba(0,0,0,.1);
}
.ticker-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: ticker 22s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 0 2rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: white;
}
.ticker-item::after { content: '★'; color: rgba(255,255,255,.4); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Priority State Cards ─────────────────────────────────── */
.state-cards-section { padding: var(--sp-2xl) 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.25rem; gap: 1rem;
}
.section-header__sub {
  font-size: .85rem; color: var(--muted); max-width: 380px; line-height: 1.6;
}
.state-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.state-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--cream-dark);
  padding: 1.375rem; cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column; gap: .7rem;
  transition: all var(--ease); position: relative; overflow: hidden;
  touch-action: manipulation;
}
.state-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.state-card.t1::before { background: var(--tier1); }
.state-card.t2::before { background: var(--tier2); }
.state-card.t3::before { background: var(--tier3); }
.state-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.state-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.state-card__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.tier-badge {
  display: inline-block; padding: .22rem .6rem; border-radius: 3px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; white-space: nowrap; color: white; flex-shrink: 0;
}
.tier-badge.t1 { background: var(--tier1); }
.tier-badge.t2 { background: var(--tier2); }
.tier-badge.t3 { background: var(--tier3); }
.state-card__desc { font-size: .875rem; color: var(--muted); line-height: 1.6; flex: 1; }
.state-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .7rem; border-top: 1px solid var(--cream-dark);
  font-size: .8rem; color: var(--muted);
}
.state-card__arrow { color: var(--red); font-size: 1rem; transition: transform var(--ease); }
.state-card:hover .state-card__arrow { transform: translateX(4px); }

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: var(--red); padding: 4.5rem 1rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.15) 0%, transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: white; font-size: clamp(1.75rem, 5vw, 3.5rem); }
.cta-band p  { color: rgba(255,255,255,.75); font-size: 1rem; margin: 1rem auto 2.25rem; max-width: 480px; }
.cta-band .btn-outline { color: white; border-color: rgba(255,255,255,.5); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.15); border-color: white; }
.cta-band__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--ink); color: rgba(245,240,232,.45);
  padding: 3.5rem 0 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245,240,232,.08);
}
.footer__brand h3 { color: var(--cream); font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .7rem; }
.footer__brand p  { font-size: .875rem; line-height: 1.7; color: rgba(245,240,232,.9); }
.footer__col h4 {
  color: var(--cream); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .875rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer__col a { font-size: .875rem; color: rgba(245,240,232,.45); transition: color var(--ease); }
.footer__col a:hover { color: var(--cream); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.75rem; font-size: .8rem; flex-wrap: wrap; gap: 1rem;
}
.footer__note { font-size: .75rem; color: rgba(245,240,232,.25); margin-top: .5rem; }

/* ── State Detail Page ────────────────────────────────────── */
.page-hero {
  background:
    radial-gradient(circle at top right, rgba(192,57,43,.18), transparent 35%),
    linear-gradient(180deg, #0c0f16 0%, #141926 100%);
  padding: 7rem 0 3.5rem; margin-top: 0;
}
.page-hero .container { padding-top: 0; position: relative; }
.page-hero__back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: rgba(245,240,232,.55);
  text-transform: uppercase; letter-spacing: .14em;
  margin-bottom: 1.25rem; transition: color var(--ease), transform var(--ease);
  min-height: 44px;
}
.page-hero__back:hover { color: var(--cream); transform: translateX(-2px); }
.page-hero__eyebrow {
  display: inline-flex; align-items: center;
  padding: .6rem 1rem; border-radius: 999px;
  background: rgba(245,240,232,.06); color: var(--cream);
  font-size: .78rem; letter-spacing: .12em; margin-bottom: 1rem;
}
.page-hero h1 {
  color: var(--cream); margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02;
}
.page-hero h1 em { color: var(--red); font-style: italic; }
.page-hero--content { padding-top: 88px; }
.page-hero--guide { padding-bottom: 4rem; }
.page-hero--state { padding-top: 88px; }
.page-hero__desc {
  font-size: 1rem; color: rgba(245,240,232,.72);
  max-width: 720px; margin-bottom: 1.75rem;
}

/* Stats strip */
.stats-strip {
  background: linear-gradient(180deg, rgba(13,15,20,.96), rgba(20,26,40,.97));
  border-top: 1px solid rgba(245,240,232,.08);
}
.stats-strip__inner {
  display: flex; overflow-x: auto; scrollbar-width: none;
  gap: 1rem; padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}
.stats-strip__inner::-webkit-scrollbar { display: none; }
.stat-item {
  flex: 1; min-width: 140px; padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,240,232,.08);
  text-align: center;
}
.stat-item__value {
  font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 900;
  color: var(--cream); display: block;
}
.stat-item__label {
  font-size: .75rem; color: rgba(245,240,232,.45);
  text-transform: uppercase; letter-spacing: .08em;
  display: block; margin-top: .4rem;
}

/* Detail content */
.detail-body { padding: calc(var(--sp-2xl) + 1rem) 0; }
.detail-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 3rem; align-items: start;
  width: 100%;
}
.detail-grid > * { min-width: 0; max-width: 100%; }
.detail-main > section {
  margin-bottom: 2.5rem; background: var(--cream);
  border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1px solid rgba(13,15,20,.06); box-shadow: var(--shadow-sm);
}
.detail-main > section:last-child { margin-bottom: 0; }
.detail-sidebar { position: sticky; top: 100px; }

.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: .875rem; display: block;
}

/* Org cards */
.org-list { display: flex; flex-direction: column; gap: 1.25rem; }
.org-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; border: 1px solid rgba(13,15,20,.08);
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.org-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.org-card__header {
  display: flex; align-items: center; gap: .875rem; margin-bottom: .875rem;
}
.org-card__logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink-soft); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
  color: var(--cream); font-weight: 700;
}
.org-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.org-card__type { font-size: .82rem; color: var(--muted); }
.org-card p { font-size: .93rem; margin-bottom: 1.25rem; color: var(--ink); }

/* Race groups */
.race-group {
  margin-bottom: 1.5rem; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(13,15,20,.08); box-shadow: var(--shadow-sm);
}
.race-group__header {
  display: flex; align-items: center; gap: .75rem;
  padding: 1rem 1.125rem; background: var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  cursor: pointer; min-height: 52px; touch-action: manipulation;
}
.race-group__header h3 { color: var(--cream); font-size: .975rem; margin: 0; flex: 1; }
.race-group__toggle {
  color: rgba(245,240,232,.55); font-size: .88rem; transition: transform var(--ease);
}
.race-group__header[aria-expanded="true"] .race-group__toggle { transform: rotate(180deg); }
.race-group__copy {
  padding: 1rem 1.25rem;
  background: rgba(245,240,232,.04);
  border: 1px solid rgba(245,240,232,.06);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: .75rem;
}
.race-group__desc {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}
.race-list { list-style: none; border-top: 1px solid rgba(13,15,20,.08); }
.race-item {
  display: flex; align-items: center; gap: .875rem;
  padding: .9rem 1.125rem; border-bottom: 1px solid rgba(13,15,20,.08);
  font-size: .93rem; background: var(--white); flex-wrap: wrap;
}
.race-item:last-child { border-bottom: none; }
.race-item__name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.race-status {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: .27rem .65rem; border-radius: 999px;
  white-space: nowrap;
}
.race-status.active   { background: rgba(22,163,74,.12); color: #15803d; }
.race-status.upcoming { background: rgba(217,119,6,.12); color: #b45309; }
.race-status.called   { background: var(--cream-dark); color: var(--muted); }

/* Sidebar donation widget */
.donate-widget {
  background: linear-gradient(180deg, #141926 0%, #131820 100%);
  border-radius: var(--radius-lg); padding: 1.75rem; color: var(--cream);
  border: 1px solid rgba(245,240,232,.08); box-shadow: var(--shadow-sm);
}
.donate-widget__header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.375rem;
}
.donate-widget__icon {
  width: 42px; height: 42px; background: var(--red);
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.donate-widget h3 { color: var(--cream); font-size: 1.05rem; margin: 0; }
.donate-widget__sub {
  font-size: .78rem;
  color: rgba(245,240,232,.4);
  margin: 0;
}
.donate-widget__options { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1.5rem; }
.donate-option {
  background: rgba(255,255,255,.03); border: 1px solid rgba(245,240,232,.12);
  border-radius: var(--radius); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .85rem; cursor: pointer;
  transition: all var(--ease); min-height: 52px; touch-action: manipulation;
}
.donate-option:hover { border-color: rgba(192,57,43,.6); background: rgba(192,57,43,.1); }
.donate-option h4 { color: var(--cream); font-size: .93rem; margin-bottom: .1rem; }
.donate-option p  { font-size: .8rem; color: rgba(245,240,232,.55); }
.donate-option__arrow { color: rgba(245,240,232,.5); margin-left: auto; flex-shrink: 0; align-self: center; }
.donate-widget .btn-donate { width: 100%; justify-content: center; display: flex; margin-top: .625rem; }
.donate-widget__note {
  font-size: .78rem; color: rgba(245,240,232,.45);
  text-align: center; margin-top: 1.1rem; line-height: 1.6;
}
.donate-widget__empty {
  margin-bottom: 1.5rem;
  color: rgba(245,240,232,.55);
}

/* ── Page (About / Fight / How-to) ───────────────────────── */
.content-page { padding: var(--sp-2xl) 0; }
.content-page__grid { display: grid; grid-template-columns: 1fr 380px; gap: 3.5rem; }
.content-page__body h2 { margin: 2.25rem 0 .875rem; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.content-page__body h3 { margin: 1.75rem 0 .625rem; font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
.content-page__body p  { margin-bottom: 1.1rem; font-size: .975rem; }
.content-page__body ul { padding-left: 1.375rem; margin-bottom: 1.1rem; }
.content-page__body ul li { margin-bottom: .5rem; font-size: .975rem; color: var(--ink-soft); }
.content-sidebar { position: sticky; top: 80px; height: fit-content; }
.side-card {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 1.5rem; margin-bottom: 1.1rem;
  border: 1px solid rgba(13,15,20,.06);
}
.side-card h4 { margin-bottom: .625rem; font-size: .93rem; }
.side-card p  { font-size: .875rem; }
.side-card--dark {
  background: var(--ink);
  border-color: rgba(245,240,232,.08);
  color: var(--cream);
}
.side-card--bordered { border: 1px solid rgba(13,15,20,.08); }
.side-card__title-light { color: var(--cream); }
.side-card__text-light {
  font-size: .85rem;
  color: rgba(245,240,232,.5);
  margin-bottom: 1rem;
}
.side-card__text-muted {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.about-facts-text {
  font-size: .85rem;
  color: var(--muted);
}

/* How-to page helpers */
.howto-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.step-card--accent { border: 2px solid rgba(192,57,43,.15); }
.step-icon--lg { font-size: 1.5rem; }
.howto-step-link {
  margin-top: 1rem;
  display: inline-flex;
}
.howto-body { margin-top: 3rem; }
.howto-actions-grid .btn {
  width: auto;
  justify-content: center;
}
.howto-actions-grid .btn-outline,
.howto-actions-grid .btn-secondary {
  background: rgba(13,15,20,.08);
  color: var(--ink);
  border: 2px solid rgba(13,15,20,.35);
}
.howto-actions-grid .btn-outline:hover,
.howto-actions-grid .btn-secondary:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13,15,20,.2);
}
.howto-faq {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(13,15,20,.06);
  border-radius: var(--radius-lg);
}
.section-label--light { color: rgba(245,240,232,.4); }
.section-label--red { color: var(--red); }

/* ── Admin Panel ──────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: #f0f4f8; }
.admin-sidebar {
  width: 240px; background: var(--ink); display: flex;
  flex-direction: column; flex-shrink: 0; position: fixed;
  top: 0; bottom: 0; overflow-y: auto;
}
.admin-sidebar__logo {
  padding: 1.25rem; font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 900; color: var(--cream);
  border-bottom: 1px solid rgba(245,240,232,.08);
  display: flex; align-items: center; gap: .625rem;
}
.admin-sidebar__logo-dot {
  width: 26px; height: 26px; background: var(--red); border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: white;
}
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav__label {
  font-size: .65rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(245,240,232,.25);
  padding: .5rem 1.25rem; margin-top: .625rem;
}
.admin-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .625rem 1.25rem; color: rgba(245,240,232,.6);
  font-size: .875rem; transition: all var(--ease); min-height: 44px;
}
.admin-nav a:hover, .admin-nav a.active { color: var(--cream); background: rgba(245,240,232,.06); }
.admin-nav a.active { border-right: 3px solid var(--red); }
.admin-nav__icon { width: 18px; text-align: center; font-size: .93rem; }
.admin-content { margin-left: 240px; flex: 1; min-height: 100vh; }
.admin-topbar {
  background: white; border-bottom: 1px solid #e5eaf0;
  padding: .875rem 1.5rem; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-topbar h1 { font-size: 1.2rem; font-family: var(--font-display); }
.admin-main { padding: 1.5rem; }
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem; margin-bottom: 2rem;
}
.admin-stat-card {
  background: white; border-radius: var(--radius-lg); padding: 1.375rem;
  box-shadow: var(--shadow-sm); border: 1px solid #e5eaf0;
}
.admin-stat-card__value { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: var(--ink); }
.admin-stat-card__label { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.admin-stat-card__icon  { font-size: 1.4rem; margin-bottom: .625rem; }
.admin-card {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid #e5eaf0; margin-bottom: 1.25rem;
}
.admin-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: .875rem; border-bottom: 1px solid #f0f4f8;
}
.admin-card__header h2 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
  text-align: left; padding: .6rem .875rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 2px solid #f0f4f8; background: #fafbfc;
}
.admin-table td { padding: .7rem .875rem; border-bottom: 1px solid #f0f4f8; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafbfc; }
.badge-active   { background: rgba(22,163,74,.12); color: #15803d; padding: .2rem .55rem; border-radius: 3px; font-size: .72rem; font-weight: 700; }
.badge-inactive { background: rgba(100,116,139,.1); color: var(--muted); padding: .2rem .55rem; border-radius: 3px; font-size: .72rem; font-weight: 700; }
.action-link { color: var(--red); font-size: .82rem; font-weight: 600; cursor: pointer; }
.action-link:hover { text-decoration: underline; }

/* Admin forms */
.admin-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.75rem; align-items: flex-start; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .375rem; color: var(--ink); }
.form-control {
  width: 100%; padding: .625rem .875rem; border: 1.5px solid #e5eaf0;
  border-radius: var(--radius); font-size: .9rem; font-family: var(--font-body);
  color: var(--ink); background: white; transition: border-color var(--ease);
  min-height: 44px;
}
.form-control:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-group select.form-control { cursor: pointer; }
.form-actions { display: flex; gap: .875rem; padding-top: .625rem; flex-wrap: wrap; }

/* Admin login */
.admin-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--ink); padding: 1.5rem;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(192,57,43,.15) 0%, transparent 60%);
}
.login-box {
  background: var(--ink-mid); border-radius: var(--radius-lg);
  padding: 2.5rem; width: 100%; max-width: 400px;
  border: 1px solid rgba(245,240,232,.08); box-shadow: var(--shadow-lg);
}
.login-box__logo {
  text-align: center; margin-bottom: 1.75rem;
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 900; color: var(--cream);
}
.login-box__logo span { color: var(--red); }
.login-box h2 { color: var(--cream); font-size: 1.2rem; margin-bottom: .4rem; text-align: center; }
.login-box p  { text-align: center; font-size: .875rem; color: rgba(245,240,232,.4); margin-bottom: 1.75rem; }
.login-box .form-group label { color: rgba(245,240,232,.65); }
.login-box .form-control {
  background: rgba(245,240,232,.06); border-color: rgba(245,240,232,.12); color: var(--cream);
}
.login-box .form-control:focus { border-color: var(--red); }
.login-box .btn { width: 100%; justify-content: center; }

/* ── Alert ────────────────────────────────────────────────── */
.alert {
  padding: .875rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.1rem;
  font-size: .875rem; font-weight: 500; display: flex; align-items: center; gap: .6rem;
}
.alert-success { background: rgba(22,163,74,.1); color: #15803d; border: 1px solid rgba(22,163,74,.2); }
.alert-error   { background: rgba(192,57,43,.1); color: var(--red); border: 1px solid rgba(192,57,43,.2); }

/* ── Utilities ────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.w-full { width: 100%; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadein { animation: fadeUp .5s ease forwards; }
.delay-1 { animation-delay: .1s; opacity: 0; }
.delay-2 { animation-delay: .2s; opacity: 0; }
.delay-3 { animation-delay: .3s; opacity: 0; }
.delay-4 { animation-delay: .4s; opacity: 0; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-track { animation: none; }
}

/* ================================================================
   RESPONSIVE BREAKPOINTS — Mobile-first approach
   ================================================================ */

/* ── Large tablets / small desktops (max 1100px) ──────────── */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1rem; }
  .hero__map-wrap { display: none; }
  .hero__desc { max-width: 100%; }

  .detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-sidebar { position: static; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .content-page__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .content-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-form-grid { grid-template-columns: 1fr; }

  .map-grid { grid-template-columns: 1fr; }
  .map-panel__inner { padding: 1.375rem; }
}

/* ── Tablets (max 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sp-2xl: 4.5rem; }

  /* Nav */
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 1.75rem;
  }
  .hero__inner { padding: 2rem 1rem 2rem; }
  .hero__actions { gap: .625rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  .hero__stat-value { font-size: 1.4rem; line-height: 1; }
  .hero__stat-label { font-size: .66rem; letter-spacing: .06em; line-height: 1.35; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; gap: .875rem; }

  /* Map */
  .map-container { padding: 1rem; }
  .map-visual { min-height: 360px; padding: .625rem; }
  #usa-map { min-height: 320px; }
  .map-legend { gap: 1rem; }
  .map-dropdown-wrap { display: block; }
  .map-priority-list { display: block; }
  .map-priority-list__grid { grid-template-columns: 1fr; }

  /* State cards */
  .state-cards-grid { grid-template-columns: 1fr; gap: .875rem; }
  .section-header { flex-direction: column; align-items: flex-start; gap: .75rem; }

  /* Stats strip */
  .stats-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .stat-item { min-width: 0; flex: none; padding: 1.1rem .9rem; }
  .stat-item__value { font-size: 1.5rem; }

  /* Org cards */
  .org-card { padding: 1.25rem; }
  .org-card__logo { width: 46px; height: 46px; }

  /* CTA band */
  .cta-band { padding: 3.5rem 1rem; }
  .cta-band__btns { flex-direction: column; align-items: center; gap: .75rem; }
  .cta-band__btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__bottom { flex-direction: column; text-align: center; gap: .625rem; }

  /* Admin */
  .admin-sidebar { width: 100%; position: static; height: auto; }
  .admin-content { margin-left: 0; }
  .admin-layout  { flex-direction: column; }
  .admin-stats   { grid-template-columns: 1fr 1fr; }
  .admin-main    { padding: 1rem; }
  .admin-topbar  { padding: .75rem 1rem; }

  /* Admin table — make scrollable on mobile */
  .admin-card { padding: 1.1rem; overflow: hidden; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 560px; }

  /* Content page */
  .content-sidebar { grid-template-columns: 1fr; }
  .howto-intro { margin-bottom: 2.5rem; }
  .howto-actions-grid { grid-template-columns: 1fr; }
  .howto-actions-grid .btn { width: 100%; justify-content: center; }
  .howto-faq { margin-top: 2.25rem; padding: 1.5rem; }

  /* Detail page */
  .page-hero { padding: 5.5rem 0 2.5rem; }
  .detail-body { padding: 2rem 0; }
  .detail-main > section { padding: 1.375rem; }

  /* Donate widget becomes full-width inline */
  .donate-widget { padding: 1.375rem; }

  /* Race items */
  .race-item { flex-wrap: wrap; gap: .5rem; }
  .race-item__name { min-width: 100%; }
}

/* ── Mobile phones (max 520px) ────────────────────────────── */
@media (max-width: 520px) {
  :root { --sp-2xl: 3.5rem; }

  .container { padding: 0 .875rem; }

  /* Nav tighter */
  .nav__inner { padding: 0 .875rem; height: 56px; }
  .nav__logo  { font-size: .96rem; max-width: calc(100% - 46px); }
  .nav__logo-icon { display: none; }
  .nav__mobile { max-height: calc(100vh - 56px); }

  /* Hero full-width buttons */
  .hero { padding-top: 56px; }
  .hero__inner { padding: 1.5rem .875rem 1.75rem; }
  .hero__desc  { font-size: .975rem; }
  .hero__stats { gap: .6rem; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stat-value { font-size: 1.2rem; }
  .hero__stat-label { font-size: .6rem; }
  .hero__title-break { display: none; }

  /* Steps */
  .step-card { padding: 1.375rem; }
  .step-num  { font-size: 3rem; }

  /* Map */
  .map-section__header { padding: 0 .875rem; }
  .map-visual { min-height: 280px; }
  #usa-map { min-height: 260px; }
  .map-legend { gap: .75rem; justify-content: flex-start; }
  .map-legend__item { font-size: .75rem; }

  /* Priority list full-width cards */
  .map-priority-item { padding: .875rem; }
  .map-priority-item h4 { font-size: .9rem; }

  /* State cards */
  .state-card { padding: 1.125rem; }
  .state-card__name { font-size: 1.05rem; }

  /* Stats strip — single column */
  .stats-strip__inner { grid-template-columns: 1fr; }
  .stat-item { min-width: 100%; flex: none; }

  /* Page hero */
  .page-hero { padding: 5rem 0 2rem; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); }

  /* Org cards */
  .org-card__header { flex-direction: column; align-items: flex-start; gap: .625rem; }

  /* Race groups */
  .race-group__header { padding: .875rem 1rem; }
  .race-item { padding: .8rem 1rem; }

  /* Donate widget */
  .donate-option { padding: .75rem .875rem; }
  .donate-option h4 { font-size: .875rem; }

  /* Admin stats */
  .admin-stats { grid-template-columns: 1fr; gap: .875rem; }

  /* Content sidebar */
  .content-sidebar { grid-template-columns: 1fr; }
  .howto-body { margin-top: 2.25rem; }
  .howto-faq { padding: 1.25rem; margin-top: 2rem; }

  /* CTA */
  .cta-band { padding: 3rem .875rem; }

  /* Footer */
  .footer { padding: 2.5rem 0 1.75rem; }
  .footer__grid { gap: 1.5rem; }

  /* Login box */
  .login-box { padding: 2rem 1.375rem; }

  /* Form actions stack */
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }

  /* Section spacing */
  .section { padding: 3rem 0; }
}

/* ── Very small screens (max 360px) ───────────────────────── */
@media (max-width: 360px) {
  :root { --sp-2xl: 3rem; }

  .container { padding: 0 .75rem; }
  .nav__inner { padding: 0 .75rem; }
  .nav__logo { font-size: .88rem; max-width: calc(100% - 42px); }
  .hero__inner { padding: 1.35rem .75rem 1.5rem; }

  h1 { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  h2 { font-size: clamp(1.35rem, 7vw, 2rem); }

  .hero__eyebrow { font-size: .68rem; padding: .3rem .7rem; }
  .btn { padding: .7rem 1.1rem; font-size: .82rem; }
  .hero__stats { gap: .5rem; }
  .hero__stats { grid-template-columns: 1fr; }
  .hero__stat-value { font-size: 1.1rem; }
  .hero__stat-label { font-size: .56rem; letter-spacing: .04em; }

  .state-card { padding: 1rem; }
  .step-card  { padding: 1.125rem; }
  .map-priority-item { padding: .75rem; }

  .page-hero { padding: 4.5rem 0 1.75rem; }
  .detail-main > section { padding: 1.125rem; }
  .donate-widget { padding: 1.125rem; }
  .org-card { padding: 1.1rem; }

  .tier-badge { font-size: .62rem; padding: .18rem .5rem; }
  .race-status { font-size: .65rem; padding: .22rem .5rem; }

  .admin-main { padding: .75rem; }
  .admin-topbar { padding: .625rem .75rem; }
  .login-box { padding: 1.75rem 1.1rem; }
  .howto-faq { padding: 1rem; }
  .section-cta-center { margin-top: 2rem; }
}

/* ── Small phones (max 420px) ─────────────────────────────── */
@media (max-width: 420px) {
  .hero__inner { padding: 1.3rem .78rem 1.45rem; }
  .hero__title { margin-bottom: .9rem; }
  .hero__desc { margin-bottom: 1.15rem; font-size: .93rem; line-height: 1.65; }
  .hero__stats {
    grid-template-columns: 1fr;
    gap: .45rem;
    margin-top: 1rem;
    padding-top: .9rem;
  }
  .hero__stat-value { font-size: 1.05rem; }
  .hero__stat-label { font-size: .54rem; letter-spacing: .035em; }

  .stats-strip__inner { gap: .6rem; }
  .stat-item { padding: .9rem .75rem; }
  .stat-item__value { font-size: 1.2rem; }
  .stat-item__label { font-size: .66rem; }

  .howto-faq { padding: 1rem; }
}

/* ── Ultra-small devices (max 320px) ──────────────────────── */
@media (max-width: 320px) {
  .container { padding: 0 .65rem; }
  .nav__inner { padding: 0 .65rem; }
  .nav__logo { font-size: .8rem; max-width: calc(100% - 40px); }

  .hero { padding-top: 56px; }
  .hero__inner { padding: 1.1rem .65rem 1.25rem; }
  .hero__eyebrow { font-size: .62rem; letter-spacing: .07em; }
  .hero__title { margin-bottom: .75rem; }
  .hero__desc { font-size: .88rem; line-height: 1.55; }

  .btn {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    font-size: .76rem;
    padding: .62rem .82rem;
  }

  .step-card { padding: .95rem; }
  .step-num { font-size: 2.2rem; }

  .page-hero { padding: 4.1rem 0 1.5rem; }
  .page-hero h1 { font-size: clamp(1.65rem, 8.5vw, 2.1rem); }
  .page-hero__desc { font-size: .9rem; line-height: 1.55; }

  .detail-main > section,
  .donate-widget,
  .org-card { padding: .95rem; }
}

/* ── Landscape phones ─────────────────────────────────────── */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding-top: 56px; padding-bottom: 2.5rem;
  }
  .hero__inner { padding: 2rem 1rem; }
  .map-visual { min-height: 240px; }
  #usa-map { min-height: 220px; }
  .page-hero { padding: 4rem 0 2rem; }
  .admin-sidebar { position: static; width: 100%; }
  .admin-content { margin-left: 0; }
}

/* ── High-DPI / Retina touch-ups ──────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .state-path { stroke-width: 0.3; }
  .map-legend__swatch { border-radius: 2px; }
}

/* ── Print styles ─────────────────────────────────────────── */
@media print {
  .nav, .ticker-wrap, .nav__mobile, .nav__hamburger, .hero__bg, .hero__grid,
  .cta-band, .donate-widget, .admin-sidebar { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { background: none; min-height: auto; padding-top: 0; }
  .hero__title, .page-hero h1 { color: #000 !important; }
  .section--dark, .section--mid, .map-section { background: #f5f5f5 !important; }
  .state-card { break-inside: avoid; }
  .detail-grid, .content-page__grid { grid-template-columns: 1fr; }
  .footer { background: none; color: #555; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75rem; color: #666; }
}

/* ── Page-specific responsive fixes for content pages (the-fight, about, how-to) ── */
@media (max-width: 768px) {
  .content-page__grid { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
  .content-page__body { padding: 0; }
  .content-sidebar { position: static !important; top: auto !important; width: 100% !important; }
  .side-card { padding: 1rem; }
  .fight-callout, .fight-callout--dark { margin: 1.25rem 0; padding: 1rem; }
  .fight-callout h3 { font-size: 1.05rem; }
  .fight-callout p { font-size: .95rem; }
  .fight-callout .btn { width: 100%; display: flex; justify-content: center; }
  .fight-steps-list { padding-left: 1rem; }
  .fight-tier-list { gap: .5rem; }
}

@media (max-width: 520px) {
  .content-page__grid { gap: .875rem; }
  .hero__actions { gap: .5rem; }
  .side-card { padding: .85rem; }
  .fight-callout { padding: .85rem; }
  .fight-callout h3 { font-size: 1rem; }
  .fight-callout p { font-size: .92rem; }
  .fight-callout .btn { padding: .75rem 1rem; }
}

/* ── State detail page — full mobile responsiveness ───────── */
.page-state {
  width: 100%;
  overflow-x: hidden;
}

.page-state .container {
  min-width: 0;
}

@media (max-width: 1100px) {
  .page-state .detail-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .page-state .detail-sidebar {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-state .page-hero--state {
    padding-top: calc(60px + 1.5rem);
  }
  .page-state .page-hero h1 {
    font-size: clamp(1.85rem, 7vw, 2.75rem);
    line-height: 1.08;
  }
  .page-state .page-hero__desc {
    font-size: .95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }
  .page-state .stats-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    overflow-x: visible;
    padding: .875rem 0;
  }
  .page-state .stat-item {
    min-width: 0;
    flex: none;
    padding: 1rem .85rem;
  }
  .page-state .stat-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .page-state .detail-body {
    padding: 1.75rem 0 2.5rem;
  }
  .page-state .detail-main > section {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
  .page-state .detail-main > section h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.55rem);
    line-height: 1.2;
    margin-bottom: .625rem;
  }
  .page-state .detail-main > section p {
    font-size: .92rem;
  }
  .page-state .org-card .btn-donate {
    width: 100%;
    display: flex;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: .8rem 1rem;
    font-size: .82rem;
  }
  .page-state .donate-widget {
    width: 100%;
  }
  .page-state .donate-widget__header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .65rem;
  }
  .page-state .donate-widget__header > div:last-child {
    flex: 1 1 180px;
    min-width: 0;
  }
  .page-state .donate-widget h3 {
    font-size: 1rem;
    line-height: 1.3;
  }
  .page-state .donate-option {
    align-items: flex-start;
    padding: .8rem .9rem;
  }
  .page-state .donate-option > div:first-child {
    flex: 1;
    min-width: 0;
  }
  .page-state .donate-option__arrow {
    margin-top: .15rem;
  }
  .page-state .race-group__header {
    flex-wrap: wrap;
    gap: .5rem .75rem;
  }
  .page-state .race-group__header h3 {
    flex: 1 1 100%;
    font-size: .925rem;
    line-height: 1.35;
  }
  .page-state .race-group__toggle {
    margin-left: 0;
    font-size: .78rem;
  }
  .page-state .race-item {
    align-items: flex-start;
    padding: .85rem 1rem;
  }
  .page-state .race-item__name {
    min-width: 0;
    flex: 1 1 100%;
  }
  .page-state .race-status {
    align-self: flex-start;
  }
}

@media (max-width: 520px) {
  .page-state .page-hero--state {
    padding-top: calc(56px + 1rem);
  }
  .page-state .page-hero__back {
    font-size: .72rem;
    letter-spacing: .1em;
    margin-bottom: .75rem;
  }
  .page-state .page-hero__eyebrow {
    padding: .4rem .7rem;
    font-size: .7rem;
    margin-bottom: .75rem;
  }
  .page-state .stats-strip__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }
  .page-state .stat-item {
    padding: .85rem .7rem;
  }
  .page-state .stat-item__value {
    font-size: 1.35rem;
  }
  .page-state .stat-item__label {
    font-size: .68rem;
    letter-spacing: .06em;
  }
  .page-state .detail-grid {
    gap: 1.25rem;
  }
  .page-state .detail-main > section {
    padding: 1rem;
    border-radius: var(--radius);
  }
  .page-state .org-card {
    padding: 1rem;
  }
  .page-state .org-card h3 {
    font-size: 1rem;
  }
  .page-state .org-card p {
    font-size: .88rem;
    margin-bottom: 1rem;
  }
  .page-state .donate-widget {
    padding: 1.125rem;
    border-radius: var(--radius);
  }
  .page-state .donate-widget .btn-donate {
    font-size: .9rem;
    padding: .85rem 1rem;
  }
}

@media (max-width: 360px) {
  .page-state .stat-item__value {
    font-size: 1.15rem;
  }
  .page-state .donate-widget h3 {
    font-size: .92rem;
  }
  .page-state .org-card .btn-donate {
    font-size: .76rem;
    padding: .7rem .75rem;
  }
}



