/* Fleet & prices page (cars/index.html). Uses the home page's tokens, type and 1440 grid:
   24 px side margins, columns at 0 / 360 / 720 / 1080, each 312 px wide with 48 px gaps.
   Phone rules (html.phone) follow the home page's readable variant: same order, text sized to draw
   at ~10 px body and ~8 px smallest on a 390 px phone, and two 672 px columns instead of four 312 px ones. */

/* ---------- page title band ---------- */
.cars-band { position: relative; height: 760px; background: var(--ink); overflow: hidden; }
.cars-band-copy { position: absolute; left: 0; top: 206px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cars-band-label { color: var(--muted); }
.cars-h1 { margin-top: 17px; font: 300 72px/73px var(--geist); letter-spacing: -3px; }
.cars-h1 .serif { letter-spacing: -1px; }
.cars-band-body { width: 520px; margin-top: 26px; color: var(--muted); }
.cars-index { width: 980px; margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; }

/* ---------- vehicle list ---------- */
.cars-list { padding: 48px 0 112px; }
.cars-list > .filler { height: 834px; background: var(--paper); }
.cls { margin: 0 24px; padding: 48px 0 96px; scroll-margin-top: 24px; }
.cls + .cls { border-top: 1px solid rgba(7, 18, 16, .15); }
.cls-head { display: grid; grid-template-columns: 720px 1fr; align-items: end; }
.cls-nr { grid-column: 1 / -1; }
.cls-t { margin-top: 12px; }
.cls-note { width: 416px; color: var(--text); }
.car-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 312px); column-gap: 48px; row-gap: 64px; }
.car-img { height: 156px; background: var(--paper-2); overflow: hidden; }
.car-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }   /* photos are on white: multiply lets the tile colour show through, as on the home page tiles */
.car-meta { margin-top: 16px; }
.car-meta .dot { margin: 0 8px; }
.car-name { margin-top: 6px; font: 300 26px/31.2px var(--geist); letter-spacing: -1px; color: var(--ink); }
.car-prices { margin: 16px 0 0; }
.car-prices div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(7, 18, 16, .15); }
.car-prices div:last-child { border-bottom: 1px solid rgba(7, 18, 16, .15); }
.car-prices dd { margin: 0; font: 400 16px/22.4px var(--inter); letter-spacing: -.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.car-prices .from { font-size: .75em; color: var(--text); }   /* "from" on the ultra-luxury starting prices */
.car-book { margin-top: 18px; }

/* ---------- phone ---------- */
html.phone .cars-band { height: auto; }
/* bottom room: on a phone the light slanted edge below is fully lifted at once (220 px, plus 88 px more at the
   right from its skew), so the band keeps 560 px under the class links or the edge covers the last row */
html.phone .cars-band-copy { position: relative; top: auto; padding: 360px 0 560px; }
html.phone .cars-h1 { margin-top: 30px; font-size: 110px; line-height: 112px; letter-spacing: -4px; }
html.phone .cars-band .cars-band-body { width: 1040px; margin-top: 40px; color: rgb(214, 219, 218); }   /* beats phone.css's dark body colour */
html.phone .cars-index { width: 1300px; margin-top: 80px; gap: 28px 52px; }

html.phone .cars-list { padding-bottom: 160px; }
html.phone .cls { padding: 80px 0 140px; }
html.phone .cls-t { margin-top: 20px; }
html.phone .cls-note { width: 672px; }
html.phone .car-grid { margin-top: 72px; grid-template-columns: repeat(2, 672px); row-gap: 110px; }
html.phone .car-img { height: 336px; }
html.phone .car-meta { margin-top: 28px; }
html.phone .car-meta .dot { margin: 0 16px; }
html.phone .car-name { margin-top: 12px; font-size: 60px; line-height: 66px; letter-spacing: -2.5px; }
html.phone .car-prices { margin-top: 28px; }
html.phone .car-prices div { padding: 22px 0; border-width: 2px; }
html.phone .car-prices dd { font-size: 42px; line-height: 50px; letter-spacing: -.8px; }
html.phone .car-book { margin-top: 32px; }
