/* 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 first car of a comparison, 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. */
/* Arabic letters in the same family: Noto Kufi Arabic (weights 100 to 900, its Arabic only), so that Darija is drawn at
   Archivo's weight (a title's 800 is Kufi's 800) and never in the device's own face. `unicode-range` fetches it only on a
   page that writes Arabic (the audit of 25 November 2026, finding 18). */
@font-face { font-family: "Archivo"; src: url("/fonts/noto-kufi-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Archivo Expanded"; src: url("/fonts/noto-kufi-arabic.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@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; --raised: var(--card);
  /* 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; --wm-tyre: #131417; --wm-tyre-ink: #3a3d44; --wm-tyre-dark: #f3f1ea; --wm-head-edge: #131417;
  /* The makes' logos are black drawings (scripts/logos/make.ts): ink on paper, light on the dark ground. */
  --logo-ink: none;
  /* 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);
  /* The six kinds of car, each on its stage (the home's categories, src/app/home/flagships.ts): one hue a kind, never the
     paint nor a signal; the light in a stage's middle and the shade of its floor. Ink reads on every hue at 11:1 or more. */
  --kind-suv: #e6c79c; --kind-citadines: #b9d0ee; --kind-berlines: #efc2b8; --kind-monospaces: #b8dccb; --kind-pick-up: #d3d6a3; --kind-coupes: #d6cdea;
  --kind-lit: rgb(255 255 255 / 0.45); --kind-floor: rgb(19 20 23 / 0.07);
  /* The chargers' map, and nothing else (src/app/chargers/): how fast a station charges, by one hue a speed, each with
     its soft ground (its words read on it at 4.5:1 or more; a mark's shape says the class too, never the hue alone), and
     the ground the stations stand on: the sea, the land, the shore's line, a town's footprint, a road, a motorway. */
  --kw-ultra: #a21a5b; --kw-ultra-soft: #fbe1ec; --kw-fast: #5b33c9; --kw-fast-soft: #e9e2fb; --kw-normal: #0b6f78; --kw-normal-soft: #d9eff0;
  --map-sea: #d8e4e9; --map-land: #faf8f3; --map-shore: #b9cbd3; --map-built: #ebe3d3; --map-road: #d6cebd; --map-major: #e2ae2c;
  /* 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;
  /* The type scale: the size of each voice (the classes below; DESIGN.md, "Four voices, one family"). In rem, so that the
     root's size moves them all; a page's own sizes are rem too and follow the root, not these steps. */
  --fs-wall: clamp(3.25rem, 21vw, 10.5rem); --fs-1: 2.125rem; --fs-2: 1.5rem; --fs-3: 1.0625rem;
  --fs-ask: 1.25rem; --fs-voice: 1.375rem; --fs-voice-s: 1.0625rem;
  --fs-body: 0.9375rem; --fs-small: 0.8125rem; --fs-label: 0.75rem; --fs-note: 0.75rem;
  /* 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). */
  --bar-h: 56px;
  /* 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; --plunge: 1.2s;
  /* The scale of a car where nothing says otherwise: pixels per millimetre. */
  --mm: 0.05px;
  /* The way a line reads (docs/decisions/2026-11-25-rtl.md): what logical properties cannot say (a move along the line,
     a gradient or an origin at its start or end, a shadow's side) takes these; right to left turns them (the file's foot). */
  --line-dir: 1; --line-start: left; --line-end: right;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1012; --road: #17181b; --card: #1c1d21; --sunk: #131417; --raised: color-mix(in srgb, var(--ink) 14%, var(--card));
    --ink: #f3f1ea; --soft: #a6a8af; --faint: #6c6f77; --line: #2c2e34; --edge: #777a82;
    --paint-edge: #0f1012; --paint-soft: #3a3200;
    --beak: #ff8a1f; --wing: #f2b400; --glint: #ffffff; --wm-tyre: var(--wm-tyre-dark); --wm-tyre-ink: #3a3d44; --wm-head-edge: var(--wm-tyre-dark); --logo-ink: invert(0.94);
    --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);
    --kind-suv: #3b2f1f; --kind-citadines: #1c2c4d; --kind-berlines: #4a2320; --kind-monospaces: #19392f; --kind-pick-up: #33361a; --kind-coupes: #2e2547; --kind-lit: rgb(255 255 255 / 0.12); --kind-floor: rgb(0 0 0 / 0.28);
    --kw-ultra: #ff8fc0; --kw-ultra-soft: #3d1228; --kw-fast: #b7a1ff; --kw-fast-soft: #261b4d; --kw-normal: #5fd0d8; --kw-normal-soft: #0d3135;
    --map-sea: #0b1217; --map-land: #1d1f24; --map-shore: #2b3c46; --map-built: #2a2c33; --map-road: #363942; --map-major: #8a6f1f;
    --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; --raised: color-mix(in srgb, var(--ink) 14%, var(--card));
  --ink: #f3f1ea; --soft: #a6a8af; --faint: #6c6f77; --line: #2c2e34; --edge: #777a82;
  --paint-edge: #0f1012; --paint-soft: #3a3200;
  --beak: #ff8a1f; --wing: #f2b400; --glint: #ffffff; --wm-tyre: var(--wm-tyre-dark); --wm-tyre-ink: #3a3d44; --wm-head-edge: var(--wm-tyre-dark); --logo-ink: invert(0.94);
  --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);
  --kind-suv: #3b2f1f; --kind-citadines: #1c2c4d; --kind-berlines: #4a2320; --kind-monospaces: #19392f; --kind-pick-up: #33361a; --kind-coupes: #2e2547; --kind-lit: rgb(255 255 255 / 0.12); --kind-floor: rgb(0 0 0 / 0.28);
  --kw-ultra: #ff8fc0; --kw-ultra-soft: #3d1228; --kw-fast: #b7a1ff; --kw-fast-soft: #261b4d; --kw-normal: #5fd0d8; --kw-normal-soft: #0d3135;
  --map-sea: #0b1217; --map-land: #1d1f24; --map-shore: #2b3c46; --map-built: #2a2c33; --map-road: #363942; --map-major: #8a6f1f;
  --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;
}
/* 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 12px; }
/* A tap that moves the page within itself (a section's tab, "Revenir en haut") glides there instead of jumping, everywhere
   (the owner, 26 November 2026). Arriving on a page at an anchor stays a jump (src/app/car/app.ts), and nothing moves
   for whoever asked their system for less motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* The page never scrolls sideways, whatever sticks out of it for a moment (a car gliding in, a panel arriving, a
   tooltip by an edge): its sides are cut, not scrolled to (the owner, 26 November 2026: "a few pixels like 4 ... we
   don't need this ... ever"). `clip`, not `hidden`: nothing becomes a scrolling box, so the bars that stay in view still
   do. A box that scrolls sideways on purpose (a row of chips, the street) keeps its own. Never `overscroll-behavior-x`
   on the page: it turns off the browser's two-finger swipe back and forward (the owner, 27 November 2026;
   src/app/gestures.test.ts). */
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/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; }
/* A <small> without a size of its own is the browser's step smaller, never under the 12 px floor of all text (F14). */
small { font-size: max(0.75rem, 0.833em); }
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; }
/* Peinture: the drawings of src/app/ui/paint.ts (the owner's choice of 21 November 2026, "a mix"), on every page that
   draws one. Each is a <use> of the page's own sprite, its pen here, reaching the symbol; its size is its width and height. */
.pi { flex: none; display: inline-block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
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; inset-inline-start: 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 var(--fs-wall)/0.86 var(--names); letter-spacing: -0.038em; }
.t-1 { font: 800 var(--fs-1)/1 var(--display); letter-spacing: -0.03em; }
.t-2 { font: 750 var(--fs-2)/1.1 var(--display); letter-spacing: -0.021em; }
.t-3 { font: 700 var(--fs-3)/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 var(--fs-ask)/1.15 var(--voice); letter-spacing: -0.01em; }
.t-voice { font: 400 var(--fs-voice)/1.18 var(--voice); letter-spacing: -0.005em; text-wrap: pretty; }
.t-voice-s { font: 400 var(--fs-voice-s)/1.26 var(--voice); text-wrap: pretty; letter-spacing: -0.005em; }
/* The interface. */
.t-body { font: 400 var(--fs-body)/1.45 var(--body); }
.t-small { font: 400 var(--fs-small)/1.4 var(--body); color: var(--soft); }
/* A make above a name, the caption of a picture, a unit. */
.t-label { font: 600 var(--fs-label)/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-variant-numeric: tabular-nums; }
.t-note { font: 500 var(--fs-note)/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
/* A list's heading inside a section (src/app/ui/list-head.ts): its icon on a disc, its name, one quiet line of what
   each row says; the rule under it opens the list. Green or rust only where the list is news for whoever would buy. */
.lh { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 1px 10px; margin: 0; padding-bottom: 9px; border-bottom: 1.5px solid var(--ink); font: inherit; }
.lh-mk { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); }
.lh-mk > .ic { width: 19px; height: 19px; }
.lh-t { min-width: 0; font: 750 1.0625rem/1.2 var(--display); letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.lh-n { min-width: 0; font: 500 0.8125rem/1.3 var(--body); color: var(--soft); }
.lh:not(:has(.lh-n)) .lh-mk { grid-row: 1; }
.lh.is-good .lh-mk { border-color: transparent; background: var(--good-soft); color: var(--good); }
.lh.is-bad .lh-mk { border-color: transparent; background: var(--bad-soft); color: var(--bad); }
h4.lh { grid-template-columns: 28px minmax(0, 1fr); padding-bottom: 7px; border-bottom: 1px solid var(--edge); }
h4.lh .lh-mk { width: 28px; height: 28px; }
h4.lh .lh-mk > .ic { width: 16px; height: 16px; }
h4.lh .lh-t { font-size: 0.9375rem; }
/* A car beside its name in a list of names: one small scale for every such list (a car of 4,6 m about 62 px), its slot
   the same width whatever the car, so that the names stand in one column. */
.pic-s { --mm: 0.0135px; flex: none; display: grid; place-items: end center; width: 68px; min-height: 24px; }
.pic-s .carfig { display: block; }

/* No scroll bar inside a page, only the page's own (the owner, 24 November 2026: "any scrollbar beside the main one
   shouldn't be visible"): a box that scrolls still scrolls (touch, trackpad, wheel, keys), and says it can by its own
   means (a faded edge, arrows), never by a bar. */
:where(body *) { scrollbar-width: none; }
:where(body *)::-webkit-scrollbar { display: none; }

/* 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, src/app/ui/logo.ts): the logo "le canari roule", its height set by `font-size`
   (1em is the height of the letters with the bird's head above them); its letters drawn once per page, by reference. */
.wm { position: relative; display: inline-block; line-height: 0; color: var(--ink); }
.wm-logo { display: block; height: 1em; width: auto; aspect-ratio: 5074.5 / 1110; overflow: visible; }
/* The canary rolls (the owner, 25 November 2026: "hovering the logo … a short, delightful animation"): under a pointer,
   a keyboard's focus or a finger held, once: it draws back, its wheel turns twice, the bird leans into its speed, three
   lines run behind it, and it comes back to its place. Everything turns about the wheel's centre, in the logo's own
   units (494, -400); on `transform` and `opacity` only, so nothing beside the logo moves. A touch screen has no
   pointer to hover with: there the bar's logo rolls once as the home opens (`.app:has(.st.is-home)`). Never under
   prefers-reduced-motion. */
.wm-lines { opacity: 0; }
.wm-wheel, .wm-canary { transform-origin: 494px -400px; }
@media (prefers-reduced-motion: no-preference) {
  /* `--wm-go` is how the logo rolls (how long, how eased, after how long), set only where it does: without it each
     part's `animation` has no value and nothing runs. */
  :is(.wm:hover, :is(a, button):is(:hover, :focus-visible, :active) > .wm) { --wm-go: 0.9s var(--ease) both; }
  @media (hover: none) { .app:has(.st.is-home) .bar .brand .wm { --wm-go: 0.9s var(--ease) 0.7s both; } }
  .wm-roll { animation: wm-roll var(--wm-go); }
  .wm-wheel { animation: wm-turn var(--wm-go); }
  .wm-canary { animation: wm-lean var(--wm-go); }
  .wm-lines { animation: wm-lines var(--wm-go); animation-timing-function: linear; }
}
@keyframes wm-roll { 0%, 100% { transform: translateX(0); } 18% { transform: translateX(-150px); } 70% { transform: translateX(-90px); } }
@keyframes wm-turn { 0%, 12% { transform: rotate(0deg); } 100% { transform: rotate(720deg); } }
@keyframes wm-lean { 0%, 100% { transform: rotate(0deg); } 16% { transform: rotate(-7deg); } 38%, 66% { transform: rotate(12deg); } 86% { transform: rotate(-2deg); } }
@keyframes wm-lines { 0%, 16% { opacity: 0; transform: translateX(160px); } 30% { opacity: 1; } 46% { opacity: 0; transform: translateX(-220px); } 47% { opacity: 0; transform: translateX(160px); } 58% { opacity: 0.8; } 74%, 100% { opacity: 0; transform: translateX(-220px); } }

/* 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; }
.dot-c { background: var(--ink); 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). The content takes
   the screen under the bar at least (the small viewport: what a phone shows with its own bars out), so that the foot of
   a short page starts under the fold and is come to, never the first thing seen (the owner, 25 November 2026:
   docs/decisions/2026-11-25-polish5.md). A height from the stylesheet alone: nothing moves once the page is painted. */
.app.is-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app.is-page > .main { flex: 1 0 auto; box-sizing: border-box; min-height: calc(100vh - var(--bar-h) - env(safe-area-inset-top, 0px)); min-height: calc(100svh - var(--bar-h) - env(safe-area-inset-top, 0px)); padding-bottom: var(--sp-6); }
/* A screen that does not scroll (the street, a duel): the bar, the page's own scene, top to bottom. */
.app.is-screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior-y: none; }
.app.is-screen > .main { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; overflow: clip; }

/* The top bar (src/app/ui/bar.ts), the same on every page and at every width: the wordmark, "Voitures", the search, the
   heart of "Ma sélection" with its count. One line that never wraps: under 1680 px the search's field becomes the loupe
   and the heart keeps no words (seven places with their icons since 24 November 2026).
   No menu: the makes and the theme are in every page's foot. 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-block: env(safe-area-inset-top, 0px) 0; padding-inline: 0 4px; 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-block: 0; padding-inline: var(--pad) 16px; text-decoration: none; }
.brand .wm { font-size: 1.5rem; }
@media (min-width: 760px) { .brand .wm { font-size: 1.625rem; } }
/* The tools keep to the right. */
.bar-tools { flex: 0 1 auto; display: flex; align-items: center; min-width: 0; margin-inline-start: auto; }
.bar-places { flex: none; display: flex; align-items: center; }

/* 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: 44px; padding: 0 12px; 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 / 2; }
/* Each place wears its icon beside its word (the owner, 24 November 2026: the bar had "so much empty wasted space");
   in ink on the place one is in. Below 1240 px the words alone, the icons in the phone's sheet. */
.bar-place { grid-template-columns: auto auto; column-gap: 7px; }
.bar-place > .ic { grid-area: 1 / 1; width: 18px; height: 18px; color: var(--soft); }
.bar-place[aria-current="page"] > .ic { color: var(--ink); }
@media (max-width: 1239px) { .bar-place > .ic { display: none; } .bar-place { column-gap: 0; } }
/* 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; inset-inline-start: 12px; inset-inline-end: 12px; bottom: 5px; height: 5px; border-radius: 2px; background: var(--paint); box-shadow: 0 0 0 1.5px var(--paint-edge); transform: skewX(-20deg); }
/* The narrowest phones (360 px): the wordmark keeps its size, the room between the pieces gives. */
@media (max-width: 379px) {
  .brand { padding-inline-end: 6px; }
  .bar-place { padding: 0 10px; }
}
@media (min-width: 960px) {
  .bar { min-height: calc(64px + env(safe-area-inset-top, 0px)); padding-inline-end: 12px; }
  .brand { padding-inline-end: 20px; }
  .bar-place { height: 40px; padding: 0 14px; }
  .bar-place[aria-current="page"]::after { inset-inline-start: 14px; inset-inline-end: 14px; bottom: 3px; }
}

/* The places (the owner, 24 November 2026): five, inline from 1000 px; on a phone and a tablet they are in the menu sheet. */
.bar-places ul { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
@media (max-width: 999px) { .bar-places { display: none; } }
@media (min-width: 1000px) and (max-width: 1239px) { .bar-place { padding: 0 9px; font-size: 0.875rem; } .bar-place[aria-current="page"]::after { inset-inline-start: 9px; inset-inline-end: 9px; } }

/* The menu "Plus" (src/app/ui/bar.ts): with room, a round button at the end of the bar opening a small panel (`.pop`,
   placed and kept by its button by src/app/ui/pop.ts): the theme's row and the language's, each chosen in place, then
   the pages that are no place of their own. On a phone the same rows are in the menu sheet. No icon of the theme's own
   (the owner, 24 November 2026). */
.bar-more { color: var(--ink); cursor: pointer; }
@media (max-width: 999px) { .bar .bar-more { display: none; } }
#bar-more { min-width: 260px; }
.bar-more-list { margin: 6px 0 0; padding: 6px 0 0; list-style: none; border-top: 1px solid var(--line); }
.bar-more-list :is(a, button) { gap: 12px; }
.bar-more-list :is(a, button) > .ic:first-child { flex: none; width: 20px; height: 20px; color: var(--soft); }
.bar-more-list :is(a, button) b { flex: 1 1 auto; }
.bar-more-list :is(a, button) > .ic:last-child { width: 16px; height: 16px; }

/* The selection's panel under the bar's heart (src/app/ui/sel-pop.ts): its cars, each a link and the cross that takes it
   out, then the way to compare them; empty, how the heart fills it. */
@media (min-width: 760px) { #sel-pop { width: min(380px, calc(100vw - 24px)); } }
.sel-pop { display: grid; gap: 10px; }
.sel-pop-n { margin: 0; color: var(--soft); font: 600 0.8125rem/1 var(--label); }
.sel-pop-list { display: grid; margin: 0; padding: 0; list-style: none; }
.sel-pop-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; border-bottom: 1px solid var(--line); }
.sel-pop-car { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; color: var(--ink); text-decoration: none; }
.sel-pop-pic { --mm: 0.0145px; display: grid; place-items: end center; width: 72px; }
.sel-pop-name { display: grid; min-width: 0; }
.sel-pop-name small { font: 600 0.75rem/1.2 var(--label); color: var(--soft); }
.sel-pop-name b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 700 0.9375rem/1.25 var(--display); }
.sel-pop-price { font: 700 0.875rem/1 var(--display); font-variant-numeric: tabular-nums; }
.sel-pop-out { color: var(--soft); cursor: pointer; }
@media (hover: hover) { .sel-pop-car:hover b { text-decoration: underline; text-underline-offset: 3px; } .sel-pop-out:hover { color: var(--ink); } }
.sel-pop-go { justify-self: stretch; min-height: 48px; }
.sel-pop-none { display: grid; justify-items: center; gap: 6px; margin: 8px 0 4px; text-align: center; }
.sel-pop-none b { font: 700 1rem/1.2 var(--display); }
.sel-pop-none span:last-child { max-width: 28ch; color: var(--soft); font: 500 0.875rem/1.4 var(--body); }
.sel-pop-heart { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sunk); }
.sel-pop-wait { margin: 12px 0; color: var(--soft); font: 550 0.875rem/1.3 var(--body); text-align: center; }

/* The visitor's two settings (src/app/ui/theme.ts): a row, its word, then on its right a small segmented control that shows
   every option at once (the theme's three icons, the languages' three pills). Choosing changes the marked option only:
   every option keeps its box, nothing opens, nothing under the row moves (the owner, 24 November 2026: "in-place ...
   no classic bs"). The theme's choice is marked before any script from the root's `data-theme`; the language spoken is
   the page's own (`aria-current`). */
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding-block: 0; padding-inline: 8px 4px; color: var(--ink); font: 600 0.9375rem/1 var(--body); }
.pref-w { flex: 1 1 auto; min-width: 0; }
.seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--sunk); }
.seg-opt { position: relative; display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 0; border-radius: var(--r-pill); background: none; color: var(--soft); font: 700 0.8125rem/1 var(--label); letter-spacing: 0.02em; text-decoration: none; cursor: pointer; }
.seg-opt .ic { width: 18px; height: 18px; }
.seg-opt.lang-choice[lang|="ar"] { font: 700 1.125rem/1 var(--body); letter-spacing: 0; padding-bottom: 4px; }
@media (hover: hover) { .seg-opt:hover { color: var(--ink); } }
.seg-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
:root[data-theme="light"] .theme-choice[data-theme-choice="light"],
:root[data-theme="dark"] .theme-choice[data-theme-choice="dark"],
:root:not([data-theme]) .theme-choice[data-theme-choice="system"],
.lang-choice[aria-current="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--edge); }
/* An option's word, under it on hover and focus: drawn here, never the browser's tooltip; it covers, it never pushes, and
   a panel's top edge never cuts it (the owner's screenshot, 25 November 2026). */
.seg-opt[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 3; translate: -50% 0; padding: 6px 9px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font: 600 0.75rem/1 var(--body); letter-spacing: 0; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--quick); }
@media (hover: hover) { .seg-opt[data-tip]:hover::after { opacity: 1; } }
.seg-opt[data-tip]:focus-visible::after { opacity: 1; }
.seg.is-foot .seg-opt { width: 40px; height: 36px; }
.ft-prefs { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pref-row.is-foot { min-height: 44px; padding: 0; gap: 10px; color: var(--soft); font-size: 0.875rem; font-weight: 550; }
.pref-row.is-foot .pref-w { flex: none; }

/* The phone's menu: a button at the end of the bar, a sheet from the right with the five places (icon, word, chevron),
   the theme's row and the pages that are no place of their own. */
.bar-menu { color: var(--ink); cursor: pointer; }
@media (min-width: 1000px) { .bar .bar-menu { display: none; } }
.bar-sheet { position: fixed; box-sizing: border-box; inset-block: 0; inset-inline: auto 0; margin: 0; width: min(360px, 100vw); max-width: none; height: 100dvh; max-height: none; padding: env(safe-area-inset-top, 0px) 16px calc(16px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 0; background: var(--paper); color: var(--ink); }
.bar-sheet::backdrop { background: rgb(0 0 0 / 0.42); }
.bar-sheet[open] { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: no-preference) { .bar-sheet[open] { animation: bar-sheet-in var(--calm) var(--ease); } }
@keyframes bar-sheet-in { from { translate: calc(24px * var(--line-dir)) 0; opacity: 0; } }
.bar-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.bar-sheet-logo .wm { font-size: 1.5rem; }
.bar-sheet-head .ib { color: var(--ink); cursor: pointer; }
.bar-sheet-places { margin: 8px 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bar-sheet-places a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 650 1.0625rem/1.2 var(--body); }
.bar-sheet-places a > span { flex: 1 1 auto; }
.bar-sheet-places a .ic { flex: none; width: 22px; height: 22px; }
.bar-sheet-places a .ic:last-child { width: 18px; height: 18px; color: var(--soft); }
.bar-sheet-places a[aria-current="page"] > span { text-decoration: underline 3px var(--paint); text-underline-offset: 6px; }
.bar-sheet .pref-row { min-height: 56px; padding-block: 0; padding-inline: 4px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; font-weight: 650; }
.bar-sheet-extras { margin: 16px 0 0; padding: 0; list-style: none; }
.bar-sheet-extras :is(a, button) { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: 600 0.9375rem/1 var(--body); cursor: pointer; }
.bar-sheet-extras .ic { width: 20px; height: 20px; color: var(--soft); }

/* 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: 1680px) {
  .bar-find { display: flex; align-items: center; gap: 8px; width: clamp(240px, 22vw, 340px); height: 40px; margin-inline-end: 6px; padding-block: 0; padding-inline: 12px 7px; 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: start; }
  .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.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
}
/* Where the field is narrow its words are the short ones (the audit's D23: the long ones were cut). */
@media (min-width: 1680px) and (max-width: 1899px) {
  .bar-find-words { font-size: 0; }
  .bar-find-words::before { content: attr(data-short); font-size: 0.875rem; }
}
@media (min-width: 1680px) and (hover: hover) {
  .bar .bar-find:hover { border-color: var(--edge); background-color: var(--card); color: var(--ink); }
}


/* 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 heart of "Ma sélection" with its car in: yellow inside (its filled twin, src/app/ui/icons.ts), its line the text's colour. */
.ib[aria-pressed="true"] .ic, .hrt[aria-pressed="true"] .ic { --ic-in: var(--paint); }
a.ib { color: var(--ink); text-decoration: none; }
/* The bar's heart: on the selection's page, the stroke of road paint under it, as under the place one is in. Its count is
   the selection's. */
:root[data-sel-here] .bar-sel::after { content: ""; position: absolute; inset-inline-start: 14px; inset-inline-end: 14px; bottom: 2px; height: 4px; border-radius: 2px; background: var(--paint); box-shadow: 0 0 0 1.5px var(--paint-edge); transform: skewX(-20deg); }
/* With room (where the search is drawn as a field), the heart says its words, "Ma sélection", and its count beside them;
   a phone keeps the heart and its count alone. */
.bar-sel-w { display: none; }
@media (min-width: 1680px) {
  .bar .bar-sel { width: auto; height: 40px; display: inline-flex; align-items: center; gap: 7px; padding-block: 0; padding-inline: 10px 12px; border-radius: var(--r-pill); font: 600 0.9375rem/1 var(--body); letter-spacing: -0.005em; }
  .bar-sel-w { display: inline; color: var(--ink); white-space: nowrap; }
  .bar .bar-sel .ib-count { position: static; box-shadow: none; }
  /* The count keeps its place while it is empty: the first heart moves nothing (the audit's D9). */
  .bar .bar-sel .ib-count[hidden] { display: inline-block; visibility: hidden; }
  :root[data-sel-here] .bar-sel::after { inset-inline-start: 12px; inset-inline-end: 12px; bottom: 1px; }
}
.ib-count { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--paint); color: var(--on-paint); font: 700 0.75rem/18px var(--label); text-align: center; box-shadow: 0 0 0 1.5px var(--paper); font-variant-numeric: tabular-nums; }


.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(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; }
/* With a way on, as a shop's basket says "Voir le panier": the car and the count, then "Voir ma sélection"; or "Annuler". */
.toast.has-go { display: flex; align-items: center; gap: 4px 14px; padding-inline-end: 8px; text-align: start; }
.toast.has-go.is-on { pointer-events: auto; }
.toast-go { flex: none; display: inline-grid; place-items: center; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.toast:not(.is-on) .toast-go { visibility: hidden; }
/* 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-block: -9px -7px; margin-inline: -6px 6px; color: inherit; }

/* The foot of every page (src/app/ui/foot.ts; the owner, 24 November 2026: one rich foot, consistent everywhere):
   the logo, the promise and the call to report an error; four lists named by their headings (Voitures with each kind's
   car, Marques with their logos and names, Outils with their icons, the site's own pages); the last line: who publishes,
   the prices' day and its fold, the theme's three options. One step down from the paper, a hairline above it. It ends
   above what floats at the foot of a phone: a car's two acts (car.css). */
.ft { flex: none; background: var(--road); border-top: 1px solid var(--line); color: var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px); }
.app:has(.car-dock) > .ft { padding-bottom: calc(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: env(safe-area-inset-bottom, 0px); }
}
.ft-in { display: grid; gap: 28px; max-width: 1360px; margin: 0 auto; padding: 32px var(--pad) 8px; }
.ft-head { display: grid; gap: 12px; align-content: start; }
.ft-mark .wm { font-size: 2rem; }
.ft .brand.ft-mark { display: inline-flex; min-height: 44px; padding: 0; }
.ft-say { margin: 0; max-width: 28ch; font: 500 1.0625rem/1.4 var(--body); color: var(--ink); text-wrap: balance; }
.ft-say em { font-style: normal; font-weight: 750; }
.ft-call { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.ft-call-q { margin: 0; font: 550 0.9375rem/1.3 var(--body); }
.ft-call-q b { font-weight: 800; }

/* The four lists: two by two on a phone, four columns with room. Every link 44 px to the thumb. */
.ft-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.ft-cols > .ft-col + .ft-col { border-top: 1px solid var(--line); }
.ft-col { min-width: 0; }
.ft-h { margin: 0 0 6px; font: 750 0.8125rem/1.2 var(--label); letter-spacing: 0.02em; color: var(--soft); }
/* A list of the foot (src/app/ui/foot.ts): on a phone a line of 48 px with its chevron, which opens the list as a sheet
   over the page (the shared `.pop`), never a fold that pushes the foot (F77); with room every list stands in its column
   and its heading is a heading again. */
.ft-ht { display: none; }
.ft-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 0.9375rem; text-align: start; cursor: pointer; }
.ft-col > .ft-h { margin: 0; }
/* Its chevron, drawn by the stylesheet in the soft ink: two sides of a small square turned, pointing to the sheet's side. */
.ft-open::after { content: ""; flex: none; width: 8px; height: 8px; margin-inline-end: 5px; border: solid var(--soft); border-width: 0 1.75px 1.75px 0; rotate: -45deg; }
.ft-open:dir(rtl)::after { rotate: 135deg; }
.ft-col .pop ul { padding-bottom: 4px; }
@media (max-width: 899px) {
  .ft-in { gap: 20px; padding-top: 24px; }
  .ft-head { gap: 8px; }
  .ft-end { gap: 4px; padding-block: 12px 16px; }
}
.ft-col ul { margin: 0; padding: 0; list-style: none; }
.ft-col a, .ft-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--ink); text-decoration: none; font: 600 0.9375rem/1.2 var(--body); text-align: start; cursor: pointer; }
@media (pointer: coarse) { .ft-col a, .ft-link { min-height: 44px; } }
/* A label never loses a word: it takes a second line where the column is narrow. */
.ft-col a > span { min-width: 0; overflow-wrap: anywhere; text-wrap: balance; }
.ft-col a { padding: 6px 0; }
.ft-col a .ic { flex: none; width: 20px; height: 20px; color: var(--soft); }
@media (hover: hover) { .ft-col a:hover > span, .ft-link:hover { text-decoration: underline 2px var(--paint); text-underline-offset: 4px; } }
.ft-all a { color: var(--ink); font-weight: 700; }
.ft-all a .ic:last-child { width: 16px; height: 16px; }
/* A kind: the small picture of the car that stands for it on the home (src/app/home/flagships.ts), all six at one scale
   (`--longest`, the longest of them in millimetres, across the picture's room) on one ground, before its name. A kind
   with no pictured car keeps its car drawn by hand (src/app/ui/bodies.ts). */
.ft-kind-car { --room: 60px; flex: none; display: grid; justify-items: center; align-items: end; width: var(--room); color: var(--ink); }
.ft-kind-car .carfig { --mm: calc(var(--room) / var(--longest)); }
.ft-kind-car .body { display: block; width: 52px; height: auto; aspect-ratio: 160 / 56; }
.app:has(.st[data-lane="suv"], [data-car-page][data-rue="suv"]) .ft-kind[data-kind="suv"] a > span:last-child,
.app:has(.st[data-lane="citadines"], [data-car-page][data-rue="citadines"]) .ft-kind[data-kind="citadines"] a > span:last-child,
.app:has(.st[data-lane="berlines"], [data-car-page][data-rue="berlines"]) .ft-kind[data-kind="berlines"] a > span:last-child,
.app:has(.st[data-lane="monospaces"], [data-car-page][data-rue="monospaces"]) .ft-kind[data-kind="monospaces"] a > span:last-child,
.app:has(.st[data-lane="pick-up"], [data-car-page][data-rue="pick-up"]) .ft-kind[data-kind="pick-up"] a > span:last-child,
.app:has(.st[data-lane="coupes"], [data-car-page][data-rue="coupes"]) .ft-kind[data-kind="coupes"] a > span:last-child { text-decoration: underline 3px var(--paint); text-underline-offset: 4px; }
/* A make: its logo and its name. */
.ft-col .makemark.is-named { gap: 10px; }

/* The last line. */
.ft-end { display: grid; gap: 12px; max-width: 1360px; margin: 0 auto; padding: 16px var(--pad) 20px; border-top: 1px solid var(--line); }
.ft-year { margin: 0; color: var(--soft); font: 550 0.8125rem/1.3 var(--body); }

/* What the figures rest on: the prices' day in the cars' face, aged by the visitor's clock; the fold, which opens under
   them. No site is named (20 November 2026). */
.ft-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-width: 0; }
.ft .stamp { margin: 0; font: 700 0.9375rem/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-dl { margin: 10px 0 0; }
.ft-dl dt { margin-bottom: 4px; font: 600 0.75rem/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; }

@media (min-width: 900px) {
  .ft-in { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 48px; padding-top: 48px; }
  .ft-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .ft-cols > .ft-col + .ft-col { border-top: 0; }
  .ft-ht { display: inline; }
  .ft-open { display: none; }
  .ft-col > .ft-h { margin: 0 0 6px; }
  /* The sheet of a phone is the column's list: in the page, closed or not. */
  .ft-col > .pop { position: static; display: block; inset: auto; width: auto; min-width: 0; max-width: none; max-height: none; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1; translate: none; transition: none; }
  .ft .ft-col > .pop > [data-pop-head] { display: none; }
  .ft-end { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
}

/* ── The budget's simulator (src/app/budget/sim.ts): the home's section and the budget's page ─────────────── */

/* Cash and credit share one cell (the two rulers, one height), so switching moves nothing above the result; the credit's terms
   come after the result, so a phone sees what the ruler buys right under it (owner, 24 November 2026: "white space ... I
   have to scroll down to see the cars"). */
.sim { display: grid; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.sim-in { display: grid; align-content: start; gap: 18px; min-width: 0; }
.sim .switch { justify-self: start; }
.sim .switch span { font-weight: 700; }
.sim-modes { display: grid; }
.sim-mode { grid-area: 1 / 1; display: grid; align-content: start; gap: 16px; min-width: 0; }
.sim-mode[data-off] { visibility: hidden; }
.sim-terms { display: grid; align-content: start; gap: 16px; min-width: 0; }
.sim-terms[data-off] { display: none; }
.sim-l { padding: 0; font: 600 0.875rem/1.2 var(--body); color: var(--soft); }
.sim-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; }
.sim-amount output { font: 800 1.75rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* The ruler: how many cars at each step, those reached in ink; one large handle over it. */
.sim-ruler { position: relative; display: grid; padding-top: 4px; }
.sim-ruler-bars { display: flex; align-items: flex-end; gap: 2px; height: 48px; padding: 0 14px; }
.sim-ruler-bars i { flex: 1 1 0; height: max(2px, var(--h)); border-radius: 2px 2px 0 0; background: var(--line); transition: background var(--quick); }
.sim-ruler-bars i.is-in { background: var(--ink); }
.sim-ruler input { -webkit-appearance: none; appearance: none; position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 14px; width: 100%; height: 44px; margin: 0; background: none; cursor: pointer; touch-action: pan-y; }
.sim-ruler input::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: var(--edge); margin-top: 20px; }
.sim-ruler input::-moz-range-track { height: 3px; border-radius: 2px; background: var(--edge); }
.sim-ruler input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12.5px; border: 3px solid var(--card); border-radius: 50%; background: var(--ink); box-shadow: var(--lift-1), 0 0 0 1px var(--ink); }
.sim-ruler input::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--card); border-radius: 50%; background: var(--ink); box-shadow: var(--lift-1), 0 0 0 1px var(--ink); }
.sim-ruler input:focus-visible { outline: none; }
.sim-ruler input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--paint), 0 0 0 1px var(--ink); }
.sim-ruler input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--paint); }
.sim-ruler-ends { display: flex; justify-content: space-between; margin-top: 22px; font: 500 0.75rem/1 var(--label); color: var(--soft); }

/* The down payment and the term: a stepper each, on one line: its name, then its value between a minus and a plus of
   44 px. The value keeps one width whatever it says, so that neither button moves under a finger. */
.sim-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.sim-step-ctl { flex: none; display: inline-grid; grid-template-columns: 44px minmax(4.75rem, auto) 44px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--card); }
.sim-step-b { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color var(--quick); }
.sim-step-b .ic { width: 20px; height: 20px; }
.sim-step-b:disabled { color: var(--faint); cursor: default; }
.sim-step-b:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -2px; }
.sim-step-b:not(:disabled):active { background: var(--line); }
@media (hover: hover) { .sim-step-b:not(:disabled):hover { background: var(--road); } }
.sim-step-v { padding: 0 2px; text-align: center; white-space: nowrap; font: 750 1rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.sim-rate { margin: 0; color: var(--soft); }

/* What it buys: the figure, the count, three cars large, the dock, the way to the list. */
.sim-out { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; min-width: 0; padding: 16px; border-radius: var(--r-m); background: var(--sunk); }
.sim-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; }
.sim-fig small { font: 600 0.875rem/1.2 var(--body); color: var(--soft); }
.sim-fig .sim-fig-terms { flex: 0 0 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sim-fig b { font: 800 clamp(2rem, 7vw, 2.75rem)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.sim-count { margin: 0; font: 500 0.9375rem/1.3 var(--body); color: var(--soft); }
.sim-count b { font: 800 1.0625rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
/* A car drawn whole: its picture reaches under the ground line (the wheels' shadow), so the box never clips; its scale
   comes from the box's width (cqi), so it never overflows sideways either. */
.sim-pic { display: grid; place-items: end center; padding-bottom: 6px; container-type: inline-size; }
.sim-pic .carfig { --mm: calc(100cqi / 5200); }
.sim-leads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 104px; }
.sim-lead { display: grid; align-content: end; gap: 2px; min-width: 0; padding: 8px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; text-align: center; }
.sim-lead .sim-pic { height: 52px; }
.sim-lead b { font: 750 0.875rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .sim-lead:hover { background: var(--card); } }
/* The dock scrolls either way (the cars it reaches, the budget's mark, the first ones past it); its top is headroom for
   the car a pointer magnifies. Past the budget a car is quieter, a thin rust line under it: said, not shouted. */
.sim-dock { display: flex; align-items: flex-end; gap: 2px; height: 86px; padding: 26px 8px 4px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-x: contain; mask-image: linear-gradient(90deg, transparent, var(--ink) 24px, var(--ink) calc(100% - 24px), transparent); }
/* With a mouse the dock has two arrows at its ends: it says there is more, and gets there without a bar. It is a scale of
   prices, the cheapest on the left in every language, as the street (docs/decisions/2026-11-25-rtl.md). */
.sim-dock-wrap { position: relative; direction: ltr; }
.sim-dock-arrow { position: absolute; bottom: 10px; z-index: 2; display: none; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--lift-1); cursor: pointer; }
.sim-dock-arrow.is-prev { inset-inline-start: 0; } .sim-dock-arrow.is-next { inset-inline-end: 0; }
.sim-dock-arrow .ic { width: 18px; height: 18px; }
.sim-dock-arrow.is-prev .ic { rotate: 180deg; }
@media (hover: hover) and (pointer: fine) { .sim-dock-arrow { display: grid; } .sim-dock-arrow[disabled] { opacity: 0; pointer-events: none; } }
.sim-dock-car { position: relative; flex: none; width: 60px; scroll-snap-align: center; transform: scale(var(--zoom, 1)); transform-origin: 50% 100%; transition: transform 0.12s ease-out, opacity var(--quick); color: var(--ink); }
.sim-dock-car .sim-pic { height: 30px; }
/* A car of the dock is 30 px high: its target reaches up into the dock's air to 44 px (the audit of 25 November 2026, #17). */
.sim-dock-car::before { content: ""; position: absolute; inset: -14px 0 0; }
.sim-dock-car.is-near { z-index: 1; }
.sim-dock-car.is-over { opacity: 0.62; }
.sim-dock-car.is-over::after { content: ""; position: absolute; inset-inline-start: 14%; inset-inline-end: 14%; bottom: -3px; height: 2px; border-radius: 1px; background: var(--bad); opacity: 0.6; }
.sim-dock-car.is-over.is-near { opacity: 1; }
.sim-dock-car:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-s); }
.sim-dock-line { flex: none; display: grid; justify-items: center; align-self: stretch; gap: 2px; width: 84px; padding: 0 6px; scroll-snap-align: center; }
.sim-dock-line i { width: 2px; height: 100%; border-radius: 1px; background: var(--ink); opacity: 0.5; }
.sim-dock-line small { white-space: nowrap; font: 600 0.75rem/1 var(--label); color: var(--soft); }
/* The caption: the car said (its make's mark, name, price, and "au-dessus du budget"), one line of a reserved height. */
.sim-cap { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 22px; margin: 0; overflow: hidden; white-space: nowrap; font: 600 0.875rem/1 var(--body); }
.sim-cap img { flex: none; width: 18px; height: 18px; object-fit: contain; }
.sim-cap b { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.sim-cap .num { font-family: var(--display); font-weight: 750; font-variant-numeric: tabular-nums; }
.sim-cap small { color: var(--bad); font: 600 0.75rem/1 var(--label); }
.sim-lead-name { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.sim-lead-name small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 0.75rem/1.2 var(--body); color: var(--soft); }
/* On a phone the make's mark stands over the name, so that the name keeps its width. */
@media (max-width: 599px) { .sim-lead-name { flex-direction: column; gap: 3px; } .sim-lead-name small { max-width: 100%; } }
.sim-mark { flex: none; }
.sim-mark.is-logo img { width: auto; height: 14px; max-width: 40px; }
.sim-mark.is-word { font: 700 0.6875rem/1 var(--label); color: var(--soft); }
.sim-go { justify-self: stretch; min-height: 48px; }
@media (min-width: 900px) {
  /* The rules and the terms stack at the top of their column: what the results' height leaves is under them, not between. */
  .sim { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 32px; padding: 28px; }
  .sim-in, .sim-terms { grid-column: 1; }
  .sim-out { grid-column: 2; grid-row: 1 / span 2; }
  .sim-leads { min-height: 124px; }
  .sim-lead .sim-pic { height: 64px; }
  .sim-dock-car { width: 66px; }
}
/* The narrowest phones (360 px): the three cars keep their prices whole in their thirds. */
@media (max-width: 400px) { .sim-out { padding: 14px 10px; } .sim-leads { gap: 4px; } .sim-lead { padding: 6px 2px; } .sim-lead b { font-size: 0.8125rem; } }
@media (prefers-reduced-motion: reduce) { .sim-dock-car { transition: none; } .sim-ruler-bars i { transition: none; } }

/* ── 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; }

/* The heart of "Ma sélection" as an act with its words (src/app/ui/heart.ts): a line while off, ink once its car is in,
   the heart yellow inside. Its two words share one place, the longer setting its width: a touch changes the words, never
   the size. A link without scripts. */
.hrt { -webkit-tap-highlight-color: transparent; }
.hrt.is-act { display: inline-grid; grid-template-columns: auto auto; justify-content: center; background: none; color: var(--ink); border-color: var(--edge); }
.hrt-off, .hrt-on { grid-area: 1 / 2; }
.hrt-on, .hrt[aria-pressed="true"] .hrt-off { visibility: hidden; }
.hrt[aria-pressed="true"] .hrt-on { visibility: visible; }
.hrt.is-act[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ── 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.75rem/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 make, as its mark (src/app/ui/make.ts): its logo in a box of one size, or its name as a wordmark in the place's own
   type. A logo added later changes no layout: the box is the same. */
.makemark { display: inline-flex; align-items: center; }
.makemark.is-logo { height: 24px; }
.makemark.is-logo img { display: block; width: 96px; height: 24px; object-fit: contain; object-position: var(--line-start) center; filter: var(--logo-ink); }
/* A make named: its logo in a square of 24 (or its first letter in a ring where none is held) and its name. */
.makemark.is-named { gap: 8px; min-width: 0; }
.makemark.is-named img { flex: none; width: 24px; height: 24px; object-fit: contain; filter: var(--logo-ink); }
.makemark-dot { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--edge); border-radius: 50%; font: 800 0.75rem/1 var(--label); color: var(--soft); }
.makemark-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* A chip that says what it is about with its icon (the meanings' map, src/app/ui/meanings.ts). */
.chip.has-ic span { padding-inline-start: 11px; }
.chip span > .ic { flex: none; width: 18px; height: 18px; margin: -2px 0; }

/* A word explained one tap away (src/app/ui/controls.ts, `hint`): a small "?" in a ring, its 44 px under a finger; what
   it opens, a short card at the foot of the screen, closed by a tap anywhere else. */
.hint { position: relative; flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-block: -6px; margin-inline: 1px -3px; padding: 0; border: 0; background: none; color: var(--soft); font: 700 0.75rem/1 var(--body); vertical-align: -1px; cursor: pointer; }
.hint::before { content: ""; position: absolute; inset: 3.5px; border: 1.3px solid currentColor; border-radius: 50%; }
.hint::after { content: ""; position: absolute; inset: -10px; }
.hint:hover, .hint:focus-visible { color: var(--ink); }
/* A fact that leads to every car sharing it (src/app/car/same.ts): the same words in the same ink, a fine dotted line
   under them that firms on hover; never a colour, never "click me" (the owner, 26 November 2026). */
.same { color: inherit; text-decoration: underline dotted 1.5px color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 4px; transition: text-decoration-color var(--quick); }
@media (hover: hover) { .same:hover { text-decoration-style: solid; text-decoration-color: currentColor; } }
/* A word's explanation: a bubble by its "?" (src/app/ui/pop.ts, `hintPlace`, writes --hint-x and --hint-y), closed by a
   tap anywhere else or Escape. */
.hint-pop { position: fixed; top: var(--hint-y, auto); left: var(--hint-x, 12px); right: auto; bottom: auto; width: max-content; max-width: min(340px, 100vw - 24px); margin: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: var(--lift-2); font: 450 0.90625rem/1.45 var(--body); text-align: start; white-space: normal; letter-spacing: 0; text-transform: none; }
.hint-pop b { display: block; margin-bottom: 3px; font: 700 0.9375rem/1.25 var(--body); }
.hint-pop::backdrop { background: transparent; }

/* 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 span:has(.ic) { grid-auto-flow: column; justify-content: center; gap: 6px; }
.switch .ic { width: 18px; height: 18px; }
.switch input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.switch-thumb { position: absolute; z-index: 0; inset-inline-start: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: var(--r-pill); background: var(--raised); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.08); translate: calc(var(--i) * 100% * var(--line-dir)) 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(--raised); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.08); }
}

/* ── 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-block: 0; padding-inline: 14px 12px; 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: min(-2px, calc((100% - 44px) / 2)) 0; }
.pick b { font-weight: 650; }
.pick small { font: 500 0.75rem/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-inline-start: -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-inline-end: 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; }
/* Every sheet's head on a phone (src/app/ui/controls.ts, `sheetClose`; src/app/ui/pop.ts): the grip it is
   pulled down by, its title, the 44 px button that closes it. It stays at the top while the sheet's list scrolls.
   A head with a class of its own (a car's versions, the budget's deck) lays itself out: only the grip is shared. */
.pop > [data-pop-head]:not([class]) { position: sticky; z-index: 2; top: -18px; display: flex; align-items: center; gap: 8px; min-height: 52px; margin: -18px calc(var(--pad) * -1) 4px; padding-block: 8px 0; padding-inline: var(--pad) 4px; background: var(--card); }
.pop > [data-pop-head]:not([class]) .pop-h { flex: 1 1 auto; margin: 0; }
.pop > [data-pop-head]:not([class]) > .ib { margin-inline-start: auto; color: var(--soft); cursor: pointer; }
[data-pop-head] { touch-action: none; }
[data-pop-head]::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4.5px; margin-inline-start: -20px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 24%, transparent); pointer-events: none; }
[popover].is-pulled { transition: none; }
.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: start; 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-block: var(--pop-y, 64px) auto; inset-inline: var(--pop-x, 16px) auto; 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-block: auto var(--pop-y, 64px); inset-inline: var(--pop-x, 16px) auto; 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; }
  .pop > [data-pop-head]:not([class]) { display: contents; }
  .pop > [data-pop-head]:not([class]) > .ib, [data-pop-head]::before { display: none; }
  [data-pop-head] { touch-action: auto; }
}
/* A panel that is a window in the middle of the screen, at every width, with room to choose from (the comparison's picker:
   the owner, 26 November 2026, "a centered dialog or modal ... comfortable to select from ... bigger than that but not
   much bigger"). Its head keeps its close button; its body scrolls inside it (`.cp-pk-pane`), never the page. */
.pop.is-centred { inset: 0; width: min(600px, calc(100vw - 24px)); max-width: none; height: min(740px, calc(100dvh - 40px)); max-height: none; margin: auto; padding: 16px 20px 8px; overflow: clip; border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--lift-2); translate: 0 8px; }
.pop.is-centred:popover-open { display: flex; flex-direction: column; translate: 0 0; }
@starting-style { .pop.is-centred:popover-open { opacity: 0; translate: 0 8px; } }
.pop.is-centred::backdrop { background: rgb(10 10 12 / 0.42); }
.pop.is-centred > [data-pop-head]:not([class]) { position: static; display: flex; min-height: 40px; margin-block: -6px 6px; margin-inline: 0 -8px; padding: 0; }
.pop.is-centred > [data-pop-head]:not([class]) > .ib { display: grid; }
.pop.is-centred > [data-pop-head]::before { display: none; }
.pop.is-centred > [data-pop-head] { flex: none; touch-action: auto; }
@media (hover: hover) { .pop-list :is(a, button):hover b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; } }

/* The folds of a car's page and of the comparison as the owner's pending decision shows them (`carSections`,
   src/app/options.ts; src/app/ui/folds.ts). b: a fold lends its content to one panel and never grows (hidden in place
   for the moment it is drawn); c: every fold stands open, its summary a head that no tap closes, without its sign. */
.op-lend[open] > :not(summary) { display: none; }
.op-flat > summary { cursor: default; }
.op-flat > summary :is(.cs-sign, .a-fold-mark, .eg-sign) { display: none; }
.op-pop .op-pop-body > * { margin-block-end: 0; }
@media (min-width: 760px) { .op-pop { max-width: min(440px, calc(100vw - 32px)); } .op-pop.is-wide { max-width: min(760px, calc(100vw - 32px)); } }

/* A row that slides sideways (`.strip`: a car's sections, the budget's categories, the guides' sections) fades on each
   edge that hides something, and the fade goes once the row is slid to that end (F18, F30); a row that fits shows no
   fade. Where the browser cannot follow a scroll, its right edge fades. */
@property --strip-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --strip-r { syntax: "<length>"; inherits: false; initial-value: 0px; }
.strip { mask-image: linear-gradient(to var(--line-end), var(--ink) calc(100% - 28px), transparent); }
@supports (animation-timeline: scroll()) {
  .strip { mask-image: linear-gradient(to var(--line-end), transparent, var(--ink) var(--strip-l), var(--ink) calc(100% - var(--strip-r)), transparent); animation: strip-edges linear both; animation-timeline: scroll(self inline); }
  @keyframes strip-edges { from { --strip-l: 0px; --strip-r: 28px; } 6% { --strip-l: 28px; } 94% { --strip-r: 28px; } to { --strip-l: 28px; --strip-r: 0px; } }
}

/* 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 ?" ───────────────────────────────────────────────────────────────────────── */

/* A quiet button that opens a small panel (src/app/ui/controls.ts, `whence`): never a fold that pushes the page (F77). */
.whence { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: 550 0.8125rem/1.2 var(--body); color: var(--soft); text-align: start; }
.whence span { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.whence .ic { flex: none; width: 16px; height: 16px; }
.whence:has(+ .pop:popover-open) { color: var(--ink); }
.whence-body { font-size: 0.9375rem; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
@media (min-width: 760px) { .pop:has(> .whence-body) { max-width: min(420px, calc(100vw - 32px)); } .whence-body { font-size: 0.875rem; } }
.whence-body > * + * { margin-top: 8px; }
.whence-body b { color: var(--ink); font-weight: 650; }

/* More of an answer (src/app/ui/controls.ts, `morePanel`): a link's look, its chevron saying it opens elsewhere (F77). */
.more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: 650 0.875rem/1.2 var(--body); text-align: start; }
.more span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.more .ic { flex: none; width: 16px; height: 16px; color: var(--soft); }
@media (hover: hover) { .more:hover span { text-decoration-thickness: 2px; } }

/* ── An amount (src/app/ui/money.ts) ─────────────────────────────────────────────────────────────────────
   One presentation of money everywhere: the figure in the display face, tabular, at the size and weight of its place;
   "dh" after it smaller and lighter, "/mois" with it; a band's two ends with the unit once ("150 000 – 200 000 dh"), its
   words ("Jusqu'à", "Plus de") small before the figure. Lighter is a share of the text's own colour, so that an amount
   reads the same on paper, on a card, on yellow and in ink.
     .amt  > .amt-n (the figure) · .amt-u (the unit) · .amt-w (the words of a band) · .amt-to (the dash between)        */
.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt-n { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
/* Smaller, never below the size of the smallest note (`--fs-note`): a unit is read too. */
/* The unit is quieter than its figure, never under 4.5:1 (the audit of 25 November 2026, #16: "dh" at 2.9 to 3.3:1 under
   a soft figure at 68 %). */
.amt-u, .amt-w { font-family: var(--body); font-size: max(0.62em, var(--fs-note)); font-weight: 600; letter-spacing: 0; color: color-mix(in srgb, currentColor 84%, transparent); }
.amt-w { font-size: max(0.72em, var(--fs-note)); font-weight: 550; }
.amt-to { font-weight: 400; color: color-mix(in srgb, currentColor 55%, transparent); }

/* ── The amount field (src/app/ui/money.ts, `amountField`; alive by src/app/ui/amount-field.ts) ──────────────
   The figure large as it is typed and grouped, "dh" inside the field, a stepper on each side, the line under it that
   says what it takes or what was wrong (two lines kept, so that nothing moves when it changes), the product's button. */
.amf { display: grid; gap: 10px; }
.amf-label { font: 600 0.9375rem/1.3 var(--body); }
.amf-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; gap: 8px; }
.amf-box { display: flex; align-items: center; gap: 8px; min-width: 0; height: 64px; padding: 0 16px; border: 1.5px solid var(--edge); border-radius: var(--r-m); background: var(--card); box-shadow: var(--lift-1); transition: border-color var(--quick), box-shadow var(--quick); }
.amf-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink), var(--lift-1); }
.amf-in { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: 800 1.875rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; caret-color: var(--ink); -webkit-appearance: none; appearance: none; }
.amf-in:focus-visible { outline: none; }
.amf-in::placeholder { color: color-mix(in srgb, var(--soft) 55%, transparent); font-weight: 700; opacity: 1; }
.amf-box > .amt-u { flex: none; font-size: 1.0625rem; font-weight: 650; color: var(--soft); }
.amf-step { position: relative; display: grid; place-items: center; height: 64px; padding: 0; border: 1.5px solid var(--edge); border-radius: var(--r-m); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color var(--quick), scale var(--quick); }
.amf-step .ic { width: 22px; height: 22px; }
.amf-step:active { scale: 0.94; border-color: var(--ink); }
.amf-help { min-height: 2.8em; font: 450 0.8125rem/1.4 var(--body); color: var(--soft); text-wrap: pretty; }
.amf.is-wrong .amf-box { border-color: var(--bad); }
.amf.is-wrong .amf-box:focus-within { box-shadow: 0 0 0 1.5px var(--bad), var(--lift-1); }
.amf.is-wrong .amf-help { color: var(--bad); font-weight: 600; }
.amf-go { justify-self: stretch; }
@media (min-width: 560px) { .amf-go { justify-self: start; } }
@media (hover: hover) { .amf-step:hover, .amf-box:hover:not(:focus-within) { border-color: var(--ink); } }

/* ── 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.75rem/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. 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-inline-start: 1px solid var(--line); }
.fact-l { display: flex; align-items: center; gap: 5px; font: 550 0.75rem/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. */
.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-inline-start: -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; }

/* ── 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); }

.cc-kwh { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cc-kwh a { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); color: inherit; text-decoration: none; font: 500 0.8125rem/1.2 var(--body); }
.cc-kwh a[aria-current] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.cc-kwh b { font: 700 0.8125rem/1.2 var(--display); }

/* ── 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; inset-inline-start: 2%; inset-inline-end: 2%; bottom: calc(var(--mm) * -110); height: calc(var(--mm) * 260); border-radius: 50%; background: radial-gradient(closest-side, var(--car-shade), transparent); }
/* A maker's three-quarter photograph (a stand-in where scale is not read): a side picture's box, the car standing on the
   ground line inside it (the margin under the ground is padding), never stretched; its shadow as wide as the car shown. */
.carfig.is-photo .carfig-img { box-sizing: border-box; padding-bottom: calc(var(--down) * var(--mm)); object-fit: contain; object-position: 50% 100%; }
.carfig.is-photo::before { inset-inline-start: 12%; inset-inline-end: 12%; }
.carfig-cap { position: absolute; top: 100%; left: 50%; translate: -50% 0; margin-top: 8px; white-space: nowrap; font: 500 0.75rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
/* A car the source gives no measure for: the silhouette of its body at the body's usual size, faint and its outline
   dashed, so that it never passes for the car's own drawing (src/app/ui/car.ts, `USUAL`). */
.carfig.is-typical .carfig-img { opacity: 0.55; }
.carfig.is-typical .car-body { stroke-dasharray: 5 4; }
/* 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; inset-inline-start: 0; inset-inline-end: 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; inset-inline-start: 25%; inset-inline-end: 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%; inset-inline-end: auto; width: var(--measure); margin-inline-start: 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 1rem/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-block: calc(4px + env(safe-area-inset-top, 0px)) 4px; padding-inline: 4px var(--pad); 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-inline-end: 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-inline-start: -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-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-block: 0; padding-inline: 4px 10px; 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; }
/* Where the sheet starts: what the visitor was into, the categories, the makes; each part its head. */
.find-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 16px var(--pad) 8px; }
.find-t { margin: 0; font: 750 1.0625rem/1.2 var(--display); letter-spacing: -0.014em; outline: none; }
.find-sec small { font: 500 0.75rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.find-clear { position: relative; flex: none; padding: 0; border: 0; background: none; font: 600 0.84375rem/1 var(--body); color: var(--soft); }
.find-clear::after { content: ""; position: absolute; inset: -14px -10px; }
.find-qs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 8px var(--pad) 4px; list-style: none; }
.find-q { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 40px; padding-block: 0; padding-inline: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); font: 550 0.875rem/1 var(--body); color: var(--ink); }
.find-q .ic { flex: none; width: 16px; height: 16px; color: var(--soft); }
.find-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-q:focus-visible, .find-clear:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.find-make { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px var(--pad) 14px; }
.find-make .find-h, .find-make .find-note { padding: 0; }
.find-make .find-note { margin-top: 4px; }
.find-make > .mk-logo, .find-make > .mk-mono { --logo-w: 64px; --logo-h: 40px; }
.find-h-of { font-weight: 600; color: var(--soft); }
.find-kind { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 18px var(--pad) 6px; }
.find-kind small { justify-self: end; font: 500 0.75rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.find-kind-car { --w: 52px; display: grid; place-items: end center; width: var(--w); }
.find-kind-car.is-big { --w: 96px; }
.find-kind-car .body { display: block; width: var(--w); height: auto; aspect-ratio: 160 / 56; }
/* A real car of the category, at the box's width for the longest car of five metres. */
.find-kind-car .carfig { --mm: calc(var(--w) / 5000); max-width: var(--w); }
.find-recent .rows { margin-bottom: 2px; }
.finder-body > .mk-tiles, .finder-body > .kind-tiles { padding-bottom: 8px; }
.row-top > b.row-make { display: flex; align-items: center; gap: 10px; }
.row-make .mk-logo, .row-make .mk-mono { --logo-w: 28px; --logo-h: 22px; }

/* A row of a list of cars: the car at the list's scale, its name and price, what it is. */
.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: start; 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.75rem/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-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; }
}

/* A make (src/app/ui/make.ts): its logo a mask over a colour, in one box (`--logo-w`, `--logo-h`), centred, its file cut
   to its own ink; ink at rest (`--mark`, else the text's colour) and the make's own colour (`--mc-l`, `--mc-d`:
   make-colour.ts) under a pointer, a focus or a finger where its place carries one (`.mk-hue`, a make's tile). A make
   without a logo says its name in that box, or its initial in a ring. Only the colour changes: nothing moves. */
.mk-hue, .mk-tile { --mc: var(--mc-l, var(--ink)); --mark: var(--ink); }
:root[data-theme="dark"] :is(.mk-hue, .mk-tile) { --mc: var(--mc-d, var(--ink)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.mk-hue, .mk-tile) { --mc: var(--mc-d, var(--ink)); } }
:is(.mk-hue, .mk-tile):is(:hover, :focus-visible, :active) { --mark: var(--mc); }
@media (hover: none) { :is(.mk-hue, .mk-tile):hover:not(:active) { --mark: var(--ink); } }
.mk-logo { flex: none; display: block; width: var(--logo-w, 72px); height: var(--logo-h, 32px); background: var(--mark, currentColor); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; transition: background-color var(--quick); }
.mk-word { display: grid; place-items: center; width: var(--logo-w, 72px); height: var(--logo-h, 32px); overflow: hidden; font: 750 1.0625rem/1 var(--display); letter-spacing: -0.02em; text-align: center; color: var(--mark, currentColor); transition: color var(--quick); }
.mk-mono { flex: none; display: grid; place-items: center; width: var(--logo-h, 32px); height: var(--logo-h, 32px); border: 1.5px solid var(--mark, currentColor); border-radius: 50%; font: 800 calc(var(--logo-h, 32px) * 0.44)/1 var(--display); color: var(--mark, currentColor); }

/* A make's tile, to choose it by: its logo, its name, how many names it sells (the home's dialog of every make, the
   search sheet). One height whatever the make. */
.mk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 var(--pad); list-style: none; }
@media (min-width: 480px) { .mk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mk-tile { --logo-w: 64px; --logo-h: 30px; display: grid; justify-items: center; align-content: start; gap: 4px; width: 100%; height: 100%; padding: 14px 6px 11px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); font: inherit; text-decoration: none; text-align: center; transition: border-color var(--quick), background-color var(--quick); }
.mk-tile > :is(.mk-logo, .mk-mono) { margin-bottom: 6px; }
.mk-tile b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 650 0.84375rem/1.2 var(--display); }
.mk-tile small { font: 500 0.75rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.mk-tile:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }
/* A tile that is a box of a form (`check`): the box covers it, its words lay out as the tile's own; ticked, it wears ink. */
.mk-tile.is-check { position: relative; cursor: pointer; }
.mk-tile.is-check > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mk-tile.is-check > span { display: contents; }
.mk-tile.is-check:has(> input:checked) { --mark: var(--paper); border-color: var(--ink); background: var(--ink); color: var(--paper); }
.mk-tile.is-check:has(> input:checked) small { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.mk-tile.is-check:has(> input:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.mk-tile.is-check:has(> input:disabled:not(:checked)) { opacity: 0.45; cursor: default; }

/* A category, to choose it by: its car drawn at the scale of the six (src/app/ui/bodies.ts) on a strip of road, its name,
   the price it starts at. Under a pointer, a focus or a finger the car turns "this one" and rolls forward a little. */
.kind-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0 var(--pad); list-style: none; }
.kind-tile { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 2px; width: 100%; height: 100%; padding: 0 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); font: inherit; text-align: start; transition: border-color var(--quick); }
/* A category's stage: its cars in turn at one scale, as the home's (home.css, `.hm-kind-stage`), its model named above. */
.kind-tile-car { position: relative; display: block; aspect-ratio: 16 / 9.4; margin-bottom: 4px; overflow: hidden; container-type: inline-size; background: radial-gradient(90% 80% at 50% 36%, var(--kind-lit), transparent 80%), var(--stage, var(--road)); }
.kind-tile-car::before { content: ""; position: absolute; inset-inline-start: -12%; inset-inline-end: -12%; bottom: -36%; height: 62%; border-radius: 50%; background: var(--kind-floor); }
.kind-tile-model { position: absolute; z-index: 2; top: 7px; inset-inline: 8px; overflow: hidden; font: 600 0.6875rem/1.2 var(--label); color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.kind-tile-car > :is(.carfig, .body) { position: absolute; z-index: 1; left: 50%; bottom: 12%; translate: -50% 0; transition: translate var(--calm) var(--ease); }
.kind-tile-car > .carfig { --mm: calc(90cqi / var(--longest)); }
.kind-tile-car > .body { width: 82%; }
.kind-tile[data-kind="suv"] { --stage: var(--kind-suv); }
.kind-tile[data-kind="citadines"] { --stage: var(--kind-citadines); }
.kind-tile[data-kind="berlines"] { --stage: var(--kind-berlines); }
.kind-tile[data-kind="monospaces"] { --stage: var(--kind-monospaces); }
.kind-tile[data-kind="pick-up"] { --stage: var(--kind-pick-up); }
.kind-tile[data-kind="coupes"] { --stage: var(--kind-coupes); }
.kind-tile .body { display: block; height: auto; aspect-ratio: 160 / 56; }
.kind-tile b { padding: 0 10px; font: 650 0.8125rem/1.2 var(--display); text-wrap: balance; }
.kind-tile small { padding: 0 10px; font: 500 0.75rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
/* The narrowest phones: "Monospaces" whole on its line. */
@media (max-width: 379px) { .kind-tile :is(b, small) { padding: 0 7px; } }
.kind-tile:is(:hover, :focus-visible, :active) { --bd-fill: var(--paint); border-color: var(--ink); }
.kind-tile:is(:hover, :focus-visible, :active) .kind-tile-car > :is(.carfig, .body) { translate: calc(-50% + 4px) 0; }
@media (hover: none) { .kind-tile:hover:not(:active, :focus-visible) { --bd-fill: var(--car); border-color: var(--line); } .kind-tile:hover:not(:active, :focus-visible) .kind-tile-car > :is(.carfig, .body) { translate: -50% 0; } }
.kind-tile:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

/* ── 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; }
  ::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; }
}
/* 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; }
}
/* The plunge (src/app/ui/carry.ts, `PLUNGE`): from the street into a car's page, the car in the middle and its name are
   what travel, to the page's head, in one timed step (eased in and out as the way down of before was, landed at 0.8 of
   `--plunge`). The street leaves under them, upwards, gone in the first fifth (the name waits for it to go, then travels); the car's page rises into place
   once they have nearly landed (from 0.62), so that they cross none of its words, and no word of the one page is ever
   seen with a word of the other (the price, "à partir de", a list price: each leaves
   with its page, the other's is in its place). The name changes from the street's picture to the page's in one frame,
   half way, where the two are drawn at one size; the car, in one frame as it lands: never seen twice. Back is the same the other way
   (`SURFACE`): the page goes down under them, the street comes down into place. Under reduced motion, nothing: the
   page simply changes. */
@media (prefers-reduced-motion: no-preference) {
  html:active-view-transition-type(plunge, surface)::view-transition-group(car-pic) { animation-duration: calc(var(--plunge) * 0.8); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  /* The name waits where it stands until the page it leaves has gone from under it, then travels: it never crosses a
     word of either page. */
  html:active-view-transition-type(plunge, surface)::view-transition-group(car-name) { animation-duration: calc(var(--plunge) * 0.6); animation-delay: calc(var(--plunge) * 0.2); animation-fill-mode: both; animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  html:active-view-transition-type(plunge, surface)::view-transition-old(car-name) { animation: pl-swap-out calc(var(--plunge) * 0.6) step-end calc(var(--plunge) * 0.2) both; }
  html:active-view-transition-type(plunge, surface)::view-transition-new(car-name) { animation: pl-swap-in calc(var(--plunge) * 0.6) step-end calc(var(--plunge) * 0.2) both; }
  /* The car changes picture as it lands: the page's own, a larger file, may still be on its way half way there. */
  html:active-view-transition-type(plunge, surface)::view-transition-old(car-pic) { animation: pl-land-out calc(var(--plunge) * 0.8) step-end both; }
  html:active-view-transition-type(plunge, surface)::view-transition-new(car-pic) { animation: pl-land-in calc(var(--plunge) * 0.8) step-end both; }
  html:active-view-transition-type(plunge)::view-transition-old(root) { animation: pl-leave-up calc(var(--plunge) * 0.22) cubic-bezier(0.4, 0, 0.8, 0.4) both; }
  html:active-view-transition-type(plunge)::view-transition-new(root) { animation: pl-rise calc(var(--plunge) * 0.38) var(--ease) calc(var(--plunge) * 0.62) both; }
  html:active-view-transition-type(surface)::view-transition-old(root) { animation: pl-leave-down calc(var(--plunge) * 0.22) cubic-bezier(0.4, 0, 0.8, 0.4) both; }
  html:active-view-transition-type(surface)::view-transition-new(root) { animation: pl-come-down calc(var(--plunge) * 0.38) var(--ease) calc(var(--plunge) * 0.62) both; }
  /* The name alone (carry.ts, `ALONE`: the car, turned in 3D, left with its page): nothing has to land, so the name
     makes its way in half the time and the page that comes follows it at once, with the same lead as above: the paper
     is never left empty for more than an instant. */
  html:active-view-transition-type(alone)::view-transition-group(car-name),
  html:active-view-transition-type(alone)::view-transition-old(car-name),
  html:active-view-transition-type(alone)::view-transition-new(car-name) { animation-duration: calc(var(--plunge) * 0.32); }
  html:active-view-transition-type(alone)::view-transition-new(root) { animation-delay: calc(var(--plunge) * 0.34); }
}
@keyframes pl-swap-out { 0% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pl-swap-in { 0% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes pl-land-out { 0% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes pl-land-in { 0% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes pl-leave-up { to { translate: 0 -7%; opacity: 0; } }
@keyframes pl-rise { from { translate: 0 4%; opacity: 0; } }
@keyframes pl-leave-down { to { translate: 0 7%; opacity: 0; } }
@keyframes pl-come-down { from { translate: 0 -4%; 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); }
  .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); }
  .hrt.is-act:hover { border-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); }
  .mk-tile:hover { border-color: var(--ink); }
  .crumb:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
  .find-clear:hover { color: var(--ink); }
  .find-q:hover { border-color: var(--ink); }
  .whence: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 { scale: 1; }
  .mk-logo, .mk-word, .kind-tile-car > :is(.carfig, .body) { transition: none; }
  .kind-tile:is(:hover, :focus-visible, :active) .kind-tile-car > :is(.carfig, .body) { translate: -50% 0; }
  dialog.modal, dialog.modal[open] { translate: 0 0; }
}

/* Right to left (Darija; docs/decisions/2026-11-25-rtl.md): the stylesheets say start and end, and these turn what
   they cannot say (the tokens of `:root`). */
[dir="rtl"] { --line-dir: -1; --line-start: right; --line-end: left; }
[dir="ltr"] { --line-dir: 1; --line-start: left; --line-end: right; }
/* An arrow that means a way (‹ back, › go) points the way the line reads; an icon that means no way keeps its drawing.
   The street, its neighbours (under it and in a car's row, whose keys ← → walk it) and the budget's dock are scales of
   prices that stay left to right: their arrows too. */
svg.ic:dir(rtl):is(:has(> use[href="#i-back"]), :has(> use[href="#i-go"])):not(:is(.st-street, .st-nears, .zw-nears, .sim-dock-wrap) *) { scale: -1 1; }
/* Right to left (Darija): a figure with its unit is one piece inside the sentence, and a car's engine, a trim or a
   gearbox's note is set in the direction of its first letter ("2.0 TDI 150 DSG7" stays so, not "TDI 150 DSG7 2.0";
   the audit of 25 November 2026, finding 18). */
[dir="rtl"] :is(.num, bdi, .amt) { unicode-bidi: isolate; }
/* An amount's figure with its sign reads as it is written, "+15.100", its unit then after it in the sentence ("+15.100 درهم"). */
[dir="rtl"] .amt-n { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] :is(.car-rest-w, .cf-n, .pc-trim, .cs-cell small) { unicode-bidi: plaintext; }
