/* Base rules the artifact viewer wrapped around the page. Kept so the page lays out the same here. */
:root{color-scheme:light;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}html{scroll-padding-top:env(safe-area-inset-top,0px)}body{margin:0;padding:0;font:14px -apple-system,BlinkMacSystemFont,sans-serif;background:#fff;color:#000}img{max-width:100%}[hidden]:not([hidden=until-found i]){display:none!important}

/* The page's own styles, unchanged from Version 37. */
/* Layout: a civic ledger. Sticky section menu, one long story, and collapsed data blocks, each a bookmarkable #token. */
:root {
  --bg: #f4f5f2;
  --surface: #fcfcfb;
  --fg: #141a17;
  --muted: #59625d;
  --rule: #d6dad4;
  --grid: #e7e9e4;
  --accent: #4b3fa0;
  --accent-soft: #ecebf7;
  --on-accent: #ffffff;
  --band: #e8eae4;
  --ask-band: #e6e4f6;
  --hdr: 76px;
  --s-school: #2a78d6;
  --s-city: #eb6834;
  --s-sud: #1baf7a;
  --s-neutral: #8e9691;
  --p1: #2a78d6; --p2: #eb6834; --p3: #1baf7a; --p4: #eda100; --p5: #e87ba4; --p6: #008300; --p7: #6250d6; --p8: #e34948;
  --good: #0c7a0c;
  --warn: #9a6400;
  --crit: #b8322f;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.125rem, 5vw, 3.375rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111513; --surface: #1a1a19; --fg: #eef0ec; --muted: #a8b0ab; --rule: #2f3632; --grid: #262b28;
    --accent: #a99ff0; --accent-soft: #24223a;
    --on-accent: #141a17; --band: #090b0a; --ask-band: #1c1a31;
    --s-school: #3987e5; --s-city: #d95926; --s-sud: #199e70; --s-neutral: #6f7772; --p1: #3987e5; --p2: #d95926; --p3: #199e70; --p4: #c98500; --p5: #d55181; --p6: #008300; --p7: #9085e9; --p8: #e66767;
    --good: #3fbf3f; --warn: #e0a83a; --crit: #ec6a67;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111513; --surface: #1a1a19; --fg: #eef0ec; --muted: #a8b0ab; --rule: #2f3632; --grid: #262b28;
  --accent: #a99ff0; --accent-soft: #24223a;
    --on-accent: #141a17; --band: #090b0a; --ask-band: #1c1a31;
  --s-school: #3987e5; --s-city: #d95926; --s-sud: #199e70; --s-neutral: #6f7772; --p1: #3987e5; --p2: #d95926; --p3: #199e70; --p4: #c98500; --p5: #d55181; --p6: #008300; --p7: #9085e9; --p8: #e66767;
  --good: #3fbf3f; --warn: #e0a83a; --crit: #ec6a67;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 85%; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num, td.n, .mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* Header */
header.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--rule); }
header.bar .wrap { display: flex; align-items: center; gap: 2px 12px; padding-block: 4px; flex-wrap: nowrap; max-width: 1360px; }
.brand { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; font-size: 1.05rem; text-decoration: none; color: var(--fg); letter-spacing: 0.01em; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 500; }
nav.tools { position: relative; display: flex; gap: 0; overflow-x: auto; min-width: 0; flex: 1; scrollbar-width: none; }
nav.tools[data-more="right"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
nav.tools[data-more="left"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 28px), transparent); }
nav.tools[data-more="both"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
nav.tools::-webkit-scrollbar { display: none; }
nav.tools a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-display); font-size: var(--step--1); font-weight: 600; text-decoration: none; color: var(--muted); padding: 0 8px; border-radius: 6px; white-space: nowrap; flex: none; }
nav.tools a:hover { color: var(--fg); background: var(--bg); }
nav.tools a[aria-current] { color: var(--fg); background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }

.eyebrow { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: var(--step-1); max-width: 62ch; color: var(--fg); }
.note { font-size: var(--step--1); color: var(--muted); max-width: 72ch; }
section.block { display: grid; gap: 14px; border-top: 1px solid var(--rule); padding-top: 22px; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.src { font-size: var(--step--1); color: var(--muted); }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.stat { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.stat .v { font-family: var(--font-display); font-stretch: 90%; font-weight: 750; font-size: var(--step-3); line-height: 1; }
.stat .k { font-size: var(--step--1); color: var(--muted); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }

/* Charts */
.chart { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart svg text { font-family: var(--font-data); font-size: 12px; fill: var(--muted); }
.chart svg text.lbl { fill: var(--fg); font-weight: 500; }
.chart svg .gridline { stroke: var(--grid); stroke-width: 1; }
.chart svg .axis { stroke: var(--rule); stroke-width: 1; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.legend .sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.hbars { display: grid; gap: 12px; }
.hrow { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.hrow .name { font-size: 0.9375rem; }
.hrow .name small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.35; }
.track { position: relative; height: 26px; display: flex; align-items: center; gap: 8px; }
.fill { height: 18px; border-radius: 0 4px 4px 0; min-width: 2px; transition: width .4s ease; }
.fill + .fill-hi { margin-left: -8px; opacity: .35; }
.track .val { font-family: var(--font-data); font-size: 0.875rem; white-space: nowrap; }
.seg { display: flex; gap: 2px; height: 30px; border-radius: 4px; overflow: hidden; }
.seg div { height: 100%; }
.seg-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 8px 16px; font-size: var(--step--1); }
.seg-legend b { font-family: var(--font-data); font-weight: 500; display: block; font-size: 0.9375rem; }
details.tbl { font-size: var(--step--1); min-width: 0; }
details.tbl summary { cursor: pointer; color: var(--accent); font-family: var(--font-display); font-weight: 600; width: fit-content; }
.tscroll { overflow-x: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 650; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
td.n, th.n { text-align: right; white-space: nowrap; }
table:not(.funds) td:first-child { white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.seg-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg-toggle button { font: 600 var(--step--1) var(--font-display); border: 0; background: none; color: var(--muted); padding: 7px 12px; cursor: pointer; }
.seg-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--fg); }
.callout { border-left: 3px solid var(--s-city); background: var(--surface); padding: 14px 16px; border-radius: 0 8px 8px 0; display: grid; gap: 6px; }
.callout.school { border-left-color: var(--s-school); }
.callout.plain { border-left-color: var(--rule); }

/* Tooltip */
/* Pie charts */
.pie { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: center; }
.pie svg { width: 190px; max-width: 100%; justify-self: center; }
.pie-title { font-size: var(--step-0); font-weight: 700; }
.pie-legend { display: grid; gap: 6px; font-size: 0.875rem; margin: 0; padding: 0; list-style: none; }
.pie-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.pie-legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }
.pie-legend b { font-family: var(--font-data); font-weight: 500; white-space: nowrap; }
.grid2 > .chart .pie { grid-template-columns: minmax(0, 1fr); }
.grid2 > .chart:only-child, .grid2 > .chart:nth-child(3):last-child { grid-column: 1 / -1; }
.grid2 > .chart:only-child .pie, .grid2 > .chart:nth-child(3):last-child .pie { grid-template-columns: 190px minmax(0, 28rem); }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--fg); color: var(--bg); font-size: 0.8125rem; padding: 8px 10px; border-radius: 6px; max-width: 260px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
#tip b { font-family: var(--font-data); font-weight: 500; }

/* Funding table */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 600 var(--step--1) var(--font-display); border: 1px solid var(--rule); background: var(--surface); color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--fg); background: var(--accent-soft); }
.pill { display: inline-flex; align-items: center; gap: 5px; font: 600 0.75rem var(--font-display); padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.yes { color: var(--good); }
.pill.part { color: var(--warn); }
.pill.no { color: var(--crit); }
.pill.flow { color: var(--muted); }
.funds td:first-child { min-width: 11rem; font-weight: 600; }
.funds td { min-width: 9rem; }

/* Ask builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.builder .part { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.builder .part input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.builder .part label.t { font-weight: 600; }
.builder .part .amt { font-family: var(--font-data); white-space: nowrap; }
.builder .part .sub { grid-column: 2 / 4; font-size: var(--step--1); color: var(--muted); }
.builder .part input[type=range] { grid-column: 2 / 4; width: 100%; accent-color: var(--accent); }
.builder .part.off { opacity: .5; }
.totals { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr) + 62px); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; display: grid; gap: 14px; }
.totals .big { font-family: var(--font-display); font-stretch: 90%; font-weight: 760; font-size: var(--step-4); line-height: 1; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 0.9375rem; }
.kv .num { text-align: right; }
.buys { display: grid; gap: 8px; }
.buys select { font: inherit; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; }
.buys .out { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }
.btn { font: 700 var(--step--1) var(--font-display); background: var(--accent); color: var(--surface); border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer; width: fit-content; }
.copied { font-size: var(--step--1); color: var(--good); }

/* Calendar */
.timeline { display: grid; gap: 0; }
.ev { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); position: relative; }
.ev .when { font-family: var(--font-data); font-size: 0.875rem; }
.ev .when small { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ev.past .when, .ev.past h3, .ev.past p { opacity: .55; }
.ev.lever { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.ev p { font-size: 0.9375rem; color: var(--muted); }
.tag { font: 700 0.6875rem var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); display: block; margin: 0 0 2px; }

/* Sources */
.srcgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.srcgroups ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9375rem; }
.srcgroups h3 { font-size: var(--step-1); }
.method { display: grid; gap: 10px; max-width: 72ch; }
.method li { margin-bottom: 6px; }

/* Data blocks: shared pieces */
.ctrls { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.search { font: inherit; font-size: 0.9375rem; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--fg); width: 16rem; max-width: 100%; min-width: 0; }
.facts { margin: 0; padding-left: 18px; display: grid; gap: 8px; max-width: 76ch; }
.facts li { padding-left: 2px; }
.facts li .src { display: inline; }
.findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.finding { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px; display: grid; gap: 6px; min-width: 0; }
.finding strong { font-weight: 600; }
.finding p { font-size: 0.9375rem; color: var(--muted); }
tr.hi td { background: var(--accent-soft); }
.wide td { min-width: 6rem; }
.wide td.n { min-width: 0; }
.wide td:nth-child(2) { min-width: 13rem; }
.wide td:last-child { min-width: 18rem; }
.stack { display: grid; gap: 10px; }
.stackrow { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 12px; align-items: center; }
.stackrow .yr { font-family: var(--font-data); font-size: 0.875rem; }
.seg div { display: flex; align-items: center; justify-content: center; font: 500 0.75rem var(--font-data); overflow: hidden; white-space: nowrap; }
.position { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 18px; display: grid; gap: 8px; }
.position p.v { font-size: var(--step-1); max-width: 64ch; }

/* Range bars, control map, calculator */
.rtrack .rz { position: relative; flex: 1 1 auto; min-width: 0; height: 18px; background: linear-gradient(var(--grid), var(--grid)) center / 100% 1px no-repeat; }
.rtrack .val { flex: 0 0 9.5rem; white-space: normal; font-size: 0.8125rem; line-height: 1.3; }
.rband { position: absolute; top: 0; bottom: 0; border-radius: 3px; min-width: 2px; }
.rwh { position: absolute; top: 50%; height: 10px; margin-top: -5px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: border-box; }
.rwh::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid currentColor; }
.rpt { position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--surface); }
.pill.cons { color: var(--accent); }
tr.grp td { background: var(--bg); font-family: var(--font-display); font-weight: 700; }
tr.grp td .note { font-family: var(--font-body); font-weight: 400; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); }
.calc .out { font-family: var(--font-display); font-stretch: 90%; font-weight: 750; font-size: var(--step-3); line-height: 1; }
.sortbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.sortbtn:hover { color: var(--fg); }

footer { border-top: 1px solid var(--rule); }
footer .wrap { padding-block: 20px 32px; font-size: var(--step--1); color: var(--muted); display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 860px) {
  .builder { grid-template-columns: minmax(0, 1fr); }
  .totals { position: static; order: -1; }
  .grid2, .srcgroups, .findings, .calc { grid-template-columns: minmax(0, 1fr); }
  .pie, .grid2 > .chart:only-child .pie, .grid2 > .chart:nth-child(3):last-child .pie { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  header.bar .wrap { gap: 0; padding-block: 6px 0; flex-wrap: wrap; }
  .brand { font-size: 0.9375rem; }
  nav.tools { flex-basis: 100%; margin-inline: -10px; }
  .hrow { grid-template-columns: minmax(0, 1fr); }
  .ev { grid-template-columns: minmax(0, 1fr); }
  .chart { padding: 12px; }
  .chart svg text { font-size: 15px; }
  .rtrack .val { flex-basis: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* The story: one long scroll in numbered bands. The sticky menu tracks the band in view. */
#story { display: grid; grid-template-columns: minmax(0, 1fr); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.story {
  --band-c: var(--bg);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
  padding-block: clamp(44px, 7vw, 84px);
  background: var(--band-c); box-shadow: 0 0 0 100vmax var(--band-c); clip-path: inset(0 -100vmax);
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--hdr));
}
.story.alt { --band-c: var(--band); }
.story.tint { --band-c: var(--ask-band); }
.story.solid { --band-c: var(--accent); color: var(--on-accent); }
.story.solid .kicker, .story.solid .sowhat, .story.solid .seelabel, .story.solid .srcs > summary, .story.solid .srcs .src, .story.solid .srcs .src a, .story.solid > .sec-head h2 { color: var(--on-accent); }
.story.solid .kicker::before { background: var(--on-accent); }
.story.solid .sec-foot { border-top-color: color-mix(in oklab, var(--on-accent) 35%, transparent); }
.sec-head { display: grid; gap: 12px; }
.kicker { font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.02em; color: var(--muted); }
.kicker::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 2px; margin-bottom: 12px; background: var(--sec, var(--accent)); }
.story h1 { font-size: clamp(2.25rem, 1.45rem + 3.7vw, 4rem); font-weight: 780; line-height: 1.02; max-width: 15ch; }
.story h2 { font-size: clamp(1.625rem, 1.25rem + 1.75vw, 2.5rem); font-weight: 760; line-height: 1.08; max-width: 28ch; }
.story h1:focus, .story h2:focus { outline: none; }
.story h3 { font-size: var(--step-1); font-weight: 700; }
.story h4 { font-family: var(--font-display); font-stretch: 85%; font-size: var(--step-0); font-weight: 700; margin: 0; line-height: 1.2; }
.sowhat { font-size: var(--step-1); line-height: 1.4; max-width: 60ch; }
.define { font-size: var(--step-0); color: var(--muted); max-width: 44ch; }
.pie-title { font-family: var(--font-display); font-stretch: 85%; line-height: 1.2; }
.chart h3 { line-height: 1.2; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.note strong { color: var(--fg); }

.chart { align-content: start; }

/* Section foot: deep links and sources */
.sec-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--rule); padding-top: 14px; }
.seelinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.seelabel { font-family: var(--font-display); font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.seedata { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--accent); font: 700 var(--step--1) var(--font-display); text-decoration: none; }
.seedata:hover { background: var(--accent-soft); }
button.seedata { cursor: pointer; }
details.sp-list > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--accent); }
details.srcs > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font: 700 var(--step--1) var(--font-display); color: var(--muted); list-style: none; }
details.srcs > summary::-webkit-details-marker { display: none; }
details.srcs > summary::after { content: "+"; font: 500 1.125rem var(--font-data); }
details.srcs[open] > summary::after { content: "\2212"; }
details.srcs > summary:hover { color: var(--fg); }
details.srcs .src { max-width: 80ch; padding-bottom: 6px; }
td.rowsrc-cell { min-width: 11rem; max-width: 20rem; }
details.rowsrc > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font: 700 var(--step--1) var(--font-display); color: var(--muted); }
details.rowsrc > summary::-webkit-details-marker { display: none; }
details.rowsrc > summary::after { content: "+"; font: 500 1rem var(--font-data); }
details.rowsrc[open] > summary::after { content: "\2212"; }
details.rowsrc > summary:hover { color: var(--fg); }
details.rowsrc .src { padding-bottom: 6px; }
.subblock { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; border-top: 1px solid var(--rule); padding-top: 26px; }
.subblock > h3 { font-size: var(--step-2); font-weight: 760; line-height: 1.14; max-width: 34ch; }
.subblock .callout p { max-width: 72ch; }
.tscroll.wrapfirst td:first-child { white-space: normal; min-width: 13rem; }
.tscroll.widelast td:last-child { min-width: 15rem; }
.tscroll.hdrwrap th.n:not(:first-child) { white-space: normal; min-width: 6.5rem; }
#sp-top25 td:nth-child(2), #sp-cons td:nth-child(2) { min-width: 11rem; }
#sp-top25 th:nth-child(4) { min-width: 11rem; }
@media (max-width: 560px) { .track.has-range { flex-wrap: wrap; height: auto; row-gap: 2px; } .track.has-range .fill { flex: none; } .track.has-range .val { flex-basis: 100%; } }
#block-otherschools .hbars { gap: 8px; }
details.tbl > summary { min-height: 44px; display: inline-flex; align-items: center; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }

/* Start */
.story.start { padding-top: clamp(22px, 4vw, 56px); }
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "head pie" "so pie"; gap: 18px 40px; align-items: start; }
.start-head { grid-area: head; display: grid; gap: 14px; }
.start-pie { grid-area: pie; }
.start-pie .pie { grid-template-columns: 170px minmax(0, 1fr); }
.start-pie .pie svg { width: 170px; }
.start-so { grid-area: so; font-size: var(--step-2); font-family: var(--font-display); font-stretch: 88%; font-weight: 650; line-height: 1.2; max-width: 26ch; }
.askrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.askrow-l { display: grid; gap: 14px; align-content: center; justify-items: start; background: var(--ask-band); border-radius: 10px; padding: 20px; }
.next { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px 20px; color: var(--fg); }
.next-date { font-family: var(--font-display); font-stretch: 90%; font-weight: 760; font-size: var(--step-3); line-height: 1.05; }
.next-t { font-weight: 600; }
.next .note a { color: var(--accent); }
.next.big .next-date { font-size: var(--step-4); }

/* Basics */
.cards4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards4 > .chart { align-content: start; }
.bignum { font-family: var(--font-display); font-stretch: 90%; font-weight: 760; font-size: var(--step-3); line-height: 1; }
.govs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.gov { border: 1px solid var(--rule); border-top: 4px solid var(--s-neutral); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; background: var(--bg); }
.gov.school { border-top-color: var(--s-school); }
.gov b { font-family: var(--font-display); font-stretch: 88%; font-weight: 700; }
.gov span { font-size: var(--step--1); color: var(--muted); line-height: 1.3; }
.gov-arrow { font: 500 0.75rem var(--font-data); text-align: center; color: var(--muted); line-height: 1.25; max-width: 7.5rem; }
.gov-arrow b { display: block; font-weight: 500; color: var(--fg); font-size: 0.875rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); gap: 4px 12px; font-size: 0.9375rem; }
.steps b { font-family: var(--font-display); font-stretch: 88%; font-weight: 700; }
.seg-legend .sq { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.seg { height: 34px; }
details.gloss { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 0 16px; }
details.gloss > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font: 700 var(--step-0) var(--font-display); }
details.gloss dl { margin: 0 0 16px; display: grid; gap: 10px; }
details.gloss dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2px 14px; }
details.gloss dt { font-family: var(--font-display); font-stretch: 88%; font-weight: 700; }
details.gloss dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Voter timeline */
.vlegend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--step--1); color: var(--muted); }
.vlegend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.vline { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.vrow { display: grid; grid-template-columns: 6.5rem 20px minmax(0, 1fr); gap: 0 14px; padding-bottom: 26px; position: relative; }
.vrow:last-child { padding-bottom: 0; }
.vyear { font: 500 0.875rem var(--font-data); line-height: 1.3; padding-top: 2px; }
.vyear small { display: block; font-size: 0.75rem; color: var(--muted); }
.vmark { position: relative; }
.vmark::before { content: ""; position: absolute; top: 0; bottom: -26px; left: 9px; width: 2px; background: var(--rule); }
.vrow:last-child .vmark::before { display: none; }
.vmark::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px var(--band-c); }
.vbody { display: grid; gap: 8px; min-width: 0; }
.vcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.vlab { display: block; font: 700 0.6875rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.vcols p { font-size: 0.9375rem; line-height: 1.45; }

/* School lookup */
.lookup { gap: 16px; }
.combo { position: relative; z-index: 3; display: grid; gap: 6px; max-width: 34rem; }
.combo label { font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); }
.combo input { font: inherit; min-height: 48px; width: 100%; padding: 8px 14px; border: 1px solid var(--muted); border-radius: 8px; background: var(--bg); color: var(--fg); }
#lk-list { position: absolute; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--muted); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
#lk-list li[role="option"] { min-height: 44px; padding: 6px 10px; border-radius: 6px; cursor: pointer; display: grid; align-content: center; line-height: 1.25; }
#lk-list li[role="option"]:hover, #lk-list li[aria-selected="true"] { background: var(--accent-soft); }
#lk-list small { color: var(--muted); font-size: 0.75rem; }
.lk-none { padding: 10px; color: var(--muted); }
.lk-head { display: grid; gap: 2px; }
.lk-head .lk-name { font-family: var(--font-display); font-stretch: 88%; font-weight: 750; font-size: var(--step-2); line-height: 1.1; }
.lk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.lk-stats > div { box-shadow: 0 0 0 0.5px var(--rule); padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.lk-stats .v { font-family: var(--font-display); font-stretch: 90%; font-weight: 750; font-size: var(--step-2); line-height: 1.05; }
.lk-stats .v.nr { font-size: var(--step-0); color: var(--muted); font-weight: 600; line-height: 1.3; }
.lk-stats .k { font-size: 0.8125rem; color: var(--muted); line-height: 1.3; }
.lk-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.lk-sub { display: grid; gap: 6px; }
.lk-bud { display: grid; gap: 8px; }
.lk-bud h4 { margin: 0; }
.lkrow { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 9.5rem; gap: 8px; align-items: center; font-size: 0.875rem; }
.lkrow .yr { font-family: var(--font-data); }
.lkbar { position: relative; height: 16px; background: var(--grid); border-radius: 3px; }
.lkbar .f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--s-school); }
.lkbar .t { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; background: var(--fg); border-radius: 1px; }
.lkrow .val { font-family: var(--font-data); font-size: 0.8125rem; line-height: 1.25; }
.lkrow .val small { color: var(--muted); font-size: 0.75rem; display: block; }
.legend .dash { display: inline-block; width: 18px; height: 0; border-top: 2px dashed var(--s-neutral); margin-right: 6px; vertical-align: 3px; }
.legend .tick { display: inline-block; width: 3px; height: 12px; background: var(--fg); margin-right: 6px; vertical-align: -1px; border-radius: 1px; }
.voices { border: 1px dashed var(--muted); border-radius: 10px; padding: 18px 20px; font-family: var(--font-display); font-stretch: 88%; font-weight: 650; color: var(--muted); }

/* Cuts */
.cutyears { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cutyear { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px; display: grid; gap: 10px; min-width: 0; }
.cutyear ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cutyear li { display: grid; gap: 3px; font-size: 0.9375rem; line-height: 1.4; justify-items: start; }

/* Is it working? */
.sys { gap: 16px; }
.sys-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.sys-col { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sys-col .vlab { margin: 0; }
.sys-big { font-family: var(--font-display); font-stretch: 90%; font-weight: 750; font-size: var(--step-2); line-height: 1.1; }
.sys-col .note { max-width: none; }
.sys-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.9375rem; }
.mini svg { width: 100%; height: auto; display: block; overflow: visible; }

/* What money can do */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cmp { background: var(--surface); border: 1px solid var(--rule); border-top: 5px solid var(--c, var(--s-neutral)); border-radius: 10px; padding: 16px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.cmp .bignum { font-size: var(--step-2); line-height: 1.08; }
.cmp p { font-size: 0.9375rem; line-height: 1.45; }

/* The ask */
.askparts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.askp { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: 2rem minmax(0, 1.5fr) 8.5rem minmax(0, 1fr) minmax(0, 1.15fr); gap: 6px 16px; align-items: start; }
.askp .n { font: 800 var(--step-1) var(--font-display); color: var(--muted); }
.askp .nm { font-weight: 600; line-height: 1.35; }
.askp .amt { font-family: var(--font-display); font-stretch: 90%; font-weight: 760; font-size: var(--step-1); line-height: 1.15; }
.askp .cell { font-size: 0.9375rem; line-height: 1.4; }
.askp .amt small { display: block; font: 400 var(--step--1)/1.35 var(--font-body); font-stretch: 100%; color: var(--muted); margin-top: 3px; }
.askp .askp-note { grid-column: 2 / -1; margin: 2px 0 0; }
.askp.protect { background: transparent; border-style: dashed; }
.askgroup { font-size: var(--step-1); margin: 22px 0 10px; }
.askgroup:first-of-type { margin-top: 0; }
.parts-h { padding: 14px 0 6px; }
.parts-h:first-child { padding-top: 0; }
.inreturn { display: grid; gap: 8px; }
.inreturn ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* Questions */
.qgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; align-items: start; }
.qgroup { display: grid; gap: 8px; min-width: 0; }
details.qa { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 0 14px; }
details.qa > summary { min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 8px; cursor: pointer; font-family: var(--font-display); font-stretch: 92%; font-weight: 650; line-height: 1.25; list-style: none; }
details.qa > summary::-webkit-details-marker, details.gloss > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; font: 500 1.25rem var(--font-data); color: var(--muted); }
details.qa[open] > summary::after { content: "\2212"; }
details.qa > div { padding-bottom: 14px; display: grid; gap: 6px; font-size: 0.9375rem; line-height: 1.5; }
details.gloss > summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
details.gloss > summary::after { content: "+"; font: 500 1.25rem var(--font-data); color: var(--muted); }
details.gloss[open] > summary::after { content: "\2212"; }

/* Dates */
.story .ev h3 { font-size: var(--step-0); font-weight: 700; line-height: 1.25; }
.tscroll table + table { margin-top: 14px; }

/* Take action */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact { background: var(--surface); color: var(--fg); border-radius: 10px; border: 1px solid var(--rule); padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.contact a, .msg a, .sups a { color: var(--accent); }
.contact > a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }
.contact .note { color: var(--muted); }
.addrline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.addr { font-family: var(--font-data); font-size: 0.8125rem; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; min-width: 0; flex: 1 1 10rem; }
.copybtn { font: 700 var(--step--1) var(--font-display); min-height: 44px; min-width: 64px; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--accent); cursor: pointer; }
.copybtn:hover { background: var(--accent-soft); }
.copybtn.done { background: var(--accent); color: var(--surface); }
.msg { background: var(--surface); color: var(--fg); border-radius: 10px; border: 1px solid var(--rule); padding: 16px 18px; display: grid; gap: 12px; }
.msgtext { white-space: pre-wrap; font-size: var(--step-0); line-height: 1.5; max-width: 62ch; }
details.supsbox { background: var(--surface); color: var(--fg); border: 1px solid var(--rule); border-radius: 10px; padding: 0 16px; }
details.supsbox > summary { min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-block: 8px; cursor: pointer; font: 700 var(--step-0) var(--font-display); list-style: none; }
details.supsbox > summary::-webkit-details-marker { display: none; }
details.supsbox > summary::after { content: "+"; font: 500 1.25rem var(--font-data); color: var(--muted); }
details.supsbox[open] > summary::after { content: "\2212"; }
.sups { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.sups li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 9rem; gap: 2px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.sups .who b { font-family: var(--font-display); font-stretch: 88%; font-weight: 700; display: block; }
.sups .who small { color: var(--muted); }
.sups .phone { font-family: var(--font-data); font-size: 0.875rem; user-select: all; -webkit-user-select: all; }
.story.solid .note a { color: inherit; }
.story.solid .sec-foot a:focus-visible, .story.solid .sec-foot summary:focus-visible { outline-color: var(--on-accent); }

/* Who we are */
.placeholders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ph { background: var(--surface); border: 1px dashed var(--muted); border-radius: 10px; padding: 20px; font-family: var(--font-display); font-stretch: 88%; font-weight: 700; font-size: var(--step-1); }
.made { display: grid; gap: 8px; max-width: 66ch; }

/* Header sizing */
nav.tools a:focus-visible { outline-offset: -2px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.brand b { font-weight: inherit; }

/* Data blocks: collapsed inside a section; the summary sticks under the menu while open */
details.deep { min-width: 0; scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--hdr) + 8px); }
details.deep > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; color: var(--accent); font: 700 var(--step-0) var(--font-display); line-height: 1.2; cursor: pointer; list-style: none; }
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary:hover { background: var(--accent-soft); }
details.deep > summary::after { content: "+"; font: 500 1.25rem var(--font-data); }
details.deep[open] > summary { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr)); z-index: 4; }
details.deep[open] > summary::after { content: "Close"; font: 700 var(--step--1) var(--font-display); }
.deep-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 18px 0 20px; }

@media (max-width: 860px), (pointer: coarse) {
  .seg-toggle button, .chip, .sortbtn, .search, .buys select { min-height: 44px; }
  .sortbtn { display: inline-flex; align-items: center; }
  .calc input[type=range], .builder .part input[type=range] { height: 44px; }
  .builder .part input[type=checkbox] { width: 24px; height: 24px; }
}
@media (max-width: 860px) {
  .start-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "pie" "so"; }
  .start-pie .pie { grid-template-columns: minmax(0, 1fr); }
  .askrow, .cards4, .cutyears, .compare, .qgroups, .contacts { grid-template-columns: minmax(0, 1fr); }
  .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .askp { grid-template-columns: 2rem minmax(0, 1fr); }
  .askp .amt, .askp .cell { grid-column: 2; }
}
@media (max-width: 720px) {
  .vcols, .lk-scores { grid-template-columns: minmax(0, 1fr); }
  .sups li { grid-template-columns: minmax(0, 1fr); }
  details.gloss dl > div { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  header.bar .wrap { flex-wrap: nowrap; gap: 6px; padding-block: 2px; }
  .brand { width: 3.9rem; white-space: normal; font-size: 0.75rem; line-height: 1.05; letter-spacing: 0; }
  nav.tools { flex: 1 1 0; margin-inline: 0; }
  .stats.four, .stats.two { grid-template-columns: minmax(0, 1fr); }
  .start-so { font-size: var(--step-1); }
  .vrow { grid-template-columns: 4.75rem 20px minmax(0, 1fr); gap: 0 8px; }
  .sys-grid { grid-template-columns: minmax(0, 1fr); }
  .placeholders { grid-template-columns: minmax(0, 1fr); }
  .govs { grid-template-columns: minmax(0, 1fr); }
  .gov-arrow { max-width: none; }
  .gov-arrow::before { content: "\2193 "; }
  .steps li { grid-template-columns: minmax(0, 1fr); }
  .lkrow { grid-template-columns: 2.75rem minmax(0, 1fr) 7.25rem; }
  .next.big .next-date { font-size: var(--step-3); }
}

/* Phase 8: insights and shorter sections */
.insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.insight { gap: 10px; }
.insight h3 { font-size: var(--step-1); line-height: 1.25; }
.insight h3 .rest { font-weight: 500; }
.insight .sowhat { font-size: var(--step-0); font-weight: 600; max-width: none; }
.also { display: grid; gap: 10px; }
.also-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.also-tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; font-size: 0.9375rem; line-height: 1.45; }
.keyfacts { margin: 0; padding-left: 18px; display: grid; gap: 6px; max-width: 66ch; font-size: 0.9375rem; line-height: 1.45; }
.start-grid .position { grid-area: so; }
.deep-body .start-so { grid-area: auto; max-width: none; }
.vtiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vtiles li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 2px 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--dot); border-radius: 0 8px 8px 0; padding: 8px 12px; font-size: 0.9375rem; line-height: 1.35; }
.vtiles b { font-family: var(--font-data); font-weight: 500; font-size: 0.875rem; }
details.more > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font: 700 var(--step--1) var(--font-display); color: var(--accent); list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font: 500 1.125rem var(--font-data); }
details.more[open] > summary::after { content: "\2212"; }
.ev.short { padding: 10px 0; }
.mbands { display: grid; gap: 14px; }
.mband { display: grid; gap: 6px; }
.mband-h { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.mband-h small { margin-left: 8px; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.insight-grid > .insight:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) { .insight-grid, .also-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .vtiles li { grid-template-columns: minmax(0, 1fr); } }

/* Start: students first. Share cards are built to be screenshotted: the site name, subject, year, and source sit inside the frame. */
:root { --s-school-2: #86b6ef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s-school-2: #184f95; } }
:root[data-theme="dark"] { --s-school-2: #184f95; }
.start-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "a" "so"; }
.start-a { grid-area: a; }
.start-head h1 { max-width: 24ch; }
.sharepair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.sharecard { gap: 10px; }
.sharecard h2, .start-scale h2 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; max-width: none; }
.sharecard h2 .rest { font-weight: 500; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 24px; }
.sc-brand { font: 800 0.75rem var(--font-display); font-stretch: 112%; letter-spacing: 0.01em; white-space: nowrap; }
.sc-brand span { color: var(--muted); font-weight: 500; }
.sc-tag { font: 600 0.75rem var(--font-display); color: var(--muted); white-space: nowrap; }
.sc-src { font-size: 0.75rem; line-height: 1.4; color: var(--muted); }
.tenrows { display: grid; gap: 4px; }
.vsrows { display: grid; gap: 2px; }
.tenrow { --d: 14px; display: grid; grid-template-columns: minmax(0, 8.5rem) auto minmax(2.9rem, 1fr); gap: 10px; align-items: center; min-height: 30px; }
.tenrow .name, .vsrow .name { font-size: 0.8125rem; line-height: 1.2; }
.tenrow.all .name, .vsrow.all .name { font-weight: 700; }
.tenrow.brk { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--grid); }
.tenrow .dots { display: flex; gap: 3px; }
.tenrow .dot { width: var(--d); height: var(--d); border-radius: 50%; border: 1.5px solid var(--s-neutral); background: linear-gradient(to right, var(--s-school) var(--f, 0%), transparent var(--f, 0%)); }
.tenrow .dot.on { border-color: var(--s-school); }
.tenrow .val { font: 500 0.875rem var(--font-data); white-space: nowrap; }
.vsrow { display: grid; grid-template-columns: minmax(0, 8.4rem) minmax(0, 1fr); gap: 8px; align-items: center; min-height: 30px; }
.vsrow .name small { display: block; color: var(--muted); font: 500 0.71875rem var(--font-data); white-space: nowrap; }
.vstrack { position: relative; height: 22px; margin-inline: 6px; background: linear-gradient(var(--rule), var(--rule)) 0 50% / 1px 10px no-repeat, linear-gradient(var(--rule), var(--rule)) 50% 50% / 1px 10px no-repeat, linear-gradient(var(--rule), var(--rule)) 100% 50% / 1px 10px no-repeat, linear-gradient(var(--grid), var(--grid)) center / 100% 1px no-repeat; }
.vstrack .link { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--s-neutral); }
.vstrack .pt { position: absolute; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.vstrack .pt.sf { width: 9px; height: 9px; background: var(--s-school); box-shadow: 0 0 0 2px var(--surface); }
.vstrack .pt.ca { width: 13px; height: 13px; border: 2.5px solid var(--muted); z-index: 1; }
.legend .dot.ring { background: var(--surface); border: 2.5px solid var(--muted); }
.vsaxis { display: grid; grid-template-columns: minmax(0, 8.4rem) minmax(0, 1fr); gap: 8px; }
.vsaxis div { position: relative; height: 14px; margin-inline: 6px; font: 500 0.6875rem var(--font-data); color: var(--muted); }
.vsaxis div span { position: absolute; top: 0; transform: translateX(-50%); }
.vsaxis div span:first-child { transform: none; }
.vsaxis div span:last-child { transform: translateX(-100%); }
.reach { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 14px 18px; align-items: center; }
.grid100 { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.grid100 i { aspect-ratio: 1; border-radius: 3px; background: var(--rule); }
.grid100 i.a { background: var(--s-school); }
.grid100 i.b { background: var(--s-school-2); }
.reachkey { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.8125rem; line-height: 1.25; }
.reachkey li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 2px 8px; align-items: baseline; }
.reachkey i { width: 12px; height: 12px; border-radius: 3px; background: var(--rule); align-self: center; }
.reachkey i.a { background: var(--s-school); }
.reachkey i.b { background: var(--s-school-2); }
.reachkey b { font: 500 0.8125rem var(--font-data); white-space: nowrap; }
.start-scale .pie { grid-template-columns: 150px minmax(0, 1fr); }
.start-scale .pie svg { width: 150px; }
@media (max-width: 860px) {
  .sharepair { grid-template-columns: minmax(0, 1fr); }
  .start-scale .pie { grid-template-columns: minmax(0, 1fr); }
  .start-scale .pie svg { width: 170px; }
}
@media (max-width: 560px) {
  .tenrow { --d: 12px; grid-template-columns: minmax(0, 6.6rem) auto minmax(2.9rem, 1fr); gap: 7px; }
  .reach { grid-template-columns: minmax(0, 1fr); }
  .grid100 { max-width: 12.5rem; }
}
