/* A topic's page (src/app/topics/page.ts: /voitures-hybrides, /voitures-chinoises…). The rows of links that lead to a topic from
   other pages are app.css's (`.tp-nav`). Its cards are the list's own (explorer.css, `.gx`). After
   app.css; it never redefines a token. */
.tp { gap: 20px; padding-bottom: var(--sp-6); }
.tp-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 4px; }
.tp-h1 { font: 800 clamp(1.625rem, 1.3rem + 1.6vw, 2.125rem)/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.tp-lede { max-width: 68ch; font: 500 0.9375rem/1.5 var(--body); color: var(--soft); text-wrap: pretty; font-variant-numeric: tabular-nums; }
.tp-h { font: 800 clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem)/1.15 var(--display); letter-spacing: -0.02em; text-wrap: balance; }

.tp-cars { display: grid; gap: 12px; min-width: 0; }
/* A hub's few cards: two by two, four in a row with room (the list's own columns would leave a hole after four). */
.tp-cars.is-few .gx { --cols: 2; }
@media (min-width: 900px) { .tp-cars.is-few .gx { --cols: 4; } }
.tp-see { display: flex; }
.tp-see .ic { width: 16px; height: 16px; }

/* A hub's parts: a tile each, two by two on a phone, four in a row with room. */
.tp-which { display: grid; gap: 12px; min-width: 0; }
.tp-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tp-parts > li { min-width: 0; }
.tp-part { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; height: 100%; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--card); color: inherit; text-decoration: none; transition: border-color var(--quick); }
.tp-part-n { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 800 1.125rem/1.15 var(--display); letter-spacing: -0.015em; }
.tp-part-n .ic { flex: none; width: 18px; height: 18px; }
.tp-part-w { font: 500 0.875rem/1.4 var(--body); color: var(--soft); }
.tp-part-f { font: 500 0.875rem/1.4 var(--body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tp-part-f small { color: var(--soft); font-size: 0.8125rem; }
@media (hover: hover) { .tp-part:hover { border-color: var(--ink); } }
.tp-part:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }

/* The questions, each over its answer: always open, a figure the page counted. */
.tp-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-width: 78ch; }
.tp-qa { margin: 0; }
.tp-qa > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tp-qa dt { font: 700 1rem/1.3 var(--body); }
.tp-qa dd { margin: 4px 0 0; font: 500 0.9375rem/1.5 var(--body); color: var(--soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* An engine's page (src/app/engines/page.ts): how many models at a power, beside the power; its two quiet notes. */
.en-n { margin-inline-start: 6px; font: 600 var(--fs-label)/1 var(--label); color: var(--soft); vertical-align: middle; }
.en-note, .en-real { max-width: 46em; text-wrap: pretty; line-height: 1.45; }
