/* MotorLedger, Apple OS treatment: page content (solid content layer; glass appears only over the stage photo). */

/* ---------- Stage: the photograph, large, with glass floating over it ---------- */
/* one frame for every car photo (stage, cards, spotlight, duel), on every screen: 17:10 is where the 23 photos lose
   only background (tests/cropsheet.py); cars.js photoFit (PHOTO_AR) places each crop on its car, and shows the whole
   photo for the four that no frame can hold. Kept in step with PHOTO_AR in cars.js. */
:root { --stage-ar: 17 / 10; }
/* the stage starts under the nav island, never beneath it, and fits the window on arrival: no wider than 1,120px (the
   photos are 960px; beyond that they soften) and never taller than the screen minus the nav and caption */
/* a photo no shared frame can hold whole brings its own shape (--stage-ar and --ar-n inline, cars.js stageFit) */
.stage { position: relative; width: min(var(--wrap), calc(100vw - 2 * var(--gutter)), max(480px, calc((100svh - var(--nav-top) - var(--nav-h) - 92px) * var(--ar-n, 1.7)))); margin: calc(var(--nav-top) + var(--nav-h) + 16px) auto 0; }
.stage-frame { position: relative; overflow: hidden; border-radius: var(--r-stage); aspect-ratio: var(--stage-ar); background: var(--bg-3); isolation: isolate; }
.stage-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.stage-frame.settle img { animation: st-settle 1.4s var(--ease-spring-0) backwards; }
/* arriving by a page transition, the slide is the entrance: the photo does not settle on top of it */
.vt-in .stage-frame.settle img { animation: none; }
@keyframes st-settle { from { transform: scale(1.04); } }
.stage-none { display: grid; place-items: center; height: 100%; font: 800 clamp(96px, 18vw, 240px)/1 var(--font); letter-spacing: -0.06em; color: color-mix(in srgb, var(--ink) 9%, transparent); }
/* a long placeholder word ("Speedster", "Gullwing") shrinks to fit a phone's frame: a glyph here runs about 0.46 em wide */
.stage-none[style*="--len"] { font-size: min(clamp(96px, 18vw, 240px), calc((100vw - 48px) * 1.9 / var(--len))); }
.stage-chip { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; font: 600 13px/1 var(--font); letter-spacing: -0.003em; }
.stage-acts { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 10px; }
.stage-acts .ibtn { width: 44px; height: 44px; }
.stage-acts.on-photo .ibtn { color: #fff; }
.stage-cap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; padding-inline: 4px; font: var(--t-cap); color: var(--ink-2); }
.stage-cap a { color: var(--ink-2); }
@media (max-width: 720px) {
  .stage { width: calc(100vw - 16px); margin-top: calc(var(--nav-top) + var(--nav-h) + 10px); }
  .stage-chip { left: 12px; bottom: 12px; height: 32px; padding: 0 12px; font-size: 12px; }
  .stage-acts { right: 12px; bottom: 12px; gap: 8px; }
  .stage-cap { padding-inline: 8px; }
}

/* ---------- Identity block, left-aligned (Apple 2025) ---------- */
.idn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-top: 40px; }
.idn h1 { font: var(--t-display); letter-spacing: var(--tr-display); overflow-wrap: anywhere; }
.idn .note { margin-top: 12px; font: 400 21px/1.38 var(--font); letter-spacing: -0.016em; color: var(--ink-2); max-width: 46ch; }
.idn .side { display: grid; justify-items: end; gap: 14px; }
.idn .vline { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--font); color: var(--ink-2); }
.idn .vline b { color: var(--ink); }
.idn .acts { display: flex; gap: 10px; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 14px 16px 4px 0; }
.facts dt { font: var(--t-foot); color: var(--ink-2); }
.facts dd { margin-top: 4px; font: 600 16px/1.35 var(--font); letter-spacing: -0.01em; }
/* previous and next by rank: the neighbours by name and score either side, the position between them */
.nbr { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 16px; margin-top: -8px; }
.nbr > .nb-p { justify-self: start; } .nbr > .nb-n { justify-self: end; }
.nb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink); font: 600 15px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none;
  transition: transform var(--d-press-out) var(--ease-spring-15), background-color 200ms ease-out; }
.nb-p { padding-left: 10px; } .nb-n { padding-right: 10px; margin-left: auto; }
.nb svg { width: 17px; height: 17px; flex: none; color: var(--ink-2); }
.nb-v { font-weight: 500; color: var(--ink-2); }
.nb-s { display: none; }
a.nb:active { transform: scale(.97); transition-duration: var(--d-press-in), 0ms; }
@media (hover: hover) and (pointer: fine) { a.nb:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); } }
.nb-end { background: none; padding: 0; color: var(--ink-3); font: 500 14px/1.3 var(--font); }
.nb-pos { font: 500 14px/1.3 var(--font); color: var(--ink-2); text-align: center; }
.nb-pos b { color: var(--ink); font-weight: 600; }
/* narrower: the position takes its own line and the two neighbours share the row under it */
@media (max-width: 1100px) {
  .nbr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; }
  .nb-pos { order: -1; flex-basis: 100%; text-align: left; }
}
@media (max-width: 720px) {
  .nbr { margin-top: 0; }
  .nb-l { display: none; } .nb-s { display: inline; }
  .nb-end { display: none; }
}
/* two short names side by side need the room their scores took (the position line above keeps the rank) */
@media (max-width: 440px) { .nb-v { display: none; } .nb { gap: 6px; padding: 0 14px; } .nb-p { padding-left: 8px; } .nb-n { padding-right: 8px; } }
@media (max-width: 900px) {
  .idn { grid-template-columns: 1fr; margin-top: 28px; align-items: start; }
  .idn .side { justify-items: start; }
  .idn .acts { width: 100%; } .idn .acts .btn { flex: 1 1 auto; min-width: 0; }
  .idn .note { font-size: 18px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bento of solid tiles ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-tile); background: var(--bg-2); min-width: 0; }
.c-7 { grid-column: span 7; } .c-6 { grid-column: span 6; } .c-5 { grid-column: span 5; } .c-4 { grid-column: span 4; } .c-12 { grid-column: span 12; }
@media (max-width: 1080px) { .c-7, .c-5, .c-4 { grid-column: span 6; } }
@media (max-width: 720px) { .bento { margin-top: 32px; } .c-7, .c-6, .c-5, .c-4 { grid-column: span 12; } .tile { padding: 20px; } }
.t-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.t-label { font: 600 13px/1.3 var(--font); color: var(--ink-2); white-space: nowrap; }
/* small print under a figure or a section (moved from home.css so every page has it) */
.fine { margin-top: 12px; font: 400 13px/1.45 var(--font); color: var(--ink-2); }

/* range sliders: an Apple track with a filled left side and a lifted thumb (moved from home.css: the method page has them too) */
#main input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
#main input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink) var(--p), var(--bg-3) var(--p)); }
#main input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--bg-3); }
#main input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
#main input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 3px 10px rgb(0 0 0 / .2); transition: transform var(--d-press-out) var(--ease-spring-15); }
#main input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 3px 10px rgb(0 0 0 / .2); }
#main input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); transition-duration: var(--d-press-in); }
#main input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.t-open { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 0; border: 0; background: none; color: var(--accent); font: 500 13px/1.3 var(--font); white-space: nowrap; text-decoration: none; }
.t-open svg { width: 12px; height: 12px; transition: transform var(--d-hover) var(--ease-spring-0); }
/* a finger's worth of room (about 44 px) around the small text actions on touch screens, without moving them; the touch
   audit (2026-10-25) measured them 17 to 22 px tall. A door button already stretches over its whole tile */
@media (pointer: coarse) {
  .t-open:not(.door-btn), .tl-nm, .rk-nm, .rcpt { position: relative; }
  .t-open:not(.door-btn)::after, .tl-nm::after, .rk-nm::after { content: ''; position: absolute; inset: -14px -8px; }
  .rcpt::after { content: ''; position: absolute; inset: -8px -12px; }
}
.door-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.tile .keep, .tile a:not(.door-btn), .tile button:not(.door-btn) { position: relative; z-index: 2; }
.tile.opens { transition: transform var(--d-press-out) var(--ease-spring-15); }
.tile.opens:active { transform: scale(.985); transition-duration: var(--d-press-in); transition-timing-function: var(--ease-spring-0); }
@media (hover: hover) and (pointer: fine) { .tile.opens:hover .t-open svg { transform: translate(2px, -2px); } }
.tile:has(.door-btn:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.door-btn:focus-visible { outline: none; }
.sub { font: var(--t-callout); color: var(--ink-2); }

/* the verdict tile: the one dark tile (Apple Stocks' widget register) */
.tile.vt { background: var(--vt); color: var(--vt-ink); }
.tile.vt .t-label { color: var(--vt-ink-2); }
.tile.vt .t-open { color: var(--vt-ink); }
.vword { font: 800 88px/0.92 var(--font); letter-spacing: -0.05em; color: var(--vt-pos); margin-top: 6px; }
.vword.n { color: var(--vt-ink); }
.etrs { display: flex; align-items: baseline; gap: 8px; font: 700 26px/1 var(--font); letter-spacing: -0.02em; }
.etrs small { font: 500 14px/1 var(--font); color: var(--vt-ink-2); letter-spacing: 0; }
.scale { position: relative; margin-top: 10px; container-type: inline-size; }
.sc-track { display: flex; gap: 3px; height: 6px; }
.sc-seg { border-radius: 3px; background: var(--vt-line); }
.sc-seg.on { background: var(--vt-pos); }
.tile.vt.n .sc-seg.on { background: var(--vt-ink); }
.sc-mark { position: absolute; top: -6px; left: calc(var(--p) * 1%); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .4), 0 0 0 4px rgb(0 0 0 / .25); }
.scale.play .sc-mark { animation: from-zero 900ms var(--ease-spring-0) backwards; }
@keyframes from-zero { from { transform: translateX(calc(var(--p) * -1cqw)); } }
.sc-labs { display: flex; gap: 3px; margin-top: 14px; font: 500 11px/1 var(--font); color: var(--vt-ink-2); }
.sc-labs span { overflow: hidden; white-space: nowrap; }
/* narrow: only the anchor (Avoid) and this car's band keep their labels, in place; the band's own may run past its segment */
@container (max-width: 420px) { .sc-labs span:not(.on):not(:first-child) { visibility: hidden; } .sc-labs span.on { overflow: visible; } }
.sc-labs span.on { color: var(--vt-ink); font-weight: 700; }
/* the other score styles (marks.js; the visitor picks one on formats.html): Plain is the word and the figure alone */
.dial { margin-top: 14px; width: 100%; max-width: 260px; text-align: center; }
.dl-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dl-seg { fill: none; stroke: var(--vt-line); stroke-width: 12; }
.dl-seg.on { stroke: var(--vt-pos); }
.tile.vt.n .dl-seg.on { stroke: var(--vt-ink); }
.dl-needle { stroke: var(--vt-ink); stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: 120px 120px; }
.dl-hub { fill: var(--vt-ink); }
/* the needle sweeps up from 0 once, the first time the dial is in view (rotation only) */
.dial.play .dl-needle { animation: dl-sweep 900ms var(--ease-spring-0) backwards; }
@keyframes dl-sweep { from { transform: rotate(calc(var(--s) * -1.8deg)); } }
.dl-ends { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 4px; font: 500 11px/1 var(--font); color: var(--vt-ink-2); }
.dial .etrs { justify-content: center; margin-top: 4px; }
.dl-band { margin-top: 8px; font: 500 13px/1.3 var(--font); color: var(--vt-ink-2); }
/* the stamp: a double hairline, the tile's own ground between the rules */
.stamp { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 6px; max-width: 340px; margin-top: 12px; padding: 18px 20px 16px; border-radius: 12px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--vt-line), inset 0 0 0 5px var(--vt), inset 0 0 0 6px var(--vt-line); }
.stamp .vword { max-width: 100%; margin-top: 4px; font-size: 64px; }
.st-k { font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--vt-ink-2); white-space: nowrap; }
.stamp .etrs { justify-content: center; }
.st-b { font: 500 13px/1.3 var(--font); color: var(--vt-ink-2); }
.stamp.play { animation: st-press 420ms var(--ease-spring-0) backwards; }
@keyframes st-press { from { opacity: 0; transform: scale(1.04); } }
.tile.vt .ledger > div { border-top-color: var(--vt-line); }
.tile.vt .ledger dt { color: var(--vt-ink-2); } .tile.vt .ledger dd { color: var(--vt-ink); } .tile.vt .ledger dd small { color: var(--vt-ink-2); }
.vt-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; font: 500 13px/1.3 var(--font); color: var(--vt-ink-2); }
.cov { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.cov-bar { display: inline-flex; gap: 4px; }
.cov-bar i { width: 16px; height: 5px; border-radius: 3px; background: var(--vt-line); }
.cov-bar i.on { background: var(--vt-ink); }
.cov > span:last-child { color: var(--vt-ink); white-space: nowrap; }

/* fair value as a ledger: label | value rows with the source in the label (Polestar block, b3) */
.big { font: var(--t-num); letter-spacing: var(--tr-num); font-variant-numeric: tabular-nums; margin-top: 4px; }
.big.thin { font: 700 32px/1.1 var(--font); letter-spacing: -0.025em; }
.ledger { display: grid; margin-top: 4px; }
.ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 11px 0; border-top: 1px solid var(--line); }
.ledger dt { font: 400 14px/1.35 var(--font); color: var(--ink-2); }
.ledger dd { margin-left: auto; font: 600 15px/1.35 var(--font); letter-spacing: -0.008em; font-variant-numeric: tabular-nums; text-align: right; }
.ledger dd small { display: block; font: 400 12px/1.35 var(--font); color: var(--ink-2); letter-spacing: 0; }
.track svg, .slope svg, .mini svg { width: 100%; display: block; overflow: visible; }
.tr-base { stroke: var(--line-2); stroke-width: 1; } .tr-range { stroke: var(--ink); stroke-linecap: round; }
.tr-tick { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.tr-txt { font-size: 11.5px; fill: var(--ink-2); } .tr-txt.k { fill: var(--ink); font-weight: 650; }

/* mini chart, slope, weight bar */
.mini-band { fill: var(--chart-band); } .mini-axis { stroke: var(--line-2); }
.mini-txt { font-size: 11px; fill: var(--ink-2); }
.mini-dot { fill: var(--ink); } .mini-dot.old { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.chg { font: 700 40px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sl-line { stroke: var(--ink); stroke-width: 1.5; } .sl-dot { fill: var(--ink); } .sl-dot.a { fill: var(--bg-2); stroke: var(--ink); stroke-width: 1.5; }
.sl-txt { font-size: 11.5px; fill: var(--ink-2); } .sl-txt.k { fill: var(--ink); font-weight: 650; font-size: 12.5px; }
.wbar { display: flex; gap: 3px; height: 34px; }
.wbar .seg { position: relative; flex: var(--w) 1 0; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.wbar .seg i { position: absolute; inset: auto 0 0 0; height: calc(var(--s) * 10%); background: var(--ink); transform-origin: bottom; }
.wbar.play i { animation: grow-y 700ms var(--ease-spring-0) backwards; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes grow-y { from { transform: scaleY(0); } }
.wbar .seg.na { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px); }
.wbar .seg.pc { box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.wkey { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 13px/1.3 var(--font); color: var(--ink-2); }
.wkey b { color: var(--ink); font-weight: 650; }
.rows { display: grid; }
.rows > div, .rows > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 400 15px/1.3 var(--font); }
.rows > :first-child { border-top: 0; }
.rows .k { color: var(--ink-2); } .rows .v { font-weight: 600; text-align: right; } .rows .v.e { font-weight: 400; color: var(--ink-2); }
.rows a b { font-weight: 600; }
.rows a .v { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--font); color: var(--ink-2); }
.rows a .v svg { width: 12px; height: 12px; transition: transform var(--d-hover) var(--ease-spring-0); }
@media (hover: hover) and (pointer: fine) { .rows a:hover .v svg { transform: translate(2px, -2px); } }
.thin-note { font: var(--t-callout); color: var(--ink); } .thin-note.muted { color: var(--ink-2); }

/* ---------- Figures at a glance ---------- */
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 72px; }
.glance > div { padding: 4px 24px 4px 0; }
.glance > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.glance b { display: block; font: 700 44px/1 var(--font); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.glance span { display: block; margin-top: 10px; font: var(--t-callout); color: var(--ink-2); }
/* a tablet keeps four columns about 170 px wide: at 44 px "+28.2%" crossed the next column's hairline (768, 2026-10-26) */
@media (max-width: 900px) and (min-width: 721px) { .glance b { font-size: 32px; } }
@media (max-width: 720px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; row-gap: 28px; }
  .glance > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .glance b { font-size: 36px; }
}
/* a button that needs a shorter label on small phones carries both, whole; never part of a word in its own span (a flex
   gap would split the word) */
.lbl-s { display: none; }
@media (max-width: 360px) { .glance b { font-size: 30px; } .idn .lbl-l { display: none; } .idn .lbl-s { display: inline; } }

/* ---------- Sections ---------- */
.sec { margin-top: 112px; }
.sec-h { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.sec-h h2 { font: var(--t-title); letter-spacing: var(--tr-title); }
.sec-h p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; font: var(--t-callout); font-size: 17px; line-height: 1.47; }
@media (max-width: 720px) { .sec { margin-top: 80px; } }
/* sections out of view are skipped: no style, layout or paint until they come near the viewport, so a tap that changes
   one section no longer repaints the long page around it. Measured on home at 4x CPU (tests/abprobe.js, A B A B):
   paint during score build, proof and best buys fell from about 1400, 1100 and 140 ms to 700, 360 and 50 ms. `auto`
   keeps each section's real height once it has been shown. Full-page captures render everything. */
#main > section.sec { content-visibility: auto; contain-intrinsic-size: auto 900px; overflow-clip-margin: 24px; }
.capture #main > section.sec { content-visibility: visible; }

/* ---------- The sales figure ---------- */
.fig { padding: 24px; border-radius: var(--r-tile); background: var(--bg-2); min-width: 0; }
@media (max-width: 720px) { .fig { padding: 18px 14px; } }
.fig-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.ro-v { font: 700 34px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ro-s { margin-top: 8px; font: 400 14px/1.4 var(--font); color: var(--ink-2); max-width: 60ch; min-height: 2.8em; }
/* a live reading keeps the height of its longest words: unseen, silent copies of the resting line and the longest reading
   sit in the same cell, so reading a sale or a car never moves the chart under the finger reading it, at any width. Real
   elements, not ::before text: at 320 Chrome wrapped the same words in attr() content one line shorter than in a span */
.hold { display: grid; }
.hold > * { grid-area: 1 / 1; min-width: 0; }
.hold-g { visibility: hidden; }
.hold-g .b { font-weight: 600; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-3); flex: none; }
/* the thumb takes its option's width (--sx is that width / 100, set by each page) rather than a 100 px pill squeezed by
   scaleX: the squeeze turned its ends into ovals and made the ring's sides 0.5 to 1.4 px against 1 px top and bottom */
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: calc(var(--sx, 1) * 100px); border-radius: 999px; background: var(--elev); box-shadow: 0 0 0 1px var(--seg-ring), 0 1px 2px rgb(0 0 0 / .08), 0 3px 10px rgb(0 0 0 / .07);
  transform: translateX(var(--x, 3px)); }
.seg.ready .thumb { transition: transform var(--d-menu-open) var(--ease-spring-15), width var(--d-menu-open) var(--ease-spring-15); }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 13px/1 var(--font); white-space: nowrap; transition: color 200ms ease-out; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"], .seg button[aria-checked="true"] { color: var(--ink); }
/* a row too wide for its room folds into two columns (home-kit seg sets .wrap); the chosen option carries the thumb's look */
.seg.wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; width: 100%; border-radius: 19px; }
.seg.wrap .thumb { display: none; }
.seg.wrap button { padding: 0 10px; border-radius: 16px; }
/* --seg-ring as on the thumb: in dark the raised fill matches a --bg-3 track, so the fill alone showed the choice only as brighter text */
.seg.wrap button[aria-selected="true"], .seg.wrap button[aria-pressed="true"] { background: var(--elev); box-shadow: 0 0 0 1px var(--seg-ring), 0 1px 2px rgb(0 0 0 / .08), 0 3px 10px rgb(0 0 0 / .07); }
.chart svg { width: 100%; display: block; overflow: visible; outline: none; touch-action: pan-y; }
.chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.c-grid { stroke: var(--line); } .c-tick { font-size: 12px; fill: var(--ink-2); }
.c-band { fill: var(--chart-band); } .c-band-t { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); }
.c-med { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.c-curve { fill: none; stroke: var(--accent); stroke-width: 2; } .c-ref { stroke: var(--line-2); stroke-dasharray: 3 4; }
.c-anchor { fill: var(--accent); stroke: var(--bg-2); stroke-width: 2; } .c-med-t { font-size: 12px; font-weight: 650; fill: var(--ink); }
.c-dot { transition: transform var(--d-morph) var(--ease-spring-0); }
.c-dot circle { fill: var(--ink); stroke: var(--bg-2); stroke-width: 1.5; transition: r 200ms ease-out; }
.c-dot.old circle { fill: var(--bg-2); stroke: var(--ink-3); stroke-width: 1.3; }
.c-dot.sel circle { fill: var(--accent); stroke: var(--bg-2); stroke-width: 3; r: 7; }
.c-cursor { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; } .c-cursor.on { opacity: 1; }
.g-date, .g-mile { transition: opacity 260ms ease-out; }
.excl { margin-top: 14px; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
.fig-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font: 400 12.5px/1.4 var(--font); color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); } .lg i.o { background: none; box-shadow: inset 0 0 0 1.3px var(--ink-3); } .lg i.l { width: 14px; height: 2px; border-radius: 1px; }
.tbl-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--elev); }
.tbl { width: 100%; border-collapse: collapse; font: 400 14px/1.35 var(--font); font-variant-numeric: tabular-nums; }
.tbl th { padding: 12px 14px; text-align: left; font: 600 12px/1.2 var(--font); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); }
.tbl tr:first-child td { border-top: 0; }
.tbl .r { text-align: right; } .tbl .p { font-weight: 650; }
.tbl .sub2 { display: none; } .tbl .nw { white-space: nowrap; }
.src { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; font-weight: 500; white-space: nowrap; }
.src svg { width: 11px; height: 11px; }
/* two columns by the table's own width, not the window's: the sales sheet is 560 px wide on any desk, and five columns
   there cut the sale (the full list's "PCARMARKET" holds the table at about 480 px; found by the click sweep, 2026-10-26) */
.tbl-wrap { container-type: inline-size; }
@container (max-width: 560px) { .tbl .hide-s { display: none; } .tbl .sub2 { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--ink-2); } .tbl .sub2 .src { font-size: 12.5px; } .tbl th, .tbl td { padding: 11px 10px; } }

/* the score build table inside a doorway */
.dtable { width: 100%; border-collapse: collapse; font: 400 14px/1.4 var(--font); font-variant-numeric: tabular-nums; }
.dtable th { text-align: left; font: 600 12px/1.2 var(--font); color: var(--ink-2); padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.dtable td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable .r { text-align: right; white-space: nowrap; } .dtable .w { color: var(--ink-2); } .dtable .g { font-size: 12.5px; color: var(--ink-2); }
.dtable .w-inl { display: none; }
@media (max-width: 480px) { .dtable .hide-n { display: none; } .dtable .w-inl { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); } }
.eq { margin-top: 14px; font: 400 13px/1.5 var(--font); color: var(--ink-2); }

/* ---------- Score this specific car ---------- */
.yc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
@media (max-width: 900px) { .yc { grid-template-columns: 1fr; } }
.lab { font: 600 13px/1 var(--font); color: var(--ink-2); margin-bottom: 10px; display: block; }
.cond { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .cond { grid-template-columns: 1fr 1fr; } }
.cond button { display: grid; gap: 12px; min-height: 76px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--elev); color: var(--ink); text-align: left; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform var(--d-press-out) var(--ease-spring-15), box-shadow 200ms ease-out; }
.cond button:active { transform: scale(.97); transition-duration: var(--d-press-in); }
.cond button b { font: 600 15px/1.2 var(--font); } .cond button span { font: 500 12px/1 var(--font); color: var(--ink-2); }
.cond button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font: 600 13px/1 var(--font); color: var(--ink-2); margin-bottom: 8px; }
.field input { width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-field); background: var(--elev); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 17px/1 var(--font); font-variant-numeric: tabular-nums; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #C4302B; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp .k { font: 600 13px/1 var(--font); color: var(--ink-2); }
.odo { display: inline-flex; height: 1em; overflow: hidden; margin-top: 10px; font: 700 56px/1 var(--font); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.odo > span { display: block; }
.odo .col { display: flex; flex-direction: column; transition: transform var(--d-number) var(--ease-spring-0); }
.odo .col > span { height: 1em; line-height: 1; }
.rated { margin-top: 16px; display: grid; }
.rated div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); font: 400 14px/1.35 var(--font); }
.rated span:first-child { white-space: nowrap; }
.rated span:last-child { margin-left: auto; color: var(--ink-2); text-align: right; }

/* ---------- Scenarios ---------- */
.scen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.scen > div { padding: 22px 24px; border-radius: var(--r-tile); background: var(--bg-2); }
.scen .k { font: 600 13px/1.3 var(--font); color: var(--ink-2); }
.scen .v { margin-top: 10px; font: 700 32px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.scen .r { margin-top: 8px; font: 400 13px/1.3 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.nfa { margin-top: 12px; font: 400 13px/1.4 var(--font); color: var(--ink-2); }
@media (max-width: 720px) { .scen { grid-template-columns: 1fr; } }

/* ---------- Car cards (related, catalog, home) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.ccard { display: block; color: var(--ink); text-decoration: none; min-width: 0; }
.ccard .ph { position: relative; overflow: hidden; container-type: inline-size; border-radius: 22px; aspect-ratio: var(--stage-ar); background: var(--bg-2);
  transition: transform var(--d-press-out) var(--ease-spring-15); }
.ccard .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ccard .ph .none { display: grid; place-items: center; height: 100%; font: 800 min(64px, 19cqi)/1 var(--font);   /* sized to its card: "Speedster" at 64 px overran a 278 px card on a 320 px phone */ letter-spacing: -0.05em; color: color-mix(in srgb, var(--ink) 10%, transparent); }
.ccard .ph .nophoto { position: absolute; left: 14px; bottom: 12px; font: 500 12px/1 var(--font); color: var(--ink-2); }
.ccard:active .ph { transform: scale(.98); transition-duration: var(--d-press-in); transition-timing-function: var(--ease-spring-0); }
.ccard .nm { display: block; margin-top: 14px; font: 600 17px/1.3 var(--font); letter-spacing: -0.012em; }
.ccard .mt { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font: 400 14px/1.35 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ccard .mt > span:first-child { min-width: 0; }
@media (hover: hover) and (pointer: fine) { .ccard:hover .nm { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
/* card styles (formats.js). Spec sheet: no photo, the facts in ruled lines on a tile. Poster: the verdict and score on
   the photo in a solid dim (no blur, so a grid of posters stays inside the glass budget), the name larger below */
.ccard.spec { display: grid; align-content: start; gap: 10px; padding: 20px 20px 14px; border-radius: 22px; background: var(--bg-2); }
.ccard.spec .nm { margin-top: 0; }
.sp-v { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.sp-rows { display: grid; margin-top: 2px; }
.sp-r { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font: 400 14px/1.35 var(--font); }
.sp-k { color: var(--ink-2); white-space: nowrap; }
.sp-d { min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ccard.poster .pchip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px;
  background: rgb(14 15 18 / .72); color: #FFFFFF; box-shadow: 0 0 0 1px rgb(255 255 255 / .16), inset 0 1px 0 rgb(255 255 255 / .22); font: 700 15px/1 var(--font); font-variant-numeric: tabular-nums; }
.ccard.poster .nm { margin-top: 12px; font: 650 21px/1.2 var(--font); letter-spacing: -0.018em; }
.ccard.poster .mt { margin-top: 4px; }

/* ---------- Footer ---------- */
.foot { margin-top: 128px; background: var(--bg-2); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 48px; padding-bottom: 40px; }
.foot .brand { font-size: 19px; } .foot .brand img { width: 30px; height: 30px; }
.foot p { margin-top: 12px; max-width: 38ch; font: 400 13px/1.5 var(--font); color: var(--ink-2); }
.foot h4 { font: 600 12px/1.2 var(--font); color: var(--ink); margin-bottom: 12px; }
.foot nav a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; font: 400 13px/1.3 var(--font); }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { color: var(--ink); text-decoration: underline; } }
.foot-base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 12px/1.4 var(--font); color: var(--ink-2); }
@media (max-width: 900px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .foot { margin-top: 96px; } }

/* ---------- Analyze doorway ---------- */
.fields.one { grid-template-columns: 1fr 1fr; }
.verdict-line { font: 700 26px/1.15 var(--font); letter-spacing: -0.02em; margin-top: 18px; }
.mtrack svg { width: 100%; display: block; overflow: visible; }
.mt-base { stroke: var(--line-2); } .mt-band { fill: var(--chart-band); stroke: var(--accent); stroke-dasharray: 3 3; stroke-width: 1; }
.mt-fair { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; } .mt-ask { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.mt-t { font-size: 12px; fill: var(--ink-2); } .mt-t.k { fill: var(--ink); font-weight: 650; }

/* ---------- Doorway content kit ---------- */
.mlist { display: grid; margin-top: 4px; }
.mlist a, .mlist button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; text-decoration: none; font: 500 17px/1.2 var(--font); }
.mlist svg { width: 16px; height: 16px; color: var(--ink-3); }
.mlist .sub { font-size: 14px; }
.wl-row { padding: 18px; border-radius: 20px; background: var(--bg-2); }
.wl-row .nm { font: 600 17px/1.3 var(--font); display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.wl-row .nm small { font: 400 13px/1 var(--font); color: var(--ink-2); }
.wl-note { margin-top: 10px; font: 400 14px/1.45 var(--font); color: var(--ink-2); }
.form-err { margin-top: 8px; font: 500 13px/1.4 var(--font); color: #C4302B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-err { color: #FF8A80; } }
:root[data-theme="dark"] .form-err { color: #FF8A80; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font: 500 12px/1 var(--font); color: var(--ink-2); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 20px; font: 400 15px/1.45 var(--font); }
.bubble.q { justify-self: end; background: var(--accent-fill); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.a { justify-self: start; margin-top: 8px; background: var(--bg-2); border-bottom-left-radius: 6px; }
.bubble.withheld { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); background: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bg-2); color: var(--ink); text-decoration: none; font: 500 13px/1 var(--font); box-shadow: inset 0 0 0 1px var(--line); }
.ask-form { display: flex; gap: 8px; margin-top: 18px; }
.ask-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ask-form input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv3 > div { padding: 14px 12px 12px 0; } .kv3 > div + div { padding-left: 12px; border-left: 1px solid var(--line); }
.kv3 b { display: block; font: 700 24px/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kv3 span { display: block; margin-top: 6px; font: 400 12.5px/1.3 var(--font); color: var(--ink-2); }
@media (max-width: 480px) { .kv3 { grid-template-columns: 1fr 1fr; } .kv3 > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ---------- Home ---------- */
.home-title { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
.home-title h1 { font: var(--t-display); letter-spacing: var(--tr-display); max-width: 15ch; }
.home-title p { color: var(--ink-2); font: 400 19px/1.45 var(--font); max-width: 40ch; }
@media (max-width: 900px) { .home-title { grid-template-columns: 1fr; margin-top: 28px; } .home-title p { font-size: 17px; } }
.hsearch { position: absolute; right: 20px; bottom: 20px; width: min(560px, calc(100% - 40px)); height: 60px; border-radius: 999px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 22px; border: 0; text-align: left; font: 400 17px/1 var(--font); letter-spacing: -0.012em; color: #fff; }
.hsearch svg { width: 20px; height: 20px; flex: none; }
.hsearch { transition: transform var(--d-press-out) var(--ease-spring-15); cursor: pointer; }
.stage .hsearch:active { transform: scale(.98); transition-duration: var(--d-press-in); transition-timing-function: var(--ease-spring-0); }
.hsearch span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(255 255 255 / .86); }
.hsearch .go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0A0B0D; flex: none; }
.hsearch .go svg { width: 18px; height: 18px; }
/* the featured chip shows only where both fit side by side; without it the search centres */
@media (max-width: 1100px) { .stage .hide-s { display: none; } .hsearch { right: auto; left: 50%; translate: -50% 0; } }
@media (max-width: 520px) { .hsearch .more { display: none; } }
@media (max-width: 720px) { .hsearch { bottom: 12px; height: 52px; padding-left: 16px; width: calc(100% - 24px); font-size: 15px; } .hsearch .go { width: 38px; height: 38px; } }
.dist { margin-top: 18px; }
.dist-bar { display: flex; gap: 3px; height: 14px; }
.dist-bar span { border-radius: 4px; background: var(--neu-bg); }
.dist-bar span.g { background: var(--pos); opacity: .9; } .dist-bar span.g + span.g { opacity: .55; }
.dist-key { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.dist-key a { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); color: var(--ink); text-decoration: none; transition: transform var(--d-press-out) var(--ease-spring-15); }
.dist-key a:active { transform: scale(.97); transition-duration: var(--d-press-in); }
.dist-key b { font: 700 24px/1 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dist-key span { font: 600 12px/1 var(--font); color: var(--ink-2); }
@media (max-width: 720px) { .dist-key { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 2 * var(--gap)) / 3)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 720px) { .rail { grid-auto-columns: 82%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
.coll { display: grid; align-content: space-between; gap: 18px; min-height: 220px; padding: 22px; border-radius: var(--r-tile); background: var(--bg-2); color: var(--ink); text-decoration: none; }
.coll h3 { font: var(--t-title3); letter-spacing: var(--tr-title3); }
.coll p { font: var(--t-callout); color: var(--ink-2); margin-top: 8px; }
.coll .kv { display: flex; gap: 22px; font: 400 13px/1.3 var(--font); color: var(--ink-2); }
.coll .kv b { display: block; font: 700 22px/1 var(--font); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel-tile { padding: 28px; border-radius: var(--r-tile); background: var(--bg-2); display: grid; gap: 14px; align-content: start; }
.panel-tile h3 { font: var(--t-title3); letter-spacing: var(--tr-title3); }
.panel-tile p { color: var(--ink-2); font: var(--t-callout); font-size: 16px; line-height: 1.5; }
.panel-tile .kv3 { margin-top: 4px; }

/* ---------- Catalog ---------- */
.cat-head { margin-top: calc(var(--nav-top) + var(--nav-h) + 40px); }
.cat-head h1 { font: var(--t-large); letter-spacing: var(--tr-large); }
.cat-head p { margin-top: 8px; color: var(--ink-2); font: var(--t-callout); font-size: 17px; }
.tools { position: sticky; z-index: 40; top: calc(var(--nav-top) + var(--nav-h) + 10px); margin-top: 24px; border-radius: 22px; padding: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tools .seg { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tools .seg button { padding: 0 12px; }
.tools .seg button small { margin-left: 6px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tools .seg button[aria-selected="true"] small { color: var(--ink-2); }
.tools .spacer { flex: 1; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); font: 500 14px/1 var(--font); white-space: nowrap;
  transition: transform var(--d-press-out) var(--ease-spring-15), background-color 200ms ease-out; }
.tbtn:active { transform: scale(.96); transition-duration: var(--d-press-in), 0ms; }
.tbtn svg { width: 14px; height: 14px; }
.tbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tbtn .val { color: var(--ink-2); } .tbtn[aria-pressed="true"] .val { color: inherit; opacity: .75; }
@media (hover: hover) and (pointer: fine) { .tbtn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); } .tbtn[aria-pressed="true"]:hover { background: var(--ink); } }
/* the search takes what the chips leave, 150 to 220 px, so a sixth chip never wraps the bar on a desk */
.tsearch { display: flex; align-items: center; gap: 8px; height: 38px; flex: 1 1 150px; max-width: 220px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.tsearch svg { width: 16px; height: 16px; color: var(--ink-2); flex: none; }
.tsearch input { flex: 1; min-width: 0; width: 0; border: 0; background: transparent; outline: none; font: 400 15px/1 var(--font); font-size: max(16px, 15px); }
.seg button svg { display: block; width: 16px; height: 16px; }
.tools .only-s, .tools .only-m { display: none; }
/* with six facets (Risk added) the catalog's desk bar fits by 16 px: a 6 px gap, 12 px chip sides and a search from
   124 px ("Search"); without them Risk and Manual only folded into Filters on every desk (the bar is 1104 px wide at any
   width). The catalog's bar only: Deal Hunter's keeps its own spacing */
@media (min-width: 1181px) { #tools { column-gap: 6px; } #tools > .tbtn { padding-inline: 12px; } #tools > .tsearch { flex-basis: 124px; } }
/* the filter chips fold into one Filters button before the bar would wrap */
@media (max-width: 1180px) { .tools .hide-m { display: none; } .tools .only-m { display: inline-flex; } }
.tools.fold .only-m { display: inline-flex; } .tools .gone { display: none; }
@media (max-width: 900px) {
  .tools { top: calc(var(--nav-top) + var(--nav-h) + 8px); padding: 6px; }
  .tools .hide-s, .cat-tools .hide-s { display: none; }
  .tools .only-s { display: inline-flex; }
  .tsearch { flex: 1; width: auto; min-width: 0; max-width: none; }
}
/* the price menu: a line naming what the buckets measure, and a count beside each, as on the verdict segments */
.menu .mh { margin: 0; padding: 8px 12px 6px; font: 600 12px/1.3 var(--font); color: var(--ink-2); }
.menu .mi-n { margin-left: 8px; font-weight: 500; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cat-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 4px 18px; font: 500 14px/1.3 var(--font); color: var(--ink-2); }
.cat-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.cat-grid { position: relative; }
.empty { padding: 48px 24px; border-radius: var(--r-tile); background: var(--bg-2); text-align: center; }
.empty h3 { font: var(--t-title3); }
.empty p { margin-top: 8px; color: var(--ink-2); font: var(--t-callout); }
.empty .btn { margin-top: 16px; }
.clist { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.crow { display: grid; grid-template-columns: 72px minmax(0, 2fr) 110px 120px minmax(0, 1.2fr) 90px; align-items: center; gap: 16px; padding: 10px 16px 10px 10px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 400 14px/1.3 var(--font); font-variant-numeric: tabular-nums; }
.crow:first-child { border-top: 0; }
.crow .th { width: 72px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.crow .th img { width: 100%; height: 100%; object-fit: cover; }
.crow b { font-weight: 600; font-size: 15px; display: block; } .crow small { color: var(--ink-2); font-size: 13px; }
.crow .r { text-align: right; }
.cat-nw { white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .crow:hover { background: var(--bg-2); } }
@media (max-width: 720px) { .crow { grid-template-columns: 64px minmax(0, 1fr) auto; } .crow .hide-s { display: none; } .crow .th { width: 64px; height: 44px; } }
/* paging: the count and a hairline of how far down the list you are, then the next twelve */
.cat-more { display: grid; justify-items: center; gap: 14px; margin-top: 40px; }
.cat-more .btn svg { width: 15px; height: 15px; margin-right: -4px; }
.cm-st { display: flex; align-items: center; gap: 12px; font: 500 14px/1.3 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cm-bar { position: relative; width: 88px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cm-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: left center; transform: scaleX(var(--p, 0)); transition: transform var(--d-panel) var(--ease-spring-0); }
/* previous and next for a chart read one item at a time (shell.js stepHTML): the Scatter, the sales chart, the proof's spread */
.stp { display: inline-flex; gap: 6px; flex: none; }
/* the sales chart's scrub bar (2026-10-26, after Ali found 143 sales too many to walk one press at a time in a narrow
   window): under the chart, previous and next at its ends, every sale an equal share of the track (so the crowded last
   24 months get room), that stretch tinted like the chart's band in the date view. The site's slider thumb, hollow while
   no sale is read */
.scrub { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.scrub-t { position: relative; flex: 1; min-width: 0; }
.scrub-band { position: absolute; top: 50%; height: 8px; translate: 0 -50%; left: calc(14px + (100% - 28px) * var(--b0, 1)); right: 0; border-radius: 4px; background: var(--chart-band); pointer-events: none; }
:is(#main, .door) input[type="range"].scrub-r { position: relative; display: block; width: 100%; height: 36px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
:is(#main, .door) input[type="range"].scrub-r::-webkit-slider-runnable-track { height: 2px; border-radius: 1px; background: var(--line-2); }
:is(#main, .door) input[type="range"].scrub-r::-moz-range-track { height: 2px; border-radius: 1px; background: var(--line-2); }
:is(#main, .door) input[type="range"].scrub-r::-moz-range-progress { background: transparent; }
:is(#main, .door) input[type="range"].scrub-r::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -13px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 3px 10px rgb(0 0 0 / .2); transition: transform var(--d-press-out) var(--ease-spring-15); }
:is(#main, .door) input[type="range"].scrub-r::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgb(0 0 0 / .14), 0 3px 10px rgb(0 0 0 / .2); }
:is(#main, .door) .scrub.idle input[type="range"].scrub-r::-webkit-slider-thumb { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
:is(#main, .door) .scrub.idle input[type="range"].scrub-r::-moz-range-thumb { background: var(--bg-2); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
:is(#main, .door) input[type="range"].scrub-r:active::-webkit-slider-thumb { transform: scale(1.1); transition-duration: var(--d-press-in); }
:is(#main, .door) input[type="range"].scrub-r:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (pointer: coarse) { :is(#main, .door) input[type="range"].scrub-r { height: 44px; } }
/* the read mark's label above the thumb while the bar is held (a price, a car's name): a thin hairline pill, above where a
   finger covers, kept inside the track (shell.js wireScrub sets --x), only while held */
.scrub-tip { position: absolute; z-index: 1; bottom: calc(50% + 20px); left: var(--x, 50%); translate: -50% 0;
  padding: 4px 9px; border-radius: 999px; background: var(--elev); box-shadow: 0 0 0 1px var(--line-2), 0 4px 14px rgb(0 0 0 / .10);
  font: 600 12.5px/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); pointer-events: none;
  opacity: 0; transition: opacity 120ms ease-out; }
.scrub.held .scrub-tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scrub-tip { transition: none; } }
@media (prefers-reduced-motion: reduce) { :is(#main, .door) input[type="range"].scrub-r::-webkit-slider-thumb { transition: none; } }
.stp-b { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--ink); cursor: pointer; transition: transform var(--d-press-out) var(--ease-spring-15), background-color 200ms ease-out; }
.stp-b svg { width: 16px; height: 16px; }
.stp-b:active { transform: scale(.94); transition-duration: var(--d-press-in), 0ms; }
.stp-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .stp-b:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); } }
@media (pointer: coarse) { .stp-b { width: 44px; height: 44px; } }
/* the Scatter (scatter.js): the car page's figure, readout and hairline grid; one ink dot per car with a ring of the
   figure's ground, the chosen one in the accent (never green: green is the verdict pills' alone) */
.cat-sc { margin: 0; }
.sc-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px; }
.sc-top .readout { flex: 1 1 300px; min-width: 0; }
.sc-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 1em; }
.sc-s b { font-weight: 600; color: var(--ink); }
.sc-acts { display: flex; align-items: center; gap: 10px; flex: none; }
.sc-go { flex: none; white-space: nowrap; visibility: hidden; }
.sc-go.on { visibility: visible; }
/* on a touch screen a hairline marks the chosen car above and below the finger that covers its dot */
.sc-cur { stroke: var(--accent); stroke-width: 1; opacity: 0; pointer-events: none; }
@media (pointer: coarse) { .sc-cur.on { opacity: .6; } }
.sc-ylab, .sc-xlab { margin: 0; font: 500 12px/1.3 var(--font); color: var(--ink-2); }
/* clear of the chart's keyboard ring, which sits 6 px outside it */
.sc-ylab { margin-bottom: 12px; }
.sc-xlab { margin-top: 12px; text-align: right; }
.sc-chart.near svg { cursor: pointer; }
.sc-dot { fill: var(--ink); stroke: var(--bg-2); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.sc-dot.out { pointer-events: none; }
.sc-sel { fill: var(--accent); stroke: var(--bg-2); stroke-width: 2.5; opacity: 0; pointer-events: none; }
.sc-chip { fill: var(--bg); stroke: var(--line-2); stroke-width: 1; opacity: 0; pointer-events: none; }
.sc-lab { font: 600 13px/1 var(--font); fill: var(--ink); opacity: 0; pointer-events: none; }
.sc-sel.on, .sc-lab.on, .sc-chip.on { opacity: 1; }
@media (max-width: 720px) {
  .sc-v { font-size: 28px; }
  /* three lines of room for the longest name, its catalog middle and a Sample mark, so choosing a car never moves the chart */
  .cat-sc .ro-s { min-height: 4.2em; }
}
.fsheet .grp { margin-top: 20px; }
.fsheet .grp h3 { margin: 0 0 10px; font: 600 13px/1 var(--font); color: var(--ink-2); }
.fsheet .opts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Compare: one table for the Compare panel (every page) and the watchlist's Side by side (compare.js) ---------- */
.wl-only { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.wl-only button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 13px/1 var(--font); cursor: pointer; transition: background-color 180ms ease-out, color 180ms ease-out; }
.wl-only button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .1); }
.wl-only button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-cmp-empty { padding: 22px 24px; color: var(--ink-2); font: 400 15px/1.45 var(--font); }
/* the table answers its own width, not the window's: the panel on a desk and the page on a phone both reflow below 600 px */
.wl-table-w { padding: 8px 24px 12px; overflow-x: auto; container: cmptable / inline-size; }
.wl-table-w:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-table { width: 100%; min-width: calc(140px + var(--n) * 150px); border-collapse: collapse; table-layout: fixed; }
.wl-table th, .wl-table td { padding: 12px 12px 12px 0; text-align: left; vertical-align: middle; font: 400 15px/1.35 var(--font); font-variant-numeric: tabular-nums; }
/* the column heads align at the top, so a Sample line under one name never lifts that car's photo above the others */
.wl-table thead th { padding-top: 14px; padding-bottom: 14px; vertical-align: top; }
.wl-table thead th:first-child { width: 140px; }
.wl-table thead a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; font: 650 14px/1.3 var(--font); }
.wl-thumb { display: block; width: 100%; max-width: 180px; aspect-ratio: 1.7; object-fit: cover; border-radius: 10px; background: var(--bg-3); }
/* the placeholder word fits its own column ("Speedster" in an 80 px column on a phone) */
.wl-table thead a { container-type: inline-size; }
.wl-table .wl-nophoto { display: grid; place-items: center; height: auto; font: 800 min(18px, 17cqi)/1 var(--font); letter-spacing: -0.04em; color: color-mix(in srgb, var(--ink) 14%, transparent); }
.wl-table tbody tr { border-top: 1px solid var(--line); }
.wl-table .nm-s { display: none; }
.wl-table tbody th { font: 400 13px/1.35 var(--font); color: var(--ink-2); }
.wl-table tr.diff td { font-weight: 600; }
.wl-table.only-diff tr.same { display: none; }
.wl-table td small, .wl-table .cmp-tag { display: block; margin-top: 3px; font: 400 12px/1.3 var(--font); color: var(--ink-2); }
.wl-table .cmp-tag { margin-top: 6px; }
.cmp-na { color: var(--ink-2); font-weight: 400; }
.cmp-nw { white-space: nowrap; }
.cmp-dim { display: inline-flex; align-items: center; gap: 8px; }
.cmp-bar { position: relative; width: 44px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; flex: none; }
.cmp-bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: left center; transform: scaleX(var(--s, 0)); }
@container cmptable (max-width: 599px) {
  /* each row's name becomes a caption over the row and the picked cars share the full width under it (as a scrolled
     table, three cars ran past a 360 px phone); the short name keeps a column's link to one line */
  .wl-table, .wl-table thead, .wl-table tbody { display: block; min-width: 0; }
  .wl-table tr { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 10px; }
  .wl-table thead th:first-child { display: none; }
  .wl-table tbody th { grid-column: 1 / -1; padding: 10px 0 2px; }
  .wl-table th, .wl-table td { padding: 4px 0 10px; font-size: 14px; }
  .wl-table thead th { padding: 6px 0 12px; }
  .wl-table thead a { font-size: 13px; }
  .wl-table .nm-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wl-table .nm-s { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cmp-bar { width: 28px; }
}
/* a narrow table (the watchlist page on a tablet): the full names wrapped their links onto two lines in 174 px columns, so
   the short names take over before the table reflows */
@container cmptable (min-width: 600px) and (max-width: 759px) {
  .wl-table .nm-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wl-table .nm-s { display: block; white-space: nowrap; }
}
/* the narrowest phones: three columns of about 80 px; the longest short names ("356 Speedster", "Delta Integrale") fit at
   12 px with the columns 8 px apart, so a name is never cut */
@container cmptable (max-width: 299px) {
  .wl-table tr { column-gap: 8px; }
  .wl-table thead a, .wl-table .nm-s { font-size: 12px; letter-spacing: -0.01em; }
}
/* the panel: chips for the saved cars, the rows switch, then the table at the panel's full width */
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cmp-rows { margin-top: 16px; }
.cmp-out { margin-top: 14px; }
.cmp-w { padding: 0; }
.cmp-note { margin-top: 12px; }
/* the two foot buttons share the row equally, so both fit a 320 px sheet */
.cmp-foot { flex: 1 1 0; min-width: 0; padding: 0 12px; }

/* ---------- Quick look (quicklook.js): a glass popover beside a card on a desk, the sheet on touch ---------- */
.qlpop { position: fixed; z-index: 60; width: 320px; max-height: calc(100dvh - 120px); overflow: auto; overscroll-behavior: contain; padding: 18px 18px 14px; border-radius: 22px; }
.ql-nm { font: 600 17px/1.3 var(--font); letter-spacing: -0.012em; }
.ql-yr { margin-top: 2px; font: 400 14px/1.35 var(--font); color: var(--ink-2); }
.ql-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; font: 500 14px/1.2 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ql-v b { color: var(--ink); font-weight: 600; }
.ql-dims { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ql-dims li { display: grid; grid-template-columns: minmax(0, 1fr) 44px 22px; align-items: center; gap: 10px; font: 400 13px/1.3 var(--font); color: var(--ink-2); }
.ql-dims b { text-align: right; color: var(--ink); font-weight: 600; }
.ql-dl { margin-top: 12px; border-top: 1px solid var(--line); }
.ql-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 400 13px/1.35 var(--font); }
.ql-dl dt { color: var(--ink-2); flex: none; }
.ql-dl dd { min-width: 0; text-align: right; font-weight: 600; color: var(--ink); }
.ql-dl small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.ql-note { margin-top: 12px; font: 400 14px/1.45 var(--font); color: var(--ink-2); }
.ql-acts { display: flex; gap: 8px; margin-top: 14px; }
.ql-acts .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
.ql-fine { margin-top: 10px; font: 400 12px/1.35 var(--font); color: var(--ink-2); }
.ql-nw { white-space: nowrap; }
.door-body .ql { margin-top: 2px; }
/* a hold on a card is Quick look, so the system's own link preview stays out of its way */
@media (hover: none) { .ccard { -webkit-touch-callout: none; } }
