/* The app: paper, ink, one highlighter.

   This sheet holds the tokens and the pieces every page shares, and nothing that belongs to one page. A page
   adds its own stylesheet after it and never redefines a token. The rules are written out, with code to copy,
   in src/app/DESIGN.md; they are shown alive at /next/systeme.

   Colour. Yellow is road paint and says "this one": the car held, the lane you are in, your budget. It is
   always a fill behind ink, never the colour of text. Blue is the other car of a pair, and nothing else.
   Green and orange say what a gap does to whoever would buy, and never alone: the words say it too.

   Type. One family, Archivo, in four voices: the cars (names, prices, figures, bold; a car's name set as a title in
   its expanded width), the app (what it asks and says, upright, a step under the figure it leads to), the controls,
   and the small labels (tabular figures). The wordmark keeps its own drawing, in Bricolage Grotesque. Every face is
   served by the site, and none is faked: no italic, nothing past 800 (docs/decisions/2026-11-20-typeface-archivo.md).

   Scale. A car is `--L` millimetres long and is drawn `--L × --mm` wide; the place sets `--mm`.

   Motion follows the finger or explains a change, on transform and opacity only. Under
   prefers-reduced-motion nothing slides or springs: things change where they stand.

   Phone first: 360 px wide, one thumb. */

/* Archivo, weights 400 to 800: everything the app writes but a car's name set as a title and the wordmark. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 100%; font-display: swap; }
/* A car's name set as a title: Archivo at width 112, weight 800. Its own file and family (`--names`), so that the names
   go back to plain Archivo in one line. */
@font-face { font-family: "Archivo Expanded"; src: url("/fonts/archivo-expanded-latin.woff2") format("woff2"); font-weight: 800; font-stretch: 112%; font-display: swap; }
/* The wordmark and the bird's "?" (src/app/ui/bird.ts): Bricolage Grotesque 800, its optical size kept, the file holding
   only what they draw, which `unicode-range` lists: a name with another letter fails src/app/ui/bird.test.ts. Never
   drawn in another face: the mark waits for its own (a few KB, fetched right after the stylesheets: src/app/shell.ts). */
@font-face { font-family: "Bricolage Wordmark"; src: url("/fonts/bricolage-wordmark.woff2") format("woff2"); font-weight: 800; font-display: block; unicode-range: U+20, U+3F, U+61, U+69, U+6B, U+6E, U+72, U+131; }
/* While a face is on its way the page is drawn at once in the visitor's own Arial, scaled to Archivo's width and given
   its line, so that the swap changes the letters and moves nothing (widths of the product's own words, measured in the
   browser, 20 November 2026; Archivo's ascent 0.878 and descent 0.21 divided by the scale). Where Arial is missing (most
   Android phones) the system's face stands in as it is. Nothing is downloaded for them. */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 549; size-adjust: 99%; ascent-override: 88.7%; descent-override: 21.2%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 550 749; size-adjust: 96.5%; ascent-override: 91%; descent-override: 21.8%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 750 900; size-adjust: 103%; ascent-override: 85.2%; descent-override: 20.4%; line-gap-override: 0%; }
@font-face { font-family: "Archivo Expanded Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 800; size-adjust: 115.6%; ascent-override: 76%; descent-override: 18.2%; line-gap-override: 0%; }
/* The wordmark waits for its own face (a few KB): meanwhile its room is Bricolage's, so that nothing beside it moves. */
@font-face { font-family: "Bricolage Wordmark Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 800; size-adjust: 95.7%; ascent-override: 97.2%; descent-override: 28.2%; line-gap-override: 0%; }

/* ── Tokens ──────────────────────────────────────────────────────────────────────────────────────────── */

:root {
  /* Grounds: the page, one step down (the road cars stand on, a rail), raised (a sheet, a card), a well inside a card. */
  --paper: #f3f1ec; --road: #e9e6df; --card: #fdfcfa; --sunk: #efede7;
  /* Ink: text; secondary text; decoration that is never text; a hairline; the edge of a control. */
  --ink: #131417; --soft: #54575f; --faint: #8d9097; --line: #dad6cd; --edge: #7a7c83;
  /* The highlighter: "this one". Ink sits on it; an ink edge keeps it sharp on paper. */
  --paint: #ffcc00; --on-paint: #131417; --paint-edge: #131417; --paint-soft: #fff2b3;
  /* The other car of a pair. */
  --other: #1f49d6; --on-other: #ffffff; --other-soft: #e2e8fb;
  /* What a gap does to whoever would buy; a caution (an uncertain tax, an estimate). */
  --good: #0a6e4d; --good-soft: #dcefe6; --bad: #a83706; --bad-soft: #f8e3d6; --warn: #8a5200; --warn-soft: #f6ead2;
  /* The bird, and nothing else (src/app/ui/bird.ts): its beak, its wing, the light in its eye. It is drawn on the
     paint with an ink edge, so these three stay the same in both themes, like the paint. */
  --beak: #ff8a1f; --wing: #f2b400; --glint: #ffffff;
  /* A car drawn from its measures, and the shade where any car touches the ground. */
  --car: #dcdfe5; --glass: #a9b7cc; --tyre: #1b2433; --car-shade: rgb(19 20 23 / 0.34);
  /* What leaves the pocket, slab by slab (checked for colour-blind readers in this order, on both grounds). */
  --s-price: #9aa6ba; --s-financing: #12a594; --s-duties: #b3245f; --s-road: #7b4fd6; --s-fuel: #d67a00;
  /* The finish of a car's card (src/app/card/), and nothing else: its metal, its deep tone, and the light on it. Gold is
     the paint. */
  --foil-gold: #c9a046; --foil-gold-deep: #74531a; --foil-gold-shine: #f6e7bd; --foil-silver: #c9ced6; --foil-silver-deep: #7c8592;
  --foil-bronze: #d49a6a; --foil-bronze-deep: #8c5431; --foil-shine: #fffaf0;
  /* What the 3D stage reads by name (src/stage/scene/theme.ts, public/stage.css). */
  --surface: var(--card); --rule: var(--line); --muted: var(--soft); --accent: var(--other); --hl: var(--paint); --b: var(--other); --tick: var(--faint); --mark-edge: var(--ink);
  /* Lift */
  --lift-1: 0 1px 2px rgb(19 20 23 / 0.07), 0 4px 14px rgb(19 20 23 / 0.06);
  --lift-2: 0 2px 6px rgb(19 20 23 / 0.08), 0 18px 44px rgb(19 20 23 / 0.16);
  --sheet-shadow: 0 -1px 0 rgb(19 20 23 / 0.06), 0 -18px 44px rgb(19 20 23 / 0.14);
  /* Type: four roles in one family; a car's name set as a title in its expanded width; the wordmark in its own face. */
  --display: "Archivo", "Archivo Fallback", "Segoe UI", Roboto, Arial, sans-serif;
  --names: "Archivo Expanded", "Archivo Expanded Fallback", "Archivo", "Segoe UI", Roboto, Arial, sans-serif;
  --body: "Archivo", "Archivo Fallback", "Segoe UI", Roboto, Arial, sans-serif;
  --voice: "Archivo", "Archivo Fallback", "Segoe UI", Roboto, Arial, sans-serif;
  --label: "Archivo", "Archivo Fallback", "Segoe UI", Roboto, Arial, sans-serif;
  --wordmark: "Bricolage Wordmark", "Bricolage Wordmark Fallback", "Segoe UI", Roboto, Arial, sans-serif;
  /* Space, on a 4 px step; shape; the column a page's text sits on. */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px;
  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-pill: 999px;
  --pad: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --measure: 720px;
  /* The frame: what stays in view at the top (the bar, and on a phone a page's own row: by width below), and the room
     the car held takes at the bottom (0 while none is held). */
  --bar-h: 56px;
  --held-h: 0px;
  /* Motion: a press answers at once, a thing changes place calmly, a sheet settles. */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --quick: 0.15s; --calm: 0.32s; --settle: 0.46s;
  /* The scale of a car where nothing says otherwise: pixels per millimetre. */
  --mm: 0.05px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1012; --road: #17181b; --card: #1c1d21; --sunk: #131417;
    --ink: #f3f1ea; --soft: #a6a8af; --faint: #6c6f77; --line: #2c2e34; --edge: #777a82;
    --paint-edge: #0f1012; --paint-soft: #3a3200;
    --beak: #ff8a1f; --wing: #f2b400; --glint: #ffffff;
    --other: #8fb0ff; --on-other: #0f1012; --other-soft: #1b2644;
    --good: #46d39c; --good-soft: #12301f; --bad: #ff9466; --bad-soft: #3a1d10; --warn: #f0b24a; --warn-soft: #33270c;
    --car: #2b3750; --glass: #0c131e; --tyre: #05080d; --car-shade: rgb(0 0 0 / 0.7);
    --s-price: #5c6b86; --s-financing: #17a892; --s-duties: #c2356e; --s-road: #9085e9; --s-fuel: #c98500;
    --foil-gold: #b88f3e; --foil-gold-deep: #5e4315; --foil-gold-shine: #ecd59a; --foil-silver: #aab2be; --foil-silver-deep: #545c69; --foil-bronze: #c4895c; --foil-bronze-deep: #6a3c1f; --foil-shine: #fff4d6;
    --lift-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.3);
    --lift-2: 0 2px 6px rgb(0 0 0 / 0.35), 0 18px 44px rgb(0 0 0 / 0.5);
    --sheet-shadow: 0 -1px 0 rgb(255 255 255 / 0.07), 0 -18px 44px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1012; --road: #17181b; --card: #1c1d21; --sunk: #131417;
  --ink: #f3f1ea; --soft: #a6a8af; --faint: #6c6f77; --line: #2c2e34; --edge: #777a82;
  --paint-edge: #0f1012; --paint-soft: #3a3200;
  --beak: #ff8a1f; --wing: #f2b400; --glint: #ffffff;
  --other: #8fb0ff; --on-other: #0f1012; --other-soft: #1b2644;
  --good: #46d39c; --good-soft: #12301f; --bad: #ff9466; --bad-soft: #3a1d10; --warn: #f0b24a; --warn-soft: #33270c;
  --car: #2b3750; --glass: #0c131e; --tyre: #05080d; --car-shade: rgb(0 0 0 / 0.7);
  --s-price: #5c6b86; --s-financing: #17a892; --s-duties: #c2356e; --s-road: #9085e9; --s-fuel: #c98500;
  --foil-gold: #b88f3e; --foil-gold-deep: #5e4315; --foil-gold-shine: #ecd59a; --foil-silver: #aab2be; --foil-silver-deep: #545c69; --foil-bronze: #c4895c; --foil-bronze-deep: #6a3c1f; --foil-shine: #fff4d6;
  --lift-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px rgb(0 0 0 / 0.3);
  --lift-2: 0 2px 6px rgb(0 0 0 / 0.35), 0 18px 44px rgb(0 0 0 / 0.5);
  --sheet-shadow: 0 -1px 0 rgb(255 255 255 / 0.07), 0 -18px 44px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}
/* While a car is held, its strip takes this room at the bottom of a phone's page that compares to it. A page that
   says nothing against it is quiet (`data-held-quiet`), and with room the car held is a chip in the top bar: no room
   is taken at the bottom then (src/app/ui/bar.ts, `heldRule`: the one rule). */
@media (max-width: 759px) {
  :root[data-held]:not([data-held-quiet]) { --held-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
}
/* What stays in view at the top, which pages place themselves by (a sticky column, a scroll margin, a list's height):
   the top bar, 56 px on a phone and 64 with room (src/app/ui/bar.ts), and a page's own row under it (the shell's
   `trail`, 44 px) wherever it stays with the bar: on a phone always, with room when it `stays` (the guided journey's
   thread, src/app/journey/frame.ts). */
@media (min-width: 960px) { :root { --bar-h: 64px; } :root:has(> body > .trail.stays) { --bar-h: calc(64px + 44px); } }
@media (max-width: 959px) { :root:has(> body > .trail) { --bar-h: calc(56px + 44px); } }

/* ── Ground rules ────────────────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
/* Nothing faked: the faces have no italic and stop at 800, and a browser never draws one it was not given. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-synthesis: none; scroll-padding: calc(var(--bar-h) + 12px) 0 calc(var(--held-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 0.9375rem/1.45 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: 0.4; cursor: default; }
img, svg { display: block; }
/* The icons' sprites (src/app/ui/sprite.ts): each icon drawn once per page, never shown itself. */
.ic-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
s { text-decoration-thickness: 1px; }
:where(a, button, input, summary, [tabindex]):focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { position: fixed; z-index: 40; left: 8px; top: -80px; padding: 12px 16px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }
.noscript { margin: 0; padding: 10px var(--pad); background: var(--ink); color: var(--paper); font-size: 0.78rem; line-height: 1.4; }

/* ── Type: which face speaks when ────────────────────────────────────────────────────────────────────── */

/* The cars: names and prices. */
.t-wall { font: 800 clamp(3.25rem, 21vw, 10.5rem)/0.86 var(--names); letter-spacing: -0.038em; }
.t-1 { font: 800 2.125rem/1 var(--display); letter-spacing: -0.03em; }
.t-2 { font: 750 1.5rem/1.1 var(--display); letter-spacing: -0.021em; }
.t-3 { font: 700 1.0625rem/1.2 var(--display); letter-spacing: -0.013em; }
/* The app: what it asks (a question, a step bolder) and what it answers; both upright, smaller than the figure under them. */
.t-ask { font: 500 1.25rem/1.15 var(--voice); letter-spacing: -0.01em; }
.t-voice { font: 400 1.375rem/1.18 var(--voice); letter-spacing: -0.005em; text-wrap: pretty; }
.t-voice-s { font: 400 1.0625rem/1.26 var(--voice); text-wrap: pretty; letter-spacing: -0.005em; }
/* The interface. */
.t-body { font: 400 0.9375rem/1.45 var(--body); }
.t-small { font: 400 0.8125rem/1.4 var(--body); color: var(--soft); }
/* A make above a name, the caption of a picture, a unit. */
.t-label { font: 600 0.71875rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-variant-numeric: tabular-nums; }
.t-note { font: 500 0.65625rem/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }

/* A stroke of the highlighter behind words. Ink on yellow, in both themes. */
mark { background: var(--paint); color: var(--on-paint); padding: 0.02em 0.18em 0.06em; margin: 0 -0.04em; border-radius: 0.14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* The stroke alone: road paint, the line under the lane you are in (the product's mark is the bird: .wm). */
.stroke { display: inline-block; flex: none; width: 20px; height: 7px; border-radius: 2px; background: var(--paint); transform: skewX(-20deg); box-shadow: 0 0 0 1.5px var(--paint-edge); }

/* The wordmark (src/app/ui/bird.ts): the name in its own face, its last i dotted with the bird, exactly as the
   board sets it: the dot 0.42em square, 0.06em past the end of the word, 0.03em above its line. Its size is
   `font-size`. Hovering it with a mouse plays the board's motion (frame.ts adds `is-crying`): the bird hops off,
   comes down as the point of a "!", shouts, and goes back. Under prefers-reduced-motion it stays still. */
.wm { position: relative; display: inline-block; font: 800 1em/0.9 var(--wordmark); letter-spacing: -0.045em; white-space: nowrap; color: var(--ink); }
.wm-dotted { position: relative; display: inline-block; }
.wm-i { display: inline-block; transform-origin: 50% 0.78em; }
.wm-bird, .wm-shout { position: absolute; right: -0.06em; top: -0.03em; width: 0.42em; height: 0.42em; overflow: visible; }
.wm-bird { transform-origin: 47% 47%; }
.wm-shout { fill: none; stroke: var(--ink); stroke-width: 16.7; stroke-linecap: round; pointer-events: none; }
.wm-cross, .wm-open, .wm-shout path { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wm.is-crying .wm-bird { animation: wm-bird 1.5s var(--ease) both; }
  .wm.is-crying .wm-i { animation: wm-i 1.5s var(--ease) both; }
  .wm.is-crying .wm-calm { animation: wm-calm 1.5s linear both; }
  .wm.is-crying .wm-cross { animation: wm-cross 1.5s linear both; }
  .wm.is-crying .wm-open { animation: wm-open 1.5s linear both; }
  .wm.is-crying .wm-hop { animation: wm-hop 1.5s linear both; }
  .wm.is-crying .wm-cry { animation: wm-cry 1.5s linear both; }
}
@keyframes wm-bird {
  8% { transform: translate(0, 0.02em) scale(1.06, 0.9); }
  24%, 34% { transform: translate(0.32em, -0.2em) rotate(12deg); }
  46%, 80% { transform: translate(0.09em, 0.44em) scale(0.875); }
  93% { transform: translate(0, -0.03em); }
}
@keyframes wm-i { 0%, 36% { transform: none; } 46%, 80% { transform: translateY(-0.4em) scaleY(1.13); } 93%, 100% { transform: none; } }
@keyframes wm-calm { 0%, 18% { opacity: 1; } 21%, 88% { opacity: 0; } 91%, 100% { opacity: 1; } }
@keyframes wm-cross { 0%, 18% { opacity: 0; } 21%, 42% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes wm-open { 0%, 42% { opacity: 0; } 45%, 85% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes wm-hop { 0%, 23% { opacity: 0; } 26%, 34% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes wm-cry { 0%, 48% { opacity: 0; } 51%, 77% { opacity: 1; } 80%, 100% { opacity: 0; } }

/* The mascot (src/app/ui/bird.ts, `bird()`), beside the fact it reacts to. What it draws beyond its body (legs,
   shouts, notes, its "?") takes `color`: the ink, or the paper on the ink of a toast. Its "?" is drawn in the wordmark's face. */
.bird { flex: none; overflow: visible; color: var(--ink); }
.bird text { font-family: var(--wordmark); }
/* The bird beside its sentence: a fact in the voice, the bird to its left, both on one line's middle. */
.said { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--sp-3); }

/* The identity of a car in a pair: beside its name, never alone. */
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--paint-edge); }
.dot-a { background: var(--paint); }
.dot-b { background: var(--other); box-shadow: none; }

/* ── The frame ───────────────────────────────────────────────────────────────────────────────────────── */

/* A page that scrolls: the top bar stays, the page's content, then its foot (src/app/ui/foot.ts), which a short page
   brings down to the bottom of the screen; the car held floats over the bottom, and the foot ends above it. */
.app.is-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app.is-page > .main { flex: 1 0 auto; padding-bottom: var(--sp-6); }
.app.is-page > .held { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; }
/* A screen that does not scroll (the street, a duel): the bar, the page's own scene, the car held, top to bottom. */
.app.is-screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: none; }
.app.is-screen > .main { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; overflow: clip; }
.app.is-screen > .held { flex: none; }

/* The top bar (src/app/ui/bar.ts), the same on every page: the wordmark, the app's three places, the search, the car
   held, the heart, the theme. One line that never wraps: as the width shrinks, the search's field becomes the loupe
   (under 1240 px), then the places and the theme go into the menu (under 960 px). 56 px tall on a phone and a tablet
   held upright, 64 with room (`--bar-h`). */
.bar {
  position: sticky; z-index: 10; top: 0; flex: none; display: flex; align-items: center;
  min-height: calc(56px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 4px 0 0; background: var(--paper);
}
/* What stays in view is in view. The page keeps room for the bar above whatever the keyboard reaches (`scroll-padding`,
   above), and a browser then counts the bar's own controls as hidden under that room: at every Tab among them it
   would scroll a scrolled page up by half a screen. Their box is said to stand just under it instead, and the page
   stays where it is (scripts/review/a11y.mjs watches for it). */
.bar :is(a, button, input, select, summary, [tabindex]) { scroll-margin: calc(-1 * (var(--bar-h) + 12px)) 0 calc(var(--bar-h) + 12px); }
/* The name, a link home: the wordmark, its ink centred on the bar (the box of a 0.9 line sits 0.06em high of it). */
.brand { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px 0 var(--pad); text-decoration: none; }
.brand .wm { top: 0.05em; font-size: 1.75rem; }
@media (min-width: 760px) { .brand .wm { font-size: 1.875rem; } }
/* The tools keep to the right; inside them only the chip of the car held gives way (its name ends in "…"). */
.bar-tools { flex: 0 1 auto; display: flex; align-items: center; min-width: 0; margin-left: auto; }
.bar-places, .bar .bar-theme { display: none; }

/* The places: words, the one the page is in in ink, bold, with the stroke of road paint under it (as under a lane). */
.bar-place { position: relative; display: inline-grid; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--r-pill); color: var(--soft); text-decoration: none; white-space: nowrap; font: 600 0.9375rem/1 var(--body); letter-spacing: -0.005em; transition: color var(--quick), background-color var(--quick); }
.bar-place > span, .bar-place::before { grid-area: 1 / 1; }
/* Each word takes the room of its bold: marking the place one is in never moves the words after it. */
.bar-place::before { content: attr(data-word) / ""; height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
.bar-place[aria-current="page"] { color: var(--ink); font-weight: 700; }
.bar-place[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 5px; border-radius: 2px; background: var(--paint); box-shadow: 0 0 0 1.5px var(--paint-edge); transform: skewX(-20deg); }
@media (min-width: 960px) {
  .bar { min-height: calc(64px + env(safe-area-inset-top, 0px)); }
  .brand { padding-right: 20px; }
  .bar-places { flex: none; display: flex; align-items: center; gap: 2px; }
  .bar .bar-theme { display: grid; }
  .bar .bar-menu { display: none; }
}

/* The search: the loupe; with room a field, the words after the loupe and the keyboard's shortcut after them. It is a
   button: it opens the search sheet, as the loupe does. The shortcut is a Mac's (⌘K) or another's (Ctrl K), as the
   shell's first script found the device. */
.bar-find { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); transition: background-color var(--quick), border-color var(--quick), scale var(--quick); }
.bar-find:active { scale: 0.92; background: var(--line); }
.bar-find-words, .bar-find-key { display: none; }
.bar-find-key .is-mac, :root[data-mac] .bar-find-key .is-pc { display: none; }
:root[data-mac] .bar-find-key .is-mac { display: inline; }
@media (min-width: 1240px) {
  .bar-find { display: flex; align-items: center; gap: 8px; width: clamp(304px, 24vw, 340px); height: 40px; margin-right: 6px; padding: 0 7px 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--soft); font: 500 0.875rem/1 var(--body); text-align: left; }
  .bar-find:active { scale: 0.985; background: var(--card); }
  .bar-find .ic { flex: none; width: 18px; height: 18px; color: var(--ink); }
  .bar-find-words { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-find-key { flex: none; display: inline-grid; place-items: center; height: 22px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font: 500 0.71875rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
}
@media (min-width: 1240px) and (hover: hover) {
  .bar .bar-find:hover { border-color: var(--edge); background-color: var(--card); color: var(--ink); }
}

/* While its panel is open, the heart (or the menu) keeps the round of a pressed button. */
:root:has(#bar-kept:popover-open) .bar-kept, :root:has(#bar-menu:popover-open) .bar-menu { background-color: color-mix(in srgb, var(--ink) 8%, transparent); }

/* A page's own row under the bar (the shell's `trail`: a car's and a pair's, src/app/zoom/zoom.ts; the journey's
   thread, src/app/journey/frame.ts). On a phone it is the bar's second line and stays in view with it; with room it is
   a quiet row of its own, which scrolls away with the page while the bar alone stays, unless it `stays` (the journey
   says where one stands in it while its screens are read). */
.trail { position: sticky; z-index: 9; top: calc(56px + env(safe-area-inset-top, 0px)); flex: none; min-width: 0; background: var(--paper); }
@media (min-width: 960px) {
  .trail { position: static; }
  .trail.stays { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); }
}
/* While it stays in view its controls stay with it, as the bar's do (above). */
@media (max-width: 959px) { .trail :is(a, button, summary) { scroll-margin: calc(-1 * (var(--bar-h) + 12px)) 0 calc(var(--bar-h) + 12px); } }
.trail.stays :is(a, button, summary) { scroll-margin: calc(-1 * (var(--bar-h) + 12px)) 0 calc(var(--bar-h) + 12px); }

/* A round button that is only an icon. */
.ib { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; text-decoration: none; transition: background-color var(--quick), scale var(--quick); }
.ib:active { scale: 0.92; background: var(--line); }
/* A favourite's heart: yellow inside (its filled twin, src/app/ui/icons.ts), its line the text's colour. */
.ib[aria-pressed="true"] .ic { --ic-in: var(--paint); }
.ib-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--paint); color: var(--on-paint); font: 700 0.71875rem/18px var(--label); text-align: center; box-shadow: 0 0 0 1.5px var(--paper); font-variant-numeric: tabular-nums; }

/* The car held: "Face au Tucson". A strip of road paint under the thumb; with room, a pill. */
.held { height: var(--held-h); overflow: hidden; background: var(--paint); color: var(--on-paint); }
.held-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; height: 64px; padding: 0 6px 0 0; border-top: 1.5px solid var(--paint-edge); }
.held-car { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; height: 100%; padding-left: var(--pad); text-decoration: none; border-radius: 0; }
.held-pic { --mm: 0.0165px; display: grid; place-items: end center; width: 84px; padding-bottom: 2px; }
.held-text { display: grid; gap: 3px; min-width: 0; }
.held-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 750 1.0625rem/1.1 var(--display); letter-spacing: -0.017em; }
.held-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 0.75rem/1.2 var(--body); font-variant-numeric: tabular-nums; }
.held .ib:active { background: rgb(19 20 23 / 0.14); }
.held :focus-visible { outline-color: var(--on-paint); outline-offset: -4px; }
/* Where the strip says nothing (a quiet page), and wherever there is room for the chip, it is not there at all. */
:root[data-held-quiet] .app > .held { display: none; }
@media (min-width: 760px) {
  .app > .held { display: none; }
}

/* The car held where there is room: a chip of road paint in the top bar (src/app/ui/bar.ts, `heldChip`), in the
   same place on every page that shows it. Its picture at the scale of a chip, "Face au Tucson", the cross. A long
   name ends in "…" (the link says it whole). A car the device holds is drawn by the frame's script: until then its
   place keeps the width the chip last had (`--held-w`, set before the first paint), so that nothing moves as it comes. */
.bar-held { display: none; }
@media (min-width: 760px) {
  :root[data-held] .bar-held { flex: 0 1 auto; display: flex; align-items: center; justify-content: flex-end; min-width: 0; max-width: 300px; padding: 0 6px 0 8px; }
  :root[data-held] .bar-held:empty { width: var(--held-w, auto); }
  .hc { display: flex; align-items: center; min-width: 0; max-width: 100%; height: 40px; border: 1.5px solid var(--paint-edge); border-radius: var(--r-pill); background: var(--paint); color: var(--on-paint); }
  .hc-car { display: flex; align-items: center; gap: 8px; min-width: 0; height: 100%; padding: 0 2px 0 12px; border-radius: var(--r-pill); text-decoration: none; }
  .hc-pic { --mm: 0.0125px; flex: none; display: flex; align-items: flex-end; padding-bottom: 2px; }
  .hc-car b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 750 0.875rem/1.1 var(--display); letter-spacing: -0.013em; }
  .hc-off { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 2px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; transition: background-color var(--quick), scale var(--quick); }
  .hc-off::after { content: ""; position: absolute; inset: -5px; }
  .hc-off .ic { width: 17px; height: 17px; }
  .hc-off:active { scale: 0.92; background: color-mix(in srgb, var(--on-paint) 14%, transparent); }
  .hc :focus-visible { outline-color: var(--on-paint); outline-offset: -3px; }
  /* On a screen whose own yellow car is another one (a duel), the chip keeps its place and is drawn in ink on paper:
     the bar is the same on every page, and yellow still means one car on a screen. */
  :root[data-held-plain] .hc { border-color: var(--edge); background: none; color: var(--ink); }
  :root[data-held-plain] .hc :focus-visible { outline-color: var(--ink); }
  :root[data-held-plain] .hc-off:active { background: var(--line); }
}
@media (min-width: 760px) and (hover: hover) {
  .hc-off:hover { background: color-mix(in srgb, var(--on-paint) 12%, transparent); }
  .hc-car:hover b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
}

/* The heart's panel (src/app/ui/kept.ts): the cars kept, as a basket on a shop. A small panel (`.pop`): a sheet at the
   bottom of a phone, under the heart with room. The cars are the search's rows, each with the button that takes it
   out; their list scrolls inside the panel (twelve at most) while the title and the act stay in view. */
.pop:has(> .kp):popover-open { display: flex; flex-direction: column; overflow: hidden; }
.kp { display: flex; flex-direction: column; min-height: 0; }
.kp-rows { flex: 0 1 auto; min-height: 0; margin: 0 calc(var(--pad) * -1); overflow-y: auto; overscroll-behavior: contain; border-block: 1px solid var(--line); }
.kp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.kp-row > .row { padding-right: 2px; }
/* The list scrolls, so it clips: the keyboard's ring is drawn inside what it marks. */
.kp-rows :focus-visible { outline-offset: -4px; }
.kp-off { margin-right: calc(var(--pad) - 13px); color: var(--soft); }
.kp-off .ic { width: 18px; height: 18px; }
.kp-none { padding: 6px 0 4px; font: 400 0.9375rem/1.45 var(--body); color: var(--soft); text-wrap: balance; }
.kp-act { flex: none; padding-top: 14px; }
.kp-act .btn { width: 100%; }
@media (min-width: 760px) {
  .pop:has(> .kp) { width: min(360px, calc(100vw - 32px)); padding-bottom: 16px; }
  .kp-rows { margin: 0 -16px; }
  .kp-off { margin-right: 3px; }
}
@media (hover: hover) { .kp-off:hover { color: var(--ink); } }

.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--held-h) + 14px + env(safe-area-inset-bottom, 0px)); translate: -50% 12px; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 11px 16px; border-radius: var(--r-m); background: var(--ink); color: var(--paper); font: 550 0.84rem/1.35 var(--body); text-align: center; text-wrap: balance; opacity: 0; pointer-events: none; transition: opacity 0.25s, translate 0.25s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }
/* The bird's nod at a car kept, a link copied (src/app/voice/cries.ts). */
.toast .bird { display: inline-block; vertical-align: middle; margin: -9px 6px -7px -6px; color: inherit; }

/* The foot of a page that scrolls (src/app/ui/foot.ts). The page ends on the road: one step down from the paper, a
   hairline above it. The wordmark and the promise in the voice; the app's map in columns, each line its words and, in
   the small labels' figures, its count (as the street's own lists say them); the sources; then one last line. Dense and ordered: the
   app's type, rows of 44 px under a thumb and 34 with a fine pointer, figures aligned. On a phone the map stands in two
   columns (the makes beside every car and comparing), nothing folded but the sources' detail; with room, one row. It
   ends above what floats at the foot of a phone: the car held's strip (`--held-h`), a car's two acts (car.css). */
.ft { --ft-row: 44px; flex: none; background: var(--road); border-top: 1px solid var(--line); color: var(--ink); padding-bottom: calc(var(--held-h) + env(safe-area-inset-bottom, 0px)); }
@media (hover: hover) and (pointer: fine) { .ft { --ft-row: 32px; } }
/* A car's page keeps its two acts at the foot of the screen where it has no column for them (car.css, `.car-dock`). */
.app:has(.car-dock) > .ft { padding-bottom: calc(var(--held-h) + var(--dock-h, 0px) + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1000px) and (min-height: 760px), (min-width: 1024px) and (min-height: 540px) and (hover: hover) and (pointer: fine) {
  .app:has(.car-dock) > .ft { padding-bottom: calc(var(--held-h) + env(safe-area-inset-bottom, 0px)); }
}
.ft-in { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "map" "sources"; gap: 26px; padding: 26px var(--pad) 4px; }
.ft-brand { grid-area: brand; }
.ft .brand { min-height: 44px; padding: 0; }
.ft .brand .wm { top: 0; font-size: 2.25rem; }
.ft-say { max-width: 19.5em; margin-top: 4px; font: 400 1.125rem/1.12 var(--voice); letter-spacing: -0.005em; text-wrap: balance; }
/* The voice's emphasis: what the serif set in italic, the sans says by weight (no italic is served). */
.ft-say em { font-style: normal; font-weight: 600; }
/* The map: every car and comparing on the left, the makes beside them. */
.ft-map { grid-area: map; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "cars makes" "compare makes"; align-items: start; gap: 22px 18px; }
.ft-cars { grid-area: cars; }
.ft-makes { grid-area: makes; }
.ft-compare { grid-area: compare; }
.ft-sources { grid-area: sources; min-width: 0; }
.ft-h { margin-bottom: 4px; font: 600 0.71875rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-variant-numeric: tabular-nums; }
.ft-list + .ft-h { margin-top: 20px; }
.ft-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--ft-row); color: var(--ink); text-decoration: none; font: 550 0.9375rem/1.2 var(--body); letter-spacing: -0.005em; }
.ft-list small { flex: none; font: 500 0.71875rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
/* Under a thumb the lines are the app's own small lists' (`.pop-list`): ruled, so that their room reads as order. */
@media (max-width: 759px) { .ft-list > li + li { border-top: 1px solid var(--line); } }
/* The sources: the prices' day in the cars' face, aged by the visitor's clock; each site, its day, its versions; the fold. */
.ft .stamp { margin: 6px 0 8px; font: 700 1.0625rem/1.25 var(--display); letter-spacing: -0.013em; color: var(--ink); }
.ft .stamp [data-age] { font: 500 0.8125rem/1.25 var(--body); letter-spacing: 0; color: var(--soft); }
.ft .stamp.is-old { color: var(--warn); }
.ft-sources .dated-sources { margin-bottom: 2px; }
.ft-sources .whence summary { min-height: var(--ft-row); }
.ft-dl { margin: 10px 0 0; }
.ft-dl dt { margin-bottom: 4px; font: 600 0.71875rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-variant-numeric: tabular-nums; }
.ft-dl dd { margin: 0; }
.ft-dl dd + dd { margin-top: 6px; }
/* The last line: the name and the year; what is kept of a visit (the legal mentions will stand beside it); the theme. */
.ft-end { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 20px var(--pad) 0; padding: 2px 0 4px; border-top: 1px solid var(--line); font: 500 0.8125rem/1.2 var(--body); color: var(--soft); }
.ft-year { margin-right: auto; padding: 8px 0; }
.ft-year .num { font-family: var(--label); font-size: 0.78125rem; font-variant-numeric: tabular-nums; }
.ft-legal { display: flex; gap: 20px; }
.ft-legal a, .ft-theme { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: none; font: 550 0.8125rem/1.2 var(--body); }
.ft-theme .ic { width: 18px; height: 18px; }
/* On a phone the theme is its icon, its words kept for a screen reader: the last line holds on one line. */
@media (max-width: 759px) {
  .ft-theme { justify-content: center; width: 44px; margin-right: -13px; }
  .ft-theme span { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (hover: hover) {
  .ft-list a:hover span, .ft-legal a:hover, .ft-theme:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
@media (min-width: 760px) {
  .ft-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand brand" "map map" "sources sources"; column-gap: 32px; padding-top: 40px; }
  .ft .brand .wm { font-size: 2.5rem; }
  .ft-say { font-size: 1.25rem; }
  .ft-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "cars makes compare"; column-gap: 32px; }
  .ft-list a { font-size: 0.875rem; }
  .ft-makes .ft-list { columns: 2; column-gap: 24px; }
  .ft-makes li { break-inside: avoid; }
  /* The sources in two halves: the day and the fold, the sites beside them; the last row takes what the list adds. */
  .ft-sources { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; column-gap: 32px; align-items: start; }
  .ft-sources > .ft-h, .ft-sources > .stamp, .ft-sources > .whence { grid-column: 1; }
  .ft-sources > .dated-sources { grid-column: 2; grid-row: 1 / 5; margin-top: 2px; }
  .ft-end { margin-top: 24px; }
}
/* With room, one row: the name and its promise, the map, the sources. */
@media (min-width: 1100px) {
  .ft-in { grid-template-columns: minmax(200px, 1fr) minmax(0, 3.2fr) minmax(250px, 1.25fr); grid-template-areas: "brand map sources"; column-gap: clamp(32px, 3.6vw, 72px); padding-top: 48px; }
  .ft-map { column-gap: clamp(24px, 2.6vw, 48px); }
  .ft-sources { display: block; }
  .ft-sources > .dated-sources { margin-top: 0; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────────────────────────────────── */

/* A label stays on one line; it only wraps where it must (large text on a narrow screen), and never leaves the screen. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 48px; padding: 8px 20px; border: 1.5px solid var(--ink); border-radius: 26px; background: var(--ink); color: var(--paper); font: 650 0.9375rem/1.15 var(--body); letter-spacing: -0.005em; text-align: center; text-decoration: none; text-wrap: balance; transition: scale var(--quick), background-color var(--quick), border-color var(--quick); }
.btn:active { scale: 0.96; }
.btn .ic { width: 19px; height: 19px; flex: none; }
.btn.is-small { min-height: 40px; padding: 6px 15px; font-size: 0.84rem; border-radius: 22px; }
.btn.is-small::after { content: ""; position: absolute; inset: -4px 0; }
/* Yellow: what makes a car "this one", and the budget. Never the plain main action of a screen. */
.btn-paint { background: var(--paint); color: var(--on-paint); border-color: var(--paint-edge); }
.btn-paint[aria-pressed="true"] { background: var(--paint); box-shadow: inset 0 0 0 2px var(--paint-edge); }
.btn-line { background: none; color: var(--ink); border-color: var(--edge); }
.btn-line[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-quiet { background: none; color: var(--ink); border-color: transparent; padding: 8px 10px; text-decoration: underline; text-decoration-thickness: 1px; }

/* ── Chips ───────────────────────────────────────────────────────────────────────────────────────────── */

.chips { display: flex; gap: 8px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.is-wrap { flex-wrap: wrap; overflow: visible; }
/* The chip is the 36 px pill; its label reaches 44 px for the thumb. */
.chip { position: relative; flex: none; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: none; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1.5px solid var(--edge); border-radius: var(--r-pill); white-space: nowrap; font: 550 0.84rem/1 var(--body); transition: background-color var(--quick), color var(--quick), border-color var(--quick), scale var(--quick); }
.chip small { font: 500 0.71875rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.chip:active span { scale: 0.95; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 3px; }
/* A chip that leads somewhere; the one you are in is underlined with road paint. */
.chip-link[aria-current="true"] span { border-color: var(--ink); box-shadow: inset 0 -4px 0 var(--paint); }

/* ── A two- or three-way switch ──────────────────────────────────────────────────────────────────────── */

.switch { --i: 0; position: relative; display: inline-grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); padding: 3px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.switch label { position: relative; z-index: 1; display: grid; cursor: pointer; }
/* A choice is 38 px tall to the eye and 44 to the thumb. */
.switch label::after { content: ""; position: absolute; inset: -3px 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { display: grid; place-items: center; height: 38px; padding: 0 16px; border-radius: var(--r-pill); white-space: nowrap; font: 600 0.84rem/1 var(--body); color: var(--soft); transition: color var(--quick); }
.switch input:checked + span { color: var(--ink); font-weight: 700; }
.switch input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.switch-thumb { position: absolute; z-index: 0; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: var(--r-pill); background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / 0.16), 0 0 0 1.5px var(--ink); translate: calc(var(--i) * 100%) 0; transition: translate var(--calm) var(--ease); }
.switch:has(label:nth-of-type(2) input:checked) { --i: 1; }
.switch:has(label:nth-of-type(3) input:checked) { --i: 2; }
.switch.is-small span { height: 30px; padding: 0 12px; font-size: 0.78rem; }
.switch.is-small label::after { content: ""; position: absolute; inset: -7px 0; }
/* Where the browser cannot follow the choice with the thumb, the choice wears it. */
@supports not selector(:has(*)) {
  .switch-thumb { display: none; }
  .switch input:checked + span { background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / 0.16), 0 0 0 1.5px var(--ink); }
}

/* ── A pill that opens a few choices; the small panel it opens; the two views of the cars ───────────────
   (src/app/ui/controls.ts: `pick`, `popPanel`, `popList`, `viewSwitch`.) The pill is 40 px to the eye and 44 to
   the thumb. A choice that narrows what is shown wears ink. The panel is a popover: a sheet at the bottom of a
   phone; with room a panel by its pill, placed by src/app/ui/pop.ts (`--pop-x`, `--pop-y`). */
.pick { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 14px; border: 1.5px solid var(--edge); border-radius: var(--r-pill); background: none; color: var(--ink); text-decoration: none; white-space: nowrap; font: 600 0.875rem/1 var(--body); transition: border-color var(--quick), background-color var(--quick), color var(--quick), scale var(--quick); }
.pick::after { content: ""; position: absolute; inset: -2px 0; }
.pick b { font-weight: 650; }
.pick small { font: 500 0.71875rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.pick .ic { flex: none; width: 17px; height: 17px; }
.pick > .ic:last-child { width: 15px; height: 15px; margin-left: -2px; color: var(--soft); }
.pick:active { scale: 0.96; }
.pick.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pick.is-on small, .pick.is-on > .ic:last-child { color: color-mix(in srgb, var(--paper) 66%, transparent); }
a.pick { padding-right: 14px; }
@media (hover: hover) { .pick:hover { border-color: var(--ink); } }

.pop {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 82dvh; margin: 0; padding: 18px var(--pad) calc(14px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--card); color: var(--ink); box-shadow: var(--sheet-shadow);
  opacity: 0; translate: 0 20px; transition: opacity 0.18s, translate var(--calm) var(--ease), overlay var(--calm) allow-discrete, display var(--calm) allow-discrete;
}
.pop:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .pop:popover-open { opacity: 0; translate: 0 20px; } }
.pop::backdrop { background: rgb(10 10 12 / 0.4); }
.pop-h { margin-bottom: 6px; }
.pop-list > li + li { border-top: 1px solid var(--line); }
.pop-list :is(a, button) { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 50px; padding: 0 2px; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; font: 600 1rem/1.2 var(--body); }
.pop-list b { font-weight: 650; }
.pop-list small { font: 500 0.78125rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.pop-list .ic { flex: none; width: 20px; height: 20px; color: var(--soft); }
.pop-list :is([aria-current], [aria-pressed="true"]) b { box-shadow: inset 0 -6px 0 var(--paint); }
@media (min-width: 760px) {
  .pop { inset: var(--pop-y, 64px) auto auto var(--pop-x, 16px); width: max-content; min-width: 240px; max-width: min(360px, calc(100vw - 32px)); max-height: min(70dvh, 560px); padding: 14px 16px 8px; border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--lift-2); translate: 0 6px; }
  .pop.is-up { inset: auto auto var(--pop-y, 64px) var(--pop-x, 16px); translate: 0 -6px; }
  .pop:popover-open, .pop.is-up:popover-open { translate: 0 0; }
  @starting-style { .pop:popover-open { translate: 0 6px; } .pop.is-up:popover-open { translate: 0 -6px; } }
  .pop::backdrop { background: none; }
  .pop-list :is(a, button) { min-height: 44px; font-size: 0.9375rem; }
}
@media (hover: hover) { .pop-list :is(a, button):hover b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; } }

/* The street and the list: one switch of two links, in the same place on both pages. */
.views { flex: none; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.views a { position: relative; display: grid; place-items: center; height: 34px; padding: 0 16px; border-radius: var(--r-pill); color: var(--soft); text-decoration: none; white-space: nowrap; font: 600 0.84rem/1 var(--body); transition: color var(--quick); }
.views a::after { content: ""; position: absolute; inset: -5px 0; }
.views a[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgb(0 0 0 / 0.16), 0 0 0 1.5px var(--ink); }
@media (hover: hover) { .views a:hover { color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .pop { transition: none; translate: 0 0; } }

/* ── "D'où vient ce chiffre ?" ───────────────────────────────────────────────────────────────────────── */

.whence summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none; font: 550 0.8125rem/1.2 var(--body); color: var(--soft); }
.whence summary::-webkit-details-marker { display: none; }
.whence summary span { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.whence summary::after { content: "+"; font: 500 1rem/1 var(--label); font-variant-numeric: tabular-nums; }
.whence[open] summary::after { content: "−"; }
.whence[open] summary { color: var(--ink); }
.whence-body { padding: 0 0 14px 12px; border-left: 3px solid var(--paint); font-size: 0.8125rem; line-height: 1.45; color: var(--soft); }
.whence-body > * + * { margin-top: 6px; }
.whence-body b { color: var(--ink); font-weight: 650; }

/* ── A price, a gap ──────────────────────────────────────────────────────────────────────────────────── */

.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.4em; font-variant-numeric: tabular-nums; }
.price > * { white-space: nowrap; }
.price b { font: 750 0.9375rem/1.1 var(--display); letter-spacing: -0.013em; }
.price small { font: 500 0.75rem/1 var(--body); color: var(--soft); }
.price-list s { font: 500 0.71875rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.price.is-big b { font: 800 1.8125rem/1 var(--display); letter-spacing: -0.03em; }
.price.is-big .price-list s { font-size: 0.8125rem; }

/* ── A small fact, a signed gap (src/app/ui/facts.ts) ─────────────────────────────────────────────────────
   The facts row: two to four cells between hairlines, a small label over a bold figure in tabular numerals (the
   type of the five figures under a car's 3D, .car-spots-row). It never breaks, by rule: a figure wraps at a space
   (numbers keep their no-break spaces) and never leaves its cell; a cell too wide for the line takes the next
   one; four cells stand two by two when the row is narrow (a query on the row itself). The hairlines that would
   start a line are cut away with the cells' leading padding, so the first figure of each line meets the column. */
.facts { container-type: inline-size; display: flex; flex-wrap: wrap; margin-inline-start: -11px; clip-path: inset(0 0 0 11px); border-block: 1px solid var(--line); }
.fact { position: relative; display: grid; align-content: start; gap: 4px; flex: 1 1 0; min-width: min-content; margin-top: -1px; padding: 8px 10px 9px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact-l { display: flex; align-items: center; gap: 5px; font: 550 0.6875rem/1.2 var(--body); color: var(--soft); }
.fact-key { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.fact-key.is-road { background: var(--s-road); }
.fact-key.is-fuel { background: var(--s-fuel); }
.fact-f { font: 800 0.9375rem/1.2 var(--display); letter-spacing: -0.017em; font-variant-numeric: tabular-nums; overflow-wrap: break-word; text-wrap: pretty; }
.fact-f small { display: block; margin-top: 2px; font: 600 0.75rem/1.2 var(--body); letter-spacing: 0; color: var(--soft); }
.fact-f s { display: block; margin-top: 2px; font: 500 0.75rem/1.2 var(--body); letter-spacing: 0; color: var(--soft); }
.fact.is-soft .fact-f { font-weight: 600; color: var(--soft); }
.fact.is-none .fact-f { color: var(--soft); }
@container (max-width: 21.5rem) {
  .facts:has(> .fact:nth-child(4)) > .fact { flex-basis: 34%; }
  /* Four brief cells ("Longueur 4,54 m") keep one line while they fit: down to a 360 px phone's card. */
  .facts:has(> .fact:nth-child(4)):not(:has(> .fact:not(.is-brief))) > .fact { flex-basis: 0; }
}
@container (max-width: 17.9rem) {
  .facts:has(> .fact:nth-child(4)):not(:has(> .fact:not(.is-brief))) > .fact { flex-basis: 34%; }
}
/* Words kept for a screen reader inside a fact or a chip (a long form, a reason, a gap in words) take the box of
   what holds them, wrapping as text does, clipped to nothing: they never reach past it, nor widen a page. */
:is(.fact, .gap, .gaps) > .vh, .fact-f .vh { inset: 0; width: auto; height: auto; margin: 0; white-space: normal; }

/* A signed gap: "+15 100 dh", "−49 L de coffre", toned for whoever would take the car it is about. The sign says
   which way; the words are said to a screen reader; colour only repeats them. Nothing between two cars is said in
   words, outlined. The car held, where it stands among others, wears its yellow. */
.gaps { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gap { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); font: 700 0.8125rem/1.2 var(--display); letter-spacing: -0.008em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gap .dot { width: 8px; height: 8px; margin-left: -2px; }
.gap.is-good { background: var(--good-soft); color: var(--good); }
.gap.is-bad { background: var(--bad-soft); color: var(--bad); }
.gap:is(.is-flat, .is-unknown) { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--soft); }
.gap.is-unknown { font: 550 0.75rem/1.2 var(--body); letter-spacing: 0; }
.gap.is-held { background: var(--paint); box-shadow: inset 0 0 0 1px var(--paint-edge); color: var(--on-paint); font: 650 0.75rem/1.2 var(--body); letter-spacing: 0; }

/* ── A price, dated (src/app/ui/dated.ts; aged by src/app/ui/fresh.ts) ──────────────────────────────── */

/* Under a car's price: its last change, its reading. Figures in the small labels' face; the words say the way, colour repeats it. */
/* Each line is its own target, 24 px high, side by side with the next and never over it. */
.dated a { position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 24px; color: inherit; text-decoration: none; }
.dated a::after { content: ""; position: absolute; inset: 0 -8px; }
.dated + .dated { margin-top: -4px; }
.dated a:hover > [aria-hidden], .dated a:focus-visible > [aria-hidden] { text-decoration: underline; text-underline-offset: 3px; }
.dated .ic, .stamp-old .ic, .old-mark .ic { width: 12px; height: 12px; flex: none; }
.dated .ic { display: none; }
.dated.is-old { color: var(--warn); }
.dated.is-old .ic { display: block; }
.dated-change.is-up { color: var(--ink); }
.dated-change.is-down { color: var(--good); }
/* The prices' day, once per page: in the foot of the page, with the sources (`.ft .stamp`, below); a slim caution line
   under the bar once they are a week old. */
.stamp-old { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 7px var(--pad); background: var(--warn-soft); color: var(--warn); }
.stamp-old[hidden] { display: none; }
/* In a list, the exception only: a clock beside a price old for the catalogue. */
.old-mark { display: inline-grid; place-items: center; align-self: center; color: var(--warn); }
/* The sources of the prices, one line each: its site, its last day, how many versions. */
.dated-sources { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 0 10px; margin: 0; padding: 0; list-style: none; font: 500 0.78125rem/1.5 var(--label); font-variant-numeric: tabular-nums; }
.dated-sources li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line); }
.dated-sources b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.dated-sources .num { text-align: right; color: var(--ink); }
.dated-sources li.is-old > span:first-of-type { color: var(--warn); }

/* ── A car, at true scale ────────────────────────────────────────────────────────────────────────────── */

.carfig { position: relative; display: inline-block; vertical-align: bottom; flex: none; width: calc(var(--L) * var(--mm)); margin: 0; isolation: isolate; }
.carfig-img { display: block; width: 100%; height: calc((var(--H) + var(--up) + var(--down)) * var(--mm)); margin-bottom: calc(var(--down) * var(--mm) * -1); pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overflow: visible; }
.carfig.is-mirrored .carfig-img { scale: -1 1; }
/* Where a pictured car touches the ground. */
.carfig.is-picture::before { content: ""; position: absolute; z-index: -1; left: 2%; right: 2%; bottom: calc(var(--mm) * -110); height: calc(var(--mm) * 260); border-radius: 50%; background: radial-gradient(closest-side, var(--car-shade), transparent); }
.carfig-cap { position: absolute; top: 100%; left: 50%; translate: -50% 0; margin-top: 8px; white-space: nowrap; font: 500 0.65625rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.carfig.is-nothing { width: auto; }
.carfig-none { display: inline-block; padding: 5px 8px; border: 1px dashed var(--edge); border-radius: var(--r-s); font: 500 0.65625rem/1.25 var(--label); color: var(--soft); text-align: center; font-variant-numeric: tabular-nums; }
/* The drawing: a body type at the car's real measures. Flat and outlined, so that it never passes for a picture. */
.carfig .car-shadow { fill: var(--ink); opacity: 0.12; }
.carfig .car-body { fill: var(--car); stroke: var(--ink); stroke-width: 1.4px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.carfig .car-body.car-a { fill: color-mix(in srgb, var(--paint) 55%, var(--card)); }
.carfig .car-body.car-b { fill: color-mix(in srgb, var(--other) 45%, var(--card)); }
.carfig .car-glass { fill: var(--glass); stroke: var(--ink); stroke-width: 0.9px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.carfig .car-pillar { stroke: var(--car); }
.carfig .car-pillar.car-a { stroke: color-mix(in srgb, var(--paint) 55%, var(--card)); }
.carfig .car-pillar.car-b { stroke: color-mix(in srgb, var(--other) 45%, var(--card)); }
.carfig .car-seam { stroke: var(--ink); stroke-width: 0.7px; opacity: 0.45; vector-effect: non-scaling-stroke; }
.carfig .car-lamp { stroke: var(--ink); stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
.carfig .car-head { fill: var(--card); }
.carfig .car-tail { fill: var(--bad); }
.carfig .car-tyre { fill: var(--tyre); }
.carfig .car-rim { fill: var(--line); }
.carfig .car-hub { fill: var(--tyre); }
.carfig.is-thumb .car-seam, .carfig.is-thumb .car-lamp { display: none; }

/* ── The sheet at the bottom of a screen ─────────────────────────────────────────────────────────────── */

.sheet {
  --y: calc(100% - var(--sheet-peek, 116px));
  position: absolute; z-index: 6; left: 0; right: 0; top: var(--sheet-top, 8px); bottom: 0;
  display: flex; flex-direction: column; translate: 0 var(--y); will-change: translate;
  border-radius: var(--r-l) var(--r-l) 0 0; background: var(--card); box-shadow: var(--sheet-shadow);
}
.sheet.is-settling { transition: translate var(--settle) var(--ease); }
.sheet-grab { flex: none; display: grid; place-items: center; width: 100%; height: 20px; padding: 0; border: 0; background: none; touch-action: none; cursor: grab; }
.sheet-grab::before { content: ""; width: 40px; height: 4.5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 24%, transparent); }
/* The handle is 20 px tall to the eye and 44 to the thumb. */
.sheet-grab::after { content: ""; position: absolute; left: 25%; right: 25%; top: -12px; height: 44px; }
.sheet-grab:focus-visible { outline-offset: -4px; }
.sheet-head { flex: none; padding: 0 var(--pad) 12px; touch-action: none; cursor: pointer; }
.sheet-body { flex: 1 1 0; min-height: 0; overflow-y: hidden; overscroll-behavior: contain; padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom, 0px)); outline: none; }
.sheet[data-detent="full"] .sheet-body { overflow-y: auto; }
.sheet[data-detent="peek"]:not(.is-settling) .sheet-body { visibility: hidden; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; width: var(--measure); margin-left: calc(var(--measure) / -2); }
}

/* ── A sheet that takes the screen for a moment: the search, a share, a choice ───────────────────────── */

dialog.modal {
  width: 100%; max-width: 560px; max-height: 86dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: var(--r-l) var(--r-l) 0 0;
  background: var(--card); color: var(--ink); box-shadow: var(--lift-2); overscroll-behavior: contain;
  opacity: 0; translate: 0 28px; transition: opacity 0.2s, translate var(--calm) var(--ease), overlay var(--calm) allow-discrete, display var(--calm) allow-discrete;
}
dialog.modal[open] { opacity: 1; translate: 0 0; }
@starting-style { dialog.modal[open] { opacity: 0; translate: 0 28px; } }
dialog.modal::backdrop { background: rgb(10 10 12 / 0.5); overflow: hidden; overscroll-behavior: contain; }
dialog.modal-full { height: 100dvh; max-height: 100dvh; border-radius: 0; background: var(--paper); }
@media (min-width: 760px) {
  dialog.modal { margin: 8vh auto auto; border-radius: var(--r-l); max-height: 84vh; }
  dialog.modal-full { height: 84vh; }
}

/* A link that could not be copied (the frame's `share`): the link itself, to copy by hand, and WhatsApp. */
.by-hand { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px var(--pad) calc(20px + env(safe-area-inset-bottom, 0px)); }
.by-hand > p { color: var(--soft); }
.by-hand-field input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--edge); border-radius: var(--r-m); background: var(--paper); color: var(--ink); font: 500 0.84375rem/1 var(--label); font-variant-numeric: tabular-nums; }
.by-hand-field input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.by-hand-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.by-hand-acts .btn-ink { flex: 1 1 auto; }

/* The search. */
dialog.finder[open] { display: flex; flex-direction: column; }
.finder-bar { flex: none; display: flex; align-items: center; gap: 2px; padding: calc(4px + env(safe-area-inset-top, 0px)) var(--pad) 4px 4px; border-bottom: 1.5px solid var(--line); background: var(--paper); }
.finder-bar:focus-within { border-bottom-color: var(--ink); }
.finder-bar input { flex: 1; min-width: 0; height: 52px; padding: 0; border: 0; outline: none; background: none; font: 650 1.1875rem/1 var(--display); letter-spacing: -0.017em; }
.finder-bar input::placeholder { color: var(--soft); opacity: 1; font-weight: 500; }
.finder-bar input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.finder-bar { padding-right: 4px; }
.finder-body { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.find-h { padding: 22px var(--pad) 4px; font: 750 1.3125rem/1.1 var(--display); letter-spacing: -0.021em; outline: none; }
.find-note, .find-count, .find-none { padding: 4px var(--pad) 12px; font-size: 0.8125rem; line-height: 1.45; color: var(--soft); outline: none; }
.find-count { padding-top: 16px; }
.find-none { padding-top: 22px; }
.find-none.said, .find-note.said { gap: var(--sp-3); }
.find-none .bird { margin-left: -8px; }
.find-none b { display: block; margin-bottom: 6px; font: 750 1.1875rem/1.2 var(--display); letter-spacing: -0.017em; color: var(--ink); }
.find-facing { padding: 16px var(--pad) 0; font-size: 0.875rem; line-height: 1.5; color: var(--soft); }
.find-facing mark { font: 700 0.9375rem/1 var(--display); margin-right: 4px; }
.find-more { padding: 14px var(--pad) 4px; }
.find-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 12px; padding: 18px var(--pad) 6px; }
.find-head .find-h, .find-head .find-note { padding: 0; }
.find-head .find-note { margin-top: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 4px; padding: 6px calc(var(--pad) - 8px) 0; }
.crumb { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px 0 4px; border: 0; border-radius: var(--r-pill); background: none; font: 600 0.84rem/1 var(--body); color: var(--soft); }
.crumb .ic { width: 18px; height: 18px; }

/* A row of a list of cars: the car at the list's scale, its name and price, what it is, its gap to the car held. */
.rows > li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 11px var(--pad); border: 0; background: none; text-align: left; text-decoration: none; transition: background-color var(--quick); }
.row:active { background: var(--road); }
.row-pic { --mm: 0.0165px; display: grid; place-items: end center; min-height: 34px; }
.row-text { display: grid; gap: 3px; min-width: 0; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.row-top > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1rem/1.2 var(--display); letter-spacing: -0.013em; }
.row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; line-height: 1.3; }
.row-sub s { font: 500 0.71875rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.row small { font-size: 0.78rem; line-height: 1.35; color: var(--soft); }
.row-gap { margin-top: 5px; }
.row-down { grid-template-columns: 84px minmax(0, 1fr) 20px; }
.row-down > .ic { width: 18px; height: 18px; color: var(--soft); }
.row-plain { grid-template-columns: minmax(0, 1fr) 20px; background: var(--road); }
.rows-versions .row { grid-template-columns: minmax(0, 1fr); min-height: 56px; }
.rows-versions .row-top > b { font: 650 0.9rem/1.25 var(--body); letter-spacing: 0; white-space: normal; }
.rows.is-waiting .row-pic { height: 30px; border-radius: 8px; background: var(--road); }
.rows.is-waiting i { display: block; height: 11px; margin: 3px 0; border-radius: 6px; background: var(--road); }
.rows.is-waiting i:nth-child(1) { width: 62%; }
.rows.is-waiting i:nth-child(2) { width: 86%; }
.rows.is-waiting i:nth-child(3) { width: 44%; }

/* A relative's line (src/app/ui/kin.ts): a car's card and the favourites; each page makes its container. */
.a-kins { display: grid; }
.a-kins > li { min-width: 0; }
.a-kins .row { --mm: 0.0165px; align-items: start; padding: 12px 0; border-radius: 0; }
.a-kins .row-pic { padding-top: 6px; }
.a-kin .row-top > b { font-size: 0.96875rem; white-space: normal; overflow: visible; text-overflow: clip; text-wrap: balance; }
.a-kin-make { font-weight: 550; color: var(--soft); letter-spacing: -0.005em; }
.a-kin-price { flex: none; font: 650 0.875rem/1.2 var(--display); letter-spacing: -0.006em; }
.a-kin-why { min-width: 0; font: 600 0.8125rem/1.35 var(--body); color: var(--ink); }
.a-kin-why.is-trim { font-weight: 450; color: var(--soft); }
.a-kin-gaps { margin-top: 5px; }
.a-kin-gaps .gaps { display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.78rem; line-height: 1.35; }
@container (max-width: 519px) {
  .a-kin-gaps .gap:nth-child(n + 3) { display: none; }
}
/* Its heart (it needs scripts). */
.a-kins > li.has-keep { position: relative; }
.has-keep > .row .row-top { padding-right: 34px; }
.a-kin-keep { position: absolute; z-index: 1; top: 2px; right: -10px; }
.a-kin-keep .ic { width: 20px; height: 20px; }
@media (scripting: none) {
  .a-kin-keep { display: none; }
  .has-keep > .row .row-top { padding-right: 0; }
}

/* The makes, as tiles. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; padding: 4px var(--pad) 0; }
.tile { display: grid; align-content: center; gap: 3px; width: 100%; min-height: 58px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--card); text-align: left; transition: border-color var(--quick), scale var(--quick); }
.tile:active { scale: 0.97; border-color: var(--ink); }
.tile b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 0.9375rem/1.15 var(--display); letter-spacing: -0.008em; }
.tile small { font: 500 0.71875rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }

/* ── An answer: one question, one figure, one sentence ───────────────────────────────────────────────── */

.answer { padding: 20px 18px 6px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--lift-1); }
.answer-q { font: 500 1.125rem/1.15 var(--voice); color: var(--soft); letter-spacing: -0.01em; }
.answer-fig { margin-top: 12px; font: 800 2.125rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.answer-fig small { font: 600 0.8125rem/1 var(--body); letter-spacing: 0; color: var(--soft); }
.answer-say { margin-top: 12px; font: 400 1.0625rem/1.26 var(--voice); text-wrap: pretty; letter-spacing: -0.005em; }
.answer-say b { font-weight: 400; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--ink) 14%, transparent) 62%); }
.answer .whence { margin-top: 6px; }
/* Inside a sheet, which is already a raised surface, an answer is a well. */
.sheet .answer, .modal .answer { background: var(--sunk); box-shadow: none; }

/* ── From one page to the next ───────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .app > .bar { view-transition-name: app-bar; }
  .app > .held { view-transition-name: app-held; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
  /* Between the street, a car and a pair (src/app/zoom/zoom.ts names the move): in grows, out shrinks, a neighbour slides aside. */
  html:active-view-transition-type(zoom-in)::view-transition-old(root) { animation: zv-pass var(--calm) var(--ease) both; }
  html:active-view-transition-type(zoom-in)::view-transition-new(root) { animation: zv-near var(--settle) var(--ease) both; }
  html:active-view-transition-type(zoom-out)::view-transition-old(root) { animation: zv-leave var(--calm) var(--ease) both; }
  html:active-view-transition-type(zoom-out)::view-transition-new(root) { animation: zv-back var(--settle) var(--ease) both; }
  html:active-view-transition-type(zoom-next)::view-transition-old(root) { animation: zv-to-left var(--calm) var(--ease) both; }
  html:active-view-transition-type(zoom-next)::view-transition-new(root) { animation: zv-from-right var(--calm) var(--ease) both; }
  html:active-view-transition-type(zoom-prev)::view-transition-old(root) { animation: zv-to-right var(--calm) var(--ease) both; }
  html:active-view-transition-type(zoom-prev)::view-transition-new(root) { animation: zv-from-left var(--calm) var(--ease) both; }
  /* A car is held: its strip comes up from under the screen, once. */
  .is-live .held-bar { animation: held-in var(--calm) var(--ease) backwards; }
}
/* Where a page's own row stays in view with the bar (always on a phone; the journey's with room too), it stays still
   with the bar from page to page. */
@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .app > .trail { view-transition-name: app-trail; }
}
@media (prefers-reduced-motion: no-preference) {
  .app > .trail.stays { view-transition-name: app-trail; }
}
@keyframes held-in { from { translate: 0 100%; opacity: 0; } }
@keyframes zv-pass { to { scale: 1.04; opacity: 0; } }
@keyframes zv-near { from { scale: 0.97; opacity: 0; } }
@keyframes zv-leave { to { scale: 0.97; opacity: 0; } }
@keyframes zv-back { from { scale: 1.04; opacity: 0; } }
@keyframes zv-to-left { to { translate: -12% 0; opacity: 0; } }
@keyframes zv-from-right { from { translate: 12% 0; opacity: 0; } }
@keyframes zv-to-right { to { translate: 12% 0; opacity: 0; } }
@keyframes zv-from-left { from { translate: -12% 0; opacity: 0; } }

@media (hover: hover) {
  .ib:hover, .bar-find:hover { background-color: color-mix(in srgb, var(--ink) 8%, transparent); }
  .bar-place:hover { color: var(--ink); background-color: color-mix(in srgb, var(--ink) 6%, transparent); }
  .held .ib:hover { background-color: rgb(19 20 23 / 0.12); }
  .btn-ink:hover { background-color: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
  .btn-line:hover, .btn-quiet:hover { background-color: color-mix(in srgb, var(--ink) 7%, transparent); }
  .btn-line[aria-pressed="true"]:hover { background-color: var(--ink); }
  .chip:hover input:not(:checked) + span, a.chip:hover span { border-color: var(--ink); }
  .row:hover { background-color: color-mix(in srgb, var(--ink) 4%, transparent); }
  .tile:hover { border-color: var(--ink); }
  .crumb:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
  .whence summary:hover { color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .sheet.is-settling, .switch-thumb, dialog.modal, .toast { transition: none; }
  .btn:active, .ib:active, .bar-find:active, .chip:active span, .tile:active { scale: 1; }
  dialog.modal, dialog.modal[open] { translate: 0 0; }
}
