/* The comparison (/comparer, src/app/compare/), the page of "Ma sélection": two to eight cars on one ground at one scale, then one line per
   question and one column per car, the best figure of each line ticked. Every colour, space and typeface is a token
   of app.css: nothing is redefined here.

   Nothing moves when what is shown changes: the columns are one width per count of cars (`--n`), every line is one
   height (`--row-h`), a name stands in a box of one height (set smaller, on two lines at most, when it is long), and
   the scale of the cars follows the screen, never the cars (a car longer than 4.8 m alone makes it smaller). With
   room the cars and the six lines are in view together, eight included (the columns narrower, the type a step smaller
   from six); a phone shows two cars and the six lines in one screen, three hold, four to eight slide sideways under
   their names. */

.cp {
  --gap: 8px;
  /* What a line holds, its question and its figures, for laying it in the middle of its height. */
  --row-in: 50px;
  /* Room kept between two cars that stand nose to nose, and around a car in its column. */
  --nose: 6px;
  /* The lines: one height each. */
  --row-h: 64px;
  /* What the screen must also hold under the cars: their names, the six lines, the space between. */
  --ids-h: 84px;
  --rest: calc(10px + var(--self-h) + var(--ids-h) + var(--apart-h) + var(--make-h) - 16px + var(--kin-h) + 12px + 6 * var(--row-h) + 14px);
  /* Under the names, the words that tell versions of one car apart (`.cp-apart`): as many lines as their longest needs
     (`--apart-n` on a phone, `--apart-w` with room, set with the cars by view.ts, `apartLines`), none when the names differ. */
  --apart-h: calc(var(--apart-n, 0) * 1.25 * 0.75rem + min(var(--apart-n, 0), 1) * 2px);
  /* What the page says of itself over the cars: "Ma sélection" and its count, only on the selection's own page. */
  --self-h: 0px;
  /* The make's line, where the column's heart stands at its right. */
  --make-h: 30px;
  /* Under the names, what each car shares with the first (`.cp-kin`): its room, beside two cars or more. */
  --kin-h: 0px;
  --name: 1.3125rem;
  --cp-w: 100%;
  max-width: var(--cp-w);
  margin: 0 auto;
  /* Its end: the page's own space before the foot follows (app.css); with this, as much as under a car's page. */
  padding: 10px var(--pad) var(--sp-5);
}
.cp :is(button, a) { -webkit-tap-highlight-color: transparent; }
.cp[data-n="3"] { --ids-h: 72px; --name: 1.0625rem; }
.cp:is([data-n="6"], [data-n="7"], [data-n="8"]) { --name: 1rem; }
.cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) { --ids-h: 48px; --name: 1.0625rem; }

/* ── The cars, on one ground, at one scale ────────────────────────────────────────────────────────────── */

.cp-cars {
  /* The scale: the longest car fills its column, the cars and the six lines stand together on the screen, and a car
     is never drawn larger than a car should be. The same for every car: two cars in one place always compare. Its
     `100cqi` is this block's width wherever a car is drawn in it. */
  --col: calc((100cqi - (var(--n) - 1) * var(--gap)) / var(--n));
  --mm: max(0.012px, min(0.14px, calc((var(--col) - 2 * var(--nose)) / var(--long)), var(--tall-room, 1px)));
  position: relative;
  container: cars / inline-size;
}
.cp-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 0 var(--gap);
}
/* The ground, and the light the cars stand in. */
/* The room over the cars: the phone's band of hearts; on the selection's page in 3D, the room the 3D takes (below). */
.cp-cars { --cols-top: var(--heart-room, 0px); }
.cp-cols { padding-top: var(--cols-top); }
.cp-cols::before { content: ""; position: absolute; z-index: -1; inset-inline-start: 2%; inset-inline-end: 2%; top: var(--cols-top); height: calc(2000 * var(--mm) * 1.12); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--card) 88%, transparent), transparent); pointer-events: none; }
.cp-cols::after { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: calc(var(--cols-top) + 2000 * var(--mm)); height: 1px; background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent); pointer-events: none; }

.cp-col { position: relative; display: grid; grid-template-rows: auto auto; min-width: 0; }
/* The car: bottom on the ground, at the room every car has. A tap opens what can take its place. */
.cp-stand { display: flex; align-items: flex-end; justify-content: center; height: calc(2000 * var(--mm)); margin: 0; padding: 0 var(--nose); border: 0; border-radius: var(--r-m); background: none; line-height: 0; cursor: pointer; touch-action: pan-y; -webkit-touch-callout: none; user-select: none; }
.cp-stand .carfig { flex: none; }
/* A short car's picture is 44 px tall to the thumb whatever its height to the eye (F16: 114 x 38 with three cars). */
.cp-stand { position: relative; }
.cp-stand::after { content: ""; position: absolute; inset: min(0px, calc((100% - 44px) / 2)) 0; }
/* Two cars stand nose to nose. */
.cp[data-n="2"] .cp-col:first-child .cp-stand { justify-content: flex-end; }
.cp[data-n="2"] .cp-col:nth-child(2) .cp-stand { justify-content: flex-start; }
/* A car without measures says so where it would stand. */

/* An open place: where a car will stand. */
.cp-place span { display: grid; place-items: center; width: min(100%, calc(4300 * var(--mm))); height: min(100%, max(46px, calc(1380 * var(--mm)))); border: 1.5px dashed var(--edge); border-radius: var(--r-m); color: var(--soft); }
.cp-place .ic { width: 26px; height: 26px; }

/* Who it is: the make, the name, its version in a few facts. Each in a box of one height. */
/* A block: its lines are as wide as it, whatever they hold, and none ever shifts sideways. */
.cp-id { container: id / inline-size; display: block; height: var(--ids-h); margin-top: 8px; text-align: center; }
.cp-make { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: var(--make-h); padding: 0 30px; overflow: hidden; white-space: nowrap; font-size: 0.75rem; }
.cp-make > span { overflow: hidden; text-overflow: ellipsis; }
/* One optical box per logo: a wide wordmark and a round badge take about the same ink, centred, never past their column
   (the site audit of 25 November 2026, finding 11: the Dacia mark 86 px wide beside a 16 px VW, into the next figure). */
.cp-make .makemark.is-logo { height: 20px; }
.cp-make .makemark.is-logo img { width: 44px; height: 20px; object-position: center; }
.cp-make .dot { flex: none; }
/* Whose picture it is: beside the make where the column has room, else once under the lines (`.cp-shownline`). */
.cp-shown { display: none; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; text-transform: none; font-size: 0.75rem; color: var(--soft); }
.cp-nameline {
  /* The arrows stand at the two ends of a line of one width, whatever the name: a step after a step finds its arrow
     where it was. The name, centred between them. */
  --near-w: 0px; --line-w: 100cqi;
  display: grid; grid-template-columns: 1fr var(--near-w) minmax(0, calc(min(100cqi, var(--line-w)) - 2 * var(--near-w))) var(--near-w) 1fr; align-items: center;
  width: 100%; min-width: 0; height: calc(var(--name) * 1.22);
}
.cp-name { position: relative; grid-column: 3; justify-self: center; display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; height: 100%; padding: 0 2px; border: 0; border-radius: 8px; background: none; color: var(--ink); cursor: pointer; }
/* A short name in small type is still a target a finger finds: its tap area reaches past its letters. */
.cp-name::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); translate: -50% -50%; }
/* The name: as large as its box, set smaller by its count of letters when it is long, and on two lines when it must. */
.cp-name b {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  max-height: calc(var(--name) * 1.22);
  font: 800 clamp(max(0.75rem, calc(var(--name) * 0.6)), calc((min(100cqi, var(--line-w)) - 2 * var(--near-w) - 24px) / (var(--chars) * 0.7)), var(--name)) / 1 var(--display);
  letter-spacing: -0.025em; text-align: center; text-wrap: balance; overflow-wrap: anywhere;
}
.cp-name .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--faint); }
.cp-name.is-open { color: var(--soft); }
.cp-apart { height: var(--apart-h); margin: 0; padding: 0 4px; font: 700 0.75rem/1.25 var(--body); color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
/* A car's few facts under its name, wrapping as its column allows: apart by a gap, never a dot, which a wrapped line
   left hanging at its end ("Carat · Automatique · Diesel ·", F33). */
.cp-trim { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; width: 100%; max-height: 2.6em; margin: 2px 0 0; overflow: hidden; font: 500 0.75rem/1.3 var(--body); color: var(--soft); }
.cp-trim span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The sign of a column from four cars: its number, the first three on the colours of the radar's dots (yellow, blue,
   ink), the others ringed in ink. The figure says which: never a colour alone. */
.cp-sign { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font: 700 0.75rem/1 var(--label); font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
.cp-sign.is-1 { background: var(--paint); color: var(--on-paint); box-shadow: inset 0 0 0 1.5px var(--paint-edge); }
.cp-sign.is-2 { background: var(--other); color: var(--on-other); box-shadow: none; }
.cp-sign.is-3 { background: var(--ink); color: var(--paper); box-shadow: none; }
:root:not([data-cp-first]) .cp .cp-sign.is-1 { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* What stands beyond a phone's edge, from four cars: "+1" on the road, a button that brings the next column. Shown
   where the columns slide (below). */
.cp-edge, .cp-cover { display: none; }
.cp-beyond { position: absolute; z-index: 3; top: calc(var(--cols-top) + 2000 * var(--mm)); translate: 0 -50%; display: inline-flex; align-items: center; gap: 0; height: 20px; padding-block: 0; padding-inline: 5px 1px; border: 1px solid var(--edge); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: 700 0.75rem/1 var(--label); font-variant-numeric: tabular-nums; cursor: pointer; }
.cp-beyond[hidden] { display: none; }
.cp-beyond b { font-weight: inherit; }
.cp-beyond .ic { width: 11px; height: 11px; }
.cp-beyond::after { content: ""; position: absolute; inset: -14px -8px; }
.cp-beyond.is-next { inset-inline-end: 2px; }
.cp-beyond.is-prev { inset-inline-start: calc(var(--col3) + var(--gap) / 2); translate: calc(-50% * var(--line-dir)) -50%; padding-block: 0; padding-inline: 1px 5px; }
.cp[data-n="3"] .cp-trim { font-size: 0.75rem; }
.cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-trim { display: none; }
.cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-name .ic { display: none; }
.cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-make { font-size: 0.75rem; letter-spacing: 0.06em; }

/* The column's heart, the one act of "Ma sélection" (app.css `.hrt`): at the right of the make's line, its tap area a
   thumb's, the name kept clear of it by the line's room. Filled yellow while its car is in the selection. */
.cp-heart { position: absolute; z-index: 1; inset-inline-end: -6px; top: calc(2000 * var(--mm) + var(--id-top, 8px) + (var(--make-h) - 40px) / 2); width: 40px; height: 40px; }
.cp-heart .ic { width: 20px; height: 20px; }
/* 40 px to the eye, 44 to the thumb (F16). */
.cp-heart::after { content: ""; position: absolute; inset: -2px; }
/* An open place has no car, so no heart: its words take the whole line. */
.cp-col.is-open .cp-make { padding-inline: 0; }

/* What the page says of itself over the cars: on the selection's own page "Ma sélection" and its count (shown from the
   first paint by the root's mark, page.ts); on the open page, that the selection is empty and how a heart fills it. */
.cp-self { display: none; }
:root[data-cp-mine] .cp { --self-h: 34px; }
:root[data-cp-mine] .cp-self, .cp[data-n="0"] .cp-self { display: block; }
.cp-mine { display: flex; align-items: center; justify-content: center; gap: 8px; height: calc(var(--self-h) - 6px); margin: 0 0 6px; font: 700 0.9375rem/1 var(--body); letter-spacing: -0.005em; }
.cp-mine .ic { width: 20px; height: 20px; --ic-in: var(--paint); }
.cp-mine .num { font-weight: 550; color: var(--soft); }
.cp-mine .num::before { content: "·"; margin-inline-end: 8px; color: var(--faint); }
.cp-empty { display: flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 34em; margin: 4px auto 18px; font: 400 0.9375rem/1.4 var(--body); color: var(--soft); text-wrap: balance; }
:root[data-cp-new] .cp-empty { display: none; }
.cp-empty .ic { flex: none; width: 22px; height: 22px; margin-top: -1px; color: var(--ink); }
.cp-empty b { display: block; font-weight: 700; color: var(--ink); }
/* A car's panel says "Retirer … de ma sélection" on the selection's own page, "… de la comparaison" elsewhere. */
.cp-if-mine, :root[data-cp-mine] .cp-if-other { display: none; }
:root[data-cp-mine] .cp-if-mine { display: inline; }

/* ── "Ma sélection" in 3D (src/app/compare/three.ts; the owner: "B but + the 3d") ──────────────────────────────
   On the selection's own page, two to eight measured cars (`data-three`, the server's) where the device draws it
   (`data-cp-3d`, the page's first line): the cars stand in 3D in the place of their flat row, which is the picture
   until the 3D's first frame. The room is given before the first paint: the row of cars is as tall as the 3D needs
   (`--three-h`), the cars standing at its foot; the 3D covers it, from the top of the cars to their ground. */
.cp-3d { display: none; }
:root[data-cp-3d] .cp[data-three] { --three-h: 230px; }
:root[data-cp-3d] .cp[data-three] .cp-cars { --cols-top: max(var(--heart-room, 0px), calc(var(--three-h) - 2000 * var(--mm))); }
:root[data-cp-3d] .cp[data-three] .cp-3d { position: relative; z-index: 2; display: block; height: 0; }
.cp-3d-view {
  position: absolute; inset-inline-start: calc(var(--pad) * -1); inset-inline-end: calc(var(--pad) * -1); top: 0; height: var(--three-at, 0px);
  overflow: hidden; isolation: isolate; container: three / inline-size; pointer-events: none;
}
.cp[data-three-state="live"] .cp-3d-view { pointer-events: auto; }
.cp-3d-canvas {
  position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s ease-out;
  touch-action: pan-y; cursor: grab; outline: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.cp-3d-canvas.is-held { cursor: grabbing; }
.cp-3d-canvas:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -4px; }
.cp[data-three-state="live"] .cp-3d-canvas { opacity: 1; }
/* Once the 3D has its first frame, the flat row steps aside (its names and lines stay). */
.cp[data-three-state="live"] .cp-cols .cp-stand, .cp[data-three-state="live"] .cp-cols::before { opacity: 0; transition: opacity 0.3s ease-out 0.25s; }
/* What a tap does: said at its top, until a car is chosen or the scene turned. */
.cp-3d-hint {
  position: absolute; z-index: 2; left: 50%; top: 8px; translate: -50% 0; max-width: calc(100% - 24px); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none;
  padding: 3px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--card) 88%, transparent); box-shadow: 0 0 0 1px var(--line);
  font: 550 0.75rem/1.4 var(--body); color: var(--ink); opacity: 0; transition: opacity 0.4s ease-out;
}
.cp[data-three-state="live"] .cp-3d-hint:not(.is-gone):not(:empty) { opacity: 1; }
.cp-3d-wake { position: absolute; z-index: 3; inset-inline-end: var(--pad); top: 8px; pointer-events: auto; }
/* Whose pictures, the generic models and their credit: a quiet line at its foot, the whole one tap away. */
.cp-3d-said { position: absolute; z-index: 2; inset-inline-start: var(--pad); bottom: 4px; max-width: calc(100% - 2 * var(--pad)); opacity: 0; transition: opacity 0.4s ease-out; }
.cp[data-three-state="live"] .cp-3d-said { opacity: 1; }
.cp-3d-said > summary { display: inline-flex; list-style: none; cursor: pointer; color: var(--soft); text-decoration: underline dotted; text-underline-offset: 3px; }
.cp-3d-said > summary::-webkit-details-marker { display: none; }
.cp-3d-said[open] { inset-inline-start: 8px; inset-inline-end: 8px; padding: 8px 10px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--lift-1); }
.cp-3d-said > p { margin: 6px 0 0; }
/* The signs over the cars: each a link to its car's page. */
.cp-3d-signs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cp-3d-sign {
  position: absolute; inset-inline-start: 0; top: 0; display: inline-block; max-width: 46vw; padding: 3px 10px 4px; border: 1px solid var(--line); border-radius: 12px;
  background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: var(--lift-1); font: 700 0.78rem/1.15 var(--display); letter-spacing: -0.008em;
  color: var(--ink); text-decoration: none; white-space: nowrap; pointer-events: auto; will-change: transform; touch-action: pan-y;
  transition: opacity 0.2s ease-out, visibility 0s;
}
.cp-3d-sign b { font-weight: inherit; }
.cp-3d-sign small { display: block; font: 650 0.75rem/1.2 var(--body); color: var(--soft); }
.cp-3d-sign::after { content: ""; position: absolute; inset: -9px -4px; }
.cp-3d-sign.is-off, .cp:not([data-three-state="live"]) .cp-3d-sign { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease-out, visibility 0s 0.2s; }
@container three (max-width: 600px) {
  .cp-3d-sign { max-width: 104px; white-space: normal; text-align: center; text-wrap: balance; font-size: 0.75rem; padding: 3px 8px 4px; }
  /* Versions of one car: each sign holds only what tells it apart, a step smaller, so that eight stand over eight cars. */
  .cp-3d-signs.is-one-name .cp-3d-sign { max-width: 78px; font-size: 0.75rem; padding: 2px 4px 3px; border-radius: 10px; }
}
/* A phone: a heart belongs to its column, never to the picture. Under the 3D it stands in a band of its own between the
   ground and the column's names, in the middle of its column (it slides with the columns from four cars); the band over
   the cars is not needed there. A make is still never cut. */
@media (max-width: 899px) {
  :root[data-cp-3d] .cp[data-three] { --heart-room: 0px; --heart-band: 26px; }
  :root[data-cp-3d] .cp[data-three] .cp-heart { top: calc(2000 * var(--mm) + 6px); inset-inline-end: auto; left: calc(50% - 20px); width: 40px; height: 32px; }
  :root[data-cp-3d] .cp[data-three] .cp-id { margin-top: calc(8px + var(--heart-band)); }
}
@media (min-width: 900px) {
  :root[data-cp-3d] .cp[data-three] { --three-h: clamp(280px, 34svh, 380px); }
  .cp-3d-view { inset-inline-start: 0; inset-inline-end: 0; border-radius: var(--r-l); }
}
@media (hover: hover) { .cp-3d-sign:hover { background: var(--card); border-color: var(--edge); } }
@media (prefers-reduced-motion: reduce) { .cp-3d-canvas, .cp-3d-hint, .cp-3d-sign, .cp-3d-said, .cp[data-three-state="live"] .cp-cols .cp-stand { transition: none; } }

/* What a car shares with the first car compared ("La même mécanique"), under its version: ink on a shade of ink, never
   a colour (yellow is the car held, blue the other car of a pair). Its room is kept in every column of two cars or more,
   said or not, so that a change of car moves nothing; a narrow column shows its first words alone (a screen reader hears
   the whole). Beside three cars or more, the first column says once what the others' words are said against. */
.cp:is([data-n="2"], [data-n="3"], [data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) { --kin-h: calc(2 * 1.25 * 0.6875rem + 4px); }
.cp[data-n="2"] { --kin-h: calc(1.25 * 0.6875rem + 8px); }
.cp-id { height: calc(var(--ids-h) + var(--apart-h) + var(--kin-h) + var(--make-h) - 16px); }
/* One line of room beside two cars, two beside more; one line more, when the words need it, takes the air kept over the
   lines (scripts/review: every phrase, every size). */
.cp-kin { display: flex; justify-content: center; align-items: flex-start; height: calc(var(--kin-h) - 4px); margin: 4px 0 0; }
.cp-kin-w { max-width: 100%; padding: 0 6px 1px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); font: 650 0.75rem/1.25 var(--body); color: var(--ink); text-wrap: balance; }
.cp-kin-to { font: 500 0.75rem/1.25 var(--body); color: var(--soft); text-wrap: balance; }
.cp-kin.is-late > * { animation: cp-in var(--calm) var(--ease) both; }
/* A phone: the longest words by their first ones; beside three to five cars, the longer too. */
@container id (max-width: 185px) {
  .cp-kin-w.is-longest .cp-kin-more { display: none; }
}
@container id (max-width: 150px) {
  .cp-kin-w, .cp-kin-to { font-size: 0.75rem; }
  .cp-kin-w { padding-inline: 4px; }
  .cp-kin-w.is-long .cp-kin-more { display: none; }
}

/* One step along the street, on each side of the name: with room (a finger slides on the car). */
.cp-near { display: none; }

/* One more car: its place beside the cars where the screen has a margin for it, under the sentence otherwise. */
.cp-add { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding-block: 0; padding-inline: 14px 18px; border: 1.5px dashed var(--edge); border-radius: var(--r-pill); background: none; color: var(--ink); font: 650 0.875rem/1.15 var(--body); cursor: pointer; }
.cp-add .ic { width: 18px; height: 18px; }
.cp-add b { font-weight: inherit; }
.cp-add.is-side { display: none; }
.cp-addline { margin: 16px 0 0; text-align: center; }

/* ── The lines: one per question, one column per car ──────────────────────────────────────────────────── */

.cp-t { container: lines / inline-size; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); width: 100%; margin-top: 12px; border-collapse: collapse; border-top: 1px solid var(--line); }
.cp-t > :is(caption, thead) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cp-line { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; border-bottom: 1px solid var(--line); }
.cp-line > tr { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
/* A line's question stands at one height whatever its figures say: the line is laid from its top. */
.cp-row { height: var(--row-h); align-content: start; row-gap: 3px; padding-top: calc((var(--row-h) - var(--row-in)) / 2); }
.cp-label { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0; font: 600 0.75rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-label .ic { flex: none; width: 13px; height: 13px; color: var(--faint); transition: rotate var(--quick); }
.cp-line:has(> .cp-more [open]) .cp-label { color: var(--ink); }
.cp-line:has(> .cp-more [open]) .cp-label .ic { rotate: 180deg; color: var(--ink); }

/* A cell: its figure, the best ticked, what separates the others from it. A narrow column says it in two lines,
   a wide one in one; both keep the line's height. */
.cp-v { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 0; padding: 0; text-align: center; white-space: nowrap; }
.cp-fig { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 650 0.9375rem/1.25 var(--display); letter-spacing: -0.017em; }
/* The best of a line: its figure in green on its own ground, ticked; every other figure's distance from it in rust, as a
   car's page says a gap (the site audit of 25 November 2026, finding 12: the gaps were grey and the best a 12 px tick). */
.cp-v.is-best .cp-fig { font-weight: 800; padding: 0 6px; border-radius: var(--r-s); background: var(--good-soft); color: var(--good); }
.cp-v:is(.is-words, .is-empty) .cp-fig { font: 500 0.75rem/1.65 var(--body); letter-spacing: 0; color: var(--soft); }
/* Words in place of a figure ("non communiqués") break onto a second line in a narrow column rather than leave it. */
.cp-v.is-words .cp-fig { max-width: 100%; white-space: normal; text-wrap: balance; line-height: 1.3; padding-top: 2px; }
.cp-v.is-range .cp-fig { font-size: 0.75rem; line-height: 1.6; color: var(--soft); white-space: normal; text-wrap: balance; }
.cp-tick { display: none; }
.cp-far { font: 650 0.75rem/1.3 var(--body); letter-spacing: 0; color: var(--bad); }
.cp-far > span { display: inline-block; padding: 1px 6px; border-radius: var(--r-pill); background: var(--bad-soft); }
/* On a tinted ground the unit takes the figure's own colour: faded, "dh" fell to 2.9:1 (finding 16). */
:is(.cp-far, .cp-v.is-best .cp-fig) .amt-u { color: inherit; }
/* In two lines, the tick sits on the figure's line, beside it. */
.cp-v.is-best { flex-flow: row wrap; justify-content: center; align-content: flex-start; align-items: center; gap: 0 4px; }
.cp-v.is-best .cp-tick { display: inline-grid; }
.cp-tick { place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--good); color: var(--paper); }
.cp-tick .ic { width: 12px; height: 12px; }
/* A promotion: its mark beside the figure; with room, the list price struck. */
.cp-promo { display: none; }
.cp-list { display: none; font: 500 0.75rem/1.3 var(--body); color: var(--soft); text-decoration-thickness: 1px; }
.cp-v.is-promo:not(.is-far) .cp-list { display: inline; }
.cp-v.is-promo.is-far .cp-promo { display: inline-grid; }
.cp-promo { place-items: center; width: 14px; height: 14px; margin-top: -1px; color: var(--soft); }
.cp-promo .ic { width: 12px; height: 12px; }
.cp-v.is-promo.is-far { flex-flow: row wrap; justify-content: center; align-content: flex-start; align-items: center; gap: 0 3px; }
.cp-v.is-promo.is-far .cp-far { flex-basis: 100%; }
.cp-v.is-promo.is-best .cp-list { flex-basis: 100%; }

/* One line for the figure and its gap where every column has the room (about 240 px); its struck list price beside
   them where it has more (about 380 px). */
@container lines (min-width: 500px) {
  .cp:is([data-n="1"], [data-n="2"]) :is(.cp-v, .cp-v.is-best, .cp-v.is-promo.is-far) { flex-flow: row nowrap; align-items: baseline; justify-content: center; gap: 0 8px; }
  .cp:is([data-n="1"], [data-n="2"]) .cp-v :is(.cp-far, .cp-list) { flex-basis: auto; }
  .cp:is([data-n="1"], [data-n="2"]) .cp-tick { align-self: center; }
}
@container lines (min-width: 780px) {
  .cp:is([data-n="1"], [data-n="2"]) .cp-v.is-promo .cp-list { display: inline; }
  .cp:is([data-n="1"], [data-n="2"]) .cp-v.is-promo .cp-promo { display: none; }
}
@container lines (min-width: 760px) {
  .cp[data-n="3"] :is(.cp-v, .cp-v.is-best, .cp-v.is-promo.is-far) { flex-flow: row nowrap; align-items: baseline; justify-content: center; gap: 0 8px; }
  .cp[data-n="3"] .cp-v :is(.cp-far, .cp-list) { flex-basis: auto; }
  .cp[data-n="3"] .cp-tick { align-self: center; }
}
@container lines (min-width: 1160px) {
  .cp[data-n="3"] .cp-v.is-promo .cp-list { display: inline; }
  .cp[data-n="3"] .cp-v.is-promo .cp-promo { display: none; }
}
@container lines (min-width: 1020px) {
  .cp[data-n="4"] :is(.cp-v, .cp-v.is-best, .cp-v.is-promo.is-far) { flex-flow: row nowrap; align-items: baseline; justify-content: center; gap: 0 8px; }
  .cp[data-n="4"] .cp-v :is(.cp-far, .cp-list) { flex-basis: auto; }
  .cp[data-n="4"] .cp-tick { align-self: center; }
}
@container lines (min-width: 1280px) {
  .cp[data-n="5"] :is(.cp-v, .cp-v.is-best, .cp-v.is-promo.is-far) { flex-flow: row nowrap; align-items: baseline; justify-content: center; gap: 0 8px; }
  .cp[data-n="5"] .cp-v :is(.cp-far, .cp-list) { flex-basis: auto; }
  .cp[data-n="5"] .cp-tick { align-self: center; }
}

/* A line, opened: its whole line is the summary of its detail, laid over it (it opens with no script). */
.cp-more > td { grid-column: 1 / -1; padding: 0; }
.cp-d { position: relative; }
.cp-open { position: absolute; z-index: 1; inset-inline-start: 0; inset-inline-end: 0; top: calc(var(--row-h) * -1); height: var(--row-h); list-style: none; cursor: pointer; border-radius: 6px; }
.cp-open::-webkit-details-marker { display: none; }
.cp-open:focus-visible { outline-offset: -2px; }
.cp-d-body { padding: 4px 0 18px; }

/* The detail's small table: a row per fact, a column per car, its own figure in ink. */
.cp-dt-wrap { overflow-x: auto; overscroll-behavior-x: contain; }
.cp-dt { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; table-layout: fixed; font: 500 0.8125rem/1.3 var(--body); }
.cp:is([data-n="3"], [data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt { max-width: none; }
.cp-dt :is(th, td) { padding: 7px 4px; border-top: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cp-dt thead :is(th, td) { border-top: 0; font: 650 0.75rem/1.2 var(--body); color: var(--soft); }
.cp-dt thead .dot { margin-inline-end: 5px; vertical-align: baseline; }
.cp-dt th[scope="row"] { width: 32%; padding-inline-start: 0; text-align: start; font-weight: 500; color: var(--soft); }
.cp-dt tr.is-sum > * { border-top: 1.5px solid var(--ink); font-weight: 750; color: var(--ink); }
.cp-dt.is-marks th[scope="row"] { color: var(--ink); }
/* An item listed, an item not listed: an ink tick, a faint dot, in a line's detail as in the whole table. */
.cp-yes { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--ink); vertical-align: middle; }
.cp-yes .ic { width: 15px; height: 15px; }
.cp-no { color: var(--faint); }
.cp-note { max-width: 760px; margin: 10px auto 0; font: 400 0.75rem/1.45 var(--body); color: var(--soft); text-align: start; }
.cp-none { margin: 8px 0; font: 500 0.8125rem/1.4 var(--body); color: var(--soft); }

/* The settings a line's figures follow: the app's switch, its words beside it. */
.cp-set { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 2px 0 12px; }
.cp-seg { display: inline-flex; align-items: center; gap: 8px; }
.cp-seg-l { font: 600 0.75rem/1 var(--body); color: var(--soft); }
.cp-seg .switch span { font-variant-numeric: tabular-nums; }
/* The switch with four and five choices (app.css moves its thumb for two and three). */
.cp-seg .switch:has(label:nth-of-type(4) input:checked) { --i: 3; }
.cp-seg .switch:has(label:nth-of-type(5) input:checked) { --i: 4; }
.cp-seg .switch:has(label:nth-of-type(6) input:checked) { --i: 5; }

/* What the sheets list. */
.cp-eq { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; text-align: start; }
.cp:is([data-n="3"], [data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-eq { max-width: none; }
.cp-eq-h { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; font: 650 0.8125rem/1.2 var(--body); }
.cp-eq-h small, .cp-same summary small { font: 600 0.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-tags li { padding: 5px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 7%, transparent); font: 550 0.75rem/1.2 var(--body); }
.cp-same summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 0.8125rem/1.2 var(--body); color: var(--soft); cursor: pointer; list-style: none; }
.cp-same summary::-webkit-details-marker { display: none; }
.cp-same summary span { text-decoration: underline dotted; text-underline-offset: 4px; }
.cp-same[open] summary { color: var(--ink); margin-bottom: 4px; }

/* Yellow is the first car of the comparison: the first column wears it once the page has cars (`data-cp-first`, set
   before the first paint). Otherwise the first column is plain: no dot, the drawing in the plain car's colours. */
:root:not([data-cp-first]) .cp .dot-a { display: none; }
:root:not([data-cp-first]) .cp .carfig .car-body.car-a { fill: var(--car); }
:root:not([data-cp-first]) .cp .carfig .car-pillar.car-a { stroke: var(--car); }

/* ── Leurs profils (src/app/compare/radar.ts): two or three cars on one radar, under the lines ────────────────
   The card's radar drawn again here (its drawing is src/app/card/view.ts; public/app/card.css is not loaded on this
   page, so the few rules it needs stand in this block). Each axis: its word, then each car's figure in the page's
   columns with its car's dot, the best in ink. Shapes: the first column yellow, the second blue, the third ink, each
   lighter than a card's one shape so that every outline reads through the others. How wide the radar is comes from
   the server (`--w`): as wide as its labels let it be on the screen, at most 400 px. */

.cr { container-type: inline-size; display: grid; justify-items: center; min-width: 0; margin-top: 22px; }
.cr-h { margin: 0; color: var(--soft); }
.cr-radar { position: relative; aspect-ratio: 1; width: var(--w, min(92cqw, 400px)); min-width: 0; margin: 30px 0 8px; padding: 0; border: 0; }
/* The top label stands over the ring with a figure per car: a third car's needs a line more of room. */
.cr.is-3 .cr-radar { margin-top: 50px; }
/* Drawn for other cars while the server's radar for these is on its way (app.ts). */
.cr.is-stale { opacity: 0.35; transition: opacity var(--calm) var(--ease); }
.cr .pc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cr .pc-band { fill: var(--paper); }
.cr .pc-band.is-shaded { fill: color-mix(in srgb, var(--line) 42%, var(--paper)); }
.cr .pc-grid .pc-band:first-child { stroke: var(--line); stroke-width: 1; }
.cr .pc-axis { stroke: color-mix(in srgb, var(--edge) 34%, transparent); stroke-width: 1; }
.cr .pc-axis.is-missing { stroke-dasharray: 2 3; }
.cr .pc-shape polygon { stroke-linejoin: round; stroke-width: 1.5; }
.cr .pc-dot { stroke: var(--paper); stroke-width: 1.5; }
.cr .pc-shape.is-me polygon { fill: color-mix(in srgb, var(--paint) 52%, transparent); stroke: color-mix(in srgb, var(--paint) 45%, var(--ink)); stroke-width: 2; }
.cr .pc-shape.is-me .pc-dot { fill: color-mix(in srgb, var(--paint) 45%, var(--ink)); }
.cr .pc-shape.is-other polygon { fill: color-mix(in srgb, var(--other) 30%, transparent); stroke: var(--other); stroke-width: 2; }
.cr .pc-shape.is-other .pc-dot { fill: var(--other); }
.cr .pc-shape.is-third polygon { fill: color-mix(in srgb, var(--ink) 7%, transparent); stroke: var(--ink); stroke-width: 1.25; }
.cr .pc-shape.is-third .pc-dot { fill: var(--ink); }

/* An axis's label: its word, then the figures. A radio's label: tapping it gives its scale below. A third of the radar's
   width at most: a long word ("CONSO MIXTE" at 12 px) takes two lines rather than the screen's edge. */
.cr .pc-ax { position: absolute; left: var(--x); top: var(--y); translate: var(--tx, -50%) var(--ty, -50%); display: grid; justify-items: var(--j, center); gap: 3px;
  width: max-content; max-width: 34%; padding: 4px 6px 5px; border-radius: 10px; cursor: pointer; transition: background-color var(--quick), color var(--quick); -webkit-user-select: none; user-select: none; }
.cr .pc-ax::after { content: ""; position: absolute; inset: -6px -3px; }
/* Each axis wears its sign (src/app/ui/meanings.ts, the app's one map of meanings) before its word: read at a glance. */
.cr-ax-head { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 1px; color: var(--ink); }
.cr-ax-head .ic { flex: none; width: 15px; height: 15px; }
.cr .pc-ax-code { font: 700 0.75rem/1.1 var(--label); letter-spacing: 0.08em; color: inherit; text-decoration: none; text-align: center; font-variant-numeric: tabular-nums; }
.cr-fig { display: inline-flex; align-items: center; gap: 4px; font: 500 0.75rem/1.1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: 0.005em; color: var(--soft); white-space: nowrap; }
.cr-fig .dot { width: 7px; height: 7px; box-shadow: 0 0 0 1px var(--paint-edge); }
.cr-fig .dot-b, .cr-fig .dot-c { box-shadow: none; }
.cr-fig.is-best { color: var(--ink); font-weight: 700; }
.cr .pc-pick:checked + .pc-ax { background: var(--ink); color: var(--paper); }
.cr .pc-pick:checked + .pc-ax :is(.cr-ax-head, .cr-fig) { color: inherit; }
/* The third car's dot is ink: on the ink pill it turns to the paper. */
.cr .pc-pick:checked + .pc-ax .dot-c { background: var(--paper); }
.cr .pc-pick:focus-visible + .pc-ax { outline: 2.5px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .cr .pc-ax:hover { background: var(--sunk); } .cr .pc-pick:checked + .pc-ax:hover { background: var(--ink); } }

/* The foot: the names and the scale's span, or the line of the axis tapped (its scale, every car on it). */
.cr-foot { display: grid; align-content: center; width: min(100%, 440px); min-height: 52px; }
.cr-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; font: 600 0.75rem/1.3 var(--label); color: var(--ink); font-variant-numeric: tabular-nums; }
.cr-key > span { display: inline-flex; align-items: center; gap: 6px; }
.cr-key .dot { width: 8px; height: 8px; }
.cr-key .dot-b, .cr-key .dot-c { box-shadow: none; }
.cr-key .cr-among { flex-basis: 100%; justify-content: center; font-weight: 500; color: var(--soft); }
/* The names are the header's, each with its dot, kept in view by the page's script: here only without it. */
@media (scripting: enabled) { .cr-key .cr-name { display: none; } }
.cr-line { display: none; gap: 4px; margin: 0; }
.cr-line-h { display: flex; justify-content: space-between; gap: 10px; font: 700 0.75rem/1.2 var(--body); }
.cr-line-h small { font: 500 0.75rem/1.2 var(--label); color: var(--soft); }
/* An axis whose scale is made of their families' cars says so under it (radar.ts). */
.cr-line-of { justify-self: end; font: 500 0.75rem/1.2 var(--label); color: var(--soft); }
.cr .pc-scale { display: grid; grid-template-columns: auto minmax(48px, 1fr) auto; align-items: center; column-gap: 8px; font: 600 0.75rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.cr .pc-scale-bar { position: relative; height: 12px; }
.cr .pc-scale-bar::before { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 5.5px; height: 1px; background: linear-gradient(to var(--line-end), color-mix(in srgb, var(--ink) 22%, transparent), var(--ink)); }
.cr .pc-scale-me { position: absolute; inset-inline-start: var(--at); top: 50%; width: 9px; height: 9px; translate: calc(-50% * var(--line-dir)) -50%; border-radius: 50%; background: var(--paint); box-shadow: 0 0 0 1.5px var(--paint-edge), 0 0 0 3px var(--paper); }
.cr .pc-scale-me.is-other { background: var(--other); box-shadow: 0 0 0 3px var(--paper); }
.cr .pc-scale-me.is-third { background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.cr:has(.pc-pick:checked) .cr-key { display: none; }
/* The axis touched: its line in the foot, its axis in ink (an SVG line ignores `display`, a paragraph `stroke`). */
.cr:has([value=prix]:checked) :is(.cr-line,.pc-axis)[data-for=prix],
.cr:has([value=mois]:checked) :is(.cr-line,.pc-axis)[data-for=mois],
.cr:has([value=budget]:checked) :is(.cr-line,.pc-axis)[data-for=budget],
.cr:has([value=vignette]:checked) :is(.cr-line,.pc-axis)[data-for=vignette],
.cr:has([value=carburant]:checked) :is(.cr-line,.pc-axis)[data-for=carburant],
.cr:has([value=parking]:checked) :is(.cr-line,.pc-axis)[data-for=parking],
.cr:has([value=coffre]:checked) :is(.cr-line,.pc-axis)[data-for=coffre],
.cr:has([value=places]:checked) :is(.cr-line,.pc-axis)[data-for=places],
.cr:has([value=puissance]:checked) :is(.cr-line,.pc-axis)[data-for=puissance],
.cr:has([value=couple]:checked) :is(.cr-line,.pc-axis)[data-for=couple],
.cr:has([value=acceleration]:checked) :is(.cr-line,.pc-axis)[data-for=acceleration],
.cr:has([value=conso]:checked) :is(.cr-line,.pc-axis)[data-for=conso],
.cr:has([value=electrique]:checked) :is(.cr-line,.pc-axis)[data-for=electrique],
.cr:has([value=autonomie]:checked) :is(.cr-line,.pc-axis)[data-for=autonomie],
.cr:has([value=co2]:checked) :is(.cr-line,.pc-axis)[data-for=co2],
.cr:has([value=equipements]:checked) :is(.cr-line,.pc-axis)[data-for=equipements] { display: grid; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: none; }

@media (min-width: 900px) {
  .cr { --cr-most: 480px; margin-top: 30px; }
  .cr-fig { font-size: 0.875rem; }
  .cr .pc-ax-code { font-size: 0.75rem; }
  .cr-key { font-size: 0.75rem; }
}

/* ── In a sentence, who is first, the choice ──────────────────────────────────────────────────────────── */

.cp-shownline { margin: 8px 0 0; text-align: center; color: var(--soft); }
.cp-said { max-width: min(100%, 880px); margin: 20px auto 0; text-align: center; text-wrap: balance; }
/* Its place is two lines tall whatever it says (a longer sentence takes two): what follows the lines never moves
   when a car changes. One line stands at the top of it, the air after. */
.cp-said { min-height: 2lh; }
/* The figures of the sentence stand apart as on every page that weighs two cars (public/app/journey-duel.css): what
   is paid on a shade of ink, what is gained underlined. Neither is the yellow of a car: here it is the first car's. */
.cp-said b { font-weight: 400; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--ink) 14%, transparent) 62%); }
.cp-said mark { padding: 0; margin: 0; border-radius: 0; background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.16em; text-decoration-skip-ink: none; }
.cp-firsts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin: 20px 0 0; }
.cp-firsts div { display: grid; gap: 3px; text-align: center; }
.cp-firsts dt { font-size: 0.75rem; color: var(--soft); }
.cp-firsts dd { font: 800 1.0625rem/1.1 var(--display); letter-spacing: -0.017em; }
.cp-which { margin-top: 24px; text-align: center; }
.cp-which-h { margin: 0; }
.cp-take { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.cp-take .btn { width: 100%; padding-inline: 10px; }
/* A name is never cut: a long version's words take a second line ("Je prends le Grizzly Hybrid 145 AT LA PRIMA" at 360 px). */
.cp-take .btn span { white-space: normal; text-wrap: balance; text-align: center; }
.cp-send { margin-top: 10px; }

/* ── Tout comparer: its groups closed, each a line of figures; a line short enough for a phone's column ── */

.cp-all { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cp-all-s { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; cursor: pointer; list-style: none; }
.cp-all-s::-webkit-details-marker { display: none; }
.cp-all-t { font: 700 1rem/1.2 var(--display); letter-spacing: -0.008em; }
.cp-all-s small { font: 500 0.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.cp-all-s .ic { width: 16px; height: 16px; color: var(--soft); transition: rotate var(--quick); }
.cp-all[open] > .cp-all-s .ic { rotate: 180deg; }
.cp-all-body { padding: 0 0 18px; }
.cp-all-body > .cp-note { margin-top: 14px; }

/* A group, closed: a line as the summary's are, its name, how many of its lines differ, a figure under each car. */
.cp-g { border-top: 1px solid var(--line); }
.cp-g-s { display: grid; align-content: center; row-gap: 4px; min-height: var(--row-h); padding: 9px 0 10px; cursor: pointer; list-style: none; }
.cp-g-s::-webkit-details-marker { display: none; }
.cp-g-s:focus-visible { outline-offset: -2px; }
/* Its name is never cut: on the narrowest phones the longest ("Consommation et performances") is set a step smaller, and its count takes a line of its own before a letter would go. */
.cp-g-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 7px; min-width: 0; white-space: nowrap; }
.cp-g-h b { font: 700 0.75rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 389px) { .cp-g-h { column-gap: 5px; } .cp-g-h b { font-size: 0.75rem; letter-spacing: 0.045em; } }
.cp-g-h small { flex: none; font: 500 0.75rem/1.2 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.cp-g-h .ic { flex: none; width: 13px; height: 13px; color: var(--faint); transition: rotate var(--quick); }
.cp-g[open] > .cp-g-s .cp-g-h .ic { rotate: 180deg; color: var(--ink); }
.cp-g-figs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); }
.cp-g-f { position: relative; display: flex; flex-flow: row wrap; align-items: center; align-content: flex-start; justify-content: center; gap: 0 4px; min-width: 0; text-align: center; white-space: nowrap; }
.cp-g-n { font: 650 0.9375rem/1.25 var(--display); letter-spacing: -0.017em; }
.cp-g-n b { font-weight: inherit; }
.cp-g-n small { margin-inline-start: 2px; font: 500 0.75rem/1 var(--body); letter-spacing: 0; color: var(--soft); }
.cp-g-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* What qualifies a group's figure ("batterie chargée"): under it, on lines of its own, never into the next column. */
.cp-g-q { flex-basis: 100%; min-width: 0; font: 500 0.75rem/1.2 var(--body); color: var(--soft); white-space: normal; text-wrap: balance; }
.cp-g-f.is-best .cp-g-n { font-weight: 800; }
:is(.cp-g-f, .cp-c).is-best .cp-tick { display: inline-grid; }
.cp-g-f.is-words { font: 500 0.75rem/1.3 var(--body); color: var(--soft); white-space: normal; text-wrap: balance; }
/* A group of measures, opened: its figure is a line among the others, and leaves the group's own. */
.cp-g[open] > .cp-g-s:has(> .is-figure) { min-height: 44px; }
.cp-g[open] > .cp-g-s > .is-figure { display: none; }
.cp-g-body { padding: 0 0 12px; }

/* The bar under a figure, at the scale of its line: one length for every column, so that the bars compare. The best
   wears the tone of what is good; the tick and the weight say it too. */
.cp-bar { flex: 0 0 100%; display: block; height: 3px; margin-top: 3px; }
.cp-bar::before { content: ""; display: block; width: min(100% - 14px, 84px); height: 100%; margin: 0 auto; border-radius: 2px; background: linear-gradient(to var(--line-end), var(--bar-c, var(--faint)) calc(var(--s) * 100%), var(--line) 0); }
.is-best > .cp-bar { --bar-c: var(--good); }

/* What one sheet alone lists, and what every sheet but one lists: each car by its sign and its name, then its items. */
.cp-only { padding: 9px 0 11px; border-top: 1px solid var(--line); text-align: start; }
.cp-only-h { margin: 0 0 6px; font: 600 0.75rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.cp-only-l { display: grid; grid-template-columns: fit-content(min(46%, 220px)) minmax(0, 1fr); gap: 7px 12px; margin: 0; }
.cp-only-l > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.cp-only-l dt { display: flex; align-items: center; gap: 6px; min-width: 0; font: 700 0.8125rem/1.4 var(--display); letter-spacing: -0.008em; }
.cp-only-l dt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-only-l dt small { flex: none; font: 600 0.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.cp-only-l dd { margin: 0; font: 500 0.8125rem/1.4 var(--body); }

/* A line: its name and the unit its figures share, then a cell under each car, in the columns of the cars above. */
.cp-st { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); width: 100%; border-collapse: collapse; }
.cp-st > caption, .cp-st > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cp-st > tbody, .cp-st tr { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.cp-s-line { position: relative; border-top: 1px solid var(--line); }
.cp-s-row { row-gap: 1px; padding: 6px 0 7px; }
.cp-s-row > th { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; min-width: 0; padding: 0; text-align: start; font: 500 0.75rem/1.3 var(--body); color: var(--soft); }
.cp-s-row > th small { font: 500 0.75rem/1.3 var(--label); color: var(--soft); }
.cp-s-row > th small::before { content: "· "; color: var(--faint); }
.cp-s-row > th .ic { flex: none; width: 12px; height: 12px; color: var(--faint); transition: rotate var(--quick); }
.cp-s-line:has(.cp-s-d[open]) > .cp-s-row > th { color: var(--ink); }
.cp-s-line:has(.cp-s-d[open]) > .cp-s-row > th .ic { rotate: 180deg; color: var(--ink); }
.cp-c { display: flex; flex-flow: row wrap; align-items: center; align-content: flex-start; justify-content: center; gap: 0 4px; min-width: 0; padding: 0 2px; text-align: center; font: 550 0.8125rem/1.3 var(--body); }
.cp-c-f { font: 600 0.875rem/1.25 var(--display); letter-spacing: -0.013em; white-space: nowrap; }
.cp-c.is-best .cp-c-f { font-weight: 800; }
.cp-c-w { max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; }
.cp-c-s { flex-basis: 100%; font: 500 0.75rem/1.25 var(--body); color: var(--soft); text-wrap: balance; }
/* A maker's own name for an engine is free text: set smaller, on two lines at most in a phone's column. */
.cp-s-line.is-free .cp-c-w { font-size: 0.75rem; line-height: 1.3; }
.cp-s-line:not(.is-differ) .cp-c { color: var(--soft); }
/* An item listed is a tick in ink, an item not listed a faint dot: the best of a line alone wears the green tick. */
.cp-s-line:not(.is-differ) .cp-c .cp-yes { color: var(--soft); }
.cp-c .cp-tick { width: 14px; height: 14px; }
.cp-c .cp-tick .ic { width: 9px; height: 9px; }
/* A line whose cells show other words than their sheets opens on the sheets' own: its summary covers the line. */
.cp-s-more > td { grid-column: 1 / -1; padding: 0; }
.cp-s-open { position: absolute; z-index: 2; inset: 0; list-style: none; cursor: pointer; border-radius: 6px; }
.cp-s-open::-webkit-details-marker { display: none; }
.cp-s-open:focus-visible { outline-offset: -2px; }
.cp-s-full { display: grid; grid-template-columns: fit-content(min(46%, 220px)) minmax(0, 1fr); gap: 4px 12px; margin: 0; padding: 0 0 10px; text-align: start; font: 400 0.75rem/1.4 var(--body); color: var(--soft); }
.cp-s-full > div { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; }
.cp-s-full dt { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 650; color: var(--ink); }
.cp-s-full dt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-s-full dd { margin: 0; overflow-wrap: anywhere; }
/* A line that differs while the cars in view say the same: at the end of its name, the sign of the car beyond the edge
   that differs, "diffère", and the way; a control that brings it in. Only where columns stand beyond an edge (below). */
.cp-s-off { display: none; }
.cp-s-same { border-top: 1px solid var(--line); }
.cp-s-same > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 0.75rem/1.2 var(--body); color: var(--soft); cursor: pointer; list-style: none; }
.cp-s-same > summary::-webkit-details-marker { display: none; }
.cp-s-same > summary span { text-decoration: underline dotted; text-underline-offset: 4px; }
.cp-s-same > summary .ic { width: 14px; height: 14px; transition: rotate var(--quick); }
.cp-s-same[open] > summary .ic { rotate: 180deg; }

.cp-foot { margin-top: 16px; }
/* Where what the cars share comes from: each car's parts, as the map names them, and the pages that say them. */
.cp-parts { display: grid; gap: 10px; margin-top: 8px; }
.cp-parts dt { font: 700 0.8125rem/1.3 var(--display); letter-spacing: -0.008em; color: var(--ink); }
.cp-parts dd { margin-top: 3px; overflow-wrap: anywhere; }
/* On the selection's own page a car no longer on sale leaves the selection, said in a message (selection.machine.ts). */
:root[data-cp-mine] .cp-gone { display: none; }
.cp-gone { margin: 0 0 8px; font: 500 0.8125rem/1.4 var(--body); color: var(--soft); text-align: center; text-wrap: balance; }

/* ── The names kept in view, once the cars have left the screen ───────────────────────────────────────── */

/* It comes down from under the bar and goes back up into it without ever leaving its own box: hidden, it is folded
   into its top edge (`clip-path`), never moved above it. Slid up behind the bar instead, it waited there, and a quick
   scroll to the top showed it above the bar while the Mac's bounce pulled the page down (the owner, 27 November 2026;
   scripts/review/slim-bounce.mjs). */
.cp-slim { position: fixed; z-index: 9; inset-inline-start: 0; inset-inline-end: 0; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path var(--calm) var(--ease), visibility 0s var(--calm); }
.cp-slim.is-on { clip-path: inset(0); visibility: visible; transition: clip-path var(--calm) var(--ease); }
.cp-slim > .cp-slim-in { translate: 0 -100%; transition: translate var(--calm) var(--ease); }
.cp-slim.is-on > .cp-slim-in { translate: 0 0; }
.cp-slim-in { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 var(--gap); max-width: var(--cp-w); margin: 0 auto; padding: 5px var(--pad) 6px; }
/* The cars beside the first are one track: laid in the columns here, sliding in step with the page on a phone from four cars. */
.cp-slim-rest, .cp-slim-track { display: contents; }
.cp-slim-car { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; gap: 1px; min-width: 0; }
.cp-slim-car b { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font: 800 0.875rem/1.15 var(--display); letter-spacing: -0.017em; }
.cp-slim-car b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-slim-car > span { font: 600 0.75rem/1.1 var(--body); font-variant-numeric: tabular-nums; color: var(--soft); }
.cp-slim-apart { max-width: 100%; min-height: calc(max(1, var(--apart-n, 1)) * 1.2em); font: 700 0.75rem/1.2 var(--body); color: var(--ink); text-align: center; text-wrap: balance; overflow-wrap: anywhere; }
.cp-slim-car.is-open b { color: var(--soft); font-weight: 650; }
.cp-slim-ver { max-width: 100%; min-height: 1.2em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 0.75rem/1.2 var(--body); color: var(--ink); }
.cp-slim .cp-beyond { top: auto; bottom: 4px; translate: none; }
.cp-slim .cp-beyond.is-prev { translate: calc(-50% * var(--line-dir)) 0; }

/* ── The panels that change a car ────────────────────────────────────────────────────────────────────── */

.cp-pop { display: flex; flex-direction: column; }
/* In its window: the search and the tabs stay, the pane of the tab chosen scrolls, moving and taking out stay at the foot. */
.pop.is-centred > .cp-pop { flex: 1 1 auto; min-height: 0; container-type: inline-size; }
/* What stays in the window never gives way to a long list: only the pane scrolls (nothing clicked moves). */
.pop.is-centred .cp-pop > :not(.cp-pk-pane) { flex: none; }
.cp-pk-tabs { display: flex; flex: none; gap: 2px; margin: 2px 0 6px; padding: 3px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.cp-pk-tab { display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 38px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: none; color: var(--soft); font: 600 0.875rem/1 var(--body); white-space: nowrap; cursor: pointer; transition: color var(--quick), background-color var(--quick); }
.cp-pk-tab .ic { flex: none; width: 18px; height: 18px; }
.cp-pk-tab[aria-selected="true"] { background: var(--raised); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 2px 8px rgb(0 0 0 / 0.08); }
.cp-pk-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .cp-pk-tab[aria-selected="false"]:hover { color: var(--ink); } }
.cp-pk-pane { flex: 1 1 auto; min-height: 0; margin-inline: -20px; padding: 0 20px 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.cp-pk-pane[hidden] { display: none; }
.pop.is-centred .cp-opts { margin-inline: -20px; }
.pop.is-centred .cp-opts .row { padding-inline: 20px; }
.cp-pk-pane > .mk-tiles, .cp-pk-pane > .kind-tiles { margin-top: 8px; padding: 0; }
/* A narrow window takes two categories a row: three would break their names. */
@container (max-width: 460px) { .cp-pk-pane > .kind-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cp-pk-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-block: 6px 0; margin-inline: -6px 0; padding-block: 0; padding-inline: 6px 10px; border: 0; border-radius: var(--r-pill); background: none; color: var(--ink); font: 600 0.875rem/1 var(--body); cursor: pointer; }
.cp-pk-back .ic { width: 18px; height: 18px; }
@media (hover: hover) { .cp-pk-back:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); } }
.cp-pk-h { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 0; font: 750 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.cp-pk-h small { font: 500 0.8125rem/1 var(--label); color: var(--soft); letter-spacing: 0; }
.cp-pk-note { margin: 2px 0 6px; font: 500 0.8125rem/1.3 var(--body); color: var(--soft); }
.pop:has(> .cp-pop) { padding-bottom: 6px; }
.cp-find { display: flex; align-items: center; gap: 8px; width: 100%; height: 44px; margin: 4px 0 6px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--soft); font: 500 0.9375rem/1 var(--body); text-align: start; cursor: text; }
.cp-find .ic { flex: none; width: 18px; height: 18px; }
.cp-find span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-pop-h { margin: 12px 0 2px; }
.cp-opts { margin: 0 calc(var(--pad) * -1); }
.cp-opts .row { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; min-height: 56px; padding: 7px var(--pad); }
.cp-opts .row-pic { --mm: 0.0158px; min-height: 30px; }
.cp-opt-n { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 0.9375rem/1.2 var(--display); letter-spacing: -0.013em; }
.cp-opts .row-sub { font-size: 0.75rem; color: var(--soft); }
/* What a car the industry map sets beside the first one shares with it ("La même mécanique"): said whole, in ink. */
.cp-opts .row-sub.cp-opt-why { white-space: normal; overflow: visible; color: var(--ink); font-weight: 600; }
.cp-opt-p { display: grid; justify-items: end; text-align: end; font: 750 0.875rem/1.2 var(--display); letter-spacing: -0.013em; }
.cp-opt-p small { font: 600 0.75rem/1.3 var(--body); letter-spacing: 0; color: var(--soft); }
.cp-pop-move { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 4px; }
.cp-pop-move .btn { text-decoration: none; }
.cp-pop-move .btn:only-child:last-child { margin-inline-start: auto; }
.cp-pop-foot { margin-top: 2px; text-align: center; }
/* A car already compared: offered, but it would come twice. */
.cp-opts .row[aria-disabled="true"] { opacity: 0.45; }

/* ── With no car yet: two places, and a few pairs to start from ───────────────────────────────────────── */

.cp-ideas { margin-top: 4px; }
.cp-ideas-h { margin-bottom: 8px; text-align: center; }
.cp-ideas-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.cp-ideas-list > li { display: grid; }
/* The cars stand at the top and the gap at the foot, so that every pair of a row stands on one ground and says its gap
   on one line, whatever the length of its names. */
.cp-idea { container: idea / inline-size; display: grid; grid-template-rows: auto auto auto 1fr; justify-items: center; gap: 4px; padding: 12px 12px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-decoration: none; }
/* Every pair at one scale, the longest car of the catalogue's kinds filling half a card. */
.cp-idea-cars { --mm: calc((50cqi - 12px) / 5600); display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: calc(2000 * var(--mm)); }
/* Each car whole on its line: two long names stand on two lines, never cut. */
.cp-idea-names { font: 800 1rem/1.2 var(--display); letter-spacing: -0.017em; text-align: center; text-wrap: balance; }
.cp-idea-names b { white-space: nowrap; }
.cp-idea-make { font-weight: 550; color: var(--soft); letter-spacing: -0.005em; }
.cp-idea-or { font: 500 0.84375rem/1 var(--voice); color: var(--soft); letter-spacing: -0.01em; }
.cp-idea-prices { font: 600 0.75rem/1.2 var(--body); color: var(--soft); }
/* A pair of the industry map: the dearer car's gap, then why, as a relative's line on a car's card says it. */
.cp-idea-why { display: flex; flex-wrap: wrap; align-self: end; align-items: center; justify-content: center; gap: 4px 8px; margin-top: 4px; font: 600 0.8125rem/1.35 var(--body); color: var(--ink); }
.cp-idea-why .gap { min-height: 22px; padding: 1px 8px; font-size: 0.75rem; }

/* ── A change of car is one change: the old goes at once, the new comes in from its side ─────────────── */

@keyframes cp-in { from { opacity: 0; translate: calc(var(--from, 0) * 14px * var(--line-dir)) 0; } }
.cp-col.is-in .carfig, .cp-col.is-in .cp-id > * { animation: cp-in 0.18s var(--ease) both; }
.cp-col.is-in .cp-id > * { animation-duration: 0.14s; }

/* ── A phone from four cars: three columns in view, the first car stays, the others slide one column at a step ──
   The cars, their lines, the end and the full sheets are one block that scrolls sideways (`.cp-wide`), so that the heads
   and every line under them are in step by construction; each car beside the first is a place the scroll stops at. The
   first column's cells stay at the left on the page's ground, what is not in columns stays where it is, and the names
   kept in view follow the same scroll. */

@media (max-width: 899px) {
  /* A phone: the heart stands over its car's top corner, in a band kept above the cars, so that it costs the make and
     the name nothing (a make is never cut); its target is a thumb's, over the band and the car's corner. */
  .cp { --heart-room: 26px; --make-h: 16px; --col3: calc((100vw - 2 * var(--pad) - 2 * var(--gap)) / 3); --step: calc(var(--col3) + var(--gap)); --win: calc(100vw - 2 * var(--pad)); }
  .cp-make { padding-inline: 0; }
  .cp-heart { top: calc(-1 * var(--heart-room) - 7px); inset-inline-end: -4px; }

  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) { --ids-h: 56px; --nose: 14px; }
  /* The block reaches the screen's right edge, where the road goes on under the count of the cars beyond it. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-wide { position: relative; margin-inline-end: calc(var(--pad) * -1); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline-start: var(--step); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-wide::-webkit-scrollbar { display: none; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-wide-in { display: grid; grid-template-columns: minmax(0, 1fr); width: calc(var(--n) * var(--step) - var(--gap) + var(--pad)); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-wide-in > * { grid-column: 1; min-width: 0; width: calc(var(--n) * var(--step) - var(--gap)); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) #cp-cars { grid-row: 1; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) #cp-lines { grid-row: 2; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) #cp-radar { grid-row: 3; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) #cp-end { grid-row: 4; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) #cp-sheet { grid-row: 5; }
  /* Under the cars, the page's right margin stays the page's ground: no line runs into it. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-cover { display: block; grid-row: 2 / span 4; justify-self: start; position: sticky; inset-inline-start: var(--win); z-index: 4; width: var(--pad); background: var(--paper); pointer-events: none; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-stand { touch-action: auto; }

  /* The cars: each beside the first is a stop of the scroll; the first stays, on the page's ground. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-cols::before { display: none; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-col:not(:first-child) { scroll-snap-align: start; scroll-snap-stop: always; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-col:not(:first-child) .cp-heart { z-index: 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-col:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--paper); box-shadow: calc(var(--gap) * var(--line-dir)) 0 0 var(--paper); }
  /* Its band of hearts and its stretch of road, which the cars that slide pass under. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-col:first-child::before { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: calc(var(--gap) * -1); bottom: 100%; height: var(--cols-top); background: var(--paper); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-col:first-child::after { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: calc(var(--gap) * -1); top: calc(2000 * var(--mm)); height: 1px; background: linear-gradient(to var(--line-end), transparent, var(--line) 30%); pointer-events: none; }
  /* Under the 3D of the selection's page the first car's room is the 3D's: only its names stand on the ground. */
  :root[data-cp-3d] .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"])[data-three] .cp-col:first-child { background: linear-gradient(transparent calc(2000 * var(--mm)), var(--paper) 0); }
  :root[data-cp-3d] .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"])[data-three] .cp-col:first-child::before { content: none; }
  /* Its version: the first of its facts, on one line. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-trim { display: block; max-height: 1.3em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-trim span:not(:first-child) { display: none; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-trim span::after { content: none; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-cars > .cp-edge { display: block; position: sticky; inset-inline-start: 0; z-index: 3; width: var(--win); height: 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-cars .cp-beyond.is-next { inset-inline-end: calc(2px - var(--pad)); }

  /* The lines: the first car's cell stays; a line's name, its detail and what is not in columns stay where they are. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) :is(.cp-row > td.cp-v:first-of-type, .cp-s-row > td:first-of-type, .cp-g-f:first-child) { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--paper); box-shadow: calc(var(--gap) * var(--line-dir)) 0 0 var(--paper); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-label { position: sticky; inset-inline-start: 0; justify-self: start; justify-content: flex-start; padding-inline-end: 8px; }
  /* A line's name stays in place over the cover that opens the line (a touch on it goes through to that cover); what
     it says of a car beyond the edge is its own control, above both. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-s-row > th { position: sticky; inset-inline-start: 0; z-index: 3; justify-self: start; box-sizing: border-box; width: var(--win); pointer-events: none; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-s-off { position: relative; pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; padding: 0; border: 0; background: none; color: var(--ink); font: 600 0.75rem/1 var(--body); white-space: nowrap; cursor: pointer; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-s-off::after { content: ""; position: absolute; inset-block: -15px; inset-inline: -12px -8px; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-s-off .cp-sign { width: 15px; height: 15px; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-s-off .ic { width: 11px; height: 11px; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) :is(#cp-radar, #cp-end, .cp-all-s, .cp-g-h, .cp-d-body > :not(.cp-dt-wrap, .cp-eq), .cp-eq > :not(.cp-dt-wrap), .cp-only, .cp-g-body[data-cp-lazy], .cp-s-full, .cp-s-same > summary, .cp-all-body > :is(.cp-note, .cp-none, .cp-s-links)) { position: sticky; inset-inline-start: 0; box-sizing: border-box; width: var(--win); max-width: var(--win); margin-inline: 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-g-h { justify-content: flex-start; }
  /* A line's detail: its figures stand in the cars' own columns, as the whole table's lines do (a name on its line, a
     cell under each car, the first car's in place while the others slide), not in a table of its own that scrolled
     apart from them. The cars' names are the heads kept in view. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt-wrap { overflow: visible; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--gap); margin: 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt > tbody, .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt > tbody > tr { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt > tbody > tr { row-gap: 1px; padding: 6px 0 7px; border-top: 1px solid var(--line); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt > tbody :is(th, td) { padding: 0 2px; border-top: 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt th[scope="row"] { grid-column: 1 / -1; position: sticky; inset-inline-start: 0; justify-self: start; box-sizing: border-box; width: auto; max-width: var(--win); padding: 0; font: 500 0.75rem/1.3 var(--body); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt td { font: 600 0.875rem/1.25 var(--display); letter-spacing: -0.013em; text-wrap: balance; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt td.is-words { font: 500 0.75rem/1.3 var(--body); letter-spacing: 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt td:first-of-type { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--paper); box-shadow: calc(var(--gap) * var(--line-dir)) 0 0 var(--paper); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt tr.is-sum { border-top: 1.5px solid var(--ink); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt tr.is-sum > th { font-weight: 650; color: var(--ink); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-dt tr.is-sum > td { font-weight: 800; }

  /* The names kept in view: the first in its place, the others on a track that follows the page's sideways scroll. */
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-slim-in { display: flex; gap: 0 var(--gap); max-width: none; margin: 0; padding-inline-end: 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-slim-in > .cp-slim-car { flex: none; width: var(--col3); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-slim-rest { display: block; flex: 1 1 0; min-width: 0; margin-inline-end: var(--pad); overflow: hidden; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-slim-track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--col3); gap: 0 var(--gap); width: max-content; translate: calc(var(--slide, 0) * -1px) 0; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-slim .cp-edge { display: block; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-slim .cp-beyond.is-prev { inset-inline-start: calc(var(--pad) + var(--col3) + var(--gap) / 2); }
}
/* A tablet: four cars stand in four columns, none beyond the edge (the site audit of 25 November 2026, finding 12: at
   768 px it still showed three of four). The phone's columns are kept, a quarter of the width each, so nothing slides. */
@media (min-width: 640px) and (max-width: 899px) {
  .cp[data-n="4"] { --col3: calc((100vw - 2 * var(--pad) - 3 * var(--gap)) / 4); }
  .cp[data-n="4"] .cp-cars > .cp-edge, .cp[data-n="4"] .cp-slim .cp-edge, .cp[data-n="4"] .cp-s-row > th .cp-s-off { display: none; }
}
/* Where the browser ties an animation to a scroll, the names follow the page's own sideways scroll with no script
   between the two; elsewhere the script writes how far it went (`--slide`, app.ts). The animation says both its ends: an
   end left to the value under it would start from the script's own, and the names would run ahead of the columns. */
@keyframes cp-follow { from { translate: 0 0; } to { translate: calc((var(--n) - 3) * var(--step) * -1 * var(--line-dir)) 0; } }
@supports (animation-timeline: scroll()) {
  @media (max-width: 899px) {
    .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) { timeline-scope: --cp-x; }
    .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-wide { scroll-timeline: --cp-x x; }
    .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-slim-track { animation: cp-follow linear both; animation-timeline: --cp-x; }
  }
}

/* ── With room ─────────────────────────────────────────────────────────────────────────────────────────── */

@media (min-width: 900px) {
  /* The columns take the screen: wider as the screen is, never a narrow column in wide margins. */
  .cp { --apart-h: calc(var(--apart-w, 0) * 1.25 * 0.8125rem + min(var(--apart-w, 0), 1) * 2px); --gap: 20px; --nose: 14px; --row-h: 70px; --row-in: 46px; --ids-h: 88px; --name: 2.375rem; --cp-w: clamp(1280px, 1280px + (100vw - 1440px) * 0.5, 1440px); padding-top: 16px; }
  /* With room the cars and the six lines stand together on the screen: the cars take what the screen's height leaves.
     A phone gives them its width, and a short screen a short scroll. */
  .cp-cars { --tall-room: calc((100svh - var(--bar-h) - var(--rest)) / 2000); }
  .cp[data-n="3"] { --cp-w: clamp(1400px, 1400px + (100vw - 1440px) * 0.5, 1600px); --ids-h: 78px; --name: 1.875rem; }
  .cp[data-n="4"] { --cp-w: clamp(1480px, 1480px + (100vw - 1440px) * 0.5, 1680px); --ids-h: 82px; --name: 1.5rem; }
  .cp[data-n="5"] { --cp-w: clamp(1540px, 1540px + (100vw - 1440px) * 0.5, 1760px); --gap: 16px; --ids-h: 78px; --name: 1.3125rem; }
  /* Six to eight: every car in sight, the whole width of the screen, the columns narrower and the type a step smaller. */
  .cp:is([data-n="6"], [data-n="7"], [data-n="8"]) { --cp-w: 100vw; --gap: 12px; --ids-h: 74px; --name: 1.125rem; }
  .cp { --make-h: 32px; --id-top: 10px; }
  /* In a wide column the heart stands at the right end of the name's line (its arrow under it), not far from the make. */
  .cp-heart { inset-inline-end: calc((100% - min(100%, var(--heart-line, 100%))) / 2 - 3px); }
  .cp:is([data-n="1"], [data-n="2"]) { --heart-line: 460px; }
  .cp[data-n="3"] { --heart-line: 400px; }
  .cp-id { margin-top: 10px; }
  .cp-make { font-size: 0.75rem; }
  .cp:is([data-n="1"], [data-n="2"], [data-n="3"]) .cp-shown { display: inline; }
  .cp:is([data-n="1"], [data-n="2"], [data-n="3"]) .cp-shownline { display: none; }
  .cp-nameline { --near-w: 34px; --line-w: 460px; }
  .cp[data-n="3"] .cp-nameline { --line-w: 400px; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-nameline { --near-w: 26px; --line-w: 100cqi; }
  .cp-name .ic { width: 20px; height: 20px; margin-top: 4px; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-name .ic { display: block; width: 16px; height: 16px; }
  .cp-near { display: grid; place-items: center; justify-self: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: var(--faint); }
  .cp-near.is-prev { grid-column: 2; }
  .cp-near.is-next { grid-column: 4; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-near { width: 26px; height: 26px; }
  .cp-near .ic { width: 18px; height: 18px; }
  /* 44 px under a pointer or a finger, whatever the drawn circle (the site audit of 25 November 2026, finding 17). */
  .cp-near { position: relative; }
  .cp-near::after { content: ""; position: absolute; inset: calc((100% - 44px) / 2); }
  .cp-near.is-none { visibility: hidden; }
  /* On the selection's own page a step would replace a chosen car at each touch: a name's panel changes it. */
  /* No quick steps on the selection's own page (mine.machine.ts, `quickSteps`): each would replace a chosen car. */
  :root[data-cp-still] .cp-near { visibility: hidden; }
  .cp-trim { font-size: 0.8125rem; max-height: 1.3em; }
  .cp-apart { font-size: 0.8125rem; }
  .cp-slim-apart { min-height: calc(max(1, var(--apart-w, 1)) * 1.2em); }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-trim { display: flex; font-size: 0.75rem; max-height: 2.6em; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-make { font-size: 0.75rem; letter-spacing: 0.06em; }
  /* With room, what a car shares stands on one line: whole where its column has the room (the widths measured in this
     type, view.ts), its first words otherwise; in the narrowest columns (five cars in a small window), set smaller. */
  .cp:is([data-n="2"], [data-n="3"], [data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) { --kin-h: calc(1.3 * 0.8125rem + 9px); }
  .cp-kin-w { overflow: hidden; padding: 1px 9px 2px; font-size: 0.8125rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
  .cp-kin-to { font-size: 0.8125rem; line-height: 1.3; }
  @container id (max-width: 379px) {
    .cp-kin-w.is-longer .cp-kin-more { display: none; }
  }
  @container id (max-width: 327px) {
    .cp-kin-w.is-long .cp-kin-more { display: none; }
  }
  @container id (max-width: 249px) {
    .cp-kin-more { display: none; }
    .cp-kin-w { padding-inline: 6px; font-size: clamp(0.625rem, calc((100cqi - 12px) / (var(--lead) * 0.56)), 0.8125rem); }
    .cp-kin-to { font-size: 0.75rem; }
  }
  .cp-t { margin-top: 14px; }
  .cp-row { row-gap: 5px; }
  .cp-label { font-size: 0.75rem; }
  .cp-fig { font-size: 1.4375rem; letter-spacing: -0.021em; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-fig { font-size: 1.25rem; }
  .cp:is([data-n="6"], [data-n="7"], [data-n="8"]) .cp-fig { font-size: 1.0625rem; }
  .cp:is([data-n="6"], [data-n="7"], [data-n="8"]) .cp-far { font-size: 0.75rem; }
  /* "Laquelle ?" in two even rows: three and three, four and three, four and four. */
  .cp[data-n="6"] .cp-take { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp:is([data-n="7"], [data-n="8"]) .cp-take { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cp-v:is(.is-words, .is-empty) .cp-fig { font-size: 0.875rem; line-height: 1.9; }
  .cp-v.is-range .cp-fig { font-size: 0.9375rem; line-height: 1.6; white-space: nowrap; }
  .cp-far { font-size: 0.8125rem; }
  .cp-list { font-size: 0.75rem; }
  .cp-tick { width: 19px; height: 19px; }
  .cp-tick .ic { width: 13px; height: 13px; }
  .cp-promo { width: 16px; height: 16px; }
  .cp-promo .ic { width: 14px; height: 14px; }
  .cp-dt { font-size: 0.875rem; }
  .cp-said { margin-top: 24px; font-size: 1.1875rem; }
  .cp-take { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
  .cp:is([data-n="3"], [data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-take { max-width: none; }
  .cp-st th[scope="row"] { font-size: 0.75rem; }
  .cp-st td { font-size: 0.875rem; }
  .cp-ideas-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-pop-h { margin-top: 10px; }
  .cp-opts { margin: 0 -16px; }
  .cp-opts .row { padding: 7px 16px; }
}
@media (min-width: 900px) and (hover: hover) {
  .cp-open:hover { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
  .cp-name:hover, .cp-near:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .cp-near:hover, .cp-name:hover .ic { color: var(--ink); }
  .cp-add:hover, .cp-place:hover span { border-color: var(--ink); border-style: solid; }
  .cp-idea:hover { border-color: var(--edge); }
  .cp-find:hover { border-color: var(--edge); }
}
/* One more car's place beside the two cars, where the screen has a margin for it (190 px beside the columns). */
@media (min-width: 1820px) {
  .cp[data-n="2"] .cp-add.is-side { display: grid; }
  .cp[data-n="2"] .cp-addline { display: none; }
}
.cp-add.is-side { position: absolute; inset-inline-start: calc(100% + 26px); top: calc(2000 * var(--mm) - min(104px, 2000 * var(--mm) * 0.62) - 4px); justify-items: center; align-content: center; gap: 4px; width: 138px; height: min(104px, calc(2000 * var(--mm) * 0.62)); padding: 0 10px; border-radius: var(--r-m); color: var(--soft); text-align: center; }
.cp-add.is-side .ic { width: 22px; height: 22px; }

/* A laptop that is not tall: the whole comparison still stands on its first screen. */
@media (min-width: 900px) and (max-height: 820px) {
  .cp { --row-h: 58px; --row-in: 42px; --ids-h: 80px; padding-top: 10px; }
  .cp[data-n="2"] { --name: 2.125rem; }
  .cp[data-n="3"] { --ids-h: 72px; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) { --ids-h: 74px; }
  .cp-t { margin-top: 10px; }
  .cp-row { row-gap: 3px; }
  .cp-fig { font-size: 1.3125rem; }
  .cp:is([data-n="4"], [data-n="5"], [data-n="6"], [data-n="7"], [data-n="8"]) .cp-fig { font-size: 1.1875rem; }
  .cp-said { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-slim { transition: none; }
  .cp-col.is-in .carfig, .cp-col.is-in .cp-id > *, .cp-kin.is-late > * { animation: none; }
  .cp-label .ic, .cp-all-s .ic, .cp-g-h .ic, .cp-s-row > th .ic, .cp-s-same > summary .ic { transition: none; }
}
/* Without scripts, what needs them is not offered: the search of the panels, moving a car. From six cars (a page
   served light), a line's detail is a link to the page with it open, and the sheets are each car's own, on its page;
   with scripts both are drawn in place, and the links are not shown. */
@media (scripting: none) {
  /* The count beyond a phone's edge is kept by the script as the columns slide: without it, the columns still slide. */
  .cp-find, .cp-pop-move, .cp-beyond { display: none; }
  .cp-s-links ~ *, .cp-all-body > .cp-none:has(+ .cp-s-links) { display: none; }
}
@media (scripting: enabled) { .cp-lazy, .cp-s-links { display: none; } }
/* A closed group carries no line: the script draws them as it opens; without it, the way to the page with it open. */
.cp-g-body[data-cp-lazy] > .cp-none { margin: 4px 0 10px; }
@media (scripting: none) { .cp-g-body[data-cp-lazy] > .cp-none { display: none; } }
.cp-s-links { display: grid; gap: 2px; margin: 4px 0 0; }
.cp-s-links a { display: inline-flex; align-items: center; min-height: 40px; font: 600 0.875rem/1.2 var(--body); color: var(--ink); }
