/* The street: the app's home. One car is the subject: its make and its name on the wall, the cars parked at true
   scale in the order of their price with the one in the middle in focus and the others stepping back, under it its
   price, one row of figures and the way in; then one quiet line of controls: the category, the filters, and the
   budget's chip, which opens the budget's deck (docs/decisions/2026-11-19-app-bar-home-list.md, sections 2 and 3;
   docs/decisions/2026-11-24-home-phone-first.md). Also here: the page of the makes.

   Built on public/app/app.css and src/app/DESIGN.md: it adds no token and writes no colour.

   The street is the first screen, exactly: `.st` is as tall as the small viewport under the bar (`100svh`: the
   height a phone shows with its browser's bars out, so nothing is cut when they are and nothing moves when they
   leave), its parts composed on that height; a screen too short for them scrolls instead of squeezing. On the home
   the sections follow it (public/app/home.css). The car that crosses the middle of the strip is the one named.

   Scale. `--mm` is how many pixels a millimetre takes on this street. A car is `--L` millimetres long and is
   drawn `--L × --mm` wide; the room between two cars (`--gap`) and the room of the cars that are not on the
   screen (`--n`) are written in millimetres too, so that the street has its whole length before any script.
   On a phone the car in the middle takes from 62 % to 66 % of the width, as the height allows, and its neighbours
   show their ends; with room, three whole cars, as large as the width and the height allow. Two cars in one place always compare: the focus never
   changes a car's scale.

   Yellow says "this one": the budget, the street one is in. No car is said against a car chosen elsewhere
   (docs/decisions/2026-11-21-comparison-basket.md): each neighbour says what it asks, or its gap to the car in the middle.

   Motion follows the finger or explains a change (the street coming into focus, a car pulling out, the others
   closing ranks), on transform and opacity, and on `filter` for the focus. Under prefers-reduced-motion nothing
   slides or springs: the focus itself stays. */

.st {
  /* A 4,5 m car takes 62 % of a phone's width, up to 66 % where the screen is tall enough for a taller row. */
  --mm: min(calc(66vw / 4500), max(calc(62vw / 4500), calc(15svh / 2080)));
  /* The tallest car there is, with a little air: what the row of cars takes. */
  --tall: calc(2080 * var(--mm));
  /* Under the cars, with room: each neighbour's name and what it asks. */
  --cap-h: 0px;
  /* The name on the wall: as large as the place takes, up to this; what the make takes above it (on a phone it stands in
     the top row: the name's margin only). */
  --wall-max: min(112px, 14svh);
  --make-h: 4px;
  --wall-room: calc(100vw - 2 * var(--pad));
  /* The street's two edges fade out over this much of its width. */
  --fade: 3%;
  position: relative; display: flex; flex-direction: column; min-height: calc(100svh - var(--bar-h) - env(safe-area-inset-top, 0px));
}
@media (min-width: 900px) {
  .st { --mm: min(0.105px, calc(90vw / 15100), calc(21vh / 1700)); --cap-h: 68px; --wall-max: clamp(104px, 23vh, 224px); --make-h: 20px; --wall-room: min(1120px, 80vw); --fade: 8%; }
}
.st-probe { position: absolute; inset-inline-start: 0; top: 0; width: calc(var(--mm) * 100000); height: 0; visibility: hidden; pointer-events: none; }

/* The street takes what the screen leaves under the home's head: its top row, its scene, its line of controls. */
.st-first { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; overflow-x: clip; }

/* ── Its top: a returning visitor's line, and the two views ───────────────────────────────────────────── */

.st-top { position: relative; z-index: 3; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 40px; padding: 6px var(--pad) 0; transition: opacity 0.4s var(--ease); }
.st-top > .views { flex: none; margin-inline-start: auto; }
/* On a phone the make takes the top row's room left of the views: the wall is then the name alone. One line, the make
   and nothing beside it (whose picture stands in the middle is said under the car's acts: `.st-credit`). With room the
   make stands on the wall, above the name. */
.st-make-top { flex: 1 1 0; min-width: 0; height: 28px; margin: 0; display: flex; align-items: center; }
.st-make-top > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.st-make-top .t-label { font-size: 0.8125rem; line-height: 1; color: var(--ink); }
.st-wall .st-make { display: none; }
@media (min-width: 900px) {
  .st-make-top { display: none; }
  .st-wall .st-make { display: block; }
}
.st-top > .views a { height: 32px; padding: 0 14px; font-size: 0.8125rem; }
/* Three views on a narrow phone: the switch keeps its room beside the make. */
@media (max-width: 419px) { .st-top > .views a { padding: 0 11px; } }


/* ── The scene: the wall, the cars, what the car in the middle says ───────────────────────────────────── */

.st-scene { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; }
.st-scene > * { flex: none; transition: opacity 0.4s var(--ease); }
/* What the screen has left once every part has its room is air, shared by weight between three groups that stay
   whole (the name with its price, the cars with their neighbours' names, the figures with the way in): 0.8 of a share
   above the name, one between the price and the cars, 0.7 between the cars and the figures, 0.8 under the way in. A taller phone gives the same composition more air; nothing is stretched, and a screen with none to give
   simply has none. */
@media (max-width: 899px) {
  .st-scene { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 0.8fr) auto auto minmax(0, 1fr) auto auto minmax(0, 0.7fr) auto minmax(0, 0.8fr); justify-items: center; }
  .st-wall { grid-row: 2; }
  .st-price { grid-row: 3; }
  .st-view { grid-row: 5; }
  .st-nears { grid-row: 6; }
  .st-info { grid-row: 8; }
}
/* With room the scene stands in the middle of what the screen leaves it. */
@media (min-width: 900px) {
  .st-wall { margin-top: auto; }
  .st-info { margin-bottom: auto; }
}

/* The wall: the make on one line of a fixed height (`--make-h`), and the name, as large as the place takes (its width
   in ems rides in `--w`, measured once the typeface is there). The wall is one box per screen size, whatever the name
   and the make: the largest name and the make's line fill it; a name set smaller has air above it, and its foot, where
   the car stands, never moves. Nothing under the wall moves when the car changes, and nothing on it meets the name. */
.st-wall { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 100%; height: calc(var(--wall-max) * 0.86 + var(--make-h)); }
/* The name that leaves when the car changes, for 90 ms, where it stood (app.ts, `swapName`). */
.st-name.is-leaving { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; margin: 0; pointer-events: none; }
.st-make { flex: none; max-width: 100%; height: var(--make-h); margin: 0; padding: 0 var(--pad); overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; line-height: var(--make-h); }
.st-make .t-label { font-size: 0.875rem; line-height: inherit; letter-spacing: 0.08em; color: var(--ink); }
.st-name {
  --w: 3;
  max-width: 100%; margin: 4px 0 0; padding: 0 var(--pad); text-align: center; white-space: nowrap; color: var(--ink);
  font: 800 clamp(26px, min(calc(var(--wall-room) / var(--w)), var(--wall-max)), var(--wall-max))/0.86 var(--names); letter-spacing: -0.038em;
  /* One cut of the typeface at every size, the display one: a name is then as wide in ems on every screen. */
  font-variation-settings: "opsz" 96;
}
.st-name span { display: inline-block; }
@media (max-width: 899px) {
  /* A long name on a phone stands on two balanced lines, in the same box, where one line would set it a quarter
     smaller or more: `--w2` is the longer of its two lines (view.ts, app.ts). One line, or two, never more. */
  .st-name {
    --fs1: min(calc(var(--wall-room) / var(--w)), var(--wall-max));
    --fs2: min(calc(var(--wall-room) / var(--w2, var(--w))), calc(var(--wall-max) / 2));
    white-space: normal; text-wrap: balance;
    font-size: max(26px, var(--fs1), calc(var(--fs2) * max(0, sign(var(--fs2) - var(--fs1) * 1.25))));
  }
}

/* What it asks: its price (a promotion with its list price), or per month. */
/* It stands clear of the name's descenders (a "g" of the wall's face hangs a seventh of its size under its box). Its box
   takes the scene's whole width and its words stand in its middle: a price with a list price beside it, or a shorter
   one, moves no box (the street's first screen measured while the car changes: docs/decisions/2026-11-25-home-polish.md). */
.st-price { position: relative; align-self: stretch; justify-self: stretch; display: flex; justify-content: center; align-items: flex-end; height: 58px; max-width: 100%; margin-top: max(6px, calc(var(--wall-max) * 0.16)); padding: 0 var(--pad); white-space: nowrap; }
/* "à partir de" on its own line above the price (F9); beside the price, on its line, the list price of a promotion,
   struck, or how a monthly amount is figured ("par mois, à crédit"): two lines whatever the unit, in one box. */
.st-price .price { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: baseline; gap: 2px 8px; }
.st-price .price > small:first-child { grid-column: 1 / -1; justify-self: center; font: 600 0.8125rem/1 var(--body); letter-spacing: 0; color: var(--soft); }
.st-price .price b { font: 800 min(2.5rem, 10.2vw)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.st-price .price b + small { font: 600 0.8125rem/1 var(--body); color: var(--soft); }
.st-price .price-list s { font: 500 0.78125rem/1 var(--label); letter-spacing: 0; font-variant-numeric: tabular-nums; }
/* Per month: "à partir de" on the figure's own line, before it; the figure with its short unit ("4 496 dh/mois"); under
   it how it is figured, a few short pieces on one line that never breaks ("à crédit · 5 ans · apport 20 % · taux
   6,68 %"). Two lines in the same box as a price, at 320 px as at 430. */
.st-price .price.is-month { grid-template-columns: minmax(0, auto) minmax(0, auto); max-width: 100%; gap: 4px 8px; }
.st-price .price.is-month > small:first-child { grid-column: auto; justify-self: end; }
.st-price .price.is-month > b:first-child { grid-column: 1 / -1; justify-self: center; }
.st-price .price-terms { grid-column: 1 / -1; justify-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 600 clamp(0.6875rem, 3.3vw, 0.78125rem)/1.3 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
.st-price .price-terms > span + span::before { content: "·"; margin-inline: 0.2em 0.45em; }
/* The figure a little smaller than a price's, so that its two lines stand in the price's box (58 px; 52 on a short screen). */
.st-price .price.is-month b { font-size: min(2.25rem, 9.6vw); }

/* The cars: one street, at one scale. The car in the middle stands in a light, on the ground's hairline. The light lies
   under the wall's name, the cars stand in front of it: the view itself never makes a layer of its own (what a first
   visit does to the street is done to its parts). */
.st-view { position: relative; width: 100%; padding-top: 6px; }
.st-view::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: calc(var(--cap-h) - 10px); width: min(92%, calc(7400 * var(--mm))); height: calc(var(--tall) * 1.25); translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--card) 92%, transparent), transparent); pointer-events: none; transition: opacity 0.55s var(--ease), translate 0.6s var(--ease), scale 0.6s var(--ease); }
.st-view::after { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: var(--cap-h); height: 1px; background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent); pointer-events: none; transition: opacity 0.55s var(--ease), translate 0.6s var(--ease); }

/* The street itself: a row that scrolls sideways and stops on a car; its two edges fade out. A vertical stroke on it
   scrolls the page. It is a scale of prices, the cheapest on the left, in every language: in Arabic it stays left to
   right (the owner's screenshot of /ar, 25 November 2026: a right-to-left row centred the wrong cars). */
.st-street {
  --gap: 520; direction: ltr;
  position: relative; display: flex; align-items: flex-end; height: calc(var(--tall) + var(--cap-h)); padding-bottom: var(--cap-h);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x pan-y; outline: none;
  transition: filter 0.55s var(--ease), opacity 0.55s var(--ease), translate 0.6s var(--ease), scale 0.6s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
}
.st-street::-webkit-scrollbar { display: none; }
.st-street::before, .st-street::after { content: ""; flex: none; width: 50%; height: 1px; }
/* Before any script, the street opens on its car: everything before it is pulled out of the way. */
.st-street:not(.is-live)::before { margin-inline-start: calc(var(--open, 0) * var(--mm) * -1); }
.st-street.is-scrubbed { scroll-snap-type: none; }
.st-street.is-held { cursor: grabbing; }
.st-gone { flex: none; width: calc(var(--n, 0) * var(--mm)); height: 1px; }
.st-slot { position: relative; flex: none; width: calc(var(--L) * var(--mm)); margin: 0 calc(var(--gap) * var(--mm) / 2); scroll-snap-align: center; transition: filter 0.3s var(--ease), opacity 0.3s var(--ease), translate var(--calm) var(--ease); }
.st-hit { display: flex; justify-content: center; align-items: flex-end; border-radius: 10px; outline-offset: 6px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
/* A car the source gives no measures for: its place, marked out, and the words that say why it is not drawn. */
.st-slot .carfig.is-nothing { display: grid; place-items: center; width: 100%; height: calc(1380 * var(--mm)); padding: 0 8px; border: 1.5px dashed var(--edge); border-bottom-style: solid; border-start-start-radius: 16px; border-start-end-radius: 22px; border-end-end-radius: 6px; border-end-start-radius: 6px; overflow: hidden; }
.st-slot .carfig-none { padding: 0; border: 0; white-space: normal; text-wrap: balance; }
/* A car that is on its way: its place, at its length. */
.st-slot.is-waiting i { display: block; height: calc(1200 * var(--mm)); border-radius: 40% 46% 12% 12% / 70% 80% 20% 20%; background: color-mix(in srgb, var(--ink) 7%, transparent); }

/* The car chosen stands in full light; the others step back, sharp, so that each reads as a car to tap: a tap chooses
   it. The strip moves under a finger without choosing. */
.st-slot:not(.is-here) { opacity: 0.5; }
.st-slot.is-near { opacity: 0.62; }


/* A car beyond the budget steps back; the one in the middle stays readable. What it lacks of the budget, with the
   bird that shouts it, does not: that is the fact. */
.st-slot.is-beyond { translate: 0 -5px; }
.st-slot.is-beyond > .st-hit, .st-slot.is-beyond > .st-cap > :not(.st-lacks) { opacity: 0.42; }
.st-slot.is-beyond .carfig { filter: saturate(0.15); }
.st-slot.is-beyond.is-here { translate: none; }
.st-slot.is-beyond.is-here > .st-hit { opacity: 0.8; }
.st-slot.is-beyond.is-here .carfig { filter: saturate(0.45); }

/* Under the wheels, with room: each neighbour's name and what it asks. */
.st-cap { display: none; }

/* As the page arrives, the street rolls in and comes to rest: once. */
@media (prefers-reduced-motion: no-preference) {
  .st-street.is-arriving .st-slot { animation: st-arrive 0.7s cubic-bezier(0.16, 0.84, 0.3, 1) backwards; }
  .st-street.is-arriving .st-slot.is-here ~ .st-slot { animation-delay: 60ms; }
  .st-street.is-jumping { animation: st-jump 0.32s var(--ease); }
}
@keyframes st-arrive { from { transform: translateX(90px); } }
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .st-slot.is-near .st-cap { animation: st-cap-in 0.18s ease-out 0.16s both; }
}
@keyframes st-cap-in { from { opacity: 0; } }
@keyframes st-jump { from { opacity: 0.25; } }

/* The two neighbours, named at the edges of a phone's screen: their pictures are out of focus, their names are not.
   The first car past the budget says what it lacks. */
.st-nears { direction: ltr; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; width: 100%; min-height: 28px; margin-top: 4px; padding: 0 var(--pad); }
.st-near { position: relative; display: grid; gap: 6px; min-width: 0; max-width: 47%; padding: 4px 0; color: var(--soft); text-decoration: none; }
.st-near::after { content: ""; position: absolute; inset: -8px -6px; }
.st-near-next { margin-inline-start: auto; justify-items: end; text-align: end; }
.st-near > b { display: flex; align-items: center; gap: 2px; min-width: 0; font: 650 0.8125rem/1.1 var(--display); letter-spacing: -0.008em; }
.st-near > b > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-near .ic { flex: none; width: 16px; height: 16px; }
.st-near-prev .ic { margin-inline-start: -4px; }
.st-near-next .ic { margin-inline-end: -4px; }
.st-near.is-end { padding-top: 6px; font: 500 0.75rem/1.25 var(--body); }
.st-near.is-end::after { content: none; }
.st-vs { display: block; font-variant-numeric: tabular-nums; }
/* What the first car past the budget lacks hangs under its name, in the air kept under the cars: it comes and goes
   with the budget and moves nothing (a screen with no air to give keeps it in the row). */
@media (max-width: 899px) and (min-height: 611px) {
  .st-near > .st-vs { position: absolute; top: calc(100% - 4px); inset-inline-end: 0; white-space: nowrap; }
}
.st-vs .gaps { gap: 4px; }
.st-near-next .st-vs .gaps { justify-content: flex-end; }

/* What the car in the middle says, and what can be done with it: its four figures, one row of acts. */
.st-info { display: grid; justify-items: center; gap: 12px; width: 100%; max-width: 600px; padding: 6px var(--pad) 0; }
.st-said { width: 100%; }
/* The four figures: one card, four equal cells (F9), each its icon, its figure large, its label under it. One height
   whatever the car: nothing under the wall moves when the car changes. */
.st-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.st-figs > li { position: relative; min-width: 0; }
.st-figs > li > span[aria-hidden] { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 10px 4px 11px; text-align: center; }
.st-figs > li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.st-figs .ic { width: 18px; height: 18px; color: var(--soft); }
.st-figs b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: clip; font: 800 1.0625rem/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-figs b small { font: 650 0.75rem/1 var(--body); letter-spacing: 0; color: var(--soft); }
.st-figs i { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 600 0.78125rem/1.2 var(--body); color: var(--soft); }
/* Per month the first figure is the price, six or seven digits: its cell takes the room the three short ones spare, so
   that "1 250 000 dh" stands whole at 360 px. */
.st[data-lead="month"] .st-figs { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) {
  /* On a phone the four figures are a row between two hairlines: figure over label, no card and no icon, so that the
     car above them stays the picture of the screen (the owner, 24 November 2026: "crowded, it hurts the eye"). */
  .st-figs { border-width: 1px 0; border-radius: 0; background: none; }
  .st-figs .ic { display: none; }
  .st-figs > li > span[aria-hidden] { gap: 3px; padding: 9px 4px 8px; }
  .st-figs > li + li::before { top: 10px; bottom: 10px; }
}
@media (max-width: 379px) {
  .st-figs > li > span[aria-hidden] { padding-inline: 2px; }
  .st-figs b { font-size: 0.96875rem; }
  .st-figs i { font-size: 0.75rem; }
}
/* The way in and the heart, side by side in the middle: a pill as wide as its words, 44 px under a finger, never a
   slab (the owner, 24 November 2026: "shouldn't be that big: clean, smaller, clear"). On a phone it says "Tout savoir"
   (the name is on the wall above): one width whatever the car, so nothing beside it moves. With room its words name
   the car and give way before the heart does (D3). */
.st-acts { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.st-go { flex: 0 1 auto; min-width: 0; min-height: 44px; padding-block: 6px; padding-inline: 22px 16px; overflow: hidden; }
.st-go > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-go-short { display: none; }
@media (max-width: 759px) {
  .st-go-long { display: none; }
  .st-go-short { display: inline; }
}
/* With its long words too the way in keeps one width whatever the car's name, as on a phone: the heart beside it never
   moves when the car changes (a name too long for it is cut with an ellipsis; the wall says it whole). Its words and
   its arrow stay together in its middle. */
@media (min-width: 760px) { .st-go { flex: none; width: 24rem; } .st-go > span { flex: 0 1 auto; } }
/* Whose picture stands in the middle ("image officielle Kia, une autre version"): one quiet line under the acts, its
   room kept whatever it says, so that a car with a longer credit moves nothing. */
.st-credit { justify-self: stretch; max-width: 100%; height: 14px; margin: -4px 0 0; overflow: hidden; text-align: center; white-space: nowrap; text-overflow: ellipsis; line-height: 14px; }
.st-credit::first-letter { text-transform: uppercase; }
.st-keep { flex: none; width: 44px; height: 44px; box-shadow: inset 0 0 0 1.5px var(--edge); }
.st-keep[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.st-keep[aria-pressed="true"] .ic { color: var(--ink); }

/* ── With room: three whole cars, each neighbour named under its wheels, the price on their line ───────── */

@media (min-width: 900px) {
  .st-name { margin-top: 6px; }
  /* The cars' row is pulled up: the car in the middle stands in front of the foot of its name. */
  .st-view { order: 2; margin-top: calc(var(--wall-max) * -0.2); padding-top: 0; }
  .st-price { order: 3; margin-top: calc(var(--cap-h) * -1 + 12px); }
  .st-price .price b { font-size: 2.75rem; }
  .st-info { order: 4; gap: 14px; margin-top: 14px; padding-top: 0; }
  .st-acts { width: auto; }
  .st-go { min-height: 48px; padding-block: 8px; padding-inline: 24px 18px; }
  .st-keep { width: 48px; height: 48px; }
  .st-said { width: 560px; }

  /* The neighbours stand close to full light; what lies beyond them steps back. */
  .st-slot.is-near { opacity: 0.9; }
  .st-cap { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; display: grid; justify-items: center; align-content: start; gap: 4px; width: max-content; max-width: calc(100% + var(--gap) * var(--mm) - 16px); text-align: center; white-space: nowrap; pointer-events: none; transition: opacity 0.1s; }
  .st-cap b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font: 700 0.9375rem/1.1 var(--display); letter-spacing: -0.013em; color: var(--ink); }
  .st-cap .num { font: 500 0.75rem/1 var(--label); color: var(--soft); font-variant-numeric: tabular-nums; }
  .st-cap .st-vs { margin-top: 2px; }
  .st-cap .gaps { justify-content: center; }
  /* The car that comes to the middle stops saying its name at once; one that becomes a neighbour says it once it has
     moved away from the price (below): never two words in one place. */
  .st-slot:not(.is-near) .st-cap { opacity: 0; }
  /* Never on the price of the car in the middle (app.ts, `clearOfPrice`): hidden while the strip moves, and at rest where
     they would meet it. */
  .st-street.is-moving .st-cap, .st-cap.is-clashing { visibility: hidden; opacity: 0; }

  /* The neighbours, with room, are the street's two arrows, on each side of it at the height of the cars. */
  .st-nears { order: 2; position: relative; height: 0; min-height: 0; margin: 0; padding: 0; }
  .st-near { position: absolute; z-index: 2; bottom: calc(var(--cap-h) + 36px); display: grid; place-items: center; width: 44px; height: 44px; max-width: none; padding: 0; border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--lift-1); transition: scale var(--quick), opacity var(--quick); }
  .st-near::after { inset: -2px; }
  .st-near-prev { inset-inline-start: 18px; }
  .st-near-next { inset-inline-end: 18px; }
  .st-near > b > span, .st-near .st-vs { display: none; }
  .st-near .ic { width: 22px; height: 22px; margin: 0; }
  .st-near:active { scale: 0.92; }
  .st-near.is-end { visibility: hidden; }
}
@media (hover: hover) {
  .st-slot:not(.is-here):hover { opacity: 0.9; }
}
@media (hover: hover) {
  .st-hit { cursor: pointer; }
  .st-near:hover > b > span { text-decoration: underline; text-underline-offset: 3px; }
}

/* ── The road: one quiet line of controls at the foot of the screen ───────────────────────────────────── */

.st-road { flex: none; width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px var(--pad) calc(10px + env(safe-area-inset-bottom, 0px)); transition: opacity 0.4s var(--ease); }

/* The line of controls: the kinds of car, the filters, the count once something narrows the street, and last the
   budget's chip. */
.st-ctl { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.st-grow { flex: 1 1 0; }
/* The pills of the line: 40 px to the eye, 44 under a finger (D22). */
.st-ctl .pick::after { inset: -2px 0; }
/* The budget's chip: quiet until a budget is set, road paint once it is (yellow is "this one": the budget). It is
   the last of the line: its amount grows it leftwards, into the line's free room, and nothing beside it moves. */
.st-bud-chip { flex: none; gap: 6px; padding-block: 0; padding-inline: 11px 14px; }
.st-bud-chip b { font-variant-numeric: tabular-nums; }
.st-bud-chip.is-set { border-color: var(--paint-edge); background: var(--paint); color: var(--on-paint); }
@media (hover: hover) { .st-bud-chip.is-set:hover { border-color: var(--ink); } }
@media (max-width: 399px) {
  /* A narrow phone: the kinds' pill says its street without its count (said to a screen reader) and gives way first (D15). */
  .st-ctl .pick[popovertarget="st-kinds"] { max-width: 56vw; }
  .st-ctl .pick[popovertarget="st-kinds"] > small { display: none; }
}
/* The kinds' pill gives way before anything else does: a long name is cut, never the line. */
.st-ctl .pick[popovertarget="st-kinds"] { flex: 0 1 auto; min-width: 0; }
.st-ctl .pick[popovertarget="st-kinds"] > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-count { font: 500 0.75rem/1.3 var(--label); color: var(--soft); text-align: end; font-variant-numeric: tabular-nums; }
.st-count:empty { display: none; }
@media (max-width: 899px) {
  /* On a phone the filters' pill is its sign (and the count of the wishes on); the count of the street is said to a screen reader. */
  .st-ctl .pick[popovertarget="st-filters"] { min-width: 40px; justify-content: center; padding: 0 11px; }
  .st-ctl .pick[popovertarget="st-filters"] > :is(b, .ic:last-child) { display: none; }
  .st-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* "Aidez-moi à choisir", quiet, as the list has it beside its filters: in the line where it has room, at the foot of the
   filters' panel on a phone. */
.st-guide { position: relative; flex: none; display: none; align-items: center; gap: 6px; height: 40px; padding-block: 0; padding-inline: 16px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); text-decoration: none; white-space: nowrap; font: 650 0.875rem/1 var(--body); transition: background-color var(--quick), scale var(--quick); }
.st-guide .ic { flex: none; width: 17px; height: 17px; }
.st-guide:active { scale: 0.96; }
@media (min-width: 900px) {
  .st-guide { display: inline-flex; }
  .st-guide-in { display: none; }
}
@media (hover: hover) { .st-guide:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); } }
@media (prefers-reduced-motion: reduce) { .st-guide { transition: none; } .st-guide:active { scale: 1; } }
/* The panels the two pills open: the streets with their counts, the wishes as chips; at their foot, the way further. */
.st-chips.chips { gap: 8px; margin: 4px 0 8px; padding: 0; }
/* A wish: its icon, 15 px words at 600 on a well, 44 px high; on, ink with paper words (F7). */
.st-chips .chip span { height: 44px; padding-block: 0; padding-inline: 12px 16px; gap: 8px; border-color: transparent; background: var(--sunk); color: var(--ink); font: 600 0.9375rem/1 var(--body); }
.st-chips .chip span > .ic { width: 18px; height: 18px; color: var(--soft); }
.st-chips .chip input:checked + span { background: var(--ink); color: var(--paper); }
.st-chips .chip input:checked + span > .ic { color: var(--paper); }
/* The kinds in the panel of "Catégorie": the search sheet's tiles (app.css, `.kind-tile`), the street one is in inked. */
.st-kind-tiles { margin: 4px 0 8px; padding: 0; }
.st-kind-tiles .kind-tile { text-decoration: none; }
.st-kind-tiles .kind-tile[aria-current] { --bd-fill: var(--paint); border: 1.5px solid var(--ink); }
.st-kind-tiles .kind-tile b { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (min-width: 760px) { #st-kinds:has(.st-kind-tiles) { width: 460px; } }
.st-more { display: flex; align-items: center; gap: 10px; min-height: 50px; margin-top: 4px; padding: 0 2px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 1rem/1.2 var(--body); }
.st-more b { flex: 1 1 auto; font-weight: 650; }
.st-more small { font: 500 0.78125rem/1 var(--label); font-variant-numeric: tabular-nums; }
.st-more .ic { flex: none; width: 18px; height: 18px; }
@media (min-width: 760px) { .st-more { min-height: 44px; font-size: 0.9375rem; } }
@media (hover: hover) { .st-more:hover b { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; } }

/* ── A short screen: a phone with its browser's two bars out (390 × 664): tighter rows, nothing lost ──── */

@media (max-width: 899px) and (max-height: 700px) {
  .st-top { min-height: 34px; padding-top: 2px; }
  .st-top > .views a { height: 28px; }
  .st-price { height: 52px; }
  .st-price .price b { font-size: 2.125rem; }
  .st-price .price.is-month b { font-size: min(2rem, 9.6vw); }
  .st-view { padding-top: 2px; }
  .st-nears { margin-top: 2px; }
  .st-near { gap: 4px; padding: 2px 0; }
  .st-info { gap: 10px; padding-top: 2px; }
  .st-road { padding-top: 6px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 899px) and (max-height: 610px) {
  /* The smallest phones: the name a little smaller, the rows a little tighter. */
  .st { --wall-max: min(112px, 12.5svh); }
  .st-info { gap: 6px; }
}


/* ── Nobody is parked: what to drop, and what it brings back ──────────────────────────────────────────── */

.st[data-empty] :is(.st-wall, .st-make-top, .st-price, .st-nears, .st-info) { display: none; }
.st[data-empty] .st-scene { display: block; }
.st[data-empty] .st-view { margin-top: 0; }
.st[data-empty] .st-view::before, .st[data-empty] .st-view::after { content: none; }
.st[data-empty] .st-street { display: block; height: auto; padding: 18px var(--pad) 24px; overflow: visible; scroll-snap-type: none; -webkit-mask-image: none; mask-image: none; }
.st[data-empty] .st-street::before, .st[data-empty] .st-street::after { content: none; }
.st-nobody { display: grid; gap: 12px; justify-items: start; max-width: 32em; }
.st-nobody-bird { margin-block: 0 -6px; margin-inline: -10px 0; }
.st-nobody p { color: var(--soft); }
.st-ways { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) {
  .st[data-empty] .st-street { padding-inline: max(var(--pad), calc(50% - 360px)); padding-top: 40px; }
}
/* The bird shouts at the first car past the visitor's own budget, beside what it lacks (src/app/voice/cries.ts, `beyond`). */
.st-lacks { display: inline-flex; align-items: center; gap: 4px; font: 600 0.75rem/1.25 var(--body); color: var(--ink); }
.st-lacks .bird { width: 24px; height: 24px; margin-block: -6px -4px; margin-inline: -2px 0; }

.st-ghosts { position: absolute; inset: 0; pointer-events: none; }
.st-ghost { position: absolute; }

/* What the frame says briefly (a car kept) is said at the top of the street, right under the bar, over the promise and
   the top row, never over the car's name: the bottom of this screen is where the thumb works and where the answer to
   its gesture shows. */
.app:has(#st-first) > .toast { top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 8px); bottom: auto; translate: -50% -10px; }
.app:has(#st-first) > .toast.is-on { translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  .st-top, .st-scene > *, .st-view::before, .st-view::after, .st-street, .st-slot, .st-road, .st-cap, .st-near { transition: none; }
  .st-near:active { scale: 1; }
}

/* ── The budget's deck: what the chip opens ───────────────────────────────────────────────────────────────

   A sheet at the foot of a phone's screen (a panel by its chip with room: app.css, `.pop`), with the cars in full
   light above it: it dims nothing, and the street is lifted clear of it if the screen is short (app.ts, `--lift`).
   From the top: its name, the unit, its way out; the amount, large, a field; the count it reaches; the tape; a line
   of honest words; "Sans budget" and the way back. One height whatever the unit and the amount: nothing in it moves. */

.st-bud { padding: 8px var(--pad) calc(12px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.st-bud::backdrop { background: none; }
.st-bud-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 44px; }
.st-bud-head h2 { margin: 0; white-space: nowrap; }
/* Each option of the unit is set at its bold weight, chosen or not: choosing moves nothing (D16). */
.st-bud-head .switch span { padding: 0 9px; font-weight: 700; }
.st-bud-head > .ib { margin-inline-end: -10px; }
.st-bud-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }

/* The amount: the largest thing of the deck, and a field (a tap on it types the budget). One form per unit, in one
   place: the form of the unit in force shows, and its button, so that without scripts only that amount is sent. */
.st-bud-amount { display: grid; }
.st-bud-field { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 1fr); align-items: baseline; gap: 8px; margin: 0; }
.st-bud-field label { display: block; min-width: 0; }
.st-bud-field input { width: 100%; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; background: none; color: var(--ink); text-align: end; font: 800 2.5rem/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.st-bud-field input::placeholder { color: var(--faint); opacity: 1; }
.st-bud-field > span[aria-hidden] { justify-self: start; padding-bottom: 2px; border-bottom: 2px solid transparent; white-space: nowrap; font: 700 1rem/1 var(--display); color: var(--soft); }
.st-bud-field:focus-within > span[aria-hidden] { border-bottom-color: var(--ink); color: var(--ink); }
.st-bud:has(input[name="unite"][value="mois"]:checked) .is-total,
.st-bud:has(input[name="unite"][value="prix"]:checked) .is-month { display: none; }
.st-bud-says { min-height: 1.2em; margin: 0; text-align: center; font: 600 0.8125rem/1.2 var(--body); color: var(--soft); }
.st-bud-hint { min-height: 2.6em; margin: 0; text-align: center; text-wrap: balance; font-size: 0.75rem; line-height: 1.3; color: var(--soft); }
.st-bud-error { margin: 0; padding-inline-start: 12px; border-inline-start: 3px solid var(--bad); font: 600 0.8125rem/1.4 var(--body); color: var(--bad); }
.st-bud-acts { display: flex; gap: 8px; margin-top: 2px; }
.st-bud-acts .btn { min-height: 44px; }
.st-bud-acts .btn-ink { flex: 1 1 auto; }

/* The tape: the street's prices, a bar per step as tall as the cars there are many, round amounts under them. It is
   several screens long and slides under a fixed needle, by the thumb (its own sideways scroll, with the phone's own
   momentum), a mouse, or the keys of the slider laid over it; the street above runs to the dearest car within reach.
   What lies past the needle is beyond the budget: one veil dims it, so no bar is touched while the tape moves. The
   needle's head says it is a thing to drag: a grip of six dots at rest, the logo's wheel and bird while it is held.
   Only a script can move it: without one it is not shown, and the field above is the whole control. */
.st-tape { --tape: 1600px; position: relative; display: none; height: 80px; margin: 0 calc(var(--pad) * -1); -webkit-user-select: none; user-select: none; }
.st-bud.is-live .st-tape { display: block; }
.st-tape-run {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; direction: ltr; cursor: grab; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.st-tape-run::-webkit-scrollbar { display: none; }
.st-tape-run::before, .st-tape-run::after { content: ""; flex: none; width: 50%; }
.st-tape-run.is-held { cursor: grabbing; }
.st-tape-track { position: relative; flex: none; width: var(--tape); }
.st-tape .st-bars { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 30px; bottom: 17px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 60%, transparent); }
.st-tape .st-bars i { flex: 1 1 0; min-width: 0; height: max(3px, calc(var(--h) * 100%)); border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--ink) 82%, transparent); }
.st-tape .st-nums { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; height: 11px; font: 500 0.625rem/1 var(--label); color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-tape .st-nums span { position: absolute; left: var(--x); bottom: 0; translate: -50% 0; }
.st-tape-veil { position: absolute; inset-block: 26px 17px; inset-inline: 50% 0; background: color-mix(in srgb, var(--card) 76%, transparent); pointer-events: none; }
.st-tape-needle { position: absolute; left: 50%; top: 4px; bottom: 15px; width: 0; pointer-events: none; }
.st-tape-needle::before { content: ""; position: absolute; inset-inline-start: -1.25px; top: 12px; bottom: 0; width: 2.5px; border-radius: 1px; background: var(--paint); box-shadow: 0 0 0 1.5px var(--paint-edge); }
.st-tape-h { position: absolute; inset-inline-start: -13px; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paint); color: var(--on-paint); box-shadow: 0 0 0 1.5px var(--paint-edge); transition: scale var(--quick), box-shadow var(--quick); }
.st-tape-grip { width: 7px; height: 11px; background: radial-gradient(circle at 1.5px 1.5px, currentColor 1.1px, transparent 1.45px) 0 0 / 4px 4px; opacity: 0.7; transition: opacity var(--quick); }
.st-tape-bird { position: absolute; inset: 3px; width: 20px; height: 20px; opacity: 0; scale: 0.4; transition: opacity var(--quick), scale var(--quick) var(--ease); }
/* Held (the tape moving under a thumb, a mouse, or the keyboard on its slider): the head lifts, the bird in the hand. */
.st-tape:has(.st-tape-run.is-held) .st-tape-h, .st-tape:has(.st-budget:focus-visible) .st-tape-h { scale: 1.12; box-shadow: 0 0 0 1.5px var(--paint-edge), 0 8px 16px -6px color-mix(in srgb, var(--ink) 55%, transparent); }
.st-tape:has(.st-tape-run.is-held) .st-tape-grip, .st-tape:has(.st-budget:focus-visible) .st-tape-grip { opacity: 0; }
.st-tape:has(.st-tape-run.is-held) .st-tape-bird, .st-tape:has(.st-budget:focus-visible) .st-tape-bird { opacity: 1; scale: 1; }
/* The slider laid over the tape, for the keyboard and a screen reader: never under a finger (the tape is). */
.st-budget { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: none; border: 0; opacity: 0; pointer-events: none; }
.st-budget:focus-visible { outline: none; }
.st-tape:has(.st-budget:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: -2px; border-radius: 10px; }

/* While the deck is open the street stands clear of it: lifted by what the deck would cover of the cars (app.ts). What
   the lift would push under the bar (the promise, the top row) steps out for that time, and so do the neighbours'
   names, which the deck's edge would cut; all are back, where they stood, when it closes. */
.st { transition: translate var(--calm) var(--ease); }
.st.is-budgeting { translate: 0 calc(var(--lift, 0px) * -1); }
.hm-hero, .st-nears { transition: opacity var(--calm) var(--ease); }
.st.is-lifted :is(.hm-hero, .st-top), .st.is-budgeting .st-nears { opacity: 0; }

/* With room it is a panel by its chip, as wide as a panel may be (src/app/ui/pop.ts, `POP_WIDEST`). */
@media (min-width: 760px) {
  .st-bud { width: min(360px, calc(100vw - 32px)); padding: 8px 18px 16px; }
  .st-tape { margin: 0 -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .st, .hm-hero, .st-nears, .st-tape-h, .st-tape-grip, .st-tape-bird { transition: none; }
}

/* ── The makes ───────────────────────────────────────────────────────────────────────────────────────── */

.mks { max-width: 1080px; margin: 0 auto; padding: 18px var(--pad) 0; }
.mks-head { display: grid; gap: 12px; padding-bottom: 6px; }
.mks-lede { max-width: 38em; color: var(--soft); }
.mks-index { display: flex; gap: 0 2px; margin: 0 calc(var(--pad) * -1); padding: 0 calc(var(--pad) - 10px); overflow-x: auto; scrollbar-width: none; }
.mks-index::-webkit-scrollbar { display: none; }
.mks-index a { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--r-s); font: 650 0.9375rem/1 var(--display); text-decoration: none; }
.mks-group { padding-top: 18px; }
.mks-group > h2 { padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.mks-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.mk { --mm: 0.0165px; display: grid; gap: 3px; align-content: end; min-height: 104px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); text-decoration: none; }
.mk-pic { display: flex; align-items: flex-end; min-height: 34px; margin-bottom: 7px; }
.mk b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.0625rem/1.2 var(--display); letter-spacing: -0.013em; }
.mk small { font: 500 0.75rem/1.3 var(--body); color: var(--soft); font-variant-numeric: tabular-nums; }
/* A make's logo, where the site holds one, keeps the name's line: every tile of a row one height. */
.mk b .makemark.is-named { display: flex; align-items: center; }
.mk:active { background: var(--road); }
.mks-note { max-width: 44em; padding: 22px 0 8px; }
/* The two views of the makes, the logos first (src/app/street/page.ts, `makesDocument`): the shared switch, left. */
.mks-views { justify-self: start; }
/* The logos: the shared make tile (src/app/ui/make.ts), larger, the most versions first. */
.mks-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 0 0; }
.mks-logos .mk-tile { --logo-w: 72px; --logo-h: 34px; padding: 18px 8px 14px; }
.mks-logos .mk-tile b { font-size: 0.9375rem; white-space: normal; text-wrap: balance; overflow-wrap: anywhere; }
.mks-logos .mk-tile > * { max-width: 100%; }
@media (min-width: 480px) { .mks-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) { .mks-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .mks-logos .mk-tile { --logo-w: 88px; --logo-h: 40px; padding: 22px 10px 16px; } }
@media (min-width: 1000px) { .mks-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (hover: hover) {
  .mk:hover b, .mks-index a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-decoration-color: var(--paint); text-underline-offset: 4px; }
}
