/* F1DB public styles. Colours are tokens so the light/dark themes only swap variables. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --border: #dde1e7;
  --text: #15181d;
  --muted: #5d6675;
  --link: #15181d;
  --accent: #e10600;
  --accent-soft: rgba(225, 6, 0, .1);
  --gold: #c9a227; --silver: #9aa3ad; --bronze: #b0703c;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .05);
  --radius: 12px;
  --hero-fade: linear-gradient(180deg, rgba(10,12,16,.15) 0%, rgba(10,12,16,.65) 60%, var(--bg) 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014; --surface: #171a20; --surface-2: #1f232b; --border: #2a2f39;
    --text: #e9ecf1; --muted: #9099a8; --link: #e9ecf1;
    --accent-soft: rgba(255, 60, 50, .14);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1014; --surface: #171a20; --surface-2: #1f232b; --border: #2a2f39;
  --text: #e9ecf1; --muted: #9099a8; --link: #e9ecf1;
  --accent-soft: rgba(255, 60, 50, .14);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

/* Inter, served from this site (no Google Fonts request). SIL OFL 1.1, see assets/fonts/OFL.txt. */
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; transition: color .15s; }
a:not([class]):hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 19px; font-weight: 700; }
h2 small, h1 small { font-weight: 500; color: var(--muted); font-size: .7em; }
h3 { font-size: 15px; font-weight: 700; margin-top: 1em; }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; }
.nowrap { white-space: nowrap; }

/* ---------- links: every entity link looks the same ---------- */
.lnk { text-decoration: none; font-weight: 600; transition: color .15s; }
.lnk:hover { color: var(--accent); }
.lnk-date, .lnk-season { font-weight: 500; }
.team-dot { display: inline-block; width: 4px; height: 1em; border-radius: 2px; background: var(--team, var(--accent)); margin-right: 6px; vertical-align: -2px; }
.flag { display: inline-block; width: 20px; height: 15px; margin-right: 6px; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); object-fit: cover; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 18px; }
.logo-img { flex-shrink: 0; }
.logo-img img { display: block; height: 30px; width: auto; max-width: none; }
.logo-img .logo-dark { display: none; }
:root[data-theme="dark"] .logo-img .logo-light { display: none; }
:root[data-theme="dark"] .logo-img .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-img .logo-light { display: none; } :root:not([data-theme="light"]) .logo-img .logo-dark { display: block; } }
@media (max-width: 760px) { .logo-img img { height: 19px; } }
.logo-mark { background: var(--accent); color: #fff; font-style: italic; padding: 2px 7px; border-radius: 6px; font-size: 15px; }
.mainnav { display: flex; gap: 2px; }
.mainnav a { text-decoration: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.mainnav a:hover, .mainnav a.on { color: var(--text); background: var(--surface-2); }
.search { position: relative; margin-left: auto; flex: 0 1 300px; }
.search input { width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; }
.search-results a:hover, .search-results a.active { background: var(--surface-2); }
.search-results .tag { margin-left: auto; }
.search-results img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.icon-btn { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
.nav-toggle { display: none; }

/* ---------- hero with cover image ---------- */
.hero { position: relative; background: var(--surface-2); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.hero.has-cover { background: var(--hero-fade), var(--cover) center / cover no-repeat; border: 0; color: #fff; }
.hero.has-cover .lnk, .hero.has-cover .kicker, .hero.has-cover dt { color: #fff; }
.hero-inner { display: flex; align-items: flex-end; gap: 24px; padding-top: 48px; padding-bottom: 28px; min-height: 220px; border-left: 0; }
.hero.has-cover .hero-inner { min-height: 380px; }
/* Driver pages: sharp cover photo on its own layer, darkened by the hero fade so the text stays readable. */
.hero.has-cover.hero-blur { background: #111; overflow: hidden; isolation: isolate; }
.hero.has-cover.hero-blur::before, .hero.has-cover.hero-blur::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero.has-cover.hero-blur::before { inset: 0; background: var(--cover) center / cover no-repeat; }
.hero.has-cover.hero-blur::after { inset: 0; background: var(--hero-fade); }
.hero-thumb { flex: 0 0 auto; align-self: flex-end; }
.hero-text { min-width: 0; }
.hero-thumb .thumb-xl { flex-shrink: 0; aspect-ratio: 1; width: 150px; height: 150px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 30px rgba(0,0,0,.3); border: 3px solid var(--accent-item, var(--surface)); }
.hero-text h1 { margin-bottom: 10px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.badge { display: inline-block; font-size: .5em; vertical-align: middle; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.hero-meta dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero-meta dd { margin: 0; font-weight: 600; }
.home-banner { position: relative; margin: 0; height: clamp(170px, 30vw, 440px); overflow: hidden; background: var(--surface); }
.home-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.home-banner figcaption { position: absolute; right: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-banner figcaption a { color: #fff; }
.home-banner figcaption a:hover { color: var(--accent); }
.home-hero { position: relative; padding: 32px 0 26px; margin-bottom: 24px; background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    repeating-linear-gradient(-55deg, transparent 0 22px, rgba(127,127,127,.045) 22px 23px),
    var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.home-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent); }
.champ-head { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.champ-title { min-width: 0; }
.champ-kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: livePulse 1.8s infinite; }
.live-dot.is-done { background: var(--gold); animation: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(225,6,0,.55); } 70% { box-shadow: 0 0 0 9px rgba(225,6,0,0); } 100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); } }
.home-hero h1 { margin: 0; display: flex; flex-direction: column; line-height: 1; }
.champ-year { font-size: clamp(56px, 9vw, 104px); font-weight: 900; letter-spacing: -.04em; font-style: italic; color: transparent; -webkit-text-stroke: 2px var(--text); text-decoration: none; transition: color .15s; padding-right: .08em; }
.champ-year:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.champ-name { margin-top: 6px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.champ-leaders { display: flex; gap: 14px; flex-wrap: wrap; }
.leader { position: relative; display: flex; align-items: center; gap: 12px; min-width: 240px; padding: 12px 16px 12px 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--tc); box-shadow: var(--shadow); }
.leader .thumb { flex: 0 0 auto; width: 52px; height: 52px; }
.leader-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.leader-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.leader-name { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-name .flag { margin-right: 6px; }
.leader-pts strong { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.leader-pts small { margin-left: 6px; color: var(--muted); font-size: 12px; }
.champ-progress { margin-top: 24px; }
.champ-progress-text { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.champ-progress-text strong { font-size: 18px; font-weight: 900; }
.champ-rounds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.champ-rounds li { position: relative; }
.champ-rounds a { display: block; height: 10px; border-radius: 3px; background: var(--border); transform: skewX(-20deg); transition: transform .12s, background .12s; }
.champ-rounds li.done a { background: var(--accent); }
.champ-rounds li.next a { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); animation: nextBlink 1.6s ease-in-out infinite; }
@keyframes nextBlink { 50% { opacity: .35; } }
.champ-rounds a:hover, .champ-rounds a:focus-visible { transform: skewX(-20deg) scaleY(1.6); outline: none; }
.champ-rounds li::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); padding: 3px 7px; border-radius: 4px; background: #111; color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 20; }
.champ-rounds li:hover::after, .champ-rounds li:focus-within::after { opacity: 1; }
.champ-rounds li:nth-child(-n+3)::after { left: 0; transform: none; }
.champ-rounds li:nth-last-child(-n+3)::after { left: auto; right: 0; transform: none; }
/* Banner photo runs behind the whole championship header, under frosted glass. */
.home-top { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.home-top .home-banner { position: static; height: clamp(220px, 36vw, 540px); background: none; }
.home-top .home-banner img { position: absolute; inset: 0; z-index: -2; height: 100%; object-position: center 40%; }
.home-top .home-banner figcaption { bottom: auto; top: 8px; z-index: 2; }
.home-banner + .home-hero { --ov: clamp(110px, 16vw, 250px); z-index: 1; margin-top: calc(-1 * var(--ov)); margin-bottom: 0; padding-top: 36px; background: none; border-bottom: 0; overflow: visible; }
.home-banner + .home-hero::after { content: ""; position: absolute; inset: 0 0 -30px 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-soft) 0%, transparent 55%),
    repeating-linear-gradient(-55deg, transparent 0 22px, rgba(127,127,127,.045) 22px 23px),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 8%, transparent) 0%, color-mix(in srgb, var(--surface) 40%, transparent) calc(var(--ov) * .6), color-mix(in srgb, var(--surface) 68%, transparent) calc(var(--ov) * 1.3), color-mix(in srgb, var(--surface) 80%, transparent) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.15) 0, #000 110px); mask-image: linear-gradient(180deg, rgba(0,0,0,.15) 0, #000 110px); }
.home-banner + .home-hero::before { background: linear-gradient(180deg, transparent 0, var(--accent) 110px); }
.home-banner + .home-hero .champ-year { -webkit-text-stroke-width: 2.5px; }
.home-banner + .home-hero .champ-kicker { display: inline-flex; padding: 5px 12px 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .live-dot, .champ-rounds li.next a { animation: none; } }
@media (max-width: 760px) {
  .leader { min-width: 0; flex: 1 1 100%; padding: 10px 12px; }
  .leader .thumb { width: 42px; height: 42px; }
  .champ-leaders { gap: 10px; }
  .champ-rounds { gap: 2px; }
}

/* ---------- layout blocks ---------- */
.block { margin-bottom: 28px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.block-head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 8px; }
.grid-team { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .block, .grid-3 > .block { margin-bottom: 20px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; flex-wrap: wrap; }
.crumbs { padding-top: 24px; color: var(--muted); font-size: 14px; }
.prose { max-width: none; font-size: 16px; }
.lead { font-size: 16px; }
.empty-state { padding: 60px 16px; text-align: center; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 14px; }
.pager a { text-decoration: none; font-weight: 600; }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: var(--accent); transform: translateY(-1px); }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat-value { line-height: 1.2; }
.stat-value .lnk { font-size: 16px; line-height: 1.35; display: inline-block; margin-top: 4px; }
.stat-sub { font-size: 13px; color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: var(--surface-2); }
.data .num { text-align: right; }
.row-champion td { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.cell-entity { display: flex; align-items: center; gap: 6px; }
.pos { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 6px; font-weight: 700; font-size: 13px; background: var(--surface-2); }
.pos-1 { background: var(--gold); color: #1b1400; }
.pos-2 { background: var(--silver); color: #111; }
.pos-3 { background: var(--bronze); color: #fff; }
.pos-out { color: var(--muted); font-weight: 600; font-size: 11px; }
.fl { color: #a020f0; }
.cars { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* ---------- thumbs, cards, lists ---------- */
.thumb { object-fit: cover; background: var(--surface-2); }
.thumb-sm { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.thumb-md { width: 64px; height: 64px; border-radius: 10px; }
.thumb-lg { width: 64px; height: 64px; border-radius: 12px; flex: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.entity-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; padding: 12px; transition: border-color .15s, transform .15s; }
.entity-card:hover { border-color: var(--team, var(--accent)); transform: translateY(-1px); }
.entity-card strong { display: block; }
.entity-card small { display: block; color: var(--muted); font-size: 13px; }
.entity-list { list-style: none; margin: 0; padding: 0; }
.entity-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.entity-list li:last-child { border-bottom: 0; }
.entity-list small { display: block; color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 7px; text-decoration: none; font-weight: 600; color: var(--muted); }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.table-filter, .search-big input { width: 100%; max-width: 420px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; margin: 12px 0; }
.search-big { display: flex; gap: 8px; align-items: center; }
.search-list { list-style: none; padding: 0; }
.search-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }

/* ---------- buttons, tabs ---------- */
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab small { color: var(--muted); font-weight: 500; }
.tab-panel > .grid-2 { margin-bottom: 20px; }

/* ---------- home ---------- */
.podium { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.podium li { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 10px; padding: 12px 6px; }
.podium small { display: block; }
.podium-pos { font-weight: 800; font-size: 13px; }
.podium-1 { order: 2; border-top: 3px solid var(--gold); }
.podium-2 { order: 1; border-top: 3px solid var(--silver); }
.podium-3 { order: 3; border-top: 3px solid var(--bronze); }

/* ---------- season race rows ---------- */
.race-list { display: flex; flex-direction: column; gap: 8px; }
.race-row { padding: 12px 16px; }
.race-row-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.round { font-weight: 800; color: var(--muted); width: 32px; }
.race-title { flex: 1 1 260px; }
.race-title small { display: block; color: var(--muted); }
.top3 { list-style: none; display: grid; grid-template-columns: repeat(3, 150px); gap: 12px; padding: 0; margin: 0; }
.top3 li { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .top3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; font-size: 13.5px; } .top3 .pos { min-width: 22px; } }
.top3 small { color: var(--muted); }
.slide { margin-top: 12px; }

/* ---------- track layouts ---------- */
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.layout-card h3 { margin-top: 10px; }
.layout-map { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.track-map { padding: 0; overflow: hidden; }
.track-map iframe { display: block; width: 100%; height: 300px; border: 0; }
.track-map p { margin: 0; padding: 8px 14px; }
.layout-map img { width: 100%; height: 100%; object-fit: contain; }
.layout-map.is-empty { display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; }
.facts dt { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- gallery & videos ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.gallery-item { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.video { margin: 0; }
.video figcaption { font-size: 14px; margin-top: 6px; }
.yt, .video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; }
.yt { position: relative; background: #000 center / cover no-repeat; cursor: pointer; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 12px; background: rgba(0,0,0,.7); }
.yt-play::after { content: ""; position: absolute; left: 28px; top: 14px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: var(--accent); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: calc(100vh - 150px); margin-bottom: 70px; border-radius: 6px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; }
.lb-close { top: 8px; right: 8px; } .lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-caption { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); max-width: min(760px, calc(100% - 32px)); display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 8px 14px; border-radius: 8px; background: rgba(0,0,0,.6); color: #ddd; text-align: center; font-size: 14px; line-height: 1.4; }
.lb-caption:empty { display: none; }
.lb-caption strong { color: #fff; font-size: 15px; }
.lb-caption small { color: #bbb; font-size: 12px; }
.lb-caption a { color: #fff; }
.lb-caption a:hover { color: var(--accent); }

.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 0; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.linklike:hover, .footer a:not(.kofi):hover { color: var(--accent); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-inner { pointer-events: auto; max-width: 760px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.consent-inner p { margin: 0; flex: 1 1 320px; font-size: 14px; }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.kofi { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #29abe0; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.kofi:hover { color: #fff; filter: brightness(1.08); }
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(8, 10, 14, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 22px; }
.modal-box h2 { margin: 0 0 12px; }
.modal-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--accent); }
.contact-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { margin: 0 0 10px; min-height: 1em; }
.contact-status.is-error { color: var(--accent); }
.contact-status.is-ok { color: #1f9d55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
body.modal-open { overflow: hidden; }
.embed-blocked { display: grid; place-items: center; gap: 8px; text-align: center; padding: 20px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.track-map .embed-blocked { height: 300px; }
.yt.yt-blocked { background-color: var(--surface-2); }
.footer a:not(.kofi) { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .card { overflow-x: auto; }
  .hero-meta { gap: 8px 18px; }
  .nav-toggle { display: grid; }
  .mainnav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px; }
  .mainnav.open { display: flex; }
  .search { flex: 1 1 auto; }
  .logo-text { display: none; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-thumb .thumb-xl { width: 96px; height: 96px; }
  .hero.has-cover .hero-inner { min-height: 300px; }
}

/* ---------- team history timeline ---------- */
.lineage h3 { margin-top: 0; }
.timeline { list-style: none; display: flex; gap: 4px; padding: 0; margin: 18px 0 8px; }
.tl-seg { position: relative; flex-basis: 0; min-width: 110px; display: flex; flex-direction: column; gap: 8px; }
.tl-bar { height: 14px; border-radius: 7px; background: var(--team); opacity: .45; }
.tl-seg.is-current .tl-bar { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--team); }
.tl-label { display: flex; flex-direction: column; line-height: 1.3; }
.tl-label small { color: var(--muted); }
.tl-seg.is-current .tl-label strong { color: var(--text); }
.tl-change { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.tl-notes { margin: 10px 0 0; padding-left: 18px; }
@media (max-width: 700px) {
  .timeline { flex-direction: column; gap: 10px; }
  .tl-seg { flex-direction: row; align-items: center; flex-grow: 0 !important; min-width: 0; }
  .tl-bar { width: 10px; height: 44px; flex: none; }
  .tl-change { margin-left: auto; }
}
.tl-label .lnk { align-self: flex-start; }

/* ---------- buttons, forms, alerts ---------- */
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); color: #fff; }
.btn-danger { color: var(--accent); }
.btn-danger:hover { background: var(--accent); color: #fff; }
.btn-lg { padding: 12px 22px; font-size: 16px; }
.wrap.narrow { max-width: 760px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form input[type=text], .form input[type=email], .form textarea, .form-inline input[type=text] { font: inherit; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.form small { font-weight: 400; }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: center; }
.form-inline input[type=text] { width: auto; flex: 1 1 180px; }
.alert { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); margin: 0 0 14px; }
.alert-err { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.flash-msg { margin-top: 16px; }
.auth-card { margin-top: 40px; }
.code-input { font-size: 24px !important; letter-spacing: .3em; font-family: ui-monospace, Menlo, Consolas, monospace; max-width: 220px; }
.avatar-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar-row .thumb-xl { width: 110px; height: 110px; border-radius: 50%; }
.danger-zone h2 { color: var(--accent); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pager-pages { justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pager-pages a { padding: 4px 10px; border-radius: 6px; }
.pager-pages a.on { background: var(--accent); color: #fff; }
.section-title { margin: 24px 0 10px; font-size: 18px; }

/* ---------- members ---------- */
.member-login { white-space: nowrap; }
.member-link { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); max-width: 160px; }
.member-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-link:hover { color: var(--accent); }
.avatar { border-radius: 50%; }
.profile-hero .bio { margin: 0 0 6px; white-space: pre-line; }
.achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.ach small { display: block; font-size: 12.5px; color: var(--muted); }
.ach-icon { font-size: 28px; width: 40px; text-align: center; flex: none; }
.ach.got { border-color: color-mix(in srgb, var(--gold) 60%, var(--border)); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }
.ach.locked { opacity: .5; }
.ach.locked .ach-icon { filter: grayscale(1); }
.leaderboard tr.is-me td { background: var(--accent-soft); }
.cell-entity { display: flex; align-items: center; gap: 8px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 8px; }
.mini-stats strong { display: block; font-size: 22px; }
.mini-stats small { color: var(--muted); }

/* ---------- quizzes ---------- */
.grid-quizzes { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 16px; align-items: start; }
.quiz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.quiz-card { display: flex; gap: 14px; align-items: center; color: inherit; transition: border-color .15s, transform .15s; }
.quiz-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.quiz-card strong { display: block; }
.quiz-card small { display: block; color: var(--muted); }
.quiz-card-random { padding: 22px; background: linear-gradient(120deg, var(--accent-soft), var(--surface) 60%); }
.quiz-card-random strong { font-size: 19px; }
.quiz-card-random > div { flex: 1; }
.quiz-card-random + .quiz-card-random { margin-top: 12px; }
.quiz-card-icon { font-size: 40px; }
.quiz-wrap { padding-top: 28px; }
.quiz-intro, .quiz-result { text-align: center; padding: 36px 24px; }
.quiz-top { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.quiz-score { color: var(--text); }
.quiz-question { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 24px; margin-bottom: 14px; }
.quiz-text { font-size: clamp(20px, 3.2vw, 28px); margin: 0; }
.quiz-image { max-height: 240px; max-width: 100%; border-radius: 10px; margin-bottom: 16px; object-fit: contain; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { font: inherit; font-weight: 600; font-size: 16px; text-align: left; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .12s, background .12s, transform .12s; display: flex; gap: 12px; align-items: center; }
.quiz-opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-1px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt .key { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface-2); font-size: 13px; flex: none; }
.quiz-opt.is-right { background: #16a34a; border-color: #16a34a; color: #fff; }
.quiz-opt.is-wrong { background: var(--accent); border-color: var(--accent); color: #fff; }
.quiz-opt.is-right .key, .quiz-opt.is-wrong .key { background: rgba(255,255,255,.2); }
.quiz-final { font-size: 44px; margin-bottom: 4px; }
.quiz-new-ach { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0; }
.quiz-new-ach .ach { text-align: left; }
.quiz-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.quiz-flash { text-align: center; font-weight: 700; margin-top: 12px; min-height: 1.5em; }
@media (max-width: 900px) {
  .grid-quizzes { grid-template-columns: minmax(0, 1fr); }
  .member-link span { display: none; }
}
@media (max-width: 560px) {
  .quiz-options { grid-template-columns: minmax(0, 1fr); }
  .member-login { padding: 5px 8px; }
}
.hero-thumb .avatar { border-radius: 50%; }
.alert-error { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
/* Driver page: teammate comparison */
table.teammates td.num, table.teammates th.num { white-space: nowrap; }
table.teammates td.num b { color: var(--text); font-weight: 700; }
:root { --tm-me: #a87b00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tm-me: #f5c518; } }
:root[data-theme="dark"] { --tm-me: #f5c518; }
.tm-me, table.teammates td.num .tm-me, table.teammates td.num .tm-me b { color: var(--tm-me); }
.tm-me { font-weight: 600; }
table.teammates tr.year-start td { border-top: 2px solid var(--border); }

/* cars */
.specs { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; overflow-wrap: anywhere; }
.specs-group { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 8px; }
.car-cards.is-collapsed > :nth-child(n+13) { display: none; }
.show-all-cars { margin-top: 12px; }

.slider { position: relative; border-radius: 12px; overflow: hidden; background: #0b0c0d; }
.slider .slide { margin: 0; position: relative; }
.slider .slide[hidden] { display: none; }
.slider .gallery-item { aspect-ratio: auto; border-radius: 0; background: none; }
.slider .slide img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; margin: 0 auto; background: #0b0c0d; transition: none; }
.slider .gallery-item:hover img { transform: none; }
.slider figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 100px); padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slider figcaption a { color: #fff; }
.slider figcaption a:hover { color: var(--accent); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.slider-arrow:hover { background: var(--accent); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; }

.prose.summary { max-width: none; }
.summary p { margin: 0 0 10px; }
.summary-source { font-size: 12px; color: var(--muted); }

/* tyre / engine maker badges (like flags, name on hover or tap) */
.mfrs { display: inline-flex; gap: 3px; align-items: center; vertical-align: middle; flex-wrap: wrap; }
.mfr { position: relative; display: inline-grid; place-items: center; min-width: 22px; height: 16px; padding: 0 3px; border-radius: 3px; background: var(--mfr-bg); color: var(--mfr-fg); font-size: 9.5px; font-weight: 800; letter-spacing: .02em; line-height: 1; cursor: help; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); outline: none; }
.mfr.has-logo { background: #fff; padding: 1px 2px; }
.mfr img { max-height: 14px; max-width: 34px; display: block; }
.mfr::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 3px 7px; border-radius: 4px; background: #111; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 20; }
.mfr:hover::after, .mfr:focus::after { opacity: 1; }
.mfr-name { margin-left: 5px; font-weight: 600; }
.mfrs .mfr-name + .mfr { margin-left: 10px; }
td.center, th.center { text-align: center; }

/* ---------- Top 10 page ---------- */
.top-tabs { border-bottom: 0; margin: 0; }
.top-tabs .tab { text-decoration: none; font-size: 16px; }
.top-group { margin-top: 8px; margin-bottom: 28px; }
.top-group[hidden] { display: none; }
.top-group-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.top-card { display: flex; flex-direction: column; }
.top-card h3 { margin: 0 0 2px; font-size: 17px; }
.top-note { margin: 0 0 6px; font-size: 12px; color: var(--muted); }
.top-list { list-style: none; margin: 6px 0 0; padding: 0; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); min-height: 38px; }
.top-list li:first-child { border-top: 0; }
.top-rank { flex: 0 0 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 13px; font-weight: 800; color: var(--muted); background: var(--bg); font-variant-numeric: tabular-nums; }
.top-1 .top-rank { background: var(--gold); color: #fff; }
.top-2 .top-rank { background: var(--silver); color: #fff; }
.top-3 .top-rank { background: var(--bronze); color: #fff; }
.top-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.top-name > .lnk, .top-name > img + .lnk { font-weight: 600; }
.top-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-years { display: block; color: var(--muted); font-size: 11px; white-space: normal; }
.top-val { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.top-1 .top-val { font-size: 17px; }
@media (max-width: 760px) { .top-grid { grid-template-columns: 1fr; } }

/* ---------- sort bar on all-time Drivers / Teams ---------- */
.list-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 4px; }
.chip { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .12s, border-color .12s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.list-country { font: inherit; font-size: 14px; padding: 6px 30px 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; max-width: 100%; }
@media (max-width: 760px) { .list-country { flex: 1 1 100%; } }

/* ---------- About page ---------- */
.about .about-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 8px 0 24px; }
.about-stat { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.about-stat strong { display: block; font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.about-stat span { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.about-text { font-size: 17px; line-height: 1.65; }
.about-text h2 { margin-top: 28px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 28px; }
.about-actions .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.about-actions .btn-primary:hover { color: #fff; filter: brightness(1.08); }
.about-credits h2 { font-size: 18px; margin-top: 0; }
.about-credits ul { padding-left: 18px; margin: 8px 0 12px; }
.about-credits li { margin: 4px 0; }
@media (max-width: 760px) { .about .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
