/* Benchmark page (/results), D3 (2026-11-19 night; D2c the same evening). The app's 56px header (static/tm/base.css .tm-top, the same
   menu as every app screen) and under it the section links as a second row that sticks to the top. Content width
   min(1320px, 100% - 120px), 32px page title with the detector on its line, 17px body, the evidence chart of A5 with the D3 marks:
   filled purple point for the model, hollow dark grey circle for a comparison and for the tracker output, hollow light grey square
   for the reference group, line for the 95% interval (raspberry is the app's candidate colour only). The two greys are page tokens
   below, checked with the dataviz validator against #ffffff and #151413 (see the D3b report). Each section has a title, one
   sentence and one chart; tables and notes sit in <details>. No style attributes (CSP style-src 'self'). */
:root { --wrap: min(1320px, calc(100% - 120px)); --sec: 72px; --sub-h: 44px; --mk-cmp: var(--muted); --mk-ref: var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mk-cmp: #98948d; --mk-ref: #66625c; } }   /* inside the dark lightness band */
:root[data-theme="dark"] { --mk-cmp: #98948d; --mk-ref: #66625c; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sub-h) + 16px); }
body { margin: 0; font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; }
ul { padding: 0; list-style: none; }
a { color: var(--accent); text-underline-offset: 3px; }
.num, td, .tbl .num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip:focus { left: 16px; }
.res-wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- header: the app header (base.css); the section links as a second row that sticks to the top ---------- */
.tm-top a { text-underline-offset: 3px; }
.res-sub { position: sticky; top: 0; z-index: 25; background: var(--bg); border-bottom: 1px solid var(--line); }
.res-sub-in { display: flex; align-items: center; gap: 28px; height: var(--sub-h); overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.res-sub-in::-webkit-scrollbar { display: none; }
.res-sub a { flex: none; color: var(--muted); text-decoration: none; font-size: 15px; padding: 11px 0 9px; border-bottom: 2px solid transparent; }
.res-sub a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.res-sub a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- page head: the title and the detector on one line ---------- */
.head { padding: 28px 0 0; }
.head-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.head h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
.lead { margin-top: 12px; font-size: 17px; color: var(--muted); }
.cond { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; }
.cond div { display: flex; gap: 10px; align-items: baseline; }
.cond dt { color: var(--muted); }

/* ---------- sections: title, one sentence, one chart ---------- */
.sec { padding-top: var(--sec); }
.sec.first { padding-top: 28px; }
.sec.last { padding-bottom: var(--sec); }
.sec h2 { font-size: 26px; line-height: 1.3; letter-spacing: -0.015em; }
.sec-p { margin-top: 8px; max-width: 820px; color: var(--muted); }
.sec-meta { margin-top: 4px; font-size: 15px; color: var(--muted); }
.tabs { display: flex; gap: 28px; margin-top: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 0 10px; font-size: 16px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.tab:focus-visible { outline-offset: -2px; }
.tab-n { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.tools .tabs { margin-top: 0; border-bottom: 0; min-width: 0; max-width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin-bottom: 8px; }
.seg button { border: 1px solid transparent; background: transparent; height: 30px; padding: 0 12px; border-radius: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { border-color: var(--text); color: var(--text); font-weight: 600; }

/* ---------- charts (A5 evidence chart, page tokens) ---------- */
.ev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 28px; }
.ev-one { margin-top: 20px; max-width: 880px; }
.ev-wide { margin-top: 28px; max-width: 1080px; }
.ch-h { font-size: 20px; line-height: 1.35; }
.ch-sub { margin-top: 2px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart { position: relative; margin-top: 16px; }
.chart svg { display: block; width: 100%; overflow: visible; }
.claim { margin-top: 14px; font-size: 16px; }
.refs { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.refs:empty { display: none; }
/* (i): the meaning of a name, on hover and keyboard focus */
.tip { position: relative; display: inline-flex; vertical-align: -3px; margin-left: 4px; }
.tip-b { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; background: none; color: var(--muted); cursor: help; border-radius: 50%; }
.tip-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tip-b:hover { color: var(--text); }
.tip [role=tooltip] { display: none; position: absolute; z-index: 30; left: -8px; top: calc(100% + 6px); width: max-content; max-width: 300px; padding: 8px 10px; border-radius: var(--r-btn);
  background: var(--text); color: var(--bg); font-size: 13px; font-weight: 400; line-height: 1.5; white-space: normal; text-align: left; }
.tip:hover [role=tooltip], .tip:focus-within [role=tooltip] { display: block; }
.claim:empty { display: none; }
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-zero { stroke: var(--muted); stroke-width: 1; }
.c-tick { fill: var(--muted); font-size: 13px; font-family: inherit; font-variant-numeric: tabular-nums; }
.c-label { fill: var(--muted); font-size: 15px; font-family: inherit; }
.c-label.is-model { fill: var(--text); font-weight: 600; }
.c-val { fill: var(--muted); font-size: 14px; font-family: inherit; font-variant-numeric: tabular-nums; }
.c-val.is-model { fill: var(--text); font-weight: 400; }           /* D3: the name is bold, the value is not emphasised */
.c-ci { stroke: var(--mk-cmp); stroke-width: 2; stroke-linecap: round; }
.c-ci.is-model { stroke: var(--accent); stroke-width: 3; }
.c-ci.is-ref { stroke: var(--mk-ref); stroke-width: 2; }
.c-dot { fill: var(--bg); stroke: var(--mk-cmp); stroke-width: 2; }   /* comparison: hollow dark grey circle */
.c-dot.is-model { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.c-sq { fill: var(--bg); stroke: var(--mk-ref); stroke-width: 2; }    /* reference: hollow light grey square */
.c-was { fill: var(--bg); stroke: var(--mk-cmp); stroke-width: 2; }   /* tracker output: hollow dark grey circle */
.c-dot.is-variant-key { fill: var(--line-strong); }
.c-cut { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.c-cut-bg { fill: var(--bg); }
.c-link { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.c-row.is-variant .c-label, .c-row.is-variant .c-val { fill: var(--muted); font-weight: 400; }
.c-row.is-variant .c-dot.is-model { fill: var(--line-strong); }
.c-row.is-variant .c-ci.is-model { stroke: var(--line-strong); }
.c-sep { stroke: var(--line); stroke-width: 1; }
.c-grp { fill: var(--muted); font-size: 13px; font-family: inherit; }
.c-hit { fill: transparent; }
.c-row { outline: none; }
.c-band { fill: transparent; }
.c-row:focus-visible .c-band, .c-row:hover .c-band { fill: var(--face); }
.c-row:focus-visible .c-band { stroke: var(--accent); stroke-width: 1.5; }
.c-key { fill: var(--muted); font-size: 13px; font-family: inherit; }
.c-tip-bg { fill: var(--text); }
.c-tip-t { fill: var(--bg); font-size: 13px; font-family: inherit; font-variant-numeric: tabular-nums; }
.c-tip-t.is-b { font-weight: 600; }

/* ---------- details: "show as a table" and notes ---------- */
details.more { margin-top: 20px; }
details.more > summary { width: fit-content; cursor: pointer; font-size: 16px; color: var(--accent); }
details.more > summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-in { margin-top: 12px; }
.more-h { margin-top: 28px; font-size: 17px; }
.more-p { margin-top: 10px; max-width: 880px; font-size: 15px; color: var(--muted); }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; margin-top: 12px; }
.tscroll:focus-visible { outline-offset: -2px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.tbl th, .tbl td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { color: var(--muted); font-weight: 500; font-size: 14px; border-bottom-color: var(--muted); white-space: nowrap; vertical-align: bottom; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tbody th { font-weight: 500; white-space: nowrap; }
.tbl .grp { text-align: center; }
.tbl .is-trace { font-weight: 600; }
.tbl .note { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.tbl tr.sum th, .tbl tr.sum td { font-weight: 600; }
.tbl tr.first th, .tbl tr.first td { border-top: 1px solid var(--line-strong); }
.tbl tr.variant th, .tbl tr.variant td, .tbl tr.variant .v1 { color: var(--muted); font-weight: 400; }
.tbl .den { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.tbl .weak { color: var(--muted); }
.tbl tbody tr:hover td, .tbl tbody tr:hover th { background: var(--face); }
.t-bench { min-width: 1040px; }
.t-bench thead th button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 2px; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; font-weight: 500; }
.t-bench thead th button:hover { color: var(--text); }
.t-bench thead th button i { position: relative; display: inline-block; width: 8px; height: 11px; }
.t-bench thead th button i::before, .t-bench thead th button i::after { content: ""; position: absolute; left: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: 0.32; }
.t-bench thead th button i::before { top: 0; border-bottom: 4px solid currentColor; }
.t-bench thead th button i::after { bottom: 0; border-top: 4px solid currentColor; }
.t-bench thead th[aria-sort="descending"] button, .t-bench thead th[aria-sort="ascending"] button { color: var(--text); font-weight: 600; }
.t-bench thead th[aria-sort="descending"] button i::after, .t-bench thead th[aria-sort="ascending"] button i::before { opacity: 1; }
.t-bench thead th[aria-sort="descending"] button i::before, .t-bench thead th[aria-sort="ascending"] button i::after { opacity: 0; }
.pair .v0 { color: var(--muted); }
.pair .ar { margin: 0 6px; color: var(--muted); }
.pair .v1 { color: var(--text); font-weight: 600; }
.pair.on { background: var(--face); }
.basis { display: flex; align-items: center; gap: 2px; }
.basis-l { font-size: 14px; color: var(--muted); margin-right: 8px; }
.basis button { height: 30px; padding: 0 10px; border: 0; background: none; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.basis button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--accent); }
.basis button:hover { color: var(--text); }
.t-models { min-width: 760px; }
.t-effect { min-width: 900px; }
.t-prec { min-width: 760px; }
.t-valid { min-width: 1000px; }
.t-data { min-width: 760px; }
.t-data td, .t-data th { white-space: nowrap; }
.c-strip { text-align: center; vertical-align: middle; }
.strip { display: inline-block; vertical-align: middle; }
.strip .axis { stroke: var(--line-strong); stroke-width: 1; }
.strip .chance { stroke: var(--muted); stroke-width: 1; }
.strip .ci { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.strip .pt { fill: var(--accent); }
.notes { margin-top: 14px; max-width: 900px; }
.notes li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.notes li + li { margin-top: 4px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 5px; height: 1px; background: var(--muted); }
.defs, .cfg { margin-top: 14px; max-width: 960px; }
.defs > div, .cfg > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.defs dt, .cfg dt { font-weight: 500; }
.defs dd, .cfg dd { color: var(--muted); overflow-wrap: anywhere; }

/* ---------- wrong corrections: three frames per case ---------- */
.case { margin-top: 36px; }
.case-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.case-h > span { font-size: 15px; color: var(--muted); }
.trip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trip figure { margin: 0; }
.trip img { width: 100%; aspect-ratio: 1 / 1; border-radius: 6px; background: var(--face); }
.trip figcaption { padding-top: 8px; font-size: 14px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.trip:focus-visible { outline-offset: 4px; }
.case-t { margin-top: 12px; max-width: 880px; font-size: 16px; }

/* ---------- downloads, change log, footer ---------- */
.files { margin-top: 20px; border-top: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.files a { font-weight: 500; overflow-wrap: anywhere; }
.files .f-d { font-size: 15px; color: var(--muted); }
.files .f-m { font-size: 14px; color: var(--muted); white-space: nowrap; }
.log { margin-top: 20px; border-top: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.log li span:last-child { color: var(--muted); }
.foot { background: var(--face); border-top: 1px solid var(--line); padding: 48px 0 64px; }
.foot-logo { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.foot p:not(.foot-logo) { max-width: 860px; font-size: 15px; color: var(--muted); }

/* ---------- narrower screens ---------- */
@media (max-width: 1099px) {
  :root { --wrap: calc(100% - 64px); }
  .ev-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}
@media (max-width: 719px) {
  :root { --wrap: calc(100% - 32px); --sec: 56px; }
  body { font-size: 16px; }
  .head { padding-top: 24px; }
  .head h1 { font-size: 26px; }
  .res-sub-in { gap: 20px; }
  .tip [role=tooltip] { max-width: 240px; }
  .cond { flex-direction: column; gap: 4px; }
  .sec h2 { font-size: 22px; }
  .tabs { gap: 18px; }
  .tab { font-size: 15px; }
  .tab-n { display: none; }
  .tools { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .seg { align-self: flex-start; }
  .tbl { font-size: 14px; }
  .defs > div, .cfg > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .trip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 6px; }
  .trip figure { scroll-snap-align: start; }
  .files li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 900px) {
  .t-bench .c-name, .t-prec .c-name, .t-valid .c-name, .t-data tbody th, .t-data thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); box-shadow: 1px 0 0 var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
