/* Page rules on top of the style kit. Colours only through the kit's variables. */
html { scroll-behavior: auto; }
main { max-width: 1120px; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: end; padding-top: 34px; }
.hero img { width: 100%; height: auto; display: block; }
.sub { color: var(--muted); max-width: 640px; margin-bottom: 18px; }
.kpi b { font-size: 44px; }
.kpi .micro { display: block; }
p.txt { max-width: 760px; margin: 0 0 12px; }
ol.find { max-width: 800px; margin: 8px 0 18px 0; padding-left: 0; list-style: none; counter-reset: f; }
ol.find li { counter-increment: f; padding: 12px 0 12px 44px; border-top: 1px solid var(--grid); position: relative; }
ol.find li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--muted); }
ol.find b.h { display: block; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.chipb { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border: 1px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; border-radius: calc(var(--r) * 1px); }
.chipb[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.chipb:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
/* One rule for the whole report (Mariss 2026-11-28): whatever can be pressed carries the accent colour, so the eye
   finds it. A choice not taken is an accent outline, the choice taken is filled; a sortable heading shows a small
   accent arrow pair; a fold-out section shows an accent plus or minus; a jump link is accent text. */
table.t th[data-sk] { cursor: pointer; }
table.t th[data-sk]:hover { color: var(--accent); }
table.t th[data-sk] .sa { color: var(--accent); }
table.t th[data-sk][aria-sort="none"] .sa::after { content: " ↕"; }
details.more > summary > span:first-child::before { content: "+"; display: inline-block; width: 1.1em; color: var(--accent); font-weight: 400; }
details.more[open] > summary > span:first-child::before { content: "−"; }
details.more > summary:hover > span:first-child { color: var(--accent); }
.chips .gap { width: 14px; }
/* two questions, two rows: which cars, and which results; each row carries its label (Mariss 2026-11-28) */
.chips .cgrp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex: 0 0 100%; }
.chips .cgrp + .cgrp { margin-top: 4px; }
.chips .clab { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex: 0 0 84px; }
@media (max-width: 560px) { .chips .clab { flex-basis: 100%; } }
svg.ch { display: block; width: 100%; overflow: visible; }
svg.ch text { font: 11px var(--mono); fill: var(--ink); }
svg.ch text.m { fill: var(--muted); }
svg.ch text.b { font-weight: 700; }
svg.ch .grid { stroke: var(--grid); stroke-width: 1; }
svg.ch .axis { stroke: var(--ink); stroke-width: 1; }
svg.ch .rng { stroke: var(--muted); stroke-width: 1; }
svg.ch .hit { fill: transparent; cursor: pointer; }
svg.ch .hit:hover { fill: var(--ink); fill-opacity: .06; }   /* the hover band lies over the line, so it must stay see-through (Mariss 2026-11-27: "the same color, impossible to read the line") */
.gen { display: grid; grid-template-columns: 300px 1fr; gap: 8px 28px; align-items: start; margin-bottom: 6px; }
.gen img { width: 100%; height: auto; display: block; }
.gen .facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.gen .facts div { padding: 10px 10px 10px 0; }
.gen .facts div + div { padding-left: 10px; border-left: 1px solid var(--grid); }
.gen .facts b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.gen .facts b.acc { color: var(--accent); }
.tw { overflow-x: auto; margin: 10px 0 6px; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: bottom; white-space: normal; max-width: 92px; }
table.t td { padding: 6px 8px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t th:first-child, table.t td:first-child, table.t th.l, table.t td.l { text-align: left; }
table.t tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
table.t tr.pick { cursor: pointer; }
table.t tr.pick:hover td { background: var(--grid); }
table.t td.nm { font-weight: 600; white-space: normal; min-width: 150px; }
table.t td .mu { color: var(--muted); }
.vd { font: 600 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.vd.f { color: var(--accent); }
.vd.q { color: var(--muted); font-weight: 500; }
.two > *, .three > *, .gen > *, .hero > * { min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; margin-top: 14px; }
.three { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
h3 { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 6px; }
ul.src { list-style: none; max-width: 800px; }
ul.src li { padding: 7px 0; border-top: 1px solid var(--grid); font-size: 13.5px; }
ul.src a, .note a, p.txt a, ol.num a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 2px; word-break: break-word; }
ol.num { max-width: 780px; margin: 6px 0 14px 22px; }
ol.num li { margin: 0 0 8px; }
details.more { border-top: 1px solid var(--line); padding: 4px 0; }
details.more > summary { cursor: pointer; padding: 12px 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .mu { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); align-self: center; text-align: right; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.toc a { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 9px; border: 1px solid var(--grid); color: var(--accent); text-decoration: none; }
.toc a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--on-ink); font: 12px/1.45 var(--sans); padding: 8px 10px; max-width: 280px; display: none; }
#tip b { font-weight: 700; }
#tip .mu { opacity: .7; }
[data-theme="dark"] .hero img, [data-theme="dark"] .gen img { filter: brightness(.92); }
[data-style="e"] .gen .facts, [data-style="e"] table.t th { border-color: var(--ink); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .gen { grid-template-columns: 1fr; }
  .gen img { max-width: 260px; }
  .gen .facts { grid-template-columns: repeat(2, 1fr); }
  .gen .facts div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .gen .facts div:nth-child(n+3) { border-top: 1px solid var(--grid); }
  .two, .three { grid-template-columns: 1fr; }
  .hide-s { display: none; }
  .kpi b { font-size: 34px !important; }
  table.t td.nm { min-width: 120px; }
}
@media print { .ctl, .chips, #tip { display: none !important; } details.more > * { display: block !important; } }

.vd.e { color: var(--ink); font-weight: 700; }   /* same direction in every test, not firm */

/* the prologue letter above section 01 */
.prologue{max-width:640px;font-size:17px;line-height:1.65;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:24px 0;margin:28px 0 0}.prologue p+p{margin-top:12px}.prologue .sign{color:var(--muted)}
/* the block under the region chart: what the region figures are not */
.caveat{max-width:760px;border:1px solid var(--ink);padding:14px 18px;margin:16px 0 18px;font-size:14px}.caveat .caveat-h{font:500 11px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;margin:0 0 6px}.caveat ul{margin:0 0 0 18px;padding:0}.caveat li+li{margin-top:4px}
