/* Two models side by side at an address of their own, and the list of these pages (src/app/versus/page.ts:
   /comparatifs/dacia-sandero-vs-renault-clio, /comparatifs). The heading and the links are a topic's (topics.css, app.css
   `.tp-nav`), the comparison between them the comparison's own (compare.css). After those; it never redefines a token. */
/* The head of two models' page, inside the comparison's own column (compare.css `.cp`): where it stands, its title,
   the verdict as one facts row; the comparison's cars follow on its one ground. Centred, as the comparison is. */
.vs-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; padding: 4px 0 6px; text-align: center; }
.vs-facts { width: calc(100% + 11px); margin-top: 6px; text-align: start; }
.vs-facts .fact-f { font-size: 1.0625rem; }
.vs-facts .fact-f small { font-size: 0.8125rem; font-weight: 500; text-wrap: pretty; }
@media (min-width: 1000px) { .vs-top { gap: 12px; padding: 10px 0 10px; } .vs-facts .fact-f { font-size: 1.1875rem; } }
.vs-versions { max-width: 78ch; text-wrap: pretty; }
/* Who is who (src/app/versus/verdict.ts): each model its hue, on its name in the title, on its car's dot, and in each
   answer of the head, where each cell is the two models as two rows, a bar each in its hue as long as its figure against the larger; the winner's
   row in ink and ticked, the other in soft. One line per row at every width: the name gives way first. */
.vs-duel { display: grid; grid-template-columns: auto minmax(0, max-content) minmax(24px, 1fr) auto; gap: 5px 6px; margin-top: 2px; }
/* The two rows share their columns (subgrid): both bars start and end at the same place, on one scale. */
.vs-duel-r { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; font: 600 0.8125rem/1.2 var(--body); color: var(--soft); }
.vs-duel-r.is-won { color: var(--ink); font-weight: 800; }
.vs-hue { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.vs-duel-r.is-1 .vs-hue { background: var(--pair-1); }
.vs-duel-r.is-2 .vs-hue { background: var(--pair-2); }
.vs-name { text-decoration: underline 0.09em; text-underline-offset: 0.14em; }
.vs-name.is-1 { text-decoration-color: var(--pair-1); }
.vs-name.is-2 { text-decoration-color: var(--pair-2); }
.cp:has(.vs-top) .dot-a { display: inline-block; background: var(--pair-1); box-shadow: none; }
.cp:has(.vs-top) .dot-b { background: var(--pair-2); box-shadow: none; }
.vs-duel-n { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vs-duel-b { height: 6px; border-radius: 3px; background: var(--line); }
.vs-duel-b::before { content: ""; display: block; width: calc(var(--f) * 100%); height: 100%; border-radius: inherit; }
.vs-duel-r.is-1 .vs-duel-b::before { background: var(--pair-1); }
.vs-duel-r.is-2 .vs-duel-b::before { background: var(--pair-2); }
.vs-duel-v { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vs-duel-v svg { width: 12px; height: 12px; }
/* How many pairs a kind holds, after its name. */
.vs-n { margin-inline-start: 6px; font: 600 var(--fs-label)/1 var(--label); color: var(--soft); vertical-align: middle; }

/* The comparison pages (page.ts, `.vs-page`): each section's title above what it holds, which takes the page's whole
   container, not a topic's left column for the name and the rest for the cards (the owner, 2 December 2026: "so much
   wasted space especially on the left"). */
@media (min-width: 1000px) {
  .tp.vs-page > :is(section, nav) { grid-template-columns: minmax(0, 1fr); }
  .tp.vs-page > :is(section, nav) > * { grid-column: 1; }
  .tp.vs-page > :is(section, nav) > h2:first-child { grid-row: auto; position: static; }
  .tp.vs-page > :is(section, nav) > h2:first-child + * { margin-top: 12px; }
  .tp.vs-page > .tp-line { padding-inline-start: 0; }
}

/* The verdict (src/app/versus/verdict.ts): a buyer's questions, each a cell: who it goes to, then the two figures. Every
   cell of the grid the same height (its row count by scene.css's `--cols`); who it goes to first, the figures quiet. */
.vs-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 0; }
.vs-answers > div { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.vs-answers dt { font: 600 0.8125rem/1.3 var(--body); color: var(--soft); text-wrap: balance; }
.vs-answers dd { display: grid; gap: 4px; margin: 0; min-width: 0; }
.vs-answers dd b { font: 800 1.375rem/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.vs-answers dd span { white-space: normal; font: 500 0.8125rem/1.4 var(--body); color: var(--soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-wrap: pretty; }

/* Two makes side by side (page.ts, `makesDocument`): what each sells, a card a make, one under the other on a phone. */
/* Two columns only where each card holds two tiles of its models side by side; every track may shrink (a card never
   pushes past the page: the owner, 2 December 2026, the second make stood off the screen). */
.vm-ranges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
@media (min-width: 1100px) { .vm-ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vm-make { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.vm-name { margin: 0; font: 800 1.25rem/1.15 var(--display); letter-spacing: -0.015em; }
.vm-name a { color: inherit; text-decoration: none; }
.vm-name .makemark { display: inline-flex; align-items: center; gap: 8px; }
.vm-name .makemark img { width: 28px; height: 28px; }
.vm-name a:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: var(--r-s); }
.vm-facts { display: grid; gap: 0; margin: 0; }
.vm-facts > div { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.vm-facts dt { font: 600 0.8125rem/1.4 var(--body); color: var(--soft); }
.vm-facts dd { margin: 0; min-width: 0; font: 500 0.9375rem/1.4 var(--body); white-space: normal; overflow-wrap: anywhere; }
.vm-n { white-space: nowrap; }
.vm-facts dd a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 420px) { .vm-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
/* Two bars per question need the row's width on a phone: one question a line, the model's name whole. */
@media (max-width: 599px) { .vs-facts.is-duel > .fact { grid-column: 1 / -1; } }
