/* ══════════════════════════════════════════════════════════════
   WINBOX RACING — TEAM PAGES
   Racing Programme, GR86 Cup Malaysia, Drivers, driver profiles,
   Race Results, Race Calendar, FAQ.

   Sits on top of core.css (tokens, nav) and news.css (shell, footer,
   .about-prose, .eyebrow, .crumbs). Everything here is prefixed pg-
   so it cannot leak into the news pages.

   Type: the same two families as the news pages and nothing else -
   Barlow Condensed for every heading, label and figure, Barlow for
   running text. No third display face.
   ══════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────── */
.pg-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #071226 0%, var(--ink) 100%);
}
.pg-hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background-size: cover; background-repeat: no-repeat;
}
/* The copy sits on the left, so the left is taken down to the page
   colour and the artwork is left to show through on the right. */
.pg-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(5,8,15,.97) 38%, rgba(5,8,15,.84) 56%, rgba(5,8,15,.34) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(5,8,15,0) 38%);
}
/* Speed lines — a faint diagonal hatch, cyan where the light catches it */
.pg-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(0,200,240,.16), transparent 70%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.022) 0 1px, transparent 1px 22px);
}
.pg-hero-in {
  max-width: 1240px; margin: 0 auto;
  padding: 28px 28px 44px;
}
.pg-hero-copy { max-width: 720px; }
.pg-hero .crumbs { margin: 0 0 22px; }
.pg-hero h1 {
  font-family: var(--fc);
  font-size: clamp(38px, 5.6vw, 74px);
  font-weight: 700; line-height: .98; letter-spacing: .01em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 20px;
  text-wrap: balance;
}
.pg-hero h1 .acc { color: var(--cyan); }
.pg-hero-lead {
  font-family: var(--fc);
  font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.3;
  color: #e6eef6; margin-bottom: 16px;
  padding-left: 16px; border-left: 3px solid var(--cyan);
}
.pg-hero-p {
  font-size: 15.5px; line-height: 1.8; color: var(--muted2);
  margin-bottom: 10px; max-width: 64ch;
}

/* The outlined race number behind the copy */
.pg-ghost {
  position: absolute; z-index: -1; right: -1vw; bottom: -6vw;
  font-family: var(--fc); font-weight: 700; font-size: clamp(220px, 34vw, 520px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(0,200,240,.2);
  letter-spacing: -.02em; pointer-events: none; user-select: none;
}

.pg-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.pg-stats li {
  padding: 16px 30px 0 0; margin-right: 30px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.pg-stats li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.pg-stats b {
  display: block;
  font-family: var(--fc); font-weight: 700;
  font-size: clamp(26px, 2.9vw, 36px); line-height: 1; letter-spacing: .02em;
  color: var(--cyan);
}
.pg-stats span {
  display: block; margin-top: 6px;
  font-family: var(--fc); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* Chequered flag, as the hero's bottom edge */
.pg-chequer {
  display: block; height: 10px;
  background:
    conic-gradient(rgba(0,200,240,.55) 25%, transparent 0 50%, rgba(0,200,240,.55) 0 75%, transparent 0) 0 0 / 10px 10px;
  opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 78%);
          mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 78%);
}

/* ── Driver profile hero: copy left, portrait right ── */
.pg-hero-driver .pg-hero-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 56px; align-items: end;
  padding-bottom: 0;
}
.pg-hero-driver .pg-hero-copy { padding-bottom: 42px; }
.pg-hero-driver h1 { font-size: clamp(36px, 4.8vw, 62px); }
.pg-hero-driver::before {
  background: linear-gradient(0deg, var(--ink) 0%, rgba(5,8,15,0) 46%);
}
.pg-portrait {
  position: relative; align-self: end;
  aspect-ratio: 4 / 5; overflow: hidden;
  /* slanted top edge, like a pit board */
  clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 0 1px rgba(0,200,240,.3);
}
.pg-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.pg-portrait::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--cyan); box-shadow: 0 0 26px rgba(0,200,240,.8);
}
.pg-ghost-left { right: auto; left: -1vw; }

/* ── SECTIONS ───────────────────────────────────────────────── */
.pg-main { counter-reset: pgsec; padding-top: 0; }
/* body.pg, because news.css loads after this file and its plain .wrap
   rule (90px of bottom padding) would otherwise win. */
body.pg .pg-main { padding-bottom: 24px; }
/* The follow block comes straight after the page's own closing band, so
   the two sit as a pair: a small gap between them and a moderate one
   before the footer rule, not a full section's worth on either side. */
body.pg .newsletter-wrap { margin-bottom: 30px; }
body.pg .site-footer { padding-top: 40px; }
.pg-sec {
  counter-increment: pgsec;
  padding: 42px 0 0;
  scroll-margin-top: 96px;
}
.pg-sec > h2 {
  position: relative;
  font-family: var(--fc);
  font-size: clamp(27px, 3.3vw, 40px); font-weight: 700; line-height: 1.08;
  color: #fff; margin-bottom: 14px; padding-top: 20px;
  text-wrap: balance;
}
/* Sector number above each heading — 01, 02, 03 … */
.pg-sec > h2::before {
  content: counter(pgsec, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--fc); font-weight: 700; font-size: 14px; letter-spacing: .2em; line-height: 1;
  color: var(--cyan); padding-right: 12px;
}
.pg-sec > h2::after {
  content: ''; position: absolute; top: 6px; left: 34px; width: 46px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.pg-main h3.pg-h3 {
  font-family: var(--fc); font-size: clamp(20px, 2.1vw, 24px); font-weight: 700;
  line-height: 1.2; color: #fff; margin: 26px 0 10px;
}
/* Running text uses the full column, as it does on the homepage - a
   narrow measure here left the right-hand third of every section empty
   beside full-width tables and cards. Paragraphs are mostly one sentence
   each, so they sit closer together than the homepage's longer ones. */
.pg-main .about-prose { max-width: none; }
.pg-main .about-prose p { line-height: 1.7; margin-bottom: 10px; }
.pg-main .about-prose a,
.pg-note a {
  color: var(--cyan); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.pg-main .about-prose a:hover { color: #fff; }

.pg-list { list-style: none; margin: 12px 0 14px; }
.pg-list li {
  position: relative; padding: 0 0 0 26px; margin-bottom: 7px;
  font-size: 15.5px; line-height: 1.65; color: var(--gray);
}
.pg-list li::before {
  content: ''; position: absolute; left: 2px; top: .62em;
  width: 12px; height: 6px; background: var(--cyan);
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}
.pg-list strong { color: #dbe5ee; font-weight: 600; }

.pg-note {
  margin-top: 14px; padding: 12px 16px;
  font-size: 13.5px; line-height: 1.65; color: #b9c6d4;
  background: rgba(0,200,240,.05); border-left: 2px solid rgba(0,200,240,.5);
  border-radius: 0 8px 8px 0;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
body.news a.pg-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--fc); font-size: 14px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #04141c; background: var(--cyan);
  padding: 14px 20px 14px 24px;
  /* cut corners, like a timing-screen tag */
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .2s, transform .22s cubic-bezier(.2,.7,.3,1);
}
.pg-btn svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s;
}
body.news a.pg-btn:hover { background: #5fe0ff; transform: translateY(-2px); }
.pg-btn:hover svg { transform: translateX(4px); }
body.news a.pg-btn-ghost {
  background: rgba(0,200,240,.08); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,200,240,.45);
  clip-path: none; border-radius: 4px;
}
body.news a.pg-btn-ghost:hover { background: rgba(0,200,240,.18); }

/* ── TABLES ─────────────────────────────────────────────────── */
.pg-table-wrap {
  margin: 16px 0 4px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  background: var(--surface);
}
.pg-table { width: 100%; border-collapse: collapse; font-family: var(--fb); }
.pg-table th {
  font-family: var(--fc); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-align: left;
  color: var(--cyan); white-space: nowrap;
  padding: 13px 20px; background: rgba(0,200,240,.06);
  border-bottom: 1px solid rgba(0,200,240,.28);
}
.pg-table td {
  font-size: 14.5px; line-height: 1.6; color: var(--gray);
  padding: 12px 20px; vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.pg-table tr:last-child td { border-bottom: 0; }
.pg-table tbody tr { transition: background .2s; }
.pg-table tbody tr:hover { background: rgba(0,200,240,.035); }
.pg-table td:first-child { color: #fff; font-weight: 600; }
.pg-table.pg-dates td:first-child {
  font-family: var(--fc); font-size: 15.5px; letter-spacing: .04em; white-space: nowrap;
}
.pg-table strong { color: #e6eef6; font-weight: 600; }

.pg-pos {
  display: inline-block; min-width: 38px; text-align: center;
  font-family: var(--fc); font-weight: 700; font-size: 15px; letter-spacing: .06em; line-height: 1;
  padding: 5px 8px; border-radius: 4px;
  color: #cfd9e4; background: rgba(255,255,255,.08);
}
.pg-pos.p1 { color: #04141c; background: var(--cyan); box-shadow: 0 0 18px rgba(0,200,240,.45); }
.pg-pos.p3 { color: var(--cyan); background: rgba(0,200,240,.14); box-shadow: inset 0 0 0 1px rgba(0,200,240,.4); }
.pg-pos-cls { font-size: 13.5px; color: var(--muted2); }

.pg-pill {
  display: inline-block; white-space: nowrap;
  font-family: var(--fc); font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px;
}
.pg-pill-ok   { color: #6ff0bd; background: rgba(111,240,189,.1);  box-shadow: inset 0 0 0 1px rgba(111,240,189,.35); }
.pg-pill-wait { color: #ffc861; background: rgba(255,176,32,.09);  box-shadow: inset 0 0 0 1px rgba(255,176,32,.35); }
.pg-pill-mute { color: var(--muted); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

/* ── SPEC GRID (label / value) ──────────────────────────────── */
.pg-spec {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin: 16px 0 4px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; overflow: hidden;
}
/* Hairlines are drawn outside each cell and clipped by the frame, so a
   short last row leaves plain card rather than an empty grey gap. */
.pg-spec > div { padding: 14px 20px 15px; box-shadow: 1px 0 0 rgba(255,255,255,.08), 0 1px 0 rgba(255,255,255,.08); }
.pg-spec dt {
  font-family: var(--fc); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 6px;
}
.pg-spec dd { font-size: 15px; line-height: 1.55; color: #e6eef6; font-weight: 500; }
.pg-spec .wide { grid-column: 1 / -1; }

/* ── TIMELINE ───────────────────────────────────────────────── */
.pg-timeline { list-style: none; margin: 20px 0 4px; position: relative; max-width: 860px; }
.pg-timeline::before {
  content: ''; position: absolute; left: 107px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(0,200,240,.12));
}
.pg-timeline li {
  position: relative; display: grid; grid-template-columns: 86px 1fr; gap: 44px;
  padding: 0 0 16px;
}
.pg-timeline li:last-child { padding-bottom: 0; }
.pg-timeline li::before {
  content: ''; position: absolute; left: 102px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--cyan);
}
.pg-timeline li:last-child::before { background: var(--cyan); box-shadow: 0 0 16px rgba(0,200,240,.9); }
.pg-tl-year {
  font-family: var(--fc); font-weight: 700; font-size: 19px; letter-spacing: .04em; line-height: 1.3;
  color: #fff; text-align: right; white-space: nowrap;
}
.pg-tl-body strong {
  display: block; font-family: var(--fc); font-size: 17px; font-weight: 700;
  letter-spacing: .02em; color: #fff; line-height: 1.3;
}
.pg-tl-body span { display: block; font-size: 14.5px; line-height: 1.6; color: var(--gray); margin-top: 2px; }

/* ── DRIVER CARDS (the line-up) ─────────────────────────────── */
.pg-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.pg-driver {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  transition: border-color .25s;
}
.pg-driver:hover { border-color: rgba(0,200,240,.45); }
.pg-driver-photo { position: relative; aspect-ratio: 16 / 12; overflow: hidden; }
.pg-driver-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 12%;
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}
.pg-driver:hover .pg-driver-photo img { transform: scale(1.04); }
.pg-driver-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--surface) 0%, rgba(10,18,32,0) 55%);
}
.pg-driver-body { position: relative; padding: 0 26px 24px; margin-top: -46px; display: flex; flex-direction: column; flex: 1; }
.pg-driver-body h3 {
  font-family: var(--fc); font-weight: 700;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.02; letter-spacing: .02em;
  text-transform: uppercase; color: #fff; margin-bottom: 8px;
}
.pg-role {
  font-family: var(--fc); font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 14px;
}
.pg-driver .about-prose p { font-size: 14.5px; line-height: 1.7; }
.pg-sub {
  font-family: var(--fc); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  margin: 18px 0 10px;
}
.pg-driver .pg-list li { font-size: 14.5px; margin-bottom: 8px; }
.pg-driver .pg-actions { margin-top: auto; padding-top: 14px; }

/* Compact driver tiles (GR86 Cup page) */
.pg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.pg-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 5 / 4; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.pg-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; transition: transform .8s cubic-bezier(.25,.46,.45,.94); }
.pg-tile:hover img { transform: scale(1.05); }
.pg-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,8,15,.94) 0%, rgba(5,8,15,.3) 46%, rgba(5,8,15,0) 70%);
}
.pg-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 24px; }
.pg-tile-body h3 {
  font-family: var(--fc); font-weight: 700; font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1; letter-spacing: .03em; text-transform: uppercase; color: #fff; margin-bottom: 10px;
}
.pg-tile-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--fc); font-size: 13.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.pg-tile-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .22s; }
.pg-tile:hover .pg-tile-cta svg { transform: translateX(4px); }
.pg-tile:hover { border-color: rgba(0,200,240,.5); }

/* ── PROGRAMME / EVENT CARDS ────────────────────────────────── */
.pg-prog {
  margin-top: 16px;
  background: var(--surface); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  scroll-margin-top: 96px;
}
.pg-prog-side {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center;
  padding: 20px 28px 20px;
  background:
    radial-gradient(140% 70% at 0% 0%, rgba(0,200,240,.16), transparent 62%),
    var(--navy3);
  border-bottom: 1px solid rgba(0,200,240,.2);
}
.pg-prog-num {
  display: block; font-family: var(--fc); font-weight: 700; font-size: 44px; line-height: .85;
  color: transparent; -webkit-text-stroke: 1px rgba(0,200,240,.55);
}
.pg-prog-side h3 {
  font-family: var(--fc); font-weight: 700; font-size: 26px; line-height: 1.08;
  letter-spacing: .03em; text-transform: uppercase; color: #fff;
}
/* The facts under each title: one "Label: value" per line, exactly as the
   brief sets them out. Labels share one column so the values line up. */
.pg-facts {
  grid-column: 1 / -1; margin-top: 16px;
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 26px;
}
.pg-facts > div { display: contents; }
.pg-facts dt, .pg-facts dd { padding: 9px 0; border-top: 1px solid rgba(255,255,255,.07); }
.pg-facts dt {
  font-family: var(--fc); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
  padding-top: 11px;
}
.pg-facts dd { font-size: 14.5px; line-height: 1.5; color: #e6eef6; }
.pg-prog-main { padding: 20px 28px 24px; }
.pg-prog-main .about-prose p { font-size: 15px; }

/* Calendar event — the date is the headline */
.pg-event .pg-prog-side { text-align: left; }
.pg-date {
  grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px;
  font-family: var(--fc); font-weight: 700; line-height: .9; color: #fff;
}
.pg-date b { display: block; font-size: 44px; letter-spacing: .01em; color: var(--cyan); }
.pg-date span { display: block; font-size: 20px; letter-spacing: .08em; text-transform: uppercase; }

/* ── FORMAT / FEATURE CARDS ─────────────────────────────────── */
.pg-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0 6px; }
.pg-cards.c3 { grid-template-columns: repeat(3, 1fr); }
.pg-card {
  position: relative;
  background: var(--navy2); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 18px 20px 18px;
  transition: border-color .25s, transform .25s cubic-bezier(.2,.7,.3,1);
}
.pg-card:hover { border-color: rgba(0,200,240,.4); transform: translateY(-3px); }
.pg-card-n {
  display: block; font-family: var(--fc); font-weight: 700; font-size: 13px; letter-spacing: .18em;
  color: var(--cyan); margin-bottom: 10px;
}
.pg-card h3, .pg-card h4 {
  font-family: var(--fc); font-size: 18.5px; font-weight: 700; line-height: 1.2;
  color: #fff; margin-bottom: 8px;
}
.pg-card p { font-size: 14px; line-height: 1.65; color: var(--gray); }
.pg-card .pg-card-tag {
  display: block; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-family: var(--fc); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
}

/* ── RESULT HIGHLIGHT ───────────────────────────────────────── */
.pg-result {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center;
  margin-top: 16px; padding: 24px 30px;
  background:
    radial-gradient(520px 260px at 0% 50%, rgba(0,200,240,.16), transparent 70%),
    var(--surface);
  border: 1px solid rgba(0,200,240,.28); border-radius: 16px;
}
.pg-result-big { text-align: center; padding-right: 34px; border-right: 1px solid rgba(255,255,255,.1); }
.pg-result-big b {
  display: block; font-family: var(--fc); font-weight: 700;
  font-size: clamp(72px, 9vw, 116px); line-height: .82; color: var(--cyan);
  text-shadow: 0 0 44px rgba(0,200,240,.45);
}
.pg-result-big span {
  display: block; margin-top: 10px;
  font-family: var(--fc); font-size: 13px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: #fff;
}
.pg-result .pg-spec { margin: 0; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pg-result .pg-spec { background: rgba(10,18,32,.86); }

/* ── FAQ ────────────────────────────────────────────────────────
   The same design as the FAQ on About Us (.faq-item in
   winbox-racing.css): a centred column of rounded cards, a plus that
   turns to a cross, one answer open at a time. Rebuilt here rather
   than shared because these pages do not load that stylesheet.

   Answers are visible by default. They only collapse once pages.js
   has put .is-ready on the list, so with scripts off every answer
   can still be read. */
.pg-faq {
  display: flex; flex-direction: column; gap: 12px;
  /* Full width of the page column - the card design is About Us's, the
     width is this page's own, lined up with everything else on it. */
}
.pg-faq-page { padding-top: 44px; }
.pg-sec > .pg-faq { margin-top: 22px; }
.pg-faq-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(67,199,240,.15);
  border-radius: 12px; overflow: hidden;
  transition: border-color .3s;
}
.pg-faq-item.open { border-color: rgba(67,199,240,.4); }
.pg-faq-item h3 { margin: 0; font: inherit; }
.pg-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--fc); font-weight: 700; font-size: 16px; letter-spacing: .04em; line-height: 1.35;
  color: var(--white); transition: color .2s;
}
.pg-faq-q:hover, .pg-faq-item.open .pg-faq-q { color: var(--cyan); }
.pg-faq-q:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
/* The plus is two bars, so it is not text on the page */
.pg-faq-ico {
  position: relative; flex: 0 0 16px; width: 16px; height: 16px;
  transition: transform .35s ease;
}
.pg-faq-ico::before, .pg-faq-ico::after {
  content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px;
  background: var(--cyan); border-radius: 1px;
}
.pg-faq-ico::after { transform: rotate(90deg); }
.pg-faq-item.open .pg-faq-ico { transform: rotate(45deg); }
.pg-faq-a p {
  font-family: var(--fb); font-size: 14.5px; line-height: 1.75;
  color: rgba(255,255,255,.7);
  padding: 0 22px 18px; max-width: 1000px;
}
.pg-faq-a a { color: var(--cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pg-faq-a a:hover { color: #fff; }
.pg-faq.is-ready .pg-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s cubic-bezier(.25, .85, .35, 1);
}
.pg-faq.is-ready .pg-faq-item.open .pg-faq-a { max-height: 420px; }
.pg-faq.is-ready .pg-faq-q { padding-bottom: 18px; }
@media (max-width: 760px) {
  .pg-faq { gap: 8px; }
  .pg-faq-page { padding-top: 26px; }
  .pg-faq-item { background: rgba(255,255,255,.04); border-color: rgba(67,199,240,.12); border-radius: 10px; }
  .pg-faq-item.open { background: rgba(67,199,240,.06); border-color: rgba(67,199,240,.32); }
  .pg-faq-q { padding: 16px; font-size: 14px; letter-spacing: .02em; -webkit-tap-highlight-color: transparent; }
  .pg-faq-ico { flex-basis: 22px; width: 22px; height: 22px; border-radius: 50%; background: rgba(67,199,240,.12); }
  .pg-faq-ico::before, .pg-faq-ico::after { left: 6px; right: 6px; top: 10px; }
  .pg-faq-item.open .pg-faq-ico { background: var(--cyan); }
  .pg-faq-item.open .pg-faq-ico::before, .pg-faq-item.open .pg-faq-ico::after { background: var(--navy); }
  .pg-faq-a p { padding: 0 16px 16px; font-size: 13.5px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-faq.is-ready .pg-faq-a, .pg-faq-ico { transition: none; }
}

/* ── CLOSING BAND ───────────────────────────────────────────── */
.pg-band {
  position: relative; overflow: hidden;
  margin-top: 46px; padding: 32px 38px 34px;
  border-radius: 18px;
  background:
    radial-gradient(640px 260px at 92% 0%, rgba(0,200,240,.2), transparent 70%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.02) 0 1px, transparent 1px 20px),
    linear-gradient(115deg, #0a1e3d 0%, #071328 55%, #050d1c 100%);
  border: 1px solid rgba(0,200,240,.32);
}
.pg-band h2 {
  font-family: var(--fc); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: .01em;
  text-transform: uppercase; color: #fff; margin-bottom: 12px;
  text-wrap: balance;
}
.pg-band .about-prose p:first-child { color: #dbe5ee; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .pg-cards, .pg-cards.c3 { grid-template-columns: 1fr 1fr; }
  .pg-hero-driver .pg-hero-in { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; }
}
@media (max-width: 900px) {
  .pg-hero-in { padding-left: 20px; padding-right: 20px; }
  .pg-duo { grid-template-columns: 1fr; }
  .pg-hero::before {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(5,8,15,.94) 50%, rgba(5,8,15,.7) 100%),
      linear-gradient(0deg, var(--ink) 0%, rgba(5,8,15,0) 38%);
  }
}
@media (max-width: 760px) {
  .pg-hero-in { padding-top: 18px; padding-bottom: 32px; }
  .pg-hero .crumbs { margin-bottom: 20px; }
  .pg-hero h1 { margin-bottom: 18px; }
  .pg-hero-p { font-size: 15px; }
  .pg-stats li { padding-right: 18px; margin-right: 18px; }

  .pg-hero-driver .pg-hero-in { grid-template-columns: 1fr; gap: 0; }
  .pg-hero-driver .pg-hero-copy { padding-bottom: 30px; }
  /* Kept at 4:5 — the driver's name is part of the photo and a squarer
     crop cuts it in half. */
  .pg-portrait { max-width: 420px; width: 100%; margin: 0 auto; }

  .pg-sec { padding-top: 34px; }
  body.pg .pg-main { padding-bottom: 16px; }
  body.pg .newsletter-wrap { margin-bottom: 22px; }
  body.pg .site-footer { padding-top: 30px; }
  .pg-list li { font-size: 15px; }
  .pg-tiles { grid-template-columns: 1fr; }
  .pg-driver-body { padding: 0 20px 22px; }
  .pg-prog-side, .pg-prog-main { padding: 18px 18px; }
  .pg-prog-num { font-size: 36px; }
  .pg-result { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .pg-result-big { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .pg-band { margin-top: 36px; padding: 24px 20px 26px; border-radius: 14px; }
  .pg-actions .pg-btn { flex: 1 1 100%; justify-content: space-between; }

  .pg-timeline::before { left: 5px; }
  .pg-timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 28px; }
  .pg-timeline li::before { left: 0; }
  .pg-tl-year { text-align: left; color: var(--cyan); font-size: 17px; }

  /* Tables stack: one card per row, each cell labelled */
  .pg-table-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .pg-table, .pg-table tbody, .pg-table tr, .pg-table td { display: block; width: 100%; }
  .pg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-table tr {
    background: var(--surface); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  }
  .pg-table tr:last-child { margin-bottom: 0; }
  .pg-table td { padding: 0 0 12px; border: 0; }
  .pg-table td:last-child { padding-bottom: 0; }
  .pg-table td::before {
    content: attr(data-label); display: block;
    font-family: var(--fc); font-size: 10.5px; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 4px;
  }
  .pg-table td:first-child { font-family: var(--fc); font-size: 18px; }
}
@media (max-width: 560px) {
  .pg-cards, .pg-cards.c3 { grid-template-columns: 1fr; }
  /* Too narrow for two columns: the label sits above its value */
  .pg-facts { grid-template-columns: 1fr; }
  .pg-facts dt { padding-bottom: 0; }
  .pg-facts dd { border-top: 0; padding-top: 2px; }
  .pg-stats li { flex: 1 1 40%; border-right: 0; margin-right: 0; }
}

@media (hover: none), (pointer: coarse) {
  .pg-card:hover, body.news a.pg-btn:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-btn, .pg-btn svg, .pg-card, .pg-driver-photo img, .pg-tile img { transition: none; }
  .pg-card:hover, body.news a.pg-btn:hover { transform: none; }
}

/* ── COPY-EXACT COMPONENTS ──────────────────────────────────────
   The wording on these pages is the content brief's, word for word.
   So decoration that would otherwise be typed into the page — card
   numbers, programme numbers — is drawn by CSS counters instead, and
   list items the brief writes as "Label: text" stay one sentence
   rather than being split into a heading and a paragraph.
   ─────────────────────────────────────────────────────────────── */
.pg-cards { counter-reset: pgcard; }
.pg-card { counter-increment: pgcard; }
.pg-card::before {
  content: counter(pgcard, decimal-leading-zero);
  display: block; margin-bottom: 10px;
  font-family: var(--fc); font-weight: 700; font-size: 13px; letter-spacing: .18em;
  color: var(--cyan);
}
/* "Label: text" cards — the label leads, in the heading face */
.pg-card > p:only-child > strong:first-child {
  display: block; margin-bottom: 6px;
  font-family: var(--fc); font-size: 18.5px; font-weight: 700; line-height: 1.2; color: #fff;
}

.pg-sec { counter-reset: pgprog; }
.pg-prog { counter-increment: pgprog; }
.pg-prog-num::before { content: counter(pgprog, decimal-leading-zero); }
.pg-event .pg-prog-side h3 { grid-column: 1 / -1; }

/* Label / value tables (driver profile, car spec, result) */
.pg-kv td:first-child {
  width: 30%;
  font-family: var(--fc); font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
}
.pg-kv td:last-child { color: #e6eef6; font-weight: 500; }

/* Timeline with the brief's three column headings above it */
.pg-tl { max-width: 980px; margin: 18px 0 4px; }
.pg-tl .pg-timeline { margin: 0; max-width: none; }
.pg-tl-head {
  position: relative; padding: 0 0 10px 130px; margin-bottom: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 28px;
  border-bottom: 1px solid rgba(0,200,240,.28);
  font-family: var(--fc); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan);
}
.pg-tl-head span:first-child { position: absolute; left: 0; top: 0; width: 86px; text-align: right; }
.pg-tl .pg-tl-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 28px; align-items: baseline;
}
.pg-tl .pg-tl-body span { margin-top: 0; }
@media (max-width: 760px) {
  .pg-kv td:first-child { width: auto; }
  .pg-tl-head { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
  .pg-tl .pg-tl-body { display: block; }
  .pg-tl .pg-tl-body span { margin-top: 2px; }
}

/* ── Hero, "open" variant ──
   For a picture that is itself the subject (the two drivers on the
   Drivers page). The standard hero tints the left 60% almost to black so
   long titles stay readable over any photo; here that would bury one of
   the two faces. So the tint clears sooner and the copy keeps to a
   narrower column on the left, leaving the drivers in the light.
   Desktop only — on a narrow screen the copy has to sit over the
   picture, and the standard, heavier tint is the right call. */
@media (min-width: 901px) {
  .pg-hero-open { min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; }
  .pg-hero-open .pg-hero-in { width: 100%; }
  .pg-hero-open::before {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(5,8,15,.94) 24%, rgba(5,8,15,.6) 38%, rgba(5,8,15,.12) 56%, rgba(5,8,15,0) 100%),
      linear-gradient(0deg, var(--ink) 0%, rgba(5,8,15,0) 32%);
  }
  /* The picture is a box of its own, pinned to the right at the picture's
     own proportions, and its left edge is faded out with a mask. Sizing it
     as a background of the full-width hero left a hard vertical edge
     wherever the screen was wider than the picture. */
  .pg-hero-open .pg-hero-bg {
    inset: auto; top: -3%; right: 0;
    height: 118%; aspect-ratio: 1672 / 941;
    background-size: cover !important; background-position: center !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 32%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 32%);
  }
  .pg-hero-open .pg-hero-copy { max-width: 450px; }
  .pg-hero-open h1 { font-size: clamp(36px, 4.6vw, 62px); }
}
/* Very wide screens: keep the picture near the copy instead of out at the
   far edge, and fade its right side too, since that edge is now in view. */
@media (min-width: 1700px) {
  .pg-hero-open .pg-hero-bg {
    right: calc((100% - 1640px) / 2);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 32%, #000 82%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 14%, #000 32%, #000 82%, transparent 100%);
  }
}/* Narrow screens: there is no room beside the copy, so the picture goes
   above it as a banner of its own, untinted, fading into the page. */
@media (max-width: 900px) {
  .pg-hero-open .pg-hero-bg {
    position: relative; inset: auto; z-index: 0; height: auto;
    aspect-ratio: 16 / 10;
    background-size: cover !important; background-position: center 20% !important;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  .pg-hero-open .pg-hero-in { padding-top: 0; margin-top: -14px; }
}

/* ── Hero, "lite" variant ──
   For artwork made as a banner, already dark on the left where the copy
   sits. The standard tint on top of that would flatten the picture, so
   only a light one is kept for the text's sake. */
@media (min-width: 901px) {
  .pg-hero-lite::before {
    background:
      linear-gradient(90deg, rgba(5,8,15,.55) 0%, rgba(5,8,15,.3) 40%, rgba(5,8,15,0) 62%),
      linear-gradient(0deg, var(--ink) 0%, rgba(5,8,15,0) 24%);
  }
  .pg-hero-lite { min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
  .pg-hero-lite .pg-hero-in { width: 100%; }
}

/* ── Hero, "crop" variant ──
   For a wide banner (4:1) whose left half carries its own lettering.
   The picture is a box pinned to the right showing only the banner's
   right-hand 48%, with its left edge faded out - so the artwork's
   lettering is never on screen behind the page's real title. */
@media (min-width: 901px) {
  .pg-hero-crop { min-height: 540px; display: flex; flex-direction: column; justify-content: center; }
  .pg-hero-crop .pg-hero-in { width: 100%; }
  .pg-hero-crop .pg-hero-bg {
    inset: auto; top: 0; right: 0;
    height: 100%; aspect-ratio: 1.92 / 1;      /* 4:1 banner x 48% */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 16%, #000 34%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 16%, #000 34%);
  }
  .pg-hero-crop::before {
    background:
      linear-gradient(90deg, var(--ink) 0%, rgba(5,8,15,.9) 26%, rgba(5,8,15,.45) 42%, rgba(5,8,15,0) 60%),
      linear-gradient(0deg, var(--ink) 0%, rgba(5,8,15,0) 22%);
  }
  .pg-hero-crop .pg-hero-copy { max-width: 520px; }
}
@media (min-width: 1700px) {
  .pg-hero-crop .pg-hero-bg {
    right: calc((100% - 1640px) / 2);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 16%, #000 34%, #000 84%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 16%, #000 34%, #000 84%, transparent 100%);
  }
}
/* Narrow screens: the cars go above the title as a banner of their own */
@media (max-width: 900px) {
  .pg-hero-crop .pg-hero-bg {
    position: relative; inset: auto; z-index: 0; height: auto;
    aspect-ratio: 16 / 10;
    background-size: auto 100% !important; background-position: right center !important;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  }
  .pg-hero-crop .pg-hero-in { padding-top: 0; margin-top: -14px; }
}

/* Race Results: its banner is 3.5:1 and the car sits further left in it,
   so the box is a little wider and its fade a little shorter than the
   crop variant's defaults. */
@media (min-width: 901px) {
  .team-race-results .pg-hero-crop .pg-hero-bg {
    aspect-ratio: 2.1 / 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 10%, #000 22%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 10%, #000 22%);
  }
  .team-race-results .pg-hero-crop .pg-hero-copy { max-width: 430px; }
  /* This hero runs tall (a three-line lead), and at full height the car
     grew until it sat under the intro. So the picture takes the lower 84%
     only, which keeps the car to the right of the text, and its top edge
     is faded as well as its left. */
  .team-race-results .pg-hero-crop .pg-hero-bg {
    top: auto; bottom: 0; height: 84%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 10%, #000 22%), linear-gradient(180deg, transparent 0%, #000 20%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 10%, #000 22%), linear-gradient(180deg, transparent 0%, #000 20%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
@media (min-width: 1700px) {
  .team-race-results .pg-hero-crop .pg-hero-bg {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 10%, #000 22%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 10%, #000 22%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%);
  }
}
@media (max-width: 900px) {
  .team-race-results .pg-hero-crop .pg-hero-bg { background-position: 85% center !important; }
}

/* Race Calendar: a long three-line title, so the copy keeps to a narrower
   column and stays clear of the car on the right of the artwork. */
@media (min-width: 901px) {
  .team-race-calendar .pg-hero-copy { max-width: 560px; }
  .team-race-calendar .pg-hero h1 { font-size: clamp(36px, 4.8vw, 64px); }
}

/* ── Hero, "plain" variant ──
   No picture: a compact header on the page's own navy, with the cyan
   corner glow and the faint hatch kept so it still belongs to the set. */
.pg-hero-plain::before { background: linear-gradient(0deg, var(--ink) 0%, rgba(5,8,15,0) 60%); }
.pg-hero-plain .pg-hero-in { padding-bottom: 34px; }
/* ── MOTION ─────────────────────────────────────────────────────
   Two kinds, both short and both skipped for visitors who have asked
   their system for reduced motion:
     1. the hero arrives once, on load (CSS only)
     2. blocks rise into place as they are scrolled to (assets/pages.js)
   Nothing loops. An animation that never ends keeps the browser painting
   for as long as the page is open, whether or not anyone is looking at it.
   ─────────────────────────────────────────────────────────────── */
@keyframes pg-rise  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 1. Hero: the copy steps in line by line. The pictures themselves do not
      animate — one that fades or slides in after the click reads as a flicker. */
/* Quick: the whole entrance is over in under half a second, so the page
   feels like it answered the click rather than performed for it. */
.pg-hero-copy > * { animation: pg-rise .38s cubic-bezier(.2,.7,.3,1) both; }
.pg-hero-copy > :nth-child(2) { animation-delay: .03s; }
.pg-hero-copy > :nth-child(3) { animation-delay: .06s; }
.pg-hero-copy > :nth-child(4) { animation-delay: .09s; }
.pg-hero-copy > :nth-child(n+5) { animation-delay: .12s; }


/* 2. Scroll reveal. Hidden only once pages.js has put .pg-anim on the
      body, so without the script every block is simply visible. */
body.pg-anim .pg-rv {
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s cubic-bezier(.2,.7,.3,1), transform .4s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0ms);
}
body.pg-anim .pg-rv.in { opacity: 1; transform: none; }

/* The rule beside each section number draws out as the heading lands */
.pg-sec > h2::after { transition: width .7s .15s cubic-bezier(.2,.7,.3,1); }
body.pg-anim .pg-sec > h2.pg-rv:not(.in)::after { width: 0; }

/* The timeline's line draws downward as the list comes into view */
body.pg-anim .pg-timeline::before {
  transform: scaleY(0); transform-origin: top;
  transition: transform 1.6s cubic-bezier(.3,.6,.3,1);
}
body.pg-anim .pg-timeline.drawn::before { transform: scaleY(1); }

@media (prefers-reduced-motion: reduce) {
  .pg-hero-copy > * { animation: none; }
  body.pg-anim .pg-rv { opacity: 1; transform: none; transition: none; }
  body.pg-anim .pg-timeline::before { transform: none; transition: none; }
  .pg-sec > h2::after { transition: none; }
}

/* Printed pages get everything, revealed or not */
@media print {
  body.pg-anim .pg-rv { opacity: 1; transform: none; }
  body.pg-anim .pg-timeline::before { transform: none; }
}
