/* openpilot G-Wagon evals.
   Type: Overpass (after Highway Gothic, the US road-sign face) for everything; Overpass Mono only for
   model hashes and code. One loud element per page: the overview's title and its chart.
   Chart colours (validated with the dataviz checker, light on #fff and dark on #1c2025):
   Flip Flop blue, Mountain Dew orange, lebowski in ink, other models a recessive grey. */
:root {
  --bg: #f3f5f7; --panel: #ffffff; --ink: #14181d; --ink2: #434c57; --muted: #5b6470;
  --rule: #d5dae0; --rule2: #b9c0c8; --link: #1b5ea6; --wash: #e9edf1; --line: #e2a400;
  --c-ff: #2a78d6; --c-md: #eb6834; --c-ref: #1baf7a; --c-rec: #d6409f; --c-other: #8a929c; --bar: #9aa6b4;
  --better: #2a78d6; --worse: #c73e3d; --tie: #6b7480;
  --sans: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15181c; --panel: #1c2025; --ink: #e8ebee; --ink2: #b8c0c9; --muted: #969ea9;
    --rule: #2c3239; --rule2: #414852; --link: #8dbdf3; --wash: #22272d; --line: #c99400;
    --c-ff: #3987e5; --c-md: #d95926; --c-ref: #199e70; --c-rec: #e05aa8; --c-other: #69717c; --bar: #5d6976;
    --better: #3987e5; --worse: #e66767; --tie: #8d95a0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15181c; --panel: #1c2025; --ink: #e8ebee; --ink2: #b8c0c9; --muted: #969ea9;
  --rule: #2c3239; --rule2: #414852; --link: #8dbdf3; --wash: #22272d; --line: #c99400;
  --c-ff: #3987e5; --c-md: #d95926; --c-ref: #199e70; --c-rec: #e05aa8; --c-other: #69717c; --bar: #5d6976;
  --better: #3987e5; --worse: #e66767; --tie: #8d95a0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
code { font: 400 0.84em/1.3 var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* Header: a double centre line along the top edge. */
.top { background: var(--panel); border-top: 6px double var(--line); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 10px; }
.word { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.005em; }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.theme { width: 30px; height: 30px; border: 1px solid var(--rule2); border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }

main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; padding-top: 40px; padding-bottom: 64px; }
main > section, .sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; align-content: start; }
h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.15; font-weight: 800; margin: 0; letter-spacing: -0.015em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 0; }
p, ul, ol { margin: 0; max-width: 70ch; }
.sub, .asof { color: var(--muted); font-size: 15px; }
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }

/* Hero: the title, what this is, and the closed-loop ranking. */
.hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hero-t { display: grid; gap: 14px; align-content: start; }
.lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink2); max-width: 44em; }

/* Colour by model, everywhere: swatches, dots, intervals, win bars, map paths. */
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sw-ref, .dot-ref { background: var(--c-ref); } .sw-md, .dot-md { background: var(--c-md); }
.sw-ff, .dot-ff { background: var(--c-ff); } .sw-other, .dot-other { background: var(--c-other); }
.sw-rec { background: repeating-linear-gradient(90deg, var(--c-rec) 0 4px, transparent 4px 6px); border-radius: 0; height: 3px; width: 14px; }

/* The closed-loop hero: the 2x2 video beside its bird's-eye map. */
.cl { margin: 0; display: grid; gap: 14px; }
.cl-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 900px) { .cl-stage { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; } }
.cl-vid { position: relative; border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 2 / 1; }
.cl-vid video { display: block; width: 100%; height: 100%; }
.cl-player { display: grid; gap: 10px; min-width: 0; }
.cl-vid canvas { display: block; width: 100%; height: 100%; }
.cl-lab { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 2px; border-radius: 3px;
  background: rgb(10 12 14 / 0.72); color: #f2f4f6; font-size: 14px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cl-time { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 3px; background: rgb(10 12 14 / 0.72); color: #f2f4f6; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .cl-lab, .cl-time { font-size: 12px; padding: 2px 6px 1px; } .cl-lab { left: 4px; top: 4px; } .cl-time { right: 4px; bottom: 4px; } }
.cl-ctl { display: flex; align-items: center; gap: 12px; }
.cl-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule2); background: var(--panel); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.cl-play i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.cl-play.paused i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.cl-scrub { flex: 1; min-width: 0; accent-color: var(--ink2); }
.cl-views { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-views button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--rule2); background: var(--panel); color: var(--ink2);
  font: 600 14px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.cl-views button { text-align: left; }
.cl-views button b { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cl-views button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
@media (max-width: 560px) { .cl-views { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .cl-views button { font-size: 13px; padding: 6px 8px; gap: 5px; } }
.cl-map .bp.dim { opacity: 0.35; }
.cl-map .bp.on { stroke-width: 3; }
.cl-map { width: 100%; height: auto; max-height: 430px; display: block; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; }
@media (max-width: 899px) { .cl-map { max-width: 300px; } }
.cl-map .grid { stroke: var(--rule); stroke-width: 1; }
.cl-map .tick { fill: var(--muted); font: 400 11px var(--sans); }
.bp { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.bp-rec { stroke: var(--c-rec); stroke-dasharray: 6 4; }
.bp-ref { stroke: var(--c-ref); } .bp-md { stroke: var(--c-md); } .bp-ff { stroke: var(--c-ff); } .bp-other { stroke: var(--c-other); }
.b2 { fill: var(--panel); stroke-width: 2; }
.b2-ref { stroke: var(--c-ref); } .b2-md { stroke: var(--c-md); } .b2-ff { stroke: var(--c-ff); }
.bd { stroke: var(--panel); stroke-width: 2; }
.bd-rec { fill: var(--c-rec); }
.cl-map .dot-ref { fill: var(--c-ref); } .cl-map .dot-md { fill: var(--c-md); } .cl-map .dot-ff { fill: var(--c-ff); }
.bl { fill: var(--ink); font: 600 12px var(--sans); }
.bl-l { stroke-width: 1; stroke: var(--rule2); }
.cl figcaption { display: grid; gap: 6px; font-size: 15px; color: var(--ink2); max-width: 80ch; }
.cl figcaption .cl-how { font-size: 14px; color: var(--muted); }

/* The ranking chart: a row per model, shared ranks grouped, then the G55 win bars. */
.rk { margin: 0; display: grid; gap: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 16px 12px; min-width: 0; }
.rk-cap { display: grid; gap: 4px; margin-bottom: 12px; }
.rk-cap p:not(.fig-t) { font-size: 14px; color: var(--muted); max-width: 90ch; }
.rk-head, .rk-row { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 19rem; gap: 18px; align-items: center; }
.rk-head { padding: 0 0 6px calc(2.6rem + 12px); font-size: 12px; color: var(--muted); }
.rk-axis { position: relative; height: 32px; }
.rk-al { position: absolute; left: 0; top: 0; white-space: nowrap; }
.rk-tk { position: absolute; bottom: 0; transform: translateX(-50%); }
.rk-wh { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-self: end; line-height: 1.25; }
.rk-group { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); border-top: 1px solid var(--rule); }
.rk-rank { font-weight: 800; font-size: 26px; line-height: 1; padding-top: 12px; display: grid; gap: 4px; align-content: start; border-right: 3px solid var(--line); margin: 6px 0; }
.rk-rank span { font-size: 11px; font-weight: 400; color: var(--muted); }
.rk-rank-p { color: var(--muted); border-right-color: var(--rule2); border-right-style: dashed; }
.rk-rows { display: grid; }
.rk-row { padding: 9px 0 9px 12px; }
.rk-row + .rk-row { border-top: 1px dashed var(--rule); }
.rk-name { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.rk-name .sw { transform: translateY(1px); }
.rk-name > span:last-child { display: grid; gap: 1px; min-width: 0; }
.rk-st { font-size: 12px; color: var(--muted); line-height: 1.3; }
.rk-track { position: relative; height: 30px; }
.rk-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.rk-ci { position: absolute; top: 13px; height: 4px; border-radius: 2px; opacity: 0.55; }
.ci-ref { background: var(--c-ref); } .ci-md { background: var(--c-md); } .ci-ff { background: var(--c-ff); } .ci-other { background: var(--c-other); }
.rk-dot { position: absolute; top: 15px; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--panel); }
.rk-v { position: absolute; top: 6px; margin-left: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rk-pend .rk-track { display: flex; align-items: center; }
.rk-pt { position: relative; font-size: 13px; color: var(--muted); font-style: italic; background: var(--panel); padding-right: 8px; }
.rk-pend .nm, .rk-pend .hx-only { color: var(--ink2); }
.rk-wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wb { display: grid; gap: 3px; font-size: 12px; }
.wb-bar { position: relative; display: block; height: 10px; background: var(--wash); border-radius: 2px; overflow: hidden; }
.wb-bar i { position: absolute; left: 0; top: 0; bottom: 0; }
.wb-bar b { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--panel); }
.wb-big { gap: 5px; }
.wb-big .wb-bar { height: 16px; border-radius: 3px; }
.wb-big .wb-t { font-size: 17px; }
.wb-big .wb-n { font-size: 13px; }
.rk-wtrack { height: auto; padding: 4px 0; }
.wb-ref .wb-t, .wb-na .wb-t { color: var(--muted); }
.wb-ref { align-self: center; }
.wb-ref i, .wb-ref .wb-bar { display: none; }
.wb-ref .wb-t { border: 1px dashed var(--rule2); border-radius: 3px; padding: 1px 6px; width: fit-content; }
.wb-ff i.on { background: var(--c-ff); } .wb-md i.on { background: var(--c-md); } .wb-ref i.on { background: var(--c-ref); } .wb-other i.on { background: var(--c-other); }
.rk-nogroup .rk-rank { border-right-color: transparent; }
.rk-w .rk-axis { height: auto; display: flex; align-items: flex-end; }
.rk-w .rk-al { position: static; white-space: normal; }
/* The harness check: comma's public drives, smaller than the G55 sections. */
.harness h2 { font-size: 22px; }
.harness .rk-pub { margin-bottom: 14px; }
.harness .rk-pub .rk-row { grid-template-columns: 15rem minmax(0, 1fr); }
.harness .rk-pub .rk-head { grid-template-columns: 15rem minmax(0, 1fr); }
.harness .fig-t { font-size: 16px; }
.cl-ex { display: grid; gap: 14px; }
@media (max-width: 760px) { .harness .rk-pub .rk-row, .harness .rk-pub .rk-head { grid-template-columns: minmax(0, 1fr); } }
.wb-t { font-weight: 700; font-size: 13px; }
.wb-n { font-weight: 400; color: var(--muted); }
.rk-notes { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.rk-notes p { max-width: 100ch; }
@media (max-width: 760px) {
  .rk { padding: 12px 10px 10px; }
  .rk-head { grid-template-columns: minmax(0, 1fr); padding-left: calc(2.2rem + 10px); }
  .rk-head > span:first-child, .rk-wh { display: none; }
  .rk-group { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .rk-rank { font-size: 22px; }
  .rk-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 10px; }
  .rk-wins:empty { display: none; }
  .wb::before { content: attr(data-l); grid-row: 1; min-height: 2.5em; font-size: 11px; color: var(--muted); line-height: 1.2; }
}
.hero-fig { margin: 0; display: grid; gap: 10px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 16px 14px; }
.fig-t { font-weight: 800; font-size: 19px; line-height: 1.25; margin: 0; }
.hero-fig figcaption { font-size: 14px; color: var(--muted); display: grid; gap: 8px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--ink2); }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.k-ref { background: var(--c-ref); } .k-md { background: var(--c-md); } .k-ff { background: var(--c-ff); } .k-other { background: var(--c-other); }
.scatter { width: 100%; height: auto; display: block; overflow: visible; }
.scatter .grid { stroke: var(--rule); stroke-width: 1; }
.scatter .tick { fill: var(--muted); font: 400 13px var(--sans); }
.scatter .axis { fill: var(--ink2); font: 600 14px var(--sans); }
.scatter .better { fill: var(--muted); font: 400 13px var(--sans); }
.scatter .lbl { fill: var(--ink); font: 600 15px var(--sans); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.scatter .dot { stroke: var(--panel); stroke-width: 2; cursor: default; }
.scatter .dot:focus-visible { outline: none; stroke: var(--link); stroke-width: 3; }
.d-ref { fill: var(--c-ref); } .d-md { fill: var(--c-md); } .d-ff { fill: var(--c-ff); } .d-other { fill: var(--c-other); }
.scatter .arrow { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.scatter .ah { fill: var(--muted); }
details summary { cursor: pointer; color: var(--link); width: fit-content; }
details[open] summary { margin-bottom: 8px; }

/* Findings: the figure in a margin column, the sentence beside it. */
.findings { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.findings li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.f-fig { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.findings p { font-size: 18px; max-width: 62ch; }
.f-b { display: grid; gap: 16px; min-width: 0; }
.f-b .hero-fig { max-width: 620px; }
@media (min-width: 760px) {
  .findings li { grid-template-columns: 15rem minmax(0, 1fr); gap: 24px; align-items: baseline; }
}

/* The model list: one row per model, newest first. */
.mlist { list-style: none; padding: 0; margin: 0; max-width: none; border-top: 1px solid var(--rule); }
.mlist-head { display: none; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.m-id h3 { font-size: 20px; }
.mlink { color: var(--ink); text-decoration: none; }
.mlink:hover .nm { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nm { font-weight: 800; }
.hx { color: var(--muted); font-size: 0.72em; font-weight: 400; margin-left: 2px; }
code.hx-only { font: 600 0.9em var(--mono); letter-spacing: 0; }
.m-st { color: var(--ink2); font-size: 15px; margin-top: 2px; }
.m-date { font-weight: 600; color: var(--ink); margin-right: 6px; }
.m-v { font-size: 16px; color: var(--ink); max-width: 46ch; }
@media (min-width: 900px) {
  .mlist-head { display: grid; grid-template-columns: 15rem minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; font-size: 13px; color: var(--muted); padding-bottom: 8px; }
  .mrow { grid-template-columns: 15rem minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
}

/* Bars: value from zero, the tick is lebowski. */
.m-bars, .kbars { display: grid; gap: 7px; }
.b-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 6.5rem; gap: 10px; align-items: center; font-size: 14px; }
.kbars .b-row { grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) 7rem; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.b-l { color: var(--ink2); line-height: 1.25; }
.b-s { display: block; color: var(--muted); font-size: 13px; }
.b-track { position: relative; height: 14px; display: block; }
.b-track:focus-visible { outline-offset: 3px; }
.b-bar { position: absolute; left: 0; top: 3px; height: 8px; border-radius: 0 4px 4px 0; background: var(--bar); }
.b-refbar { background: var(--c-ref); }
.b-ref { position: absolute; top: 0; width: 2px; height: 14px; margin-left: -1px; background: var(--c-ref); }
.b-v { text-align: right; font-weight: 600; white-space: nowrap; }
.b-u { color: var(--muted); font-weight: 400; font-size: 12px; }
.b-na { grid-column: 2 / 4; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  .kbars .b-row { grid-template-columns: minmax(0, 1fr) 6rem; }
  .kbars .b-row .b-l { grid-column: 1 / 3; }
  .kbars .b-na { grid-column: 1 / 3; }
}

/* How it works */
.how { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.how > div { display: grid; gap: 6px; align-content: start; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } #how.prose { max-width: none; } }

/* Tables. The first column stays put while the rest scroll sideways. */
.tw { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel); max-width: 100%; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; }
caption { caption-side: top; text-align: left; padding: 12px 14px 4px; color: var(--muted); font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-weight: 600; color: var(--ink2); font-size: 14px; background: var(--wash); }
tbody th[scope="row"], thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: inset -1px 0 0 var(--rule); min-width: 9.5rem; }
thead th:first-child { background: var(--wash); }
th[scope="row"] { font-weight: 600; }
.n { text-align: right; white-space: nowrap; }
.th-s { display: block; font-weight: 400; color: var(--muted); font-size: 13px; white-space: normal; }
td .ci, td .wins, td .med, td .dl { display: block; color: var(--muted); font-size: 13px; }
td .dl { color: var(--ink2); margin-top: 2px; }
td.na { color: var(--muted); font-size: 14px; }
table.sum td.n { min-width: 9rem; }
table.vocab th[scope="row"] { min-width: 12rem; white-space: normal; }

/* Marks: blue dot better, red diamond worse, grey ring not separated, dash no interval. */
.mk { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 1px; }
.mk-better { background: var(--better); border-radius: 50%; }
.mk-worse { background: var(--worse); transform: rotate(45deg) scale(0.9); }
.mk-tie { border: 2px solid var(--tie); border-radius: 50%; }
.mk-lower, .mk-higher { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.mk-lower { border-top: 9px solid var(--tie); }
.mk-higher { border-bottom: 9px solid var(--tie); }
.mk-none { height: 2px; vertical-align: 4px; background: var(--tie); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--ink2); max-width: none; }

/* For researchers */
.research ul.plain, ul.plain { padding-left: 1.2em; display: grid; gap: 8px; max-width: 74ch; }

/* Model page */
.mhead { gap: 10px; }
.mhead h1 .hx { font-size: 0.42em; vertical-align: 0.3em; margin-left: 8px; }
.mhead h1 code.hx-only { font-size: 0.8em; }
.crumb { font-size: 15px; }
.m-verdict { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; max-width: 44ch; margin-top: 6px; }
.sec { padding-top: 6px; }
.sec h3 { font-size: 20px; }
.sec-m { color: var(--ink2); }
.cond { color: var(--muted); font-size: 14px; max-width: 80ch; }
.sec-off p { color: var(--muted); }
.ident { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 15px; }
.ident dt { color: var(--muted); }
.ident dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.limits { padding-left: 1.2em; display: grid; gap: 8px; max-width: 80ch; color: var(--ink2); }
.stills { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stills img { width: 100%; height: auto; display: block; border-radius: 4px; }

.foot { border-top: 1px solid var(--rule); padding-top: 18px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.tip { position: fixed; z-index: 10; max-width: min(360px, calc(100vw - 16px)); padding: 8px 10px; border-radius: 4px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.4; pointer-events: none; }
@media (max-width: 560px) {
  .top-in { gap: 6px 14px; padding-top: 10px; padding-bottom: 8px; }
  .word { font-size: 16px; }
  .top nav { gap: 14px; }
  .top nav a { font-size: 14px; }
  .theme { width: 26px; height: 26px; }
  main { gap: 52px; padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Status strip: what the tracker knows right now. */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0; margin: 4px 0 0; border-top: 3px double var(--line); border-bottom: 1px solid var(--rule); }
.strip > div { padding: 10px 16px 10px 0; display: grid; gap: 2px; align-content: start; }
.strip dt { font-size: 13px; color: var(--muted); }
.strip dd { margin: 0; font-size: 15px; line-height: 1.4; }
.strip .mlink { font-weight: 600; }
@media (min-width: 900px) { .strip { grid-template-columns: 1.1fr 1fr 0.8fr 1.3fr 1.6fr; } .strip > div + div { padding-left: 16px; border-left: 1px solid var(--rule); } }

/* Over time: small multiples, release date on x. */
.trends { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .trends { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .time .trends { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trend { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 12px 12px 10px; display: grid; gap: 6px; min-width: 0; }
.trend-t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.trend svg { width: 100%; height: auto; display: block; overflow: visible; }
.trend .grid { stroke: var(--rule); stroke-width: 1; }
.trend .xt { stroke: var(--rule2); }
.trend .tick { fill: var(--muted); font: 400 11px var(--sans); }
.trend figcaption { font-size: 13px; color: var(--ink2); }
.refl { stroke: var(--ink2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.refl-t { fill: var(--muted); font: 400 11px var(--sans); }
.tl { fill: none; stroke: var(--rule2); stroke-width: 1.5; }
.tp { stroke-width: 2; }
.tp:focus-visible { outline: none; stroke-width: 3.5; }
.st-ref { stroke: var(--c-ref); } .st-md { stroke: var(--c-md); } .st-ff { stroke: var(--c-ff); } .st-other { stroke: var(--c-other); }
.fl-ref { fill: var(--c-ref); } .fl-md { fill: var(--c-md); } .fl-ff { fill: var(--c-ff); } .fl-other { fill: var(--c-other); }
.hollow { fill: var(--panel); }
.tw-ci { stroke-width: 2; opacity: 0.6; }
.pend { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.trend-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink2); max-width: none; }
.trend-key span { display: inline-flex; align-items: center; gap: 6px; }
.key-fill { fill: var(--c-other); stroke: var(--c-other); stroke-width: 2; }
.key-hollow { fill: none; stroke: var(--c-other); stroke-width: 2; }

/* Findings: one number, one line, the rest on request. */
.findings details { font-size: 15px; color: var(--ink2); }
.findings details summary { font-size: 14px; }
.findings details p { font-size: 15px; margin-top: 4px; }
.f-b { display: grid; gap: 4px; }

/* Log */
.log { list-style: none; padding: 0; margin: 0; max-width: none; border-top: 1px solid var(--rule); }
.log li { display: grid; grid-template-columns: 6.5rem 4.2rem minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; align-items: baseline; }
.log time { font-variant-numeric: tabular-nums; color: var(--ink2); font-weight: 600; font-size: 14px; }
.log time.rep { visibility: hidden; }
.log li:first-child time.rep { visibility: visible; }
.lg-k { font-size: 12px; color: var(--muted); border: 1px solid var(--rule2); border-radius: 3px; padding: 0 5px; width: fit-content; }
.lg-change .lg-k { border-color: var(--line); color: var(--ink2); }
.lg-c { font-size: 13px; }
.lg-more summary { margin-top: 10px; font-size: 14px; }
@media (max-width: 560px) {
  .log li { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 4px 10px; }
  .log li > span:last-child { grid-column: 1 / -1; }
  .log time.rep { display: none; }
  .log li:first-child time.rep { display: inline; }
}
