/* Coolcheck 608 v2. Plan: research/DESIGN_PLAN.md.
   One bold move: the gauge. Everything else is quiet. System fonts only; no inline styles (strict CSP). */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-body);
  padding-bottom: calc(var(--tabbar) + 24px + env(safe-area-inset-bottom));
}
body.quiz-open { overflow: hidden; }
.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 var(--s4); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.005em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3125rem; margin-top: var(--s8); margin-bottom: var(--s3); }
h3 { font-size: 1.0625rem; margin-bottom: var(--s2); }
p { margin: 0 0 var(--s3); }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--yellow-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.fine { font-size: 0.875rem; color: var(--muted); }
.note { background: var(--soft); border-radius: var(--r); padding: var(--s3) var(--s4); font-size: 0.9375rem; }
.error { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: var(--s2) 0 0; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--font-display); letter-spacing: 0.01em; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark .bm-ring { fill: none; stroke: var(--ink); stroke-width: 2.8; stroke-linecap: round; }
.brand-mark .bm-notch { stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.brand-mark .bm-needle { stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.brand-mark .bm-pivot { fill: var(--yellow); stroke: var(--ink); stroke-width: 1.6; }
.brand-sub { color: var(--muted); font-weight: 600; }
.top-link { font: 600 0.9375rem var(--font-body); color: var(--muted); text-decoration: none; padding: var(--s2) var(--s1); }

/* bottom tab bar */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 auto; padding: 0; max-width: 680px; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar); color: var(--muted); text-decoration: none; font: 600 0.8125rem/1 var(--font-body); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"] .ti { stroke: var(--ink); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; width: 28px; height: 4px; margin-top: -58px; border-radius: 0 0 4px 4px; background: var(--yellow); }
.ti { width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

main { padding-top: var(--s4); padding-bottom: var(--s6); }
.crumbs { font-size: 0.9375rem; padding: var(--s3) 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }

/* buttons: chunky, with a hard bottom edge that presses in */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s6); border-radius: var(--r); border: 0;
  font: 700 1.0625rem/1 var(--font-display); letter-spacing: 0.02em; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.btn-primary { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 4px 0 var(--yellow-press); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge), 0 4px 0 var(--edge); }
.btn:active:not([disabled]) { transform: translateY(3px); box-shadow: 0 1px 0 var(--yellow-press); }
.btn-ghost:active:not([disabled]) { box-shadow: inset 0 0 0 2px var(--edge), 0 1px 0 var(--edge); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-small { min-height: 40px; padding: 0 var(--s4); font-size: 0.9375rem; box-shadow: none; }
.btn-small:active:not([disabled]) { transform: none; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s4) 0 var(--s3); }
.card .cta-row .btn { flex: 1 1 200px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); font-size: 1.25rem; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }

/* home: the gauge is the hero */
.hero-gauge { display: grid; grid-template-columns: 168px 1fr; gap: var(--s4); align-items: center; padding: var(--s2) 0 var(--s4); }
.gauge-wrap { width: 168px; height: 168px; }
.hero-text h1 { font-size: 1.75rem; }
.hero-text .sub { color: var(--muted); font-size: 1rem; margin: var(--s2) 0 var(--s3); }
.hero-text .btn { width: 100%; padding: 0 var(--s3); }
[hidden] { display: none !important; }
.hero-small { padding: var(--s3) 0 var(--s2); }
.hero-small h1 { font-size: 1.75rem; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 36em; margin-top: var(--s2); }

/* gauge */
.gauge { display: block; max-width: 100%; height: auto; overflow: visible; }
.gauge .g-track { fill: none; stroke: var(--soft); stroke-width: 12; stroke-linecap: round; }
.gauge .g-fill { fill: none; stroke: var(--blue); stroke-width: 12; stroke-linecap: round; }
.gauge .g-zone-ok { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: butt; }
.gauge.passed .g-pass { animation: notch 450ms ease-in-out 900ms 3 alternate; }
@keyframes notch { from { stroke: var(--ink); } to { stroke: var(--yellow); stroke-width: 7; } }
.gauge .g-tick { stroke: var(--muted); stroke-width: 1.5; }
.gauge .g-major { stroke: var(--ink); stroke-width: 2.5; }
.gauge .g-pass { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.gauge .g-needle { transform-origin: 100px 100px; transform: rotate(-120deg); transition: transform 1s cubic-bezier(0.2, 0.9, 0.25, 1.08); }
.gauge .g-needle polygon { fill: var(--ink); }
.gauge .g-needle circle { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
.gauge .g-readout { font: 700 40px var(--font-display); fill: var(--ink); font-variant-numeric: tabular-nums; }
.gauge.mini .g-tick:not(.g-major), .gauge.mini .g-needle, .gauge.mini .g-readout, .gauge.mini .g-major, .gauge.mini .g-pass { display: none; }
.gauge.mini .g-track, .gauge.mini .g-fill { stroke-width: 20; }
.gauge.big { margin: 0 auto; }

/* section rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-link { display: flex; align-items: center; gap: var(--s4); min-height: 76px; padding: var(--s3) 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.row-link:active { background: var(--soft); }
.row-gauge { flex: none; width: 52px; height: 52px; }
.row-text { flex: 1; min-width: 0; }
.row-name { display: block; font: 700 1.3125rem/1.1 var(--font-display); }
.row-desc { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.35; margin-top: 2px; }
.row-meta { display: block; font: 600 0.875rem var(--font-body); margin-top: 2px; }
.chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lock { display: inline-block; font-size: 0.8125rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); margin-left: var(--s2); vertical-align: middle; }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin: var(--s4) 0; }
.card.accent { border-left: 6px solid var(--yellow); }
.ticks, .bullets { padding-left: 1.2em; margin: 0 0 var(--s4); }
.ticks { list-style: none; padding-left: 0; }
.ticks li { position: relative; padding-left: 1.8em; margin-bottom: var(--s3); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 0.9em; height: 0.5em; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.bullets li { margin-bottom: var(--s2); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 700 1.0625rem var(--font-body); padding: var(--s4) 0; min-height: 56px; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.faq[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); }
.pill-row { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0; }
.pill { display: inline-block; padding: var(--s3) var(--s4); border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); text-decoration: none; font-weight: 700; color: var(--ink); min-height: 44px; }
.browse { border-bottom: 1px solid var(--line); }
.browse > summary { cursor: pointer; font: 700 1.0625rem var(--font-body); padding: var(--s4) 0; min-height: 56px; }
.static-list { padding-left: 0; list-style: none; }
.static-q { border-top: 1px solid var(--line); padding: var(--s4) 0; }
.static-choices { margin: var(--s2) 0; padding-left: 1.6em; }
.cite { font-size: 0.875rem; color: var(--muted); }
.prose { max-width: 40em; }
.prose h1 { margin-bottom: var(--s4); }
.input { width: 100%; min-height: 48px; padding: var(--s3); border-radius: var(--r); border: 2px solid var(--edge); background: var(--surface); color: var(--ink); font: inherit; }
.row { display: flex; gap: var(--s2); align-items: center; }
.row .input { flex: 1; }
.testbanner { background: var(--soft); border: 2px dashed var(--yellow); border-radius: var(--r); padding: var(--s3) var(--s4); margin: var(--s4) 0; font-size: 0.9375rem; }
.price { font: 700 3rem/1 var(--font-display); margin: 0 0 var(--s2); }
.pay { text-align: center; }
.switch { display: flex; align-items: center; gap: var(--s3); min-height: 44px; flex-wrap: wrap; margin-bottom: var(--s2); }
.switch input { width: 24px; height: 24px; accent-color: var(--blue); }
.mock-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; margin: var(--s3) 0; }
.mock-btn { flex-direction: column; gap: 2px; min-height: 80px; }
.mock-btn .fine { color: inherit; opacity: 0.75; font-family: var(--font-body); font-weight: 500; }
.mock-grid .mock-btn:last-child { grid-column: 1 / -1; }

.foot { border-top: 1px solid var(--line); padding: var(--s5) 0 var(--s6); color: var(--muted); font-size: 0.875rem; }
.disclaimer { margin-bottom: var(--s2); }

/* quiz overlay */
.quiz { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); }
.quiz-top { display: flex; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); padding-top: calc(var(--s2) + env(safe-area-inset-top)); }
.quiz-progress { flex: 1; min-width: 0; }
.quiz-count { font: 700 0.9375rem var(--font-display); color: var(--muted); margin-bottom: var(--s1); font-variant-numeric: tabular-nums; }
.segs { display: flex; gap: 3px; }
.seg { flex: 1; height: 8px; border-radius: 3px; background: var(--soft); }
.seg.now { background: var(--blue); }
.seg.right { background: var(--ok); }
.seg.wrong { background: var(--bad); }
.bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue); transition: width 200ms ease-out; }
.timer { font: 700 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; padding: var(--s2) var(--s3); border-radius: var(--r); background: var(--soft); }
.timer.low { background: var(--bad); color: var(--surface); }
.quiz-body { flex: 1; overflow-y: auto; padding: var(--s4); width: 100%; max-width: 680px; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.chip { display: inline-block; font: 600 0.875rem var(--font-body); padding: 3px var(--s3); border-radius: 99px; background: var(--soft); color: var(--muted); margin-bottom: var(--s3); }
.stem { font: 700 1.5rem/1.2 var(--font-display); margin: 0 0 var(--s5); outline: none; letter-spacing: 0.005em; }
.stem-sm { font-weight: 700; margin-bottom: var(--s1); }
.choices { display: grid; gap: var(--s3); }
.choice {
  display: flex; gap: var(--s3); align-items: center; width: 100%; text-align: left; min-height: var(--tap); padding: var(--s3) var(--s4);
  border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--edge), 0 4px 0 var(--edge);
  font: 600 1.0625rem/1.35 var(--font-body); cursor: pointer;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.choice:active:not([disabled]) { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--edge), 0 1px 0 var(--edge); }
.choice .letter { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font: 700 1rem var(--font-display); box-shadow: inset 0 0 0 2px var(--edge); color: var(--muted); }
.choice.is-selected { box-shadow: inset 0 0 0 2px var(--blue), 0 4px 0 var(--blue); }
.choice.is-selected .letter { background: var(--blue); color: var(--surface); box-shadow: none; }
.choice.is-correct { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok), 0 4px 0 var(--ok); }
.choice.is-correct .letter { background: var(--ok); color: var(--surface); box-shadow: none; }
.choice.is-wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad), 0 4px 0 var(--bad); }
.choice.is-wrong .letter { background: var(--bad); color: var(--surface); box-shadow: none; }
.choice[disabled] { cursor: default; color: var(--ink); }
.choice[disabled]:not(.is-correct):not(.is-wrong) { opacity: 0.55; }

/* feedback sheet: replaces the footer after an answer */
.quiz-foot { flex: none; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); display: flex; gap: var(--s3); background: var(--bg); border-top: 1px solid var(--line); }
.quiz-foot > * { flex: 1; }
.quiz-foot.empty { border-top: 0; min-height: 0; padding: 0; }
.sheet-fb { flex: none; max-height: 58%; overflow-y: auto; padding: var(--s4) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom)); border-radius: var(--r-sheet) var(--r-sheet) 0 0; animation: rise 240ms cubic-bezier(0.35, 1.5, 0.35, 0.9); }
.sheet-fb.ok { background: var(--ok-bg); }
.sheet-fb.bad { background: var(--bad-bg); }
.sheet-fb .verdict { display: flex; align-items: center; gap: var(--s2); font: 700 1.5rem/1.1 var(--font-display); margin-bottom: var(--s2); }
.sheet-fb.ok .verdict { color: var(--ok); }
.sheet-fb.bad .verdict { color: var(--bad); }
.sheet-fb .explain { margin-bottom: var(--s2); }
.sheet-fb .cite { margin-bottom: var(--s4); }
.sheet-fb .btn { width: 100%; }
@keyframes rise { from { transform: translateY(40px); opacity: 0.3; } to { transform: none; opacity: 1; } }

/* results */
.results .gauge-hero { max-width: 280px; margin: 0 auto var(--s2); }
.verdict-line { text-align: center; font: 700 1.5rem/1.15 var(--font-display); margin: 0 0 var(--s1); }
.verdict-line.good { color: var(--ok); }
.verdict-line.warn { color: var(--bad); }
.results .fine { text-align: center; }
.sect-list { list-style: none; padding: 0; margin: 0; }
.sect-list li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); align-items: center; }
.sect-list li:first-child { border-top: 0; }
.tag { font: 700 0.8125rem var(--font-body); padding: 3px var(--s2); border-radius: 99px; }
.sect-list .ok .tag { background: var(--ok-bg); color: var(--ok); }
.sect-list .bad .tag { background: var(--bad-bg); color: var(--bad); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s5); }
.review-item, .missed-list li { border-left: 6px solid var(--line); padding: var(--s3) var(--s4); margin: var(--s3) 0; background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }
.review-item.ok { border-left-color: var(--ok); }
.review-item.bad, .missed-list li { border-left-color: var(--bad); }
.missed-list { list-style: none; padding: 0; margin: 0; }
.review-n { font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin-bottom: var(--s1); }
.explain { margin-bottom: var(--s2); }
.next-rows { list-style: none; margin: 0; padding: 0; }
.next-rows li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.next-rows li:first-child { border-top: 0; }
.flag { margin-top: var(--s4); min-height: 44px; padding: 0 var(--s4); border-radius: var(--r); border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge); font: 600 0.9375rem var(--font-body); cursor: pointer; }
.flag { display: inline-flex; align-items: center; gap: var(--s2); }
.flag-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.flag.on .flag-ico { fill: var(--yellow); }
.flag.on { box-shadow: inset 0 0 0 2px var(--yellow); background: var(--soft); }

/* mock question grid */
.sheet { position: absolute; inset: 0; background: rgba(8, 12, 15, 0.6); display: flex; align-items: flex-end; justify-content: center; z-index: 5; }
.sheet-in { background: var(--bg); width: 100%; max-width: 680px; border-radius: var(--r-sheet) var(--r-sheet) 0 0; padding: var(--s4) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom)); max-height: 85%; overflow: auto; animation: rise 220ms ease-out; }
.qgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s2); margin: var(--s3) 0; }
.qcell { min-height: 48px; border-radius: 10px; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--edge); font: 700 1.0625rem var(--font-display); cursor: pointer; }
.qcell.done { background: var(--blue); color: var(--surface); box-shadow: none; }
.qcell.flagged { box-shadow: inset 0 0 0 3px var(--yellow); }
.qcell.current { outline: 3px solid var(--focus); outline-offset: 1px; }
.sheet-actions { display: flex; gap: var(--s3); }
.sheet-actions > * { flex: 1; }

/* study sheet */
.sheet-doc h2 { margin-top: 0; }
.sheet-group { margin: var(--s6) 0; break-inside: avoid; }
.sheet-group h3 { border-bottom: 2px solid var(--edge); padding-bottom: var(--s1); margin-bottom: var(--s3); font-size: 1.1875rem; }
.sheet-group ul { padding-left: 1.1em; margin: 0; }
.sheet-group li { margin-bottom: var(--s2); }
.cite-inline { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }

@media (min-width: 720px) {
  h1 { font-size: 2.25rem; }
  .hero-gauge { grid-template-columns: 220px 1fr; gap: var(--s8); }
  .gauge-wrap { width: 220px; height: 220px; }
  .hero-text .btn { width: auto; padding: 0 var(--s8); }
  .mock-grid { grid-template-columns: repeat(4, 1fr); }
  .mock-grid .mock-btn:last-child { grid-column: auto; }
  .quiz-body { padding: var(--s8) var(--s4); }
  .stem { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .foot, .no-print, .skip, .tabs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; padding-bottom: 0; }
  .sheet-group { break-inside: avoid; }
  .sheet-group h3 { border-bottom-color: #000; }
  .cite-inline { color: #333; }
  a { color: #000; text-decoration: none; }
}

.big-ti { width: 32px; height: 32px; stroke: var(--ink); margin: 10px; }
.card-h { margin-top: 0; }
.hero-text .btn + .btn { margin-top: var(--s3); }

.gauge .g-passlabel { font: 700 13px var(--font-display); fill: var(--muted); }
.gauge.mini .g-passlabel { display: none; }
.gauge.mini .g-track { stroke: var(--line); }
.hero-gauge .hero-text h1 { font-size: 1.5rem; line-height: 1.1; }

/* the final-sale line next to the price reads at full size, not as fine print */
.pay .final { margin: 0 0 var(--s2); color: var(--ink); }

.gauge .g-readout.long { font-size: 34px; }

.answer { color: var(--muted); margin: 0 0 var(--s4); }

/* study sheet table */
.tbl-wrap .cite { margin: 0; padding: var(--s2) var(--s3); border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tbl-wrap { overflow-x: auto; margin: 0 0 var(--s3); border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.9375rem; }
.tbl thead th:first-child { width: 48%; }
.tbl caption { text-align: left; padding: var(--s3) var(--s3) var(--s2); font-size: 0.875rem; color: var(--muted); }
.tbl th, .tbl td { padding: var(--s2) var(--s3); text-align: left; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.tbl thead th { font: 700 0.8125rem/1.2 var(--font-body); color: var(--muted); background: var(--soft); }
.tbl tbody th { font-weight: 600; }
.tbl .num-col { text-align: right; }
.tbl td.num { font: 700 1.25rem/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.tbl-sub, .tbl-unit { display: block; font: 400 0.875rem/1.3 var(--font-body); color: var(--muted); }
.tbl-unit { font-size: 0.75rem; }
.tbl tbody tr:nth-child(even) { background: var(--soft); }

/* a miss marks both rows with a sign as well as a colour */
.choice.is-correct::after, .choice.is-wrong::after { margin-left: auto; padding-left: var(--s2); font: 700 1.375rem/1 var(--font-body); }
.choice.is-correct::after { content: "✓"; color: var(--ok); }
.choice.is-wrong::after { content: "✗"; color: var(--bad); }
.quiz-count { display: flex; justify-content: space-between; gap: var(--s2); }
.streak { color: var(--ink); background: var(--soft); border-radius: 99px; padding: 0 var(--s2); }
.sample ol { list-style: upper-alpha; padding-left: 1.5em; margin: 0 0 var(--s3); }
.sample li { margin-bottom: var(--s1); }
.sample summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--link); }

/* fixes from the Opus design critique */
.hero-gauge { grid-template-columns: 120px 1fr; grid-template-areas: "g t" "a a"; row-gap: var(--s3); }
.hero-gauge .gauge-wrap { grid-area: g; width: 120px; height: 120px; }
.hero-gauge .hero-text { grid-area: t; }
.hero-gauge .hero-text h1 { font-size: 1.3125rem; }
.hero-text .sub { margin-bottom: 0; }
.hero-actions { grid-area: a; display: grid; gap: var(--s3); }
.hero-actions .btn { width: 100%; white-space: nowrap; }
.gauge .g-readout { font-size: 42px; }
.gauge .g-caption { font: 600 19px var(--font-body); fill: var(--muted); }
.gauge .g-passlabel { font-size: 18px; }
.gauge.mini .g-readout { display: block; font-size: 60px; }
.gauge.mini .g-track { stroke: var(--edge); opacity: 0.6; }
.gauge.mini.idle .g-track { stroke-dasharray: 4 16; }
.sheet-fb { max-height: 52%; }
.sheet-fb .verdict { font-size: 1.3125rem; }
.sheet-fb .cite { margin: 0 0 var(--s3); border-top: 1px solid var(--line); }
.sheet-fb .cite a { display: flex; align-items: center; min-height: 44px; font: 600 0.9375rem var(--font-body); }
.next-rows li { display: block; padding: 0; }
.next-rows button { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.quiz-foot.lead > :first-child { flex: 2; }
.quiz-body { padding-bottom: var(--s8); }
.card > h2:first-child { margin-top: 0; }
.row-btn { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
@media (min-width: 720px) {
  .hero-gauge { grid-template-columns: 200px 1fr; }
  .hero-gauge .gauge-wrap { width: 200px; height: 200px; }
  .hero-gauge .gauge-wrap .gauge { width: 200px; }
  .hero-gauge .hero-text h1 { font-size: 2rem; }
}
