/* Michigan Skills: shared styles. No build step. */
:root {
  --paper: #F6F2E9;
  --card: #FFFDF8;
  --ink: #1A2126;
  --body: #34404A;
  --muted: #66727C;
  --rule: #DDD4C3;
  --lake: #0F5D6B;
  --lake-deep: #0A3A44;
  --lake-tint: #E1EEEE;
  --orange: #D9561F;
  --orange-tint: #FBE6DA;
  --gold: #C98B12;
  --plum: #73386A;
  --steel: #4C5D6E;
  --green: #3B7A4A;
  --focus: #D9561F;
  --shadow: 0 1px 0 rgba(26, 33, 38, .06), 0 8px 24px -12px rgba(26, 33, 38, .18);
  --radius: 6px;
  --logo-land: #0A3A44;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12171B; --card: #1A2126; --ink: #F1ECE2; --body: #CBD2D7; --muted: #95A1AA;
    --rule: #2E3840; --lake: #5FB3BF; --lake-deep: #9BD3DA; --lake-tint: #17323A;
    --orange: #F07A45; --orange-tint: #3A2219; --gold: #E3AE45; --plum: #C98BBF;
    --steel: #9AAABA; --green: #7DBE8B; --focus: #F07A45; --logo-land: #2A6B76;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12171B; --card: #1A2126; --ink: #F1ECE2; --body: #CBD2D7; --muted: #95A1AA;
  --rule: #2E3840; --lake: #5FB3BF; --lake-deep: #9BD3DA; --lake-tint: #17323A;
  --orange: #F07A45; --orange-tint: #3A2219; --gold: #E3AE45; --plum: #C98BBF;
  --steel: #9AAABA; --green: #7DBE8B; --focus: #F07A45; --logo-land: #2A6B76;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--lake); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); font-weight: 650; }
small, .small { font-size: .9rem; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6em 1em; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }

/* Route stripe: the signature. Five "lines" like a transit map. */
.routes { height: 6px; display: grid; grid-template-columns: repeat(5, 1fr); }
.routes span:nth-child(1) { background: var(--lake); }
.routes span:nth-child(2) { background: var(--orange); }
.routes span:nth-child(3) { background: var(--gold); }
.routes span:nth-child(4) { background: var(--plum); }
.routes span:nth-child(5) { background: var(--steel); }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 800; font-stretch: 110%; font-size: 1.08rem; letter-spacing: -.01em; }
.brand svg { width: 50px; height: 50px; flex: none; }
.brand:hover { color: var(--ink); }
.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--rule); color: var(--ink); font: 600 .95rem var(--text); padding: .45rem .8rem; border-radius: var(--radius); cursor: pointer; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 16px 1rem; box-shadow: var(--shadow); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .2rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--orange); }
/* Menu is a dropdown panel at every width */
.head-row { position: relative; }
.site-nav.open { left: auto; right: 16px; width: min(340px, calc(100vw - 32px)); border: 1px solid var(--rule); border-radius: var(--radius); }
.site-nav li { border-bottom: 1px solid var(--rule); }
.site-nav li:last-child { border-bottom: 0; }
.site-nav a:hover { color: var(--orange); }

/* "I'm a" audience bar above the header */
.who-bar { background: var(--ink); }
.who-bar-row { display: flex; align-items: center; gap: .2rem 1.1rem; min-height: 40px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.who-bar-row::-webkit-scrollbar { display: none; }
.who-label { font: 700 .72rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.who-bar a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem 0; border-bottom: 2px solid transparent; }
.who-bar a:hover, .who-bar a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--paper); }

/* Hero */
.hero { padding: 3.5rem 0 3rem; }
.eyebrow { font: 700 .78rem/1.2 var(--text); text-transform: uppercase; letter-spacing: .16em; color: var(--orange); margin: 0 0 .9rem; }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 44rem; color: var(--body); }
.hero h1 em { font-style: normal; color: var(--lake); }
.updated { font-size: .9rem; color: var(--muted); margin-top: 1.4rem; }

/* Sections */
.section { padding: 3.25rem 0; border-top: 1px solid var(--rule); }
.section-head { max-width: 46rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--body); }

/* Audience chooser */
.who-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.who {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.05rem 1.1rem 1.1rem;
  background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--c, var(--lake));
  border-radius: var(--radius); text-decoration: none; color: var(--body); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.who:hover { transform: translateY(-2px); color: var(--body); border-color: var(--c, var(--lake)); }
.who strong { font-family: var(--head); font-size: 1.08rem; color: var(--ink); }
.who span { font-size: .95rem; }

/* Cards and grids */
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card > :last-child { margin-bottom: 0; }
.tag { display: inline-block; font: 700 .72rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: .32rem .5rem; border-radius: 3px; background: var(--lake-tint); color: var(--lake-deep); margin: 0 .3rem .3rem 0; }
.tag.free { background: #DDEFE1; color: #1F5A2E; }
.tag.paid { background: var(--orange-tint); color: #8A3210; }
:root[data-theme="dark"] .tag.free { background: #173322; color: #9DD7AB; }
:root[data-theme="dark"] .tag.paid { color: #F5B293; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.free { background: #173322; color: #9DD7AB; } :root:not([data-theme="light"]) .tag.paid { color: #F5B293; } }

.facts { display: grid; grid-template-columns: 8.5rem 1fr; gap: .35rem .9rem; margin: .8rem 0 0; font-size: .97rem; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

.callout { border-left: 4px solid var(--orange); background: var(--orange-tint); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4rem 0; color: var(--ink); }
.callout.lake { border-color: var(--lake); background: var(--lake-tint); }
.callout > :last-child { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; gap: .45rem; font: 700 1rem var(--text); padding: .75rem 1.2rem; border-radius: 3px; text-decoration: none; cursor: pointer; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--lake-deep); border-color: var(--lake-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* Timeline (grade by grade) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 4px; background: var(--lake); border-radius: 2px; }
.timeline > li { position: relative; padding: 0 0 1.8rem 3rem; margin: 0; }
.timeline > li::before { content: ""; position: absolute; left: 6px; top: .3rem; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--lake); }
.timeline > li.big::before { border-color: var(--orange); }
.timeline h3 { margin-bottom: .3em; }
.timeline .when { font: 700 .78rem var(--text); text-transform: uppercase; letter-spacing: .14em; color: var(--orange); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--head); color: var(--ink); font-size: .9rem; background: var(--lake-tint); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* Path finder + directory */
.finder { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.q { margin-bottom: 1.2rem; }
.q-label { font-family: var(--head); font-weight: 700; color: var(--ink); margin-bottom: .55rem; display: block; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { font: 600 .95rem var(--text); padding: .5rem .85rem; border-radius: 3px; border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--lake); }
.chip[aria-pressed="true"] { background: var(--lake); border-color: var(--lake); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: #0B1A1E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { color: #0B1A1E; } }
.results { display: grid; gap: .8rem; margin-top: 1rem; }
@media (min-width: 820px) { .results { grid-template-columns: 1fr 1fr; } }
.result { border: 1px solid var(--rule); border-top: 4px solid var(--c, var(--lake)); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--paper); }
.result h3 { font-size: 1.08rem; margin-bottom: .3em; }
.result p { font-size: .97rem; margin-bottom: .5em; }
.result .meta { font-size: .88rem; color: var(--muted); }
.count { font-weight: 700; color: var(--ink); margin: .6rem 0 0; }
.search { width: 100%; font: 400 1.05rem var(--text); padding: .75rem .9rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.search:focus { border-color: var(--lake); outline: none; }

/* Transit map */
.map-wrap { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); overflow-x: auto; }
.map-wrap svg { width: 100%; height: auto; display: block; }
/* Narrow screens: the map scales to fit; small station labels would be unreadable, so they hide
   and the legend plus the list of reachable stops below the map carry the detail. */
@media (max-width: 759px) {
  #transit .lbl, #transit .sub, #transit .col, #transit .term { display: none; }
  .map-wrap { overflow: hidden; padding: .6rem; }
}
.map-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .8rem; font-size: .92rem; }
.map-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.map-legend i { width: 22px; height: 5px; border-radius: 3px; display: inline-block; }

/* Checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--lake); border-radius: 3px; }

/* Page TOC */
.toc { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.toc a { font-weight: 600; font-size: .93rem; text-decoration: none; padding: .38rem .7rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink); background: var(--card); }
.toc a:hover { border-color: var(--lake); color: var(--lake); }

details { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); padding: .2rem 1.1rem; margin-bottom: .6rem; }
details summary { cursor: pointer; font-family: var(--head); font-weight: 700; color: var(--ink); padding: .8rem 0; }
details[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: .8rem; }
details > :last-child { margin-bottom: .9rem; }

.sources { font-size: .88rem; color: var(--muted); }
.sources a { color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 3.5rem; margin-top: 2rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot ul { list-style: none; padding: 0; }
.site-foot a { color: var(--body); }
.theme-toggle { background: none; border: 1px solid var(--rule); color: var(--body); font: 600 .88rem var(--text); padding: .35rem .7rem; border-radius: 3px; cursor: pointer; }

@media print {
  .site-head, .site-foot, .toc, .nav-toggle, .finder .chips { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .finder, .result { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Funding bars */
.bars { display: grid; gap: .9rem; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: .3rem; }
@media (min-width: 640px) { .bar-row { grid-template-columns: 13rem 1fr; align-items: center; } .bar-val { grid-column: 2; } }
.bar-label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.bar { display: flex; height: 22px; width: var(--w); border-radius: 3px; overflow: hidden; background: var(--rule); }
.bar b { display: block; height: 100%; }
.bar-val { font-size: .9rem; color: var(--muted); }

/* You are here: teaser, questionnaire, plan */
.stage-chips .chip { font-size: 1rem; padding: .6rem .95rem; }
.teaser, .quiz, .plan { margin-top: 1.4rem; }
.teaser-head h3 { font-size: 1.45rem; margin: 0 0 .5rem; }
.money { font-size: 1.08rem; color: var(--ink); max-width: 52rem; }
.money strong { color: var(--orange); }
.locked { margin-top: 1rem; border: 1.5px dashed var(--rule); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--card); }
.locked-title { font-family: var(--head); font-weight: 700; color: var(--ink); margin: 0 0 .5rem; }
.locked ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem .9rem; }
@media (min-width: 720px) { .locked ul { grid-template-columns: 1fr 1fr; } }
.locked li { margin: 0; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.lock { width: 12px; height: 10px; border-radius: 2px; background: var(--muted); position: relative; flex: none; margin-top: 4px; }
.lock::before { content: ""; position: absolute; left: 2px; top: -6px; width: 8px; height: 8px; border: 2px solid var(--muted); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.unlock { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.unlock strong { color: var(--paper); }
.unlock > div { flex: 1 1 22rem; }
.unlock .btn { background: var(--orange); border-color: var(--orange); color: #fff; }
.unlock .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.quiz { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); max-width: 760px; }
.quiz-head { display: grid; gap: .5rem; margin-bottom: 1rem; }
.progress { height: 8px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--lake), var(--gold), var(--orange)); transition: width .3s; }
.quiz fieldset { border: 0; padding: 0; margin: 0; }
.quiz legend { font-family: var(--head); font-weight: 700; color: var(--ink); font-size: 1.2rem; margin-bottom: .5rem; padding: 0; }
.quiz select.search { appearance: auto; }
.field { display: grid; gap: .3rem; font-weight: 600; color: var(--ink); font-size: .95rem; }
.field-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-size: .93rem; }
.check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--orange); font-weight: 600; min-height: 1.4em; margin: .8rem 0 0; }
.quiz-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: .6rem; }
.plan-head h2 { margin-bottom: .4rem; }
.plan-top { margin-top: 1rem; }
.steps li { margin-bottom: .55rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--lake); text-decoration: underline; cursor: pointer; }
@media print {
  body.printing-plan main > *:not(#here), body.printing-plan #here > .wrap > *:not(#plan) { display: none !important; }
}

/* Partner visibility */
.nav-cta a { border: 1.5px solid var(--ink); border-radius: 3px; }
@media (min-width: 1100px) { .nav-cta { margin-left: .4rem; } .nav-cta a { padding: .3rem .7rem !important; } .nav-cta a:hover { background: var(--ink) !important; color: var(--paper) !important; } }
.partner-band { padding: 2rem 0; }
.band { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; background: var(--lake-tint); border: 1px solid var(--rule); border-left: 6px solid var(--orange); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.band > div { flex: 1 1 26rem; }
code { font-size: .9em; background: var(--card); padding: .1em .35em; border-radius: 3px; border: 1px solid var(--rule); }
.sponsor-row { display: grid; gap: .8rem; margin-top: 1rem; }
@media (min-width: 720px) { .sponsor-row { grid-template-columns: 1fr 1fr; } }
.sponsor { display: grid; gap: .25rem; text-decoration: none; color: var(--body); background: var(--card); border: 1.5px solid var(--gold); border-radius: var(--radius); padding: .9rem 1.1rem; }
.sponsor:hover { color: var(--body); box-shadow: var(--shadow); }
.sponsor-label { font: 700 .7rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sponsor strong { font-family: var(--head); font-size: 1.05rem; }
.sponsor em { font-style: normal; font-weight: 700; color: var(--orange); font-size: .92rem; }
.explore .results { margin-top: .6rem; }
.demo-bar { background: var(--gold); color: #1A2126; text-align: center; padding: .5rem 1rem; font-size: .92rem; position: relative; z-index: 30; }
.demo-bar .demo-exit { background: none; border: 0; padding: 0; font: 700 .92rem var(--text); color: #1A2126; text-decoration: underline; margin-left: .5rem; cursor: pointer; }
.community-line { margin: .9rem 0 0; }

/* District snapshot status pills */
.status { display: inline-block; font: 700 .74rem/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 3px; white-space: nowrap; }
.status.here { background: #DDEFE1; color: #1F5A2E; }
.status.near { background: var(--orange-tint); color: #8A3210; }
.status.ask { background: #F6EBCB; color: #6E4F05; }
.status.gap { background: var(--rule); color: var(--body); }
:root[data-theme="dark"] .status.here { background: #173322; color: #9DD7AB; }
:root[data-theme="dark"] .status.near { color: #F5B293; }
:root[data-theme="dark"] .status.ask { background: #3A2F12; color: #E8C877; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.here { background: #173322; color: #9DD7AB; } :root:not([data-theme="light"]) .status.near { color: #F5B293; } :root:not([data-theme="light"]) .status.ask { background: #3A2F12; color: #E8C877; } }
@media (max-width: 480px) {
  .who-bar-row { gap: .2rem .6rem; }
  .who-bar a { font-size: .86rem; }
  .who-label { font-size: .66rem; letter-spacing: .1em; }
}

/* Rotating stat card (home hero) */
.stat-card { margin: 1.8rem 0 0; max-width: 44rem; background: var(--card); border: 1px solid var(--rule); border-left: 6px solid var(--orange); border-radius: var(--radius); padding: 1.1rem 1.3rem .9rem; box-shadow: var(--shadow); }
.stat-card.in .stat-body { animation: statIn .45s ease; }
@keyframes statIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stat-big { font: 800 clamp(2.2rem, 6vw, 3.2rem)/1 var(--head); font-stretch: 112%; color: var(--lake); margin: 0 0 .35rem; font-variant-numeric: tabular-nums; }
.stat-big small { font: 700 1rem var(--text); color: var(--muted); letter-spacing: .02em; }
.stat-text { font-size: 1.08rem; color: var(--ink); margin: 0 0 .5rem; min-height: 3.2em; }
.stat-src { font-size: .82rem; color: var(--muted); }
.stat-src a { color: var(--muted); }
.stat-controls { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; }
.stat-btn { background: none; border: 1px solid var(--rule); color: var(--ink); font: 700 1rem var(--text); min-width: 2.2rem; height: 2.2rem; border-radius: 3px; cursor: pointer; }
.stat-btn:hover { border-color: var(--lake); }
.stat-pause { font-size: .82rem; padding: 0 .7rem; margin-left: auto; }
.stat-dots { display: flex; gap: .35rem; }
.stat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule); }
.stat-dots i.on { background: var(--orange); }
@media (prefers-reduced-motion: reduce) { .stat-card.in .stat-body { animation: none; } }

/* Footer headings (real h2s for a clean outline, styled small) and FAQ questions */
.foot-h { font-size: 1rem; margin: 0 0 .6rem; }
details summary .faq-q { display: inline; font-size: 1.02rem; margin: 0; }
.faq-item { border-top: 1px solid var(--rule); padding: 1.1rem 0 .4rem; }
.faq-item:first-of-type { border-top: 0; }
.faq-item .faq-q { font-size: 1.12rem; margin: 0 0 .4rem; }
.faq-item p { margin-bottom: .4rem; }

/* Topic guides: the answer-first lede */
.answer { font-size: 1.2rem; line-height: 1.55; max-width: 46rem; color: var(--ink); border-left: 5px solid var(--orange); padding-left: 1rem; }
.answer strong { color: var(--ink); }
table th[scope], .table-wrap tbody th { white-space: normal; width: 34%; }

/* Home hero with the full illustrated logo */
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero-copy { min-width: 0; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; max-width: 420px; display: block; margin-left: auto; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
@media (max-width: 899px) { .hero-art { order: -1; } .hero-art img { max-width: 190px; margin: 0; } }
