/* AfterFoster.org — styles.css v2
 * Design: dark hero, bold Inter sans-serif, card grid, journey-first navigation
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark layer */
  --dark:          #0d1117;
  --dark-surface:  #161b22;
  --dark-border:   rgba(255,255,255,0.08);
  --dark-text:     #f0f6fc;
  --dark-muted:    #8b949e;

  /* Light layer */
  --bg:            #f1f5f9;
  --surface:       #ffffff;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;

  /* Brand teal (primary accent — matches logo) */
  --gold:          #0ea5e9;
  --gold-light:    #38bdf8;
  --gold-pale:     #f0f9ff;
  --gold-dark:     #0284c7;

  /* Brand orange (secondary accent — "foster" text, CTAs) */
  --brand-orange:  #f97316;

  /* Category colors */
  --cat-housing:    #c9a84c;
  --cat-health:     #0ea5e9;
  --cat-education:  #22c55e;
  --cat-financial:  #f43f5e;
  --cat-employment: #8b5cf6;
  --cat-legal:      #f97316;

  /* Category pale backgrounds */
  --cat-housing-pale:    #fdf8ed;
  --cat-health-pale:     #f0f9ff;
  --cat-education-pale:  #f0fdf4;
  --cat-financial-pale:  #fff1f2;
  --cat-employment-pale: #faf5ff;
  --cat-legal-pale:      #fff7ed;

  /* Text */
  --text:           #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* Crisis */
  --crisis:        #7B1D1D;
  --crisis-pale:   #FDF2F2;
  --crisis-border: #F5C6C6;

  --radius:    10px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }

/* ── SKIP LINK ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1a5276;
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
header {
  background: var(--dark);
  border-bottom: 1px solid var(--dark-border);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #0ea5e9 0%, #f97316 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text em { font-style: normal; }

.logo-org {
  font-weight: 400;
  background: none;
  -webkit-text-fill-color: var(--dark-muted);
}

.header-state {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-state select {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 5px 9px;
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  background: var(--dark-surface);
  color: var(--dark-muted);
  cursor: pointer;
  outline: none;
}

.header-state select:focus { border-color: var(--gold); color: var(--dark-text); }

nav { display: flex; gap: 2px; }

nav a {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--dark-muted);
  text-decoration: none;
  padding: 5px 9px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

nav a:hover { background: var(--dark-surface); color: var(--dark-text); }

/* ── STATE BANNER ────────────────────────────────────────────────────────── */
#state-banner {
  background: var(--gold-pale);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

#state-banner[hidden] { display: none; }
#state-banner p { flex: 1; }
#state-banner strong { color: var(--gold-dark); }

#state-banner-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 4px;
  flex-shrink: 0;
}

#state-banner-close:hover { color: var(--text); }

/* ── CRISIS STRIP ────────────────────────────────────────────────────────── */
.crisis-strip {
  background: var(--dark);
  border-bottom: 1px solid var(--dark-border);
  padding: 0.6rem 1.5rem;
}

.crisis-strip-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }

.crisis-strip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.crisis-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.crisis-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--dark-text);
  text-decoration: none;
  transition: border-color 0.15s;
  line-height: 1.3;
}

.crisis-item:hover { border-color: var(--crisis-border); }
.crisis-item-name { font-weight: 600; color: #fca5a5; }
.crisis-item-num  { color: var(--dark-muted); font-variant-numeric: tabular-nums; }
.crisis-item-note { font-size: 11px; color: var(--dark-muted); border-left: 1px solid var(--dark-border); padding-left: 6px; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; }

.hero-logo {
  width: 150px;
  height: 150px;
  max-width: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0ea5e9 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 1px solid rgba(14,165,233,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #0ea5e9 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span { color: inherit; }

.hero-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0ea5e9 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem !important;
}

.hero p {
  font-size: 16px;
  color: var(--dark-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ── AGE NAVIGATION ──────────────────────────────────────────────────────── */
.age-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.age-nav-label {
  font-size: 12px;
  color: var(--dark-muted);
  font-weight: 500;
  width: 100%;
  margin-bottom: 4px;
}

.age-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--dark-border);
  background: transparent;
  color: var(--dark-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.age-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(14,165,233,0.08);
}

.age-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 600;
}

.age-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── HERO SEARCH ─────────────────────────────────────────────────────────── */
.hero-search {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 13px 18px 13px 44px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--dark-text);
  background: var(--dark-surface);
  border: 1.5px solid var(--dark-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.hero-search input::placeholder { color: var(--dark-muted); }

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-muted);
  pointer-events: none;
}

/* ── TIMELINE SECTION ────────────────────────────────────────────────────── */
.timeline-section {
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
  padding: 2.5rem 1.5rem;
}

.timeline-inner { max-width: 1000px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.timeline-section .tl-intro {
  font-size: 13.5px;
  color: var(--dark-muted);
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.timeline-list {
  list-style: none;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  position: relative;
}

.timeline-list::-webkit-scrollbar { display: none; }

.tl-item {
  flex: 1;
  min-width: 160px;
  max-width: 220px;
  padding: 1rem 1rem 1rem 0;
  position: relative;
  cursor: pointer;
}

.tl-item::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 18px;
  right: -10px;
  height: 2px;
  background: var(--dark-border);
  z-index: 0;
}

.tl-item:last-child::before { display: none; }

.tl-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--dark-border);
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.tl-item.active .tl-marker,
.tl-item:hover .tl-marker {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

.tl-age {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.tl-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 5px;
  line-height: 1.3;
}

.tl-desc {
  font-size: 12px;
  color: var(--dark-muted);
  line-height: 1.55;
  display: none;
}

.tl-item.active .tl-desc { display: block; }

.tl-callout {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(14,165,233,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--dark-text);
  line-height: 1.55;
}

.tl-item.active .tl-callout { display: block; }

.tl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

.tl-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(14,165,233,0.12);
  color: var(--gold);
  border: 1px solid rgba(14,165,233,0.2);
}

/* ── FILTER BAR ──────────────────────────────────────────────────────────── */
.filters-bar {
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 56px;
  z-index: 90;
  box-shadow: 0 1px 0 var(--border);
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
  flex-shrink: 0;
}

.pill {
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  border: 1.5px solid var(--border-dark);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.pill:hover { background: var(--bg); }

.pill[data-filter="all"].active    { background: var(--dark); border-color: var(--dark); color: #fff; }
.pill[data-filter="housing"].active    { background: var(--cat-housing); border-color: var(--cat-housing); color: var(--dark); }
.pill[data-filter="health"].active     { background: var(--cat-health); border-color: var(--cat-health); color: #fff; }
.pill[data-filter="education"].active  { background: var(--cat-education); border-color: var(--cat-education); color: var(--dark); }
.pill[data-filter="financial"].active  { background: var(--cat-financial); border-color: var(--cat-financial); color: #fff; }
.pill[data-filter="employment"].active { background: var(--cat-employment); border-color: var(--cat-employment); color: #fff; }
.pill[data-filter="legal"].active      { background: var(--cat-legal); border-color: var(--cat-legal); color: #fff; }

.pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── MAIN ────────────────────────────────────────────────────────────────── */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.results-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* ── SECTION HEADERS ─────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2.5rem 0 1rem;
}

.section-head:first-of-type { margin-top: 0; }

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.section-head h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.count-badge {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

/* ── CARD GRID ───────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.card-top {
  width: 100%;
  height: 4px;
  flex-shrink: 0;
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1rem 0.75rem;
  cursor: pointer;
  user-select: none;
}

.card-header:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.card-meta { flex: 1; min-width: 0; }

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.tags { display: flex; flex-wrap: wrap; gap: 4px; }

.tag {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 500;
}

.tag-gold       { background: var(--cat-housing-pale);    color: var(--gold-dark); }
.tag-blue       { background: var(--cat-health-pale);     color: #0369a1; }
.tag-green      { background: var(--cat-education-pale);  color: #15803d; }
.tag-rose       { background: var(--cat-financial-pale);  color: #be123c; }
.tag-bark       { background: #f8fafc; color: #64748b; border: 1px solid var(--border); }
.tag-amber      { background: var(--cat-legal-pale);      color: #c2410c; }
.tag-age        { background: #f8fafc; color: #64748b; border: 1px solid var(--border); font-style: italic; }

.card-arrow {
  color: var(--text-muted);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.2s;
}

/* ── CARD ACTIONS (visible without expanding) ────────────────────────────── */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 1rem 0.85rem;
}

.btn-details {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-details:hover { background: var(--border); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.15s;
  margin-left: auto;
}

.btn-link:hover { background: var(--bg); border-color: var(--border-dark); }

/* ── CARD BODY (expanded details) ────────────────────────────────────────── */
.card-body {
  border-top: 1px solid var(--border);
  padding: 1rem;
  background: var(--bg);
}

.card-body[hidden] { display: none; }

.card-body ul {
  padding-left: 16px;
  margin-bottom: 10px;
}

.card-body li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 5px;
}

.card-body li strong { color: var(--text); font-weight: 600; }

.tip-box {
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  color: var(--gold-dark);
}

.tip-box strong { font-weight: 600; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.report-link { color: var(--text-muted); text-decoration: none; }
.report-link:hover { color: var(--cat-financial); text-decoration: underline; }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

footer p {
  font-size: 12px;
  color: var(--dark-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── FOCUS ───────────────────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── ELIGIBILITY DECODER ─────────────────────────────────────────────────── */
.decoder-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.decoder-inner { max-width: 1000px; margin: 0 auto; }

.decoder-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.decoder-grid {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.decoder-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
}

.decoder-header .decoder-col-if,
.decoder-header .decoder-col-then {
  padding: 0.6rem 1rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dark-muted);
}

.decoder-header .decoder-col-if { border-right: 1px solid var(--dark-border); }

.decoder-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.decoder-row:last-child { border-bottom: none; }
.decoder-row:nth-child(even) { background: var(--bg); }

.decoder-row--highlight {
  background: rgba(14,165,233,0.04) !important;
  border-left: 3px solid var(--gold);
}

.decoder-col-if {
  padding: 0.85rem 1rem;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  border-right: 1px solid var(--border);
}

.decoder-col-then {
  padding: 0.85rem 1rem;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.decoder-col-then a {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.decoder-col-then a:hover { text-decoration: underline; }

.decoder-note {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 0.75rem 1rem;
  background: var(--gold-pale);
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  nav { display: none; }
  .header-state { display: flex; }
  .header-state select { font-size: 11px; padding: 4px 7px; max-width: 160px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 1rem 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .crisis-strip { padding: 0.5rem 1rem; }
  .tl-desc { display: none !important; }
  .tl-item { min-width: 130px; }
  main { padding: 1.5rem 1rem 3rem; }
  .timeline-section { padding: 2rem 1rem; }
  .decoder-header { display: none; }
  .decoder-row { grid-template-columns: 1fr; }
  .decoder-col-if {
    border-right: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    padding-bottom: 0.5rem;
  }
  .decoder-col-then { padding-top: 0.5rem; }
  .decoder-row--highlight { border-left: 3px solid var(--gold); }
}

@media (max-width: 420px) {
  .age-btn { font-size: 12px; padding: 6px 12px; }
  .crisis-item-note { display: none; }
}

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

/* ── STATE-SPECIFIC STYLES ─────────────────────────────────────────────── */

/* State note callout inside federal card bodies */
.state-note {
  margin: 14px 0 10px;
  padding: 12px 14px;
  background: rgba(6,182,212,0.07);
  border-left: 3px solid #06b6d4;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.state-note-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0891b2;
  background: rgba(6,182,212,0.14);
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 6px;
}
.state-note a { color: #0891b2; }
.state-note a:hover { text-decoration: underline; }

/* State badge on state-specific cards */
.tag-state-badge {
  background: rgba(6,182,212,0.12);
  color: #0891b2;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 2px 7px;
}

/* State filter pill */
.pill--state { border-color: rgba(6,182,212,0.35); color: #0891b2; }
.pill--state:hover { background: rgba(6,182,212,0.08); }
.pill--state.active { background: #06b6d4; color: #fff; border-color: #06b6d4; }

/* State programs section head accent */
#sec-state .section-dot { background: #06b6d4; }
