/* ──────────────────────────────────────────────────────────────────────────
   /education hub theme for the dashboards
   The Education Frontier, US vs World, School Outlook (Enrollment Maps).

   Those pages are built in other repos and copied in by
   scripts/sync-education-map.mjs, which links this file and puts
   class="hub-theme hub-<slug>" data-theme="dark" on <html>
   (scripts/education-hub-theme.mjs). Edit the look HERE, never in the copies.

   Everything is scoped under html.hub-theme, so the file is inert anywhere
   else. The approach: force each dashboard's own dark palette (data-theme),
   then override its neutral tokens -- ground, surfaces, ink, hairlines, fonts --
   with the hub's (see the <style> in site/education/index.html). Data
   encodings (map ramps, rank colours, series colours, the U.S. gold) are the
   dashboards' own dark variants and are left alone: the canvas code reads
   them off <html>, and they were tuned for a dark ground already.
   ────────────────────────────────────────────────────────────────────────── */

/* ── tokens ──────────────────────────────────────────────────────────────── */
html.hub-theme {
  --eg: hsl(140 40% 15%); --eg-glow: hsl(138 34% 26%); --eg-hi: hsl(125 22% 60%);
  --eb: hsl(24 48% 18%); --eb-mid: hsl(26 45% 30%); --eb-hi: hsl(30 38% 56%);
  --hub-card: linear-gradient(180deg, hsl(28 14% 9%), hsl(30 12% 4%));
  --hub-hair: hsl(30 30% 60% / .14);
  --hub-hair-2: hsl(30 30% 60% / .28);
  --hub-rule: hsl(26 40% 30% / .5);
  --hub-display: 'Michroma', 'Playfair Display', sans-serif;
  --hub-serif: 'Lora', Georgia, serif;
  --hub-mono: 'DM Mono', 'Space Mono', monospace;
  --hub-chrome: linear-gradient(180deg, #fff 0%, #e9eef2 38%, #8e9aa6 52%, #dfe6ec 66%, #6f7c88 100%);
  --hub-cta: linear-gradient(180deg, var(--eg-glow) 0%, var(--eg) 100%);
  --hub-cta-edge: hsl(28 40% 42% / .8);
  --hub-cta-shadow: 0 0 18px hsl(140 40% 14% / .5), inset 0 1px 0 hsl(40 40% 90% / .18);
}

/* US vs World + School Outlook share one token vocabulary. Specificity (0,2,1)
   beats their :root[data-theme="dark"] and dark media-query blocks (0,2,0). */
html:root.hub-theme {
  color-scheme: dark;
  --ground: #000;
  --surface: hsl(29 13% 6%);
  --raise: hsl(28 14% 10%);
  --ink: #fff;
  --ink-2: hsl(32 10% 78%);
  --muted: hsl(30 7% 62%);
  --axis: hsl(30 6% 54%);
  --line: var(--hub-hair);
  --line-2: var(--hub-hair-2);
  --accent: var(--eg-hi);        /* US vs World: focus ring only */
  --accent-ink: var(--eb-hi);    /* US vs World: citation marks, fold hover */
  --sans: var(--hub-serif);
  --mono: var(--hub-mono);
}

/* The Frontier has its own (already dark, already Lora/DM Mono) vocabulary. */
html:root.hub-frontier {
  --green: var(--eg-hi); --green-70: hsl(125 22% 60% / .85); --green-12: hsl(125 22% 60% / .12);
  --brown: var(--eb-hi); --brown-15: hsl(30 38% 56% / .15);
}

/* ── ground: black; the hub's glow lives behind the header only (see below) */
html.hub-theme { background: #000; -webkit-font-smoothing: antialiased; }
/* clip, not hidden: no scroll container, so School Outlook's sticky year bar still sticks */
html.hub-theme body { background: transparent; color: var(--ink); overflow-x: clip; }
html.hub-theme:not(.hub-frontier) body { font-size: 15px; line-height: 1.55; }
html.hub-theme ::selection { background: var(--eg); color: #fff; }
html.hub-theme :focus-visible { outline: 2px solid var(--eg-hi); outline-offset: 2px; }

/* ── one column, one header ──────────────────────────────────────────────────
   Same as Follow the Money: 1440px column, clamp(16px,2.4vw,32px) gutter, then
   back link · eyebrow · chrome title · one line of intro · "About this
   dashboard" fold (hub-theme.js moves the rest of the intro into it). */
html.hub-theme .app, html.hub-frontier main.shell {
  max-width: 1440px; margin-inline: auto;
  padding-left: max(clamp(16px, 2.4vw, 32px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 2.4vw, 32px), env(safe-area-inset-right));
}
html.hub-frontier main.shell .app { padding-inline: 0; padding-top: 18px; }
html.hub-theme .home-link {
  display: inline-block; align-self: flex-start; margin: 18px 0 12px;
  font-family: var(--hub-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--eb-hi); text-decoration: none;
}
html.hub-theme .home-link:hover, html.hub-theme .home-link:focus-visible { color: #fff; }
html.hub-theme .app > header { position: relative; padding: 0; margin: 0; border: 0; display: block; }
html.hub-frontier .app > header.mast { margin-bottom: 18px; }
/* Two of the three builds have no eyebrow of their own. */
html.hub-theme:not(.hub-frontier) .app > header::before {
  content: "Education dashboard"; display: block; margin: 0 0 8px;
  font-family: var(--hub-mono); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--eb-hi);
}
html.hub-theme .app > header .eyebrow {
  display: block; margin: 0 0 8px; font-family: var(--hub-mono); font-size: .7rem; letter-spacing: .3em; color: var(--eb-hi);
}
html.hub-theme .app > header h1 {
  margin: 0; font-family: var(--hub-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.5rem, 4.2vw, 3.1rem); line-height: 1; letter-spacing: -.01em; text-wrap: balance;
  background: var(--hub-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 hsl(0 0% 0% / .6)) drop-shadow(0 0 20px hsl(28 45% 35% / .3));
}
html.hub-theme .app > header .thesis {
  margin: 10px 0 0; max-width: 62ch;
  font-family: var(--hub-serif); font-size: 1rem; line-height: 1.6; color: hsl(0 0% 100% / .74);
}
html.hub-theme .app > header .note { font-family: var(--hub-mono); font-size: .7rem; letter-spacing: .04em; margin-top: 8px; }
html.hub-frontier .stats { margin-top: 10px; color: hsl(0 0% 100% / .5); letter-spacing: .06em; }
html.hub-frontier .stats b { color: var(--eg-hi); }
/* the "About this dashboard" fold: a quiet line under the title, not a card */
html.hub-theme details.hub-fold.hub-about { margin-top: 10px; max-width: 62ch; background: none; border: 0; box-shadow: none; }
html.hub-theme details.hub-fold.hub-about > summary { display: inline-flex; gap: 10px; padding: 4px 0; font-size: .6rem; color: hsl(0 0% 100% / .72); }
html.hub-theme details.hub-fold.hub-about > [data-hub-folded] { padding: 4px 0 0; }
html.hub-theme details.hub-fold.hub-about .thesis { margin: 0; }

/* the hub's atmosphere: radial green/brown glow + faint scanlines, quieter than
   the hub, behind the header only. Full-bleed via the viewport, clipped above. */
html.hub-theme .app > header::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(50% - 50vw); right: calc(50% - 50vw); top: -110px; bottom: -24px;
  background:
    repeating-linear-gradient(to bottom, hsl(0 0% 0% / 0) 0 3px, hsl(0 0% 0% / .3) 3px 4px),
    radial-gradient(55% 120% at 22% 0%, hsl(140 38% 8% / .8) 0%, transparent 70%),
    radial-gradient(45% 110% at 88% 0%, hsl(24 45% 11% / .6) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
          mask-image: linear-gradient(#000 50%, transparent);
}

/* ── headings ────────────────────────────────────────────────────────────── */
html.hub-theme:not(.hub-frontier) .app h2 {
  font-family: var(--hub-display); font-weight: 400; text-transform: uppercase;
  font-size: 1rem; line-height: 1.35; letter-spacing: .02em; color: #fff;
}
html.hub-theme:not(.hub-frontier) .app .panel h2 { font-size: 1.2rem; }
html.hub-theme:not(.hub-frontier) .app h3 {
  font-family: var(--hub-mono); font-weight: 400; font-size: .7rem; letter-spacing: .18em; color: var(--eb-hi);
}
html.hub-theme.hub-us-vs-world .app .theme h3 {
  font-family: var(--hub-display); font-size: .78rem; line-height: 1.45; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
html.hub-us-vs-world .cmp h4 { font-family: var(--hub-mono); font-weight: 400; letter-spacing: .14em; color: var(--muted); }
html.hub-frontier section.block > h2 {
  font-family: var(--hub-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 1.7rem); line-height: 1.25; letter-spacing: .01em;
}
html.hub-frontier .card h3 {
  font-family: var(--hub-display); font-weight: 400; text-transform: uppercase;
  font-size: .92rem; line-height: 1.35; letter-spacing: .02em; color: #fff;
}
html.hub-frontier .prose h3 { font-family: var(--hub-display); font-weight: 400; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
html.hub-frontier .kicker { letter-spacing: .18em; color: var(--eb-hi); }

/* ── cards: the hub's warm-black gradient and hairline ───────────────────── */
html.hub-theme:not(.hub-frontier) :is(.card, .summary, .found, .panel, .rank, .mapwrap, details.fold, details.more, .ut figure) {
  background: var(--hub-card); border: 1px solid var(--hub-hair); border-radius: 10px;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .06);
}
html.hub-theme .summary h2 { margin-bottom: 12px; }
/* Lora's tabular figures also space out its punctuation, so the bold runs in
   prose drop them; the tables keep them. */
html.hub-theme :is(.summary, .found, .headline, .stand) b { color: #fff; font-weight: 600; font-variant-numeric: lining-nums; }
html.hub-theme .yearbar { border-color: var(--hub-hair); }
html.hub-theme .hbox {
  background: var(--hub-card); border-color: var(--hub-hair-2);
  box-shadow: 0 6px 22px hsl(0 0% 0% / .5), inset 0 1px 0 hsl(0 0% 100% / .06);
}
html.hub-theme .hbox .k { color: var(--eb-hi); letter-spacing: .16em; }
html.hub-theme .tip { background: hsl(30 12% 6% / .97); border-color: var(--hub-hair-2); color: #fff; box-shadow: 0 6px 18px hsl(0 0% 0% / .6); }

html.hub-frontier .grid .card {
  padding: 20px 20px 18px; border: 1px solid var(--hub-hair); border-radius: 10px;
  background: var(--hub-card); box-shadow: inset 0 1px 0 hsl(0 0% 100% / .06);
}
html.hub-frontier .grid { gap: 18px; }
html.hub-frontier .group { border-top-color: var(--hub-hair); }
html.hub-frontier #mapwrap { border-color: var(--hub-hair-2); border-radius: 10px; }
html.hub-frontier #panel { background: hsl(30 12% 5% / .97); border-color: var(--hub-hair-2); border-radius: 10px; }
html.hub-frontier #panel .card { background: none; border: 0; padding: 0; box-shadow: none; }
html.hub-frontier .tabs { border-bottom-color: var(--hub-hair-2); }

/* big figures in the broadcast display face */
html.hub-theme :is(.big .n, .hbox .v, .yb-read b, .kr-year b) {
  font-family: var(--hub-display); font-weight: 400; letter-spacing: -.01em;
}
html.hub-theme .big .n { font-size: 28px; }
html.hub-theme .hbox .v { font-size: 22px; }
@media (max-width: 720px) { html.hub-theme .hbox .v { font-size: 15px; letter-spacing: -.03em; } }
html.hub-theme .yb-read b { font-size: 22px; }

/* ── controls: one segmented style everywhere (Follow the Money's .seg) ──
   Joined buttons, Michroma .62rem, pressed = hub green. A row that would wrap
   stays one row and scrolls sideways inside its own frame. */
html.hub-theme :is(.views, [id="ages"], [id="subjects"], .subjrow, .seg, .tabs, [id="layers"], .hub-seg) {
  display: inline-flex; flex-wrap: nowrap; gap: 0; align-self: flex-start; max-width: 100%; min-width: 0;
  margin: 0; padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  border: 1px solid var(--hub-hair); border-radius: 6px; background: hsl(0 0% 0% / .5);
}
html.hub-theme :is(.views, [id="ages"], [id="subjects"], .subjrow, .seg, .tabs, [id="layers"], .hub-seg)::-webkit-scrollbar { display: none; }
html.hub-theme :is(.views, [id="ages"], [id="subjects"], .subjrow, .seg, .tabs, [id="layers"], .hub-seg)[hidden] { display: none; }
html.hub-theme :is(.views button, [id="ages"] .age, .subj, .seg button, .tabs .tab, [id="layers"] .chip, .hub-seg .ctl) {
  appearance: none; flex: none; min-width: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background: transparent; color: hsl(0 0% 100% / .62); cursor: pointer; white-space: nowrap; text-align: center;
  font-family: var(--hub-display); font-weight: 400; font-size: .62rem; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 14px;
}
html.hub-theme :is(.views button, [id="ages"] .age, .subj, .seg button, .tabs .tab, [id="layers"] .chip, .hub-seg .ctl) + :is(button, .age, .subj, .tab, .chip, .ctl) {
  border-left: 1px solid var(--hub-hair);
}
html.hub-theme :is(.views button, [id="ages"] .age, .subj, .seg button, .tabs .tab, [id="layers"] .chip, .hub-seg .ctl):hover { color: #fff; }
html.hub-theme :is(.views button, [id="ages"] .age, .subj, .seg button, .tabs .tab, [id="layers"] .chip, .hub-seg .ctl):focus-visible { outline: 2px solid var(--eg-hi); outline-offset: -2px; }
html.hub-theme :is(.views button, [id="ages"] .age, .subj, .seg button)[aria-pressed="true"],
html.hub-frontier :is(.tabs .tab.on, [id="layers"] .chip.on) {
  color: #f3ece2; background: linear-gradient(180deg, var(--eg-glow), var(--eg)); box-shadow: inset 0 1px 0 hsl(40 40% 90% / .15);
}
/* the second lines and counts inside the buttons: small DM Mono, never dropped */
html.hub-theme :is(.views button small, [id="ages"] .age small) {
  display: block; margin-top: 3px; font-family: var(--hub-mono); font-size: .62rem; font-weight: 400;
  letter-spacing: .02em; text-transform: none; color: hsl(0 0% 100% / .5); opacity: 1;
}
html.hub-theme :is(.views button, [id="ages"] .age)[aria-pressed="true"] small { color: hsl(40 30% 90% / .75); }
html.hub-theme [id="ages"] .age { display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; }
html.hub-theme .subj .kind, html.hub-frontier :is(.tab em, [id="layers"] .chip em) {
  font-family: var(--hub-mono); font-size: .68rem; letter-spacing: .02em; text-transform: none; color: hsl(0 0% 100% / .5);
}
html.hub-theme .subj[aria-pressed="true"] .kind, html.hub-frontier :is(.tab.on em, [id="layers"] .chip.on em) { color: hsl(40 30% 90% / .75); }
html.hub-frontier [id="layers"] .chip { display: inline-flex; align-items: center; gap: 7px; }
html.hub-frontier [id="layers"] .chip i { opacity: .45; } html.hub-frontier [id="layers"] .chip.on i { opacity: 1; }
html.hub-theme .goto[aria-pressed="true"] { background: var(--hub-cta); border-color: var(--hub-cta-edge); color: #f3ece2; }
html.hub-theme .views { margin-bottom: 0; }
html.hub-frontier .tabs { margin: 0 0 12px; }
html.hub-us-vs-world .subjrow { margin: 0 0 10px; }

/* labels, dropdowns, search: DM Mono on black with the hairline */
html.hub-theme :is(.ctl > label, .ctl > .lab, .yearbar .yb-lab, .yearbar .yb-geo > label) {
  font-family: var(--hub-mono); font-weight: 400; letter-spacing: .16em; color: var(--eb-hi);
}
html.hub-theme :is(select, input[type=search]),
html.hub-frontier :is(#age, #cats, #q) {
  font-family: var(--hub-mono); font-weight: 400; font-size: .8rem; letter-spacing: 0;
  background: hsl(0 0% 0% / .6); color: #fff; border: 1px solid var(--hub-hair); border-radius: 6px; padding: 8px 10px;
}
html.hub-theme :is(select, input[type=search]):hover { border-color: hsl(28 40% 40% / .7); }
html.hub-theme select option { background: #0b0a09; color: #fff; }
html.hub-theme input[type=range] { accent-color: var(--eb-hi); }
html.hub-theme .kr-proj { font-family: var(--hub-mono); color: var(--eb-hi); border-color: var(--eb-hi); }
html.hub-theme .zoomers button { background: hsl(30 12% 6%); border-color: var(--hub-hair-2); }
html.hub-theme .zoomers button:hover { border-color: var(--eb-hi); }

/* ── the map fills the window (desktop); phones keep each map's own shape ──
   The dashboards size their canvases from getBoundingClientRect on load and on
   window resize; hub-theme.js re-fires a resize when a canvas's box changes. */
html.hub-theme :is(.legend, .mapfoot) { font-family: var(--hub-mono); font-size: .7rem; letter-spacing: .02em; }
html.hub-theme .legend { gap: 4px 12px; }
html.hub-theme .legend .ttl { font-weight: 400; color: #fff; }
@media (min-width: 721px) {
  html.hub-us-vs-world .stage > .mapwrap { height: max(560px, calc(100svh - 24px)); }
  html.hub-us-vs-world .stage > .mapwrap > #map { flex: 1 1 0; height: auto; min-height: 0; aspect-ratio: auto; }
  html.hub-us-vs-world .stage > .panel { max-height: max(560px, calc(100svh - 24px)); overflow-y: auto; scrollbar-width: thin; }

  html.hub-school-outlook .stage > .mapwrap,
  html.hub-school-outlook .kr-stage > .mapwrap { height: max(560px, calc(100svh - 24px)); }
  html.hub-school-outlook .stage .canvasbox { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
  html.hub-school-outlook .stage #map,
  html.hub-school-outlook .kr-stage #kr-map { flex: 1 1 0; height: auto; min-height: 0; }
  html.hub-school-outlook .kr-stage > .panel { max-height: max(560px, calc(100svh - 24px)); overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 641px) {
  html.hub-frontier #mapwrap { height: max(560px, calc(100svh - 24px)); aspect-ratio: auto; max-height: none; min-height: 0; }
}

/* quiet buttons and folds */
html.hub-theme .ghost {
  font-family: var(--hub-mono); font-weight: 400; font-size: .72rem; letter-spacing: .06em;
  border-color: var(--hub-hair-2); color: hsl(0 0% 100% / .72); border-radius: 6px;
}
html.hub-theme .ghost:hover { color: #fff; border-color: var(--eb-hi); }
/* Every fold on the page -- the dashboards' own (US vs World's .fold, School
   Outlook's "Adjust the forecast") and the ones hub-theme.js wraps around the
   secondary sections (.hub-fold) -- shares one row: Michroma, one line, +/-. */
html.hub-theme :is(details.fold, details.more, details.hub-fold) > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; list-style: none; cursor: pointer; min-width: 0;
  font-family: var(--hub-display); font-weight: 400; font-size: .7rem; line-height: 1.3; letter-spacing: .1em;
  text-transform: uppercase; color: #fff;
}
html.hub-theme :is(details.fold, details.more, details.hub-fold) > summary::-webkit-details-marker { display: none; }
html.hub-theme :is(details.fold, details.hub-fold) > summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.hub-theme :is(details.fold, details.more, details.hub-fold) > summary:hover { color: var(--eg-hi); }
html.hub-theme details.more > summary::before { content: none; }
html.hub-theme :is(details.fold, details.more, details.hub-fold) > summary::after {
  content: "+"; flex: none; font-family: var(--hub-mono); font-size: 1rem; line-height: 1; color: var(--eb-hi);
}
html.hub-theme :is(details.fold, details.more, details.hub-fold)[open] > summary::after { content: "\2212"; }
html.hub-theme :is(details.fold, details.more, details.hub-fold) > summary:focus-visible { outline: 2px solid var(--eg-hi); outline-offset: -2px; border-radius: 10px; }

/* one rhythm for a stack of folds: the page's own gap, nothing extra */
html.hub-theme details.fold, html.hub-theme details.fold + details.fold { margin-top: 0; }

/* the folds hub-theme.js adds: the fold is the card, the section inside it sheds its own */
html.hub-theme details.hub-fold {
  min-width: 0; background: var(--hub-card); border: 1px solid var(--hub-hair); border-radius: 10px;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / .06);
}
html.hub-theme details.hub-fold > [data-hub-folded] {
  display: block; margin: 0; padding: 0 16px 16px; background: none; border: 0; border-radius: 0; box-shadow: none; max-width: none;
}
html.hub-theme details.hub-fold > [data-hub-folded].method { display: grid; }
html.hub-theme details.hub-fold > [data-hub-folded].card { display: flex; }
/* the section's own title now lives in the summary row: keep it in the HTML, out of sight */
html.hub-theme details.hub-fold > [data-hub-folded] > h2:first-child,
html.hub-theme details.hub-fold > [data-hub-folded] > div:first-child > h2:first-child {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
/* US vs World: the long note beside "Reset view" folds in place, inside the map card */
html.hub-us-vs-world .mapfoot details.hub-fold { flex: 1 1 260px; background: none; border: 0; box-shadow: none; }
html.hub-us-vs-world .mapfoot details.hub-fold > summary { padding: 6px 0; font-size: .62rem; color: hsl(0 0% 100% / .72); justify-content: flex-start; }
html.hub-us-vs-world .mapfoot details.hub-fold > [data-hub-folded] { padding: 2px 0 6px; }
/* Frontier: the map's reading notes */
html.hub-frontier details.hub-fold { margin-top: 10px; }
html.hub-frontier details.hub-fold > [data-hub-folded] { margin: 0; font-size: .72rem; }
@media (max-width: 720px) {
  html.hub-theme :is(details.fold, details.more, details.hub-fold) > summary { font-size: .62rem; letter-spacing: .07em; padding: 13px 14px; }
}

/* Frontier: tags and zoom buttons */
html.hub-frontier .tag.on { background: var(--eg); border-color: var(--eg-hi); color: #fff; }
html.hub-frontier .zoom button { background: hsl(30 12% 6%); border-color: var(--hub-hair-2); }

/* ── small print: legends, tables, notes, footers ────────────────────────── */
html.hub-theme:not(.hub-frontier) th { font-family: var(--hub-mono); font-weight: 400; font-size: 10.5px; letter-spacing: .12em; }
html.hub-theme:not(.hub-frontier) th[aria-sort] { color: var(--eg-hi); }
/* figures in DM Mono so columns line up; the place names stay in Lora */
html.hub-theme:not(.hub-frontier) td { font-family: var(--hub-mono); font-size: 12.5px; }
html.hub-theme:not(.hub-frontier) td:first-child { font-family: var(--hub-serif); font-size: 13.5px; font-variant-numeric: lining-nums; }
html.hub-theme:not(.hub-frontier) :is(svg.chart text, .kv span, .scen, .tip) { font-variant-numeric: lining-nums; }
html.hub-theme .cite { color: var(--eb-hi); }
html.hub-theme .srcs { font-family: var(--hub-mono); font-size: 11.5px; }
html.hub-theme .app > footer, html.hub-frontier footer.foot {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hub-rule);
  font-family: var(--hub-mono); font-size: .74rem; line-height: 1.7; color: hsl(0 0% 100% / .5);
}
html.hub-frontier footer.foot { margin: 80px 0 60px; }
html.hub-theme .app > footer a, html.hub-frontier footer.foot a { color: var(--eg-hi); text-decoration: none; }
html.hub-theme .app > footer a:hover, html.hub-frontier footer.foot a:hover { color: #fff; }

/* ── phones ─────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  html.hub-theme .home-link { margin: 14px 0 10px; }
  html.hub-theme:not(.hub-frontier) .app > header::before, html.hub-theme .app > header .eyebrow { font-size: .66rem; letter-spacing: .22em; }
  html.hub-theme .app > header .thesis { font-size: .95rem; }
  html.hub-frontier .stats { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  html.hub-frontier .stats span { flex: none; }
  html.hub-theme.hub-school-outlook .views button small { display: none; }  /* the build hides these on phones too */
  html.hub-theme :is(.views button, [id="ages"] .age, .subj, .seg button, .tabs .tab, [id="layers"] .chip, .hub-seg .ctl) { padding: 10px 11px; letter-spacing: .07em; }
}
