/* DriveParc: tarmac, kerb red and pit-board yellow */
:root {
  --paper: #eceef0;      /* page: cool paddock grey */
  --surface: #ffffff;
  --ink: #15191e;
  --muted: #59636f;
  --line: #cfd5db;
  --tarmac: #1d2127;     /* header, pit board */
  --kerb: #d4202a;       /* brand red */
  --board: #f5c400;      /* pit-board lettering */
  --offer: #146c43;      /* live offers */
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15181d; --surface: #1d2127; --ink: #e9edf1; --muted: #9ba5b1; --line: #313842; --tarmac: #0e1013; --kerb: #ff4a52; --offer: #3fc98a; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--board); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Kerb stripe and header */
.kerb { height: 10px; background: repeating-linear-gradient(90deg, var(--kerb) 0 36px, #f4f5f6 36px 72px); }
.top { background: var(--tarmac); color: #f4f5f6; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { font: italic 800 1.9rem/1 var(--head); text-decoration: none; letter-spacing: .01em; }
.cats { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.cats a { text-decoration: none; padding: 20px 10px 17px; border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 500; color: #c9d0d7; }
.cats a:hover { color: #fff; }
.cats a[aria-current] { color: #fff; border-bottom-color: var(--kerb); }
.where { position: relative; }
.where summary { list-style: none; cursor: pointer; font: 700 1.05rem var(--head); border: 1px solid #4a525c; border-radius: 4px; padding: 4px 10px; }
.where summary::-webkit-details-marker { display: none; }
.where ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; list-style: none; margin: 0; padding: 6px; min-width: 210px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.where li a { display: block; padding: 8px 10px; text-decoration: none; border-radius: 4px; }
.where li a:hover { background: var(--paper); }
.where li a[aria-current] { font-weight: 600; box-shadow: inset 3px 0 var(--kerb); }
.regionbar { background: var(--board); color: #15191e; font-size: .92rem; padding: 8px 0; }
.regionbar a { font-weight: 600; }

/* Hero with the pit board */
.hero { background: var(--tarmac); color: #f4f5f6; padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font: 700 clamp(2.4rem, 5.6vw, 4.2rem)/0.98 var(--head); margin: 0 0 18px; max-width: 14ch; }
.lede { color: #c9d0d7; max-width: 46ch; margin: 0; font-size: 1.08rem; }
.board { margin: 0; justify-self: end; width: min(100%, 300px); background: #0b0c0e; border: 6px solid #2c323a; border-radius: 6px; padding: 18px 22px; display: grid; gap: 6px; transform: rotate(-2deg); box-shadow: 0 18px 40px rgba(0,0,0,.45); position: relative; }
.board::after { content: ""; position: absolute; left: 50%; bottom: -60px; width: 10px; height: 54px; background: #2c323a; transform: translateX(-50%); }
.board-row { font: italic 800 2.1rem/1 var(--head); color: var(--board); letter-spacing: .02em; white-space: nowrap; }
.board-row.big { font-size: 5.2rem; }
.board-row.box { color: #f4f5f6; }
@media (prefers-reduced-motion: no-preference) {
  .board { animation: swing 900ms cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 120%; }
  @keyframes swing { from { transform: translateX(40px) rotate(6deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
}

/* Sections and picks */
.cat { padding: 44px 0 8px; }
.cat.page { padding-top: 36px; }
.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 32px; align-items: end; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.cat-head h1, .cat-head h2 { font: 700 2.2rem/1 var(--head); margin: 0; }
.cat-head h2 a { text-decoration: none; }
.cat-head h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.cat-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px 36px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pick h3 { font: 700 1.55rem/1.1 var(--head); margin: 0 0 6px; }
.for { margin: 0 0 8px; font-weight: 500; }
.for span { color: var(--muted); font-weight: 400; margin-right: 4px; }
.why { margin: 0; max-width: 62ch; }
.promo { margin: 12px 0 0; padding: 8px 12px; border-left: 4px solid var(--offer); background: color-mix(in srgb, var(--offer) 10%, transparent); max-width: 62ch; }
.promo strong { color: var(--offer); }
.pick-buy { display: flex; flex-direction: column; gap: 8px; align-self: center; }
.seller { color: var(--muted); font-size: .9rem; }
.go { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--kerb); color: #fff; font-weight: 600; padding: 12px 16px; border-radius: 4px; }
.go:hover { background: color-mix(in srgb, var(--kerb) 86%, #000); }
.ad { font-size: .72rem; font-weight: 700; background: #fff; color: var(--kerb); padding: 1px 6px; border-radius: 3px; }
.empty { background: var(--surface); border: 1px solid var(--line); padding: 18px; border-radius: 4px; }
.prose { max-width: 70ch; }
.prose h1 { font: 700 2.4rem/1.05 var(--head); }

/* Footer */
.foot { margin-top: 56px; background: var(--tarmac); color: #c9d0d7; padding: 28px 0 40px; font-size: .92rem; }
.foot p { max-width: 75ch; }
.foot a { margin-right: 14px; }
.foot strong { color: #fff; }

@media (max-width: 780px) {
  .hero-grid, .cat-head, .pick { grid-template-columns: 1fr; }
  .board { justify-self: start; width: auto; padding: 14px 18px; margin-bottom: 48px; }
  .board-row { font-size: 1.6rem; }
  .board-row.big { font-size: 3.4rem; }
  .top .wrap { gap: 8px 16px; padding-top: 8px; }
  .cats { order: 3; flex-basis: 100%; }
  .cats a { padding: 10px 8px 12px; }
  .where { margin-left: auto; }
}
