/* "Actualités et guides" (src/app/guides/page.ts; docs/decisions/2026-11-24-guides-polish.md). After app.css; it never
   redefines a token and never writes a colour.

   The index is edited: one article leads, large, then each rubrique in turn; an article is its drawing and its words,
   never a box (a row on a phone: the drawing, the title, the day; a card of three with room).
   An article reads on one column of reading width (about seventy characters), its head a title block with its drawing,
   its parts listed in a well on a phone and in a rail that stays in view with room.
   A grid of figures never scrolls sideways: a wide one stands its rows one under the other on a phone, each figure
   under its column's name.
   The pieces to try (`.gl`, src/app/guides/labs/view.ts) keep every figure in its box: lengths move by transform. */

/* ── A drawing (src/app/guides/art.ts) ─────────────────────────────────────────────────────────────────── */
.ga { display: block; width: 100%; height: auto; aspect-ratio: 320 / 200; font-family: var(--display); font-variant-numeric: tabular-nums; }
.ga :is(path, rect, circle, ellipse, line) { vector-effect: non-scaling-stroke; }
.ga .ga-s { vector-effect: none; }
.ga-fig { aspect-ratio: 320 / 84; }

/* ── The index ─────────────────────────────────────────────────────────────────────────────────────────── */
.gd { max-width: 1240px; margin: 0 auto; padding: var(--sp-5) var(--pad) var(--sp-7); }
.gd-h1 { font: 800 2rem/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.gd-lede { margin-top: 10px; max-width: 34em; font: 400 1.0625rem/1.4 var(--voice); color: var(--soft); text-wrap: pretty; letter-spacing: -0.005em; }
/* In a language the articles are not written in: one line that says they are in French (src/app/guides/page.ts). */
.gd-in-fr { width: fit-content; margin: 12px 0 0; padding: 8px 12px; border-radius: var(--r-m); background: var(--sunk); font: 600 0.875rem/1.35 var(--body); color: var(--ink); }
.gd-in-fr:first-child { margin: 12px auto 0; max-width: calc(100% - 2 * var(--pad)); }
.gd-rubs { margin-top: var(--sp-4); }
.gd-none { margin-top: var(--sp-6); color: var(--soft); }

/* An article on the index: its drawing on the road, its words beside or under it; the whole of it under a finger. */
.gd-card { position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.gd-card-art { border-radius: var(--r-s); background: var(--road); overflow: hidden; transition: translate var(--quick) var(--ease); }
.gd-card-w { display: grid; align-content: start; min-width: 0; }
.gd-card-rub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 18px; font: 650 0.75rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.gd-card-rub:empty { display: none; }
.gd-card-rub b { font-weight: 800; color: var(--ink); }
.gd-card-rub b + span::before { content: "·"; margin-inline-end: 8px; }
.gd-try { padding: 3px 7px 2px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-weight: 700; letter-spacing: 0.04em; }
.gd-card-t { margin-top: 4px; font: 750 1rem/1.22 var(--display); letter-spacing: -0.012em; text-wrap: balance; }
.gd-card-rub:empty + .gd-card-t { margin-top: 0; }
.gd-card-t a { text-decoration: none; }
.gd-card-t a::after { content: ""; position: absolute; inset: -6px; border-radius: var(--r-m); }
.gd-card-t a:focus-visible { outline: none; }
.gd-card-t a:focus-visible::after { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.gd-card-d { display: none; margin-top: 8px; font: 400 0.9375rem/1.5 var(--body); color: var(--soft); text-wrap: pretty; }
.gd-card-m { margin-top: 6px; font: 500 0.78125rem/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .gd-card:hover .gd-card-t a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
  .gd-card:hover .gd-card-art { translate: 0 -3px; }
}
@media (prefers-reduced-motion: reduce) { .gd-card-art { transition: none; } .gd-card:hover .gd-card-art { translate: none; } }

.gd-cards { display: grid; gap: var(--sp-5); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }

/* The article an index opens on. */
.gd-lead { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); }
.gd-lead .gd-card-art { border-radius: var(--r-l); }
.gd-lead .gd-card-t { margin-top: 8px; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.gd-lead .gd-card-d { display: block; margin-top: 10px; font-size: 1rem; }
.gd-lead .gd-card-m { margin-top: 12px; }

/* A rubrique on the index of every article: its name on an ink line, the way to its own page. */
.gd-sec { margin-top: var(--sp-7); }
.gd-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); padding-top: 10px; border-top: 1.5px solid var(--ink); }
.gd-sec-h { font: 800 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.gd-sec-all { position: relative; flex: none; font: 600 0.84375rem/1.2 var(--body); text-underline-offset: 3px; }
.gd-sec-all::after { content: ""; position: absolute; inset: -14px -8px; }
.gd-sec-all .num { color: var(--soft); }

/* ── An article ────────────────────────────────────────────────────────────────────────────────────────── */
.gd-post { max-width: 1120px; margin: 0 auto; padding: var(--sp-4) var(--pad) 0; }
.gd-post-head { display: grid; gap: var(--sp-5); }
.gd-post-w { min-width: 0; }
.gd-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font: 600 0.8125rem/1.3 var(--body); color: var(--soft); }
.gd-trail a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.gd-trail a:last-child { color: var(--ink); }
.gd-title { margin-top: 2px; font: 800 2rem/1.06 var(--display); letter-spacing: -0.032em; text-wrap: balance; }
.gd-post .gd-lede { margin-top: 14px; font-size: 1.125rem; line-height: 1.42; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 16px; font: 500 0.8125rem/1.5 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.gd-meta span:not(:last-child)::after { content: "·"; margin: 0 8px; }
.gd-hero { border-radius: var(--r-l); background: var(--road); overflow: hidden; }

.gd-cols { margin-top: var(--sp-5); }
.gd-body { max-width: 660px; margin: 0 auto; }

/* "Dans cet article": the parts, numbered. A well on a phone; a rail that stays with the reader with room. */
.gd-toc { max-width: 660px; margin: 0 auto var(--sp-6); padding: 14px 18px 8px; border-radius: var(--r-m); background: var(--sunk); }
.gd-toc-h { font: 650 0.75rem/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.gd-toc ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: part; }
.gd-toc li { counter-increment: part; }
.gd-toc a { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); align-items: baseline; min-height: 44px; padding: 10px 0; font: 550 0.9375rem/1.3 var(--body); text-decoration: none; }
.gd-toc a::before { content: counter(part); font: 600 0.8125rem/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.gd-toc li + li a { border-top: 1px solid var(--line); }
@media (hover: hover) { .gd-toc a:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* The words. */
.gd-words { font: 400 1.0625rem/1.65 var(--body); }
.gd-words > * + * { margin-top: 16px; }
.gd-h2 { margin-top: var(--sp-7); font: 800 1.5rem/1.15 var(--display); letter-spacing: -0.024em; scroll-margin-top: calc(var(--bar-h) + 20px); text-wrap: balance; }
.gd-words > .gd-h2:first-child { margin-top: 0; }
.gd-words > .gd-h2 + * { margin-top: 12px; }
.gd-h3 { margin-top: var(--sp-6); font: 750 1.125rem/1.3 var(--display); letter-spacing: -0.012em; }
.gd-words > .gd-h3 + * { margin-top: 8px; }
.gd-words :is(ul, ol) { margin: 0; padding: 0; list-style: none; }
.gd-words li { position: relative; padding-inline-start: 1.3em; }
.gd-words li + li { margin-top: 8px; }
.gd-words ul > li::before { content: ""; position: absolute; inset-inline-start: 0.2em; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--edge); }
.gd-words ol { counter-reset: item; }
.gd-words ol > li { counter-increment: item; padding-inline-start: 1.9em; }
.gd-words ol > li::before { content: counter(item); position: absolute; inset-inline-start: 0; top: 0.22em; width: 1.3em; font: 700 0.8125em/1.6 var(--label); color: var(--soft); text-align: end; font-variant-numeric: tabular-nums; }
.gd-words b { font-weight: 700; }
.gd-words a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* A note set apart: what the law does not say, what is not known. */
.gd-note { padding: 14px 16px; border-inline-start: 3px solid var(--edge); border-radius: 0; border-start-end-radius: var(--r-s); border-end-end-radius: var(--r-s); background: var(--sunk); font-size: 0.96875rem; line-height: 1.55; }

/* "À retenir": the few points to leave with. */
.gd-keep { margin-top: var(--sp-5); padding: 18px 18px 18px; border: 1.5px solid var(--ink); border-radius: var(--r-m); background: var(--card); }
.gd-words > .gd-keep + * { margin-top: var(--sp-5); }
.gd-keep-h { display: inline-block; padding: 3px 9px 2px; border-radius: var(--r-s); background: var(--paint); color: var(--on-paint); box-shadow: inset 0 0 0 1.5px var(--paint-edge); font: 800 0.75rem/1.3 var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.gd-words .gd-keep ul { margin-top: 14px; font-size: 1rem; line-height: 1.5; }
.gd-words .gd-keep li { padding-inline-start: 1.5em; }
.gd-words .gd-keep li + li { margin-top: 10px; }
.gd-words .gd-keep li::before { inset-inline-start: 1px; top: 0.46em; width: 9px; height: 9px; border-radius: 2.5px; background: var(--paint); box-shadow: 0 0 0 1.5px var(--ink); }

/* Figures pulled out of the words: each large, with what it counts. */
.gd-figs { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: var(--sp-4); padding: var(--sp-4) 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.gd-figure { display: grid; gap: 4px; align-content: start; min-width: 0; }
.gd-figure b { font: 800 1.75rem/1 var(--display); letter-spacing: -0.035em; white-space: nowrap; }
.gd-figure span { font: 500 0.8125rem/1.35 var(--label); color: var(--soft); text-wrap: balance; }
.gd-figs[style*="--n:2"] .gd-figure b { font-size: 1.5rem; }
.gd-figs[style*="--n:3"] .gd-figure b { font-size: 1.375rem; }

/* A drawing among the words, and a car by its maker's picture. */
.gd-fig { margin-inline-start: 0; margin-inline-end: 0; }
.gd-fig .ga { border-radius: var(--r-m); background: var(--road); }
.gd-fig figcaption { margin-top: 8px; font: 500 0.8125rem/1.4 var(--label); color: var(--soft); text-wrap: pretty; }
.gd-fig-car { container-type: inline-size; display: grid; justify-items: center; padding: 28px 16px 14px; border-radius: var(--r-m); background: var(--road); }
.gd-fig-car .carfig { --mm: calc(min(100cqi, 520px) * 0.78 / 4600); }
.gd-fig-car figcaption { margin-top: 12px; text-align: center; }

/* A grid of figures. It never scrolls sideways: a wide one (`is-stack`) stands its rows one under the other on a
   phone, each figure under its column's name. */
.gd-words > .gd-grid + * { margin-top: var(--sp-5); }
.gd-grid table { width: 100%; border-collapse: collapse; font: 450 0.9375rem/1.4 var(--body); }
.gd-grid caption { padding-bottom: 10px; caption-side: top; text-align: start; font: 600 0.8125rem/1.35 var(--label); color: var(--soft); }
.gd-grid th, .gd-grid td { padding-block: 11px; padding-inline: 0 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.gd-grid :is(th, td):last-child { padding-inline-end: 0; }
.gd-grid thead th { padding-top: 0; border-bottom: 1.5px solid var(--ink); font: 650 0.8125rem/1.3 var(--label); color: var(--soft); vertical-align: bottom; }
.gd-grid tbody th { font-weight: 650; }
.gd-grid .num { font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .gd-grid.is-stack table, .gd-grid.is-stack tbody { display: block; }
  .gd-grid.is-stack caption { display: block; }
  .gd-grid.is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gd-grid.is-stack tr { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gd-grid.is-stack tbody tr:first-child { border-top: 1.5px solid var(--ink); }
  .gd-grid.is-stack :is(th, td) { padding: 0; border: 0; }
  .gd-grid.is-stack tbody th { font: 750 1rem/1.3 var(--display); }
  .gd-grid.is-stack tbody th:empty { display: none; }
  .gd-grid.is-stack td { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 12px; }
  .gd-grid.is-stack td::before { content: attr(data-h); font: 600 0.8125rem/1.6 var(--label); color: var(--soft); }
}

/* The sources: what was read, and the day. */
.gd-sources { margin-top: var(--sp-7); padding-top: var(--sp-4); border-top: 1.5px solid var(--ink); }
.gd-sources .gd-h2 { margin-top: 0; font-size: 1.0625rem; letter-spacing: -0.012em; }
.gd-sources-lede, .gd-also { margin-top: 6px; font: 400 0.875rem/1.5 var(--body); color: var(--soft); }
.gd-sources ul { margin: 12px 0 0; padding: 0; list-style: none; font: 450 0.875rem/1.5 var(--body); }
.gd-sources li { position: relative; padding-inline-start: 1.2em; }
.gd-sources li::before { content: ""; position: absolute; inset-inline-start: 0.15em; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--edge); }
.gd-sources li + li { margin-top: 8px; }
.gd-sources a { overflow-wrap: anywhere; }
.gd-read { color: var(--soft); white-space: nowrap; }

/* What to read next. */
.gd-related { max-width: 1120px; margin: var(--sp-7) auto 0; padding: 0 var(--pad) var(--sp-7); }
.gd-related-h { padding-top: 10px; border-top: 1.5px solid var(--ink); font: 800 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.gd-back a { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--sp-4); font: 600 0.9375rem/1.3 var(--body); text-underline-offset: 3px; }

@media (min-width: 760px) {
  .gd { padding-top: var(--sp-7); }
  .gd-h1 { font-size: 2.75rem; }
  .gd-lede { font-size: 1.25rem; }
  .gd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); }
  .gd-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gd-card-art { border-radius: var(--r-m); }
  .gd-card-t { font-size: 1.1875rem; line-height: 1.2; letter-spacing: -0.018em; }
  .gd-card-d { display: block; }
  .gd-card-m { margin-top: 10px; }
  .gd-lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-6); align-items: center; margin-top: var(--sp-6); }
  .gd-lead .gd-card-t { font-size: 2.125rem; line-height: 1.06; letter-spacing: -0.03em; }
  .gd-lead .gd-card-d { font-size: 1.0625rem; line-height: 1.5; }
  .gd-sec-h, .gd-related-h { font-size: 1.5rem; }
  .gd-post { padding-top: var(--sp-5); }
  .gd-title { font-size: 2.5rem; }
  .gd-post .gd-lede { font-size: 1.25rem; }
  .gd-words { font-size: 1.125rem; }
  .gd-h2 { font-size: 1.75rem; }
  .gd-figs .gd-figure b, .gd-figs[style*="--n:2"] .gd-figure b { font-size: 2.5rem; }
  .gd-figs[style*="--n:3"] .gd-figure b { font-size: 2rem; }
  .gd-keep { padding: 22px 24px; }
}
@media (min-width: 1000px) {
  .gd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-post-head { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--sp-7); align-items: center; padding-bottom: var(--sp-6); border-bottom: 1.5px solid var(--ink); }
  .gd-title { font-size: 3rem; }
  .gd-cols { margin-top: var(--sp-6); }
  /* The rail: the parts beside the words, in view while they are read; the part being read marked, where the browser
     can say which it is (no script). */
  .gd-cols { display: grid; grid-template-columns: 248px minmax(0, 660px); gap: var(--sp-7); align-items: start; }
  .gd-body { grid-column: 2; margin: 0; }
  .gd-post.has-toc .gd-toc { position: sticky; top: calc(var(--bar-h) + var(--sp-5)); max-width: none; margin: 0; padding: 0; border-radius: 0; background: none; scroll-target-group: auto; }
  .gd-post.has-toc .gd-toc a { min-height: 0; padding-block: 9px; padding-inline: 12px 0; border-inline-start: 2px solid var(--line); font-size: 0.875rem; color: var(--soft); }
  .gd-post.has-toc .gd-toc li + li a { border-top: 0; }
  .gd-post.has-toc .gd-toc a:hover { color: var(--ink); }
  .gd-post.has-toc .gd-toc a:target-current { border-inline-start-color: var(--ink); color: var(--ink); font-weight: 700; }
}
@media (min-width: 1000px) and (pointer: coarse) { .gd-post.has-toc .gd-toc a { min-height: 44px; } }

/* ── The pieces to try (src/app/guides/labs/view.ts) ───────────────────────────────────────────────────── */
.gl { container-type: inline-size; display: grid; gap: 18px; margin: var(--sp-6) 0; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--lift-1); font: 400 0.9375rem/1.45 var(--body); }
.gd-words > .gl + * { margin-top: var(--sp-6); }
.gl-tag { display: inline-block; padding: 3px 9px 2px; border-radius: var(--r-pill); background: var(--paint); color: var(--on-paint); box-shadow: inset 0 0 0 1.5px var(--paint-edge); font: 800 0.75rem/1.3 var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.gl-t { margin-top: 10px; font: 800 1.3125rem/1.15 var(--display); letter-spacing: -0.022em; text-wrap: balance; }
.gl-lede { margin-top: 6px; color: var(--soft); text-wrap: pretty; }
.gl-form { display: grid; gap: 16px; min-width: 0; }
.gl-field { display: grid; gap: 8px; min-width: 0; }
.gl-pair { display: grid; gap: 16px; }
.gl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gl-l { font: 650 0.8125rem/1.2 var(--label); color: var(--soft); }
.gl-val { font: 800 1.375rem/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.gl .switch { display: grid; }
.gl .switch span { padding: 0 4px; }
/* The shared switch places its thumb for three choices; a piece may offer four. */
.gl .switch:has(label:nth-of-type(4) input:checked) { --i: 3; }
.gl-note { padding-top: 12px; border-top: 1px solid var(--line); font: 400 0.8125rem/1.5 var(--body); color: var(--soft); text-wrap: pretty; }
.gl noscript .gl-note { padding-top: 0; border-top: 0; color: var(--ink); }
.gl-out { display: grid; gap: 8px; min-width: 0; }
.gl-fig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.gl-big { font: 800 2.125rem/1 var(--display); letter-spacing: -0.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl-unit { font: 550 0.875rem/1.2 var(--body); color: var(--soft); }
/* What a state says in words keeps the room of its longest sentence: nothing under it moves. */
.gl-say { min-height: calc(1.45em * 3); text-wrap: pretty; }
.gl-say.vh { min-height: 0; }
.gd-words .gl li { padding-inline-start: 0; }
.gd-words .gl li + li { margin-top: 0; }
.gd-words .gl li::before { content: none; }
.gl-stack { display: grid; }
.gl-stack > * { grid-area: 1 / 1; }

/* A range under our own thumb; over its track, where a piece asks, the steps it walks. */
.gl-range { position: relative; display: grid; }
.gl-range input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: none; cursor: pointer; touch-action: pan-y; }
.gl-range input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--edge); }
.gl-range input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--edge); }
.gl-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border: 3px solid var(--card); border-radius: 50%; background: var(--ink); box-shadow: var(--lift-1), 0 0 0 1px var(--ink); }
.gl-range input::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--card); border-radius: 50%; background: var(--ink); box-shadow: var(--lift-1), 0 0 0 1px var(--ink); }
.gl-range input:focus-visible { outline: none; }
.gl-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--paint), 0 0 0 4.5px var(--ink); }
.gl-range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--paint), 0 0 0 4.5px var(--ink); }
.gl-ends { display: flex; justify-content: space-between; margin-top: -4px; font: 500 0.75rem/1 var(--label); color: var(--soft); }
.gl-bars { display: flex; align-items: flex-end; gap: 2px; height: 72px; padding: 0 14px; }
.gl-bars i { flex: 1 1 0; height: max(3px, calc(var(--h) * 100%)); border-radius: 2px 2px 0 0; background: var(--line); transition: height var(--calm) var(--ease), background-color var(--quick); }
.gl-bars i.is-in { background: var(--ink); }
.gl-range.has-bars input { margin-top: -22px; }

/* The stopping distance: a road at one scale, the metres before braking in ink, those of the braking in paint, the car
   where it stops. The road keeps a car's length before its start, so that a short stop still shows the car whole. */
.gl-road { --lead: 50px; padding-inline-start: var(--lead); }
.gl-road-way { position: relative; height: 54px; container-type: inline-size; }
.gl-road-band { position: absolute; inset: auto 0 0 0; height: 28px; border-radius: 5px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.gl-road-r, .gl-road-b { position: absolute; inset: 0; transform-origin: 0 50%; transition: scale var(--calm) var(--ease), translate var(--calm) var(--ease); }
.gl-road-r { scale: var(--r) 1; background: var(--ink); }
.gl-road-b { translate: calc(var(--r) * 100cqi) 0; scale: var(--b) 1; background: var(--paint); }
.gl-stop[data-wet="true"] .gl-road-band { background-image: repeating-linear-gradient(115deg, transparent 0 7px, var(--line) 7px 8.5px); }
.gl-road-car { position: absolute; inset-inline-start: 0; bottom: 27px; width: var(--lead); translate: calc((var(--r) + var(--b)) * 100cqi - 100%) 0; transition: translate var(--calm) var(--ease); }
.gl-road-car .body { display: block; width: 100%; height: auto; aspect-ratio: 160 / 56; }
.gl-road-marks { position: relative; height: 20px; font: 500 0.75rem/20px var(--label); color: var(--soft); }
.gl-road-marks span { position: absolute; left: calc(var(--at) * 100%); translate: -50% 0; }
.gl-road-marks span:first-child { translate: 0 0; }
.gl-road-marks span:last-child { translate: -70% 0; }
.gl-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 10px; margin: 0; }
.gl-sum div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.gl-sum dt { display: flex; align-items: center; gap: 6px; font: 650 0.75rem/1.2 var(--label); color: var(--soft); }
.gl-sum :is(.gl-sum-r, .gl-sum-b) dt::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--ink); }
.gl-sum .gl-sum-b dt::before { background: var(--paint); box-shadow: inset 0 0 0 1.5px var(--paint-edge); }
.gl-sum dd { margin: 0; font: 800 1.25rem/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl-sum .gl-big { font-size: 1.75rem; }

/* NEDC against WLTP: one scale of litres, the NEDC figure a line of ink, the WLTP figure a band of paint. */
.gl-gauge { position: relative; height: 62px; container-type: inline-size; }
.gl-gauge::before { content: ""; position: absolute; inset: 22px 0 auto; height: 18px; border-radius: 5px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.gl-gauge-band { position: absolute; top: 22px; inset-inline-start: 0; width: 100%; height: 18px; transform-origin: 0 50%; translate: calc(var(--lo) * 100cqi) 0; scale: calc(var(--hi) - var(--lo)) 1; background: var(--paint); }
.gl-gauge-n { position: absolute; top: 16px; inset-inline-start: -1.5px; width: 3px; height: 30px; border-radius: 2px; background: var(--ink); translate: calc(var(--n) * 100cqi) 0; }
.gl-gauge b { position: absolute; inset-inline-start: 0; font: 800 0.75rem/1 var(--label); letter-spacing: 0.04em; white-space: nowrap; }
.gl-gauge-ln { top: 50px; translate: calc(var(--n) * 100cqi - 50%) 0; }
.gl-gauge-lw { top: 4px; translate: calc((var(--lo) + var(--hi)) / 2 * 100cqi - 50%) 0; }
/* The band is the longest figure a piece shows ("de 11,0 à 14,0 L/100 km"): its size follows the piece's width. */
.gl-wltp .gl-big { font-size: clamp(1.25rem, 7.4cqi, 1.75rem); }
.gl-why { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.gl-cycles { display: grid; gap: 12px; margin: 0; }
.gl-cycles > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: center; }
.gl-cycles dt { font: 600 0.8125rem/1.25 var(--label); }
.gl-cycles dd { display: grid; gap: 4px; margin: 0; }
.gl-cy { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; align-items: center; }
.gl-cy i { height: 8px; border-radius: 4px; background: var(--ink); }
.gl-cy-n i { width: calc(var(--was) * 100%); background: var(--faint); }
.gl-cy b { font: 700 0.78125rem/1 var(--label); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl-cy-n b { color: var(--soft); font-weight: 600; }
.gl-key { display: flex; gap: 16px; font: 650 0.75rem/1 var(--label); color: var(--soft); }
.gl-key span { display: inline-flex; align-items: center; gap: 6px; }
.gl-key span::before { content: ""; width: 14px; height: 8px; border-radius: 4px; background: var(--ink); }
.gl-key .gl-key-n::before { background: var(--faint); }

/* The three hybrids: what moves energy, lit and running where it runs. */
.gh { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; aspect-ratio: 320 / 196; }
.gh-way { stroke: var(--line); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--quick); }
.gh-flow { stroke: var(--on-paint); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 9; opacity: 0; }
.gh-w-socket { opacity: 0; }
.gl-hybrid[data-kind="plugin"] .gh-w-socket { opacity: 1; }
.gl-hybrid[data-flows~="engine"] .gh-w-engine, .gl-hybrid:is([data-flows~="motor"], [data-flows~="regen"]) .gh-w-battery, .gl-hybrid[data-flows~="socket"] .gh-w-socket { stroke: var(--paint); }
.gl-hybrid[data-flows~="engine"] .gh-engine, .gl-hybrid[data-flows~="motor"] .gh-motor, .gl-hybrid[data-flows~="regen"] .gh-regen, .gl-hybrid[data-flows~="socket"] .gh-socket { opacity: 1; animation: gh-run 0.6s linear infinite; }
@keyframes gh-run { to { stroke-dashoffset: -9.1; } }
@media (prefers-reduced-motion: reduce) { .gh-flow { animation: none !important; } }
.gh-box { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.gh-drop { fill: var(--sunk); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.gh-ink { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gh-bolt { fill: var(--ink); }
.gh-plug { fill: var(--card); stroke: var(--faint); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.gl-hybrid[data-kind="plugin"] .gh-plug { stroke: var(--ink); }
.gh-deck { opacity: 0; }
.gl-hybrid[data-kind="plugin"] .gh-deck { opacity: 1; }
.gh-cell { fill: var(--ink); transition: opacity var(--quick); }
.gl-hybrid[data-kind="mild"] :is(.gh-cell-2, .gh-cell-3) { opacity: 0.12; }
.gh-tyre { fill: var(--tyre); }
.gh-rim { fill: var(--faint); }
.gh-l { fill: var(--soft); font: 650 0.75rem var(--label); }
.gl-hybrid .gl-say { font-weight: 600; }

/* Credit against LOA: each way its payment, and its line: what is paid at the start in ink, month after month in grey,
   at the end in paint; the two lines at one scale. */
.gl-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gl-way { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; min-width: 0; padding: 12px; border-radius: var(--r-m); background: var(--sunk); }
.gl-way-t { font: 800 0.9375rem/1.2 var(--display); }
.gl-way .gl-big { font-size: clamp(1.25rem, 6vw, 1.75rem); }
.gl-line { display: flex; gap: 2px; height: 14px; }
.gl-line i { min-width: 0; border-radius: 3px; transition: flex-grow var(--calm) var(--ease); }
.gl-line-u { flex: var(--u) 1 0; background: var(--ink); }
.gl-line-m { flex: var(--m) 1 0; background: var(--faint); }
.gl-line-e { flex: var(--e) 1 0; background: var(--paint); box-shadow: inset 0 0 0 1.5px var(--paint-edge); }
.gl-way-credit .gl-line { --u: var(--c-u); --m: var(--c-m); --e: var(--c-e); }
.gl-way-loa .gl-line { --u: var(--l-u); --m: var(--l-m); --e: var(--l-e); }
.gl-facts { display: grid; gap: 6px; margin: 0; }
.gl-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gl-facts dt { font: 600 0.8125rem/1.3 var(--label); color: var(--soft); }
.gl-facts dd { margin: 0; font: 700 0.875rem/1.3 var(--body); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Two ways side by side, each half a phone's width: a fact's word over its figure, which may take two lines. */
.gl-way .gl-facts div { display: grid; gap: 1px; }
.gl-way .gl-facts dd, .gl-way .gl-facts dd > * { white-space: normal; }

/* A plate whose cells are its fields: the one under the finger in paint. */
.pl-stage { display: grid; place-items: center; min-height: 98px; }
.pl { display: inline-flex; align-items: stretch; height: 70px; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--card); box-shadow: var(--lift-1); font: 800 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; overflow: hidden; }
.pl-c { position: relative; display: grid; place-items: center; padding: 0 8px; border-inline-start: 2px solid var(--ink); }
.pl-c:first-child, .pl-ma + .pl-number, .pl-ww { border-inline-start: 0; }
.gl-plate[data-model="unified"] .pl-ma + .pl-number { border-inline-start: 2px solid var(--ink); }
.pl input { width: 5.3ch; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: center; outline: none; }
.pl-region input { width: 2.5ch; }
.pl-ww input { width: 6.3ch; }
.pl-letter-c { grid-template-rows: minmax(0, 1fr) auto; padding: 0; }
.pl-letter-c .pl-letter { padding: 0; border: 0; height: 100%; }
.pl-letter input { width: 2.4ch; min-width: 44px; min-height: 44px; }
.pl-latin { width: 100%; padding: 3px 0 2px; border-top: 2px solid var(--ink); font-size: 0.9375rem; text-align: center; }
.pl-c:focus-within { background: var(--paint); color: var(--on-paint); }
.pl-letter-c:focus-within .pl-latin { border-color: var(--paint-edge); }
.gl-plate[data-wrong~="number"] .pl-number, .gl-plate[data-wrong~="letter"] .pl-letter-c, .gl-plate[data-wrong~="region"] .pl-region, .gl-plate[data-wrong~="ww"] .pl-ww { box-shadow: inset 0 -4px 0 var(--bad); }
.gl-plate[data-model="national"] :is(.pl-ma, .pl-latin, .pl-ww, .pl-wwc),
.gl-plate[data-model="unified"] :is(.pl-ww, .pl-wwc),
.gl-plate[data-model="ww"] :is(.pl-ma, .pl-number, .pl-letter-c, .pl-region) { display: none; }
.gl-parts { display: grid; gap: 12px; align-content: start; margin: 0; padding: 0; list-style: none; }
.gl-part { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.90625rem; line-height: 1.45; }
.gl-part-v { display: grid; place-items: center; min-height: 30px; padding: 0 4px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--card); font: 800 0.9375rem/1 var(--display); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.gl-plate[data-model="ww"] .gl-parts-ordinary, .gl-plate:not([data-model="ww"]) .gl-parts-ww { visibility: hidden; }
.gl-plate[data-model="national"] .gl-part-ma .gl-part-v { border-style: dashed; color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .gl-bars i, .gl-road-r, .gl-road-b, .gl-road-car, .gl-line i { transition: none; }
}
@container (max-width: 340px) {
  .gl .switch span { font-size: 0.75rem; letter-spacing: -0.01em; }
}
@container (min-width: 520px) {
  .gl-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-say { min-height: calc(1.45em * 2); }
  .pl { height: 80px; font-size: 2.125rem; }
  .pl-latin { font-size: 1.0625rem; }
}
@media (min-width: 760px) {
  .gl { padding: 24px; gap: 22px; }
  .gl-t { font-size: 1.5rem; }
}
