/* A car's card (src/app/card/view.ts): a collectible, in the app's tokens. The frame is the finish (bronze, silver,
   gold: the --foil tokens), the face is the card's ground; it speaks in numbers. Phone first: 328 px wide on a
   360 px screen, the same card at most 360 px on a laptop (car.css places the method beside it by that width). A page never redefines a token here. */

.pc { --foil: var(--foil-bronze); --foil-deep: var(--foil-bronze-deep); --foil-light: var(--foil-shine);
  position: relative; width: 100%; max-width: 360px; padding: 3px; border-radius: var(--r-l); container-type: inline-size;
  background: linear-gradient(140deg, var(--foil-deep) 0%, var(--foil) 22%, var(--foil-light) 38%, var(--foil) 52%, var(--foil-deep) 78%, var(--foil) 100%);
  box-shadow: var(--lift-2), inset 0 1px 0 color-mix(in srgb, var(--foil-light) 75%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--foil-deep) 55%, transparent); }
.pc.is-silver { --foil: var(--foil-silver); --foil-deep: var(--foil-silver-deep); }
/* Gold is a metal of its own (brass, with its light), never the paint: yellow means "this one". */
.pc.is-gold { --foil: var(--foil-gold); --foil-deep: var(--foil-gold-deep); --foil-light: var(--foil-gold-shine); }
.pc.is-none { --foil: var(--line); --foil-deep: var(--edge); }

.pc-face { position: relative; overflow: hidden; display: grid; padding: 0 0 12px; border-radius: calc(var(--r-l) - 3px); background: var(--card); }
/* A fine inner keyline, as a printed card has. */
.pc-face::after { content: ""; position: absolute; inset: 5px; border: 1px solid color-mix(in srgb, var(--foil-deep) 38%, transparent); border-radius: calc(var(--r-l) - 8px); pointer-events: none; }

/* ── The hero: the overall and the position, the profile, the car large on its ground ──────────────────── */

/* The car stands on a ground lit by the finish, at the card's one scale: 5,6 m fill the card's width (a pick-up),
   a city car stands smaller. */
/* The hero is as tall as its car needs: the overall's column (`--ovr-h`, its lines held to it) over the car at the card's
   scale (`--rise`, its height above the ground, written by the server), never less than its usual height. A tall car
   (a G-Class, a pick-up) makes its card taller; it never stands in the overall's words (the owner, 26 November 2026). */
.pc-hero { --ovr-h: 136px; --hh: max(244px, calc(var(--ovr-h) + var(--rise, 1700) * 100cqi / 5600 + 14px)); --rs: 196px; position: relative; height: var(--hh); padding: 16px 16px 0;
  background:
    radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--foil) 26%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--foil) 10%, var(--card)), var(--card)); }
.pc-ovr { position: relative; z-index: 1; display: grid; justify-items: stretch; width: max-content; pointer-events: none; }
/* The overall out of 99 (F72): the figure, "/99", its own small scale (the note's paint, the middle marked), what it is and
   among whom: read without the method. */
.pc-ovr-top { display: flex; align-items: baseline; gap: 2px; }
.pc-ovr-n { font: 800 3.75rem/0.8 var(--display); letter-spacing: -0.05em; }
.pc-ovr-of { font: 700 1rem/1 var(--display); color: var(--soft); letter-spacing: -0.01em; }
.pc-ovr-scale { position: relative; height: 5px; margin-top: 9px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.pc-ovr-scale i { display: block; width: calc(var(--n) * 1%); height: 100%; border-radius: 3px; background: var(--paint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paint-edge) 35%, transparent); }
.pc-ovr-scale::after { content: ""; position: absolute; left: 50%; top: -3px; width: 1.5px; height: 11px; background: var(--ink); opacity: 0.55; }
.pc-pos { margin-top: 7px; font: 800 0.75rem/1 var(--display); letter-spacing: 0.09em; text-transform: uppercase; }
/* Two lines at most, whatever the language: the overall's column keeps its height (`--ovr-h`). */
.pc-among { display: -webkit-box; max-width: 132px; margin-top: 3px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 500 0.75rem/1.25 var(--label); color: var(--soft); }
.pc-count { display: flex; align-items: center; gap: 6px; margin-top: 5px; font: 500 0.75rem/1 var(--label); color: var(--soft); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* Its two faces, one box (the hero keeps its height: nothing under it moves). The car large and its profile small in
   the top corner; tapped (the profile, the car, or the chip under the corner), the radar takes the car's place, large,
   its axes named and noted, and the car goes small to the corner. One checkbox holds the face, so it works without a
   script; everything moves by transform. The radar's large place is its own (`--rs`, centred a little right and low, clear
   of the overall); its small place is the corner, 84 px. */
.pc-glyph { position: absolute; z-index: 2; left: calc(50% + 20px - var(--rs) / 2); top: 42px; width: var(--rs); height: var(--rs); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform-origin: 0 0; transform: translate(calc(50cqi - 3px - 14px), -34px) scale(calc(84 / 196)); }
.pc-glyph-in { position: absolute; inset: 0; }
.pc-glyph .pc-svg { position: static; width: 100%; height: 100%; }
.pc-axl { position: absolute; left: var(--x); top: var(--y); display: grid; justify-items: start; gap: 1px; white-space: nowrap; pointer-events: none; opacity: 0; }
.pc-axl[data-side="r"] { translate: 0 -50%; }
.pc-axl[data-side="l"] { translate: -100% -50%; justify-items: end; }
.pc-axl[data-side="t"] { translate: -50% -100%; justify-items: center; }
.pc-axl[data-side="b"] { translate: -50% 0; justify-items: center; }
.pc-axl-w { font: 700 0.75rem/1.1 var(--label); letter-spacing: 0.06em; color: var(--soft); font-variant-numeric: tabular-nums; }
/* A long word ("CONSO MIXTE") on a side axis goes to two lines rather than past the card's edge. */
.pc-axl:is([data-side="r"], [data-side="l"]) .pc-axl-w { max-width: 7em; white-space: normal; overflow-wrap: normal; }
.pc-axl[data-side="l"] .pc-axl-w { text-align: end; }
.pc-axl-n { font: 800 1rem/0.95 var(--display); letter-spacing: -0.03em; }
.pc-pic { --mm: calc(100cqi / 5600); position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; display: flex; justify-content: center; align-items: flex-end; min-width: 0; padding: 4px 16px 14px; transform-origin: 100% 100%; pointer-events: none; -webkit-tap-highlight-color: transparent; }
/* The car large is not a control (a scroll across it changes nothing); small, a tap brings it back. */
/* What a tap changes to, said at rest: a chip under the corner. */
.pc-swap { position: absolute; z-index: 2; inset-inline-end: 8px; top: 98px; display: inline-flex; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pc-swap::after { content: ""; position: absolute; inset: -9px -4px; }
.pc-swap-to { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding-block: 0; padding-inline: 7px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--card) 86%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foil-deep) 40%, var(--line)); font: 650 0.75rem/1 var(--body); color: var(--ink); }
.pc-swap-to .ic { width: 14px; height: 14px; }
.pc-mode:checked ~ .pc-hero .pc-swap { visibility: hidden; }
.pc-mode:focus-visible ~ .pc-hero .pc-swap-to { outline: 2px solid var(--ink); outline-offset: 2px; }
/* The radar's face: the radar in its large place, its words; the car small in the corner. */
.pc-mode:checked ~ .pc-hero .pc-glyph { transform: none; }
.pc-mode:checked ~ .pc-hero .pc-axl { opacity: 1; }
/* The radar large takes the room under the overall: the overall keeps its figure only, smaller in its corner, and its
   scale, its words and among whom it is noted step aside (the section's head says it), so that the radar's words never
   meet them and the radar keeps its size (the owner, 26 November 2026: "COFFRE 90" stood on "NOTE GÉNÉRALE"). */
.pc-ovr { transform-origin: 0 0; }
[dir="rtl"] .pc-ovr { transform-origin: 100% 0; }
.pc-mode:checked ~ .pc-hero .pc-ovr { scale: 0.72; }
.pc-mode:checked ~ .pc-hero :is(.pc-among, .pc-ovr-scale, .pc-pos, .pc-count) { opacity: 0; }
.pc-mode:checked ~ .pc-hero .pc-glyph .pc-dot { display: inline; }
.pc-mode:checked ~ .pc-hero .pc-pic { transform: translate(0, calc(52px - var(--hh) + 4px)) scale(0.3); pointer-events: auto; cursor: pointer; }
.pc-mode:checked ~ .pc-hero .pc-pic::after { content: ""; position: absolute; inset: -20px; }
/* Right to left the overall stands at the start, the right: the hero is its mirror, the profile's corner, the chip under
   it and the car made small at the left (the audit of 25 November 2026, finding 7: the radar covered the overall). The
   radar itself is a drawing and keeps its sides. */
[dir="rtl"] .pc-glyph { left: auto; right: calc(50% + 20px - var(--rs) / 2); transform-origin: 100% 0; transform: translate(calc(-50cqi + 3px + 14px), -34px) scale(calc(84 / 196)); }
[dir="rtl"] .pc-pic { transform-origin: 0 100%; }
@media (prefers-reduced-motion: no-preference) {
  .pc-glyph, .pc-pic { transition: transform var(--settle) var(--ease); }
  .pc-axl, :is(.pc-among, .pc-ovr-scale, .pc-pos, .pc-count) { transition: opacity var(--quick) ease-out; }
  .pc-ovr { transition: scale var(--settle) var(--ease); }
  .pc-mode:checked ~ .pc-hero .pc-axl { transition: opacity var(--calm) ease-out var(--calm); }
}

.pc-name { display: grid; margin: 10px 16px 0; font-family: var(--display); }
.pc-make { font: 600 0.75rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-variant-numeric: tabular-nums; }
.pc-model { margin-top: 2px; font: 800 1.75rem/1 var(--display); letter-spacing: -0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-trim { margin-top: 4px; font: 500 0.75rem/1.25 var(--label); color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── The radar, small (the profile) and on the comparison: its rings and shapes ────────────────────────── */

.pc-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc-band { fill: color-mix(in srgb, var(--card) 70%, transparent); }
.pc-band.is-shaded { fill: color-mix(in srgb, var(--line) 42%, var(--card)); }
.pc-grid .pc-band:first-child { stroke: var(--line); stroke-width: 1; }
.pc-axis { stroke: color-mix(in srgb, var(--edge) 34%, transparent); stroke-width: 1; }
.pc-axis.is-missing { stroke-dasharray: 2 3; }
.pc-shape polygon { stroke-linejoin: round; }
.pc-shape.is-mid.is-fill polygon { fill: color-mix(in srgb, var(--ink) 5%, transparent); stroke: none; }
.pc-shape.is-mid.is-line polygon { fill: none; stroke: var(--ink); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 2.6 2.2; }
.pc-shape.is-me polygon { fill: color-mix(in srgb, var(--paint) 58%, transparent); stroke: color-mix(in srgb, var(--paint) 55%, var(--ink)); stroke-width: 1.5; }
.pc-shape.is-me .pc-dot { fill: color-mix(in srgb, var(--paint) 45%, var(--ink)); stroke: var(--card); stroke-width: 1.3; }
.pc-shape.is-other polygon { fill: color-mix(in srgb, var(--other) 34%, transparent); stroke: var(--other); stroke-width: 1.5; }
.pc-shape.is-other .pc-dot { fill: var(--other); stroke: var(--card); stroke-width: 1.3; }
/* In the profile the strokes stay a hair: the shape is read at a glance, not measured. */
.pc-glyph .pc-shape polygon { stroke-width: 3; }
.pc-glyph .pc-dot { display: none; }
.pc-mode:checked ~ .pc-hero .pc-glyph .pc-shape polygon { stroke-width: 2; }

/* ── The bars: a criterion a row, its figure, its note; the middle of its competitors at 50 ─────────────── */

.pc-bars { display: grid; gap: 2px; margin: 12px 8px 0; }
.pc-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto 2.1em; align-items: baseline; column-gap: 10px; row-gap: 5px; padding: 7px 8px 8px; border-radius: var(--r-s); cursor: pointer; transition: background-color var(--quick); -webkit-user-select: none; user-select: none; }
.pc-bar-word { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 700 0.75rem/1 var(--label); letter-spacing: 0.06em; color: var(--soft); font-variant-numeric: tabular-nums; }
/* A long word goes to a second line rather than lose its end ("CONSO MIXT": the site audit of 25 November 2026, finding 25). */
.pc-bar-word abbr { text-decoration: none; line-height: 1.15; text-wrap: balance; }
.pc-bar-word .ic { flex: none; width: 15px; height: 15px; }
.pc-bar-fig { font: 650 0.875rem/1 var(--body); letter-spacing: -0.005em; text-align: end; }
.pc-bar-n { font: 800 1.1875rem/0.9 var(--display); letter-spacing: -0.03em; text-align: end; }
.pc-bar.is-unnoted .pc-bar-n { color: var(--soft); }
/* The track: the note's length in the paint, the middle (50) a notch in ink. */
.pc-bar-track { position: relative; grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--sunk); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent); }
.pc-bar-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; translate: -50% 0; background: var(--ink); opacity: 0.55; }
.pc-bar-track i { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: calc(var(--n) * 1%); border-radius: 3px; background: var(--paint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paint-edge) 55%, transparent); transform-origin: var(--line-start); }
[data-tone="other"] .pc-bar-track i { background: var(--other); box-shadow: none; }
.pc-pick:checked + .pc-bar { background: var(--sunk); }
.pc-pick:checked + .pc-bar .pc-bar-word { color: var(--ink); }
.pc-pick:focus-visible + .pc-bar { outline: 2.5px solid var(--ink); outline-offset: 1px; }
@media (hover: hover) { .pc-bar:hover { background: color-mix(in srgb, var(--sunk) 60%, transparent); } }
.pc-bars.is-7 .pc-bar, .pc-bars.is-8 .pc-bar { padding-block: 5px 6px; }


/* ── The foot: the key, or the line of the note tapped; the method ─────────────────────────────────────── */

/* The foot keeps the bars' inner edge (16 px) and never pushes past the card: when the line and the buttons do not fit side
   by side, the buttons go under it, at the right (the owner, 24 November 2026: the line touched the frame, "i" was cut). */
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 52px; margin: 2px 16px 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--foil-deep) 35%, var(--line)); }
.pc-lines { flex: 1 1 150px; display: grid; align-content: center; min-width: 0; min-height: 60px; }
/* With its two ways to share (a car's page), the key has the foot's first line to itself and the acts the second:
   "Partager" and its picture at the left, the composer and the method at the right. */
.pc-foot:has([data-card-share]:not([hidden])) .pc-lines { flex-basis: 100%; min-height: 44px; }
.pc-foot:has([data-card-share]:not([hidden])) .pc-acts { flex: 1 1 100%; margin-inline-start: 0; }
.pc-foot [data-card-picture] { margin-inline-end: auto; }
.pc-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 0.75rem/1.3 var(--label); letter-spacing: 0.01em; color: var(--soft); font-variant-numeric: tabular-nums; }
.pc-key span { display: inline-flex; align-items: center; gap: 6px; }
/* The key's notch: the middle of the competitors, as each track marks it. */
.pc-tick { width: 1.5px; height: 12px; background: var(--ink); opacity: 0.55; }

.pc-line { display: none; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 8px; row-gap: 2px; }
/* The note tapped is named by its pill on the radar: the line says its rank, its scale and its source. */
.pc-line-rank { grid-column: 1 / -1; font: 500 0.75rem/1.25 var(--body); color: var(--ink); }
.pc-line-src { grid-column: 1 / -1; font: 500 0.75rem/1.35 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
/* The axis's two ends, from the centre to the edge, with the car and the middle on it: the set's 5th and 95th percentiles. */
.pc-line .pc-scale { grid-column: 1 / -1; margin: 3px 0 1px; }
.pc:has(.pc-pick:checked) .pc-key { display: none; }
.pc:has(.pc-pick[value="prix"]:checked) .pc-line[data-for="prix"],
.pc:has(.pc-pick[value="mois"]:checked) .pc-line[data-for="mois"],
.pc:has(.pc-pick[value="budget"]:checked) .pc-line[data-for="budget"],
.pc:has(.pc-pick[value="vignette"]:checked) .pc-line[data-for="vignette"],
.pc:has(.pc-pick[value="carburant"]:checked) .pc-line[data-for="carburant"],
.pc:has(.pc-pick[value="parking"]:checked) .pc-line[data-for="parking"],
.pc:has(.pc-pick[value="coffre"]:checked) .pc-line[data-for="coffre"],
.pc:has(.pc-pick[value="places"]:checked) .pc-line[data-for="places"],
.pc:has(.pc-pick[value="puissance"]:checked) .pc-line[data-for="puissance"],
.pc:has(.pc-pick[value="couple"]:checked) .pc-line[data-for="couple"],
.pc:has(.pc-pick[value="acceleration"]:checked) .pc-line[data-for="acceleration"],
.pc:has(.pc-pick[value="conso"]:checked) .pc-line[data-for="conso"],
.pc:has(.pc-pick[value="electrique"]:checked) .pc-line[data-for="electrique"],
.pc:has(.pc-pick[value="autonomie"]:checked) .pc-line[data-for="autonomie"],
.pc:has(.pc-pick[value="co2"]:checked) .pc-line[data-for="co2"],
.pc:has(.pc-pick[value="equipements"]:checked) .pc-line[data-for="equipements"] { display: grid; }

.pc-acts { flex: none; display: flex; gap: 8px; align-self: center; margin-inline-start: auto; }
.pc-act { position: relative; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--sunk); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foil-deep) 22%, transparent); transition: scale var(--quick), background-color var(--quick); }
@media (hover: hover) { .pc-act:hover { background: color-mix(in srgb, var(--line) 70%, var(--sunk)); } }
.pc-act[aria-expanded="true"], .pc-act:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pc-act::after { content: ""; position: absolute; inset: -6px; }
.pc-act:active { scale: 0.92; }
.pc-act .ic { width: 18px; height: 18px; }
/* "Partager": the one act of the card with its word, a pill beside the two round ones. */
.pc-act.pc-share { display: inline-flex; gap: 6px; width: auto; padding-block: 0; padding-inline: 11px 13px; border-radius: var(--r-pill); font: 650 0.8125rem/1 var(--body); }
.pc-act.pc-share[hidden] { display: none; }
.pc-info { font: 500 0.9375rem/1 var(--voice); letter-spacing: -0.01em; }

/* ── The sheets behind the card's two buttons: the method, the composer. From the bottom on a phone, a panel on a laptop ── */

.pc-sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: min(84dvh, 680px); margin: 0; overflow: auto; overscroll-behavior: contain;
  padding: 16px var(--pad) calc(20px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: var(--r-l) var(--r-l) 0 0;
  background: var(--card); color: var(--ink); box-shadow: var(--sheet-shadow); font: 400 0.8125rem/1.45 var(--body); }
.pc-sheet::backdrop { background: transparent; }
.pc-sheet > * + * { margin-top: 10px; }
.pc-sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: -6px 0; margin-inline: 0 -10px; }
.pc-sheet-head .ib { font: 400 1.5rem/1 var(--body); }

/* The method, an instrument: among whom, then a row per note (word and figure, the note, the fact on its scale, the
   source), then the rules in short lines. */
.pc-how-among { font: 500 0.875rem/1.35 var(--body); }
.pc-how-rows { display: grid; margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pc-how-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; column-gap: 12px; row-gap: 6px; padding: 10px 0 9px; border-bottom: 1px solid var(--line); }
.pc-how-what { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pc-how-code { flex: none; min-width: 76px; white-space: nowrap; font: 700 0.75rem/1 var(--label); letter-spacing: 0.06em; text-decoration: none; font-variant-numeric: tabular-nums; }
.pc-how-fig { font: 700 0.9375rem/1.1 var(--display); letter-spacing: -0.008em; white-space: nowrap; }
.pc-how-n { grid-row: span 2; justify-self: end; font: 800 1.625rem/1 var(--display); letter-spacing: -0.034em; }
.pc-how-row.is-unnoted .pc-how-n { color: var(--soft); }
.pc-how-row .pc-scale { grid-column: 1; }
.pc-how-why { grid-column: 1; font: 500 0.75rem/1.3 var(--body); color: var(--soft); }
.pc-how-src { grid-column: 1 / -1; font: 500 0.75rem/1.35 var(--label); color: var(--soft); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.pc-how-keys { display: grid; gap: 5px; margin: 14px 0 0; }
.pc-how-keys > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.pc-how-keys dt { font: 700 0.75rem/1.3 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); font-variant-numeric: tabular-nums; }
.pc-how-keys dd { margin: 0; font: 400 0.75rem/1.35 var(--body); }
.pc-how-pic { font: 500 0.75rem/1.4 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }

/* A fact on its scale: the worse end, the bar, the better end; the car's mark and the middle's (dashed). */
.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; }
.pc-scale-bar { position: relative; height: 12px; }
.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)); }
.pc-scale-mid { position: absolute; inset-inline-start: var(--at); top: 0; width: 1.5px; height: 12px; translate: calc(-50% * var(--line-dir)) 0; background: repeating-linear-gradient(var(--ink) 0 2px, transparent 2px 3.5px); opacity: 0.7; }
.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(--card); }
.pc-scale-me.is-other { background: var(--other); box-shadow: 0 0 0 3px var(--card); }

.pc-pick-count { display: flex; align-items: baseline; gap: 2px; }
.pc-pick-count b { font: 800 1.75rem/1 var(--display); letter-spacing: -0.025em; }
.pc-pick-count span { font: 700 0.875rem/1 var(--display); color: var(--soft); }
.pc-pick-count small { margin-inline-start: 10px; font: 500 0.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.pc-composer.is-out .pc-pick-count b { color: var(--bad); }
.pc-group { display: grid; gap: 6px; margin-top: 12px; }
.pc-group .chips { margin: 0; padding: 0; }
.pc-sheet-acts { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .pc-sheet { inset: 0; width: min(560px, 92vw); height: fit-content; max-height: 84vh; margin: auto; padding: 18px 22px 22px; border-radius: var(--r-l); box-shadow: var(--lift-2); }
}

/* ── The face-à-face: two cars, the headline in figures, two bars a criterion ──────────────────────────── */

.pv { position: relative; display: grid; width: 100%; max-width: 380px; padding: 18px 16px 14px; border-radius: var(--r-l); container-type: inline-size; background: var(--card); box-shadow: var(--lift-2), inset 0 0 0 1px var(--line); }
.pv-kicker { font: 600 var(--fs-label)/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.pv-head { display: grid; margin-top: 6px; font: 800 1.5rem/1.04 var(--display); letter-spacing: -0.028em; text-wrap: balance; }
.pv-head span + span { color: var(--soft); }
/* One scale for the two cars: their lengths fill the width, nose to nose. */
.pv-stage { --mm: calc((100cqi - 40px) / (var(--la) + var(--lb))); display: flex; justify-content: center; align-items: flex-end; gap: 8px; margin: 14px -4px 0; padding-bottom: 10px; border-bottom: 1.5px solid var(--line); }
.pv-cars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.pv-car { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 6px; align-items: baseline; min-width: 0; }
.pv-car.is-b { text-align: end; grid-template-columns: minmax(0, 1fr) auto; }
.pv-car.is-b .dot { grid-column: 2; grid-row: 1; }
.pv-car > :not(.dot) { grid-column: 1 / -1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-car.is-a > :not(.dot) { grid-column: 2; }
.pv-car.is-b > :not(.dot) { grid-column: 1; }
.pv-make { font: 600 0.75rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.pv-model { font: 800 1.125rem/1.05 var(--display); letter-spacing: -0.02em; }
.pv-trim { font: 500 0.75rem/1.25 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.pv-rows { display: grid; gap: 8px; margin-top: 14px; }
.pv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 1.4fr) minmax(0, 1fr); align-items: center; column-gap: 8px; row-gap: 3px; }
.pv-word { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 4px; font: 700 0.75rem/1 var(--label); letter-spacing: 0.08em; color: var(--soft); font-variant-numeric: tabular-nums; }
.pv-word .ic { width: 13px; height: 13px; }
.pv-fig { font: 600 0.8125rem/1.1 var(--body); color: var(--soft); }
.pv-fig.is-b { text-align: end; }
.pv-fig.is-best { color: var(--ink); font-weight: 800; }
/* Two bars from the middle: this one's to the left in the paint, the other's to the right in blue. */
.pv-bars { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 8px; }
.pv-bars i { display: block; height: 100%; width: max(2px, calc(var(--r) * 100%)); border-radius: 3px; }
.pv-bars i.is-a { justify-self: end; background: var(--paint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paint-edge) 55%, transparent); transform-origin: var(--line-end); }
.pv-bars i.is-b { background: var(--other); transform-origin: var(--line-start); }
.pv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.pv-foot > :first-child { flex: 1 1 150px; min-width: 0; }
.pv-foot > :last-child { flex: none; margin-inline-start: auto; }
.pv-key { font: 500 0.75rem/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.pv-open { text-decoration: none; }

/* ── On a car's page: the face-à-faces the card offers ─────────────────────────────────────────────────── */

.pc-vs { display: grid; gap: 10px; width: 100%; max-width: 760px; margin-top: 28px; }
.pc-vs-head { font: 700 var(--fs-3)/1.2 var(--display); letter-spacing: -0.013em; }
.pc-vs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pc-vs-chip { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-height: 56px; padding-block: 8px; padding-inline: 8px 12px; border-radius: var(--r-m); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow var(--quick); }
.pc-vs-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
@media (hover: hover) { .pc-vs-chip:hover { box-shadow: inset 0 0 0 1px var(--edge); } }
.pc-vs-pic { --mm: 0.015px; grid-row: 1 / 3; display: flex; justify-content: center; align-items: flex-end; }
.pc-vs-name { font: 700 0.875rem/1.15 var(--display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-vs-why { font: 500 0.75rem/1.3 var(--label); color: var(--soft); white-space: normal; }
.pc-vs-slot:empty { display: none; }
/* A face-à-face is sized by its own width (a container): its column is given, never taken from it. */
.pc-vs-slot { display: grid; grid-template-columns: minmax(0, 380px); width: 100%; }

/* ── The draw-in: the bars grow and the profile turns up once the card is in sight (src/app/card/app.ts) ─── */

@media (prefers-reduced-motion: no-preference) {
  .pc-bar-track i, .pv-bars i { transition: transform 0.9s var(--ease); }
  [data-card][data-draw] .pc-bar-track i { transform: scaleX(0); }
  [data-card][data-draw].is-drawn .pc-bar-track i { transform: none; }
  [data-card][data-draw].is-drawn .pc-bar:nth-of-type(2) .pc-bar-track i { transition-delay: 0.06s; }
  [data-card][data-draw].is-drawn .pc-bar:nth-of-type(3) .pc-bar-track i { transition-delay: 0.12s; }
  [data-card][data-draw].is-drawn .pc-bar:nth-of-type(4) .pc-bar-track i { transition-delay: 0.18s; }
  [data-card][data-draw].is-drawn .pc-bar:nth-of-type(n + 5) .pc-bar-track i { transition-delay: 0.24s; }
  .pc-bars.is-new .pc-bar-track i, .pv.is-new .pv-bars i { animation: pc-grow 0.7s var(--ease) both; }
  @keyframes pc-grow { from { transform: scaleX(0); } }
  .pv.is-new { animation: pc-in var(--settle) var(--ease) both; }
  @keyframes pc-in { from { opacity: 0; translate: 0 8px; } }
}

@media (max-width: 349px) {
  .pc-hero { --ovr-h: 132px; --hh: max(232px, calc(var(--ovr-h) + var(--rise, 1700) * 100cqi / 5600 + 14px)); --rs: 184px; padding: 12px 12px 0; }
  .pc-glyph { transform: translate(calc(50cqi - 3px - 14px - 6px), -34px) scale(calc(84 / 184)); }
  [dir="rtl"] .pc-glyph { transform: translate(calc(-50cqi + 3px + 14px + 6px), -34px) scale(calc(84 / 184)); }
  .pc-bar { column-gap: 8px; padding-inline: 6px; }
  .pc-bar-fig { font-size: 0.8125rem; }
}
