/* fpv-race-pits page layouts. Components and tokens live in /brand; this file arranges them. */

/* ───── landing ───── */
.hero { position: relative; padding-top: clamp(3rem, 2rem + 6vw, 7.5rem); padding-bottom: var(--s-7); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.03em; }
.hero h1 .hl { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { margin: var(--s-5) 0 var(--s-6); font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem); }
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero-art { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); aspect-ratio: 4 / 3; background: var(--surface); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .floating { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.trust { display: flex; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-6); color: var(--text-3); font-size: var(--fs-sm); }
.trust strong { display: block; color: var(--text); font: 800 var(--fs-xl)/1.1 var(--font-display); font-stretch: 112%; }

.mini-tower { background: color-mix(in oklab, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: var(--s-3); font-size: var(--fs-sm); }
.mini-tower .r { display: grid; grid-template-columns: 26px 38px 1fr auto auto; gap: var(--s-2); align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mini-tower .r:last-child { border: 0; }

.band { padding: var(--s-8) 0; border-top: 1px solid var(--line); }
.band-alt { background: linear-gradient(180deg, var(--bg-raised), transparent); }
.steps { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: step; }
.step { position: relative; padding: var(--s-5); padding-top: var(--s-7); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: var(--s-4); left: var(--s-5); font: italic 800 var(--fs-xl)/1 var(--font-display); font-stretch: 112%; color: var(--brand); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.feature { padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; }
.feature .ico { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s-2); }
.feature h3 { font-size: var(--fs-lg); }
.feature p { color: var(--text-2); margin: 0; font-size: var(--fs-sm); }
.showcase { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .showcase { grid-template-columns: 1fr 1fr; } .showcase.flip > :first-child { order: 2; } }
.shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); background: var(--surface); }
.ticks { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.ticks li { display: flex; gap: var(--s-3); color: var(--text-2); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232ef2c2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.cta-band { text-align: center; padding: var(--s-8) var(--gutter); border-radius: var(--r-xl); background: radial-gradient(600px 300px at 50% 0%, color-mix(in oklab, var(--brand) 30%, transparent), transparent), var(--surface); border: 1px solid var(--line-strong); }
.club-card { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: center; padding: var(--s-4); }
.club-card .brandmark img, .club-card .brandmark svg { width: 48px; height: 48px; }

/* ───── page head ───── */
.page-head { padding-top: var(--s-7); padding-bottom: var(--s-5); }
.page-head .h1 { margin-top: var(--s-2); }
.page-head .lead { margin-top: var(--s-3); }
.crumbs { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); color: var(--text-3); flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }

/* ───── club home ───── */
.club-hero { position: relative; padding-top: var(--s-7); padding-bottom: var(--s-6); overflow: hidden; }
.club-hero .banner { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.club-hero .banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; mask-image: linear-gradient(180deg, black 30%, transparent); }
.club-hero .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 10%, transparent 70%); }
.club-hero h1 { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; max-width: 15ch; }
.next-card { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: color-mix(in oklab, var(--surface) 88%, transparent); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.countdown { display: flex; gap: var(--s-3); }
.countdown div { text-align: center; min-width: 54px; }
.countdown b { display: block; font: 800 var(--fs-2xl)/1 var(--font-mono); }
.countdown span { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }

.podium { display: grid; gap: var(--s-2); }
.podium .p { display: grid; grid-template-columns: auto auto 1fr auto; gap: var(--s-3); align-items: center; padding: var(--s-2) 0; }

/* ───── live ───── */
.live-layout { display: grid; gap: var(--s-5); }
@media (min-width: 1100px) { .live-layout { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } }
.lapdots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 4px; }
.lapdots i { width: 6px; height: 6px; border-radius: 2px; background: var(--surface-3); }
.lapdots i.on { background: var(--accent); }
.nextup .heat { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.nextup .heat:last-child { border: 0; }
.nextup .pilots { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.announce { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); background: color-mix(in oklab, var(--warn) 12%, var(--surface)); border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent); border-radius: var(--r-md); }
.timetable .s { display: grid; grid-template-columns: 68px 1fr auto; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); align-items: center; }
.timetable .s.now { background: var(--brand-soft); }
.timetable .s.done { color: var(--text-3); }

/* ───── TV mode ───── */
body.tv { background: #000; font-size: 1.25vw; }
body.tv .backdrop { display: none; }
body.tv main { padding: 2vw 2.5vw; }
body.tv .split { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 1.6vw; }
body.tv .tower-row { column-gap: 1.4vw; padding: 0.75vw 1.4vw; }
body.tv .tower-row .who { gap: 0.8vw; }
body.tv .tower-row .who .avatar { width: 2.6vw; height: 2.6vw; }
body.tv .tower-row.head { font-size: 0.9vw; }
body.tv .tower-row .who { font-size: 2vw; }
body.tv .tower-row .t { font-size: 1.9vw; }
body.tv .tower-row .laps { font-size: 2.4vw; }
body.tv .clock { font-size: 5vw; }
body.tv .pos { width: 2.7vw; height: 2.7vw; font-size: 1.5vw; }
body.tv .chan { min-width: 4vw; height: 2vw; font-size: 1.1vw; }

/* ───── archive / event ───── */
.filters { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.filters .select, .filters .input { width: auto; min-height: 40px; }
.year-head { margin: var(--s-6) 0 var(--s-3); display: flex; align-items: baseline; gap: var(--s-3); }
.year-head h2 { font-size: var(--fs-2xl); }
.event-hero { padding-top: var(--s-6); padding-bottom: var(--s-4); }
.meta-row { display: flex; gap: var(--s-4) var(--s-5); flex-wrap: wrap; color: var(--text-2); font-size: var(--fs-sm); margin-top: var(--s-3); }
.meta-row span { display: inline-flex; gap: 6px; align-items: center; }
.round { margin-top: var(--s-5); }
.round h3 { font-size: var(--fs-lg); margin-bottom: var(--s-3); display: flex; gap: var(--s-3); align-items: center; }
.heat-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.heat-card { padding: var(--s-4); display: grid; gap: var(--s-2); }
.heat-card .line { display: grid; grid-template-columns: 24px 36px 1fr auto; gap: var(--s-2); align-items: center; font-size: var(--fs-sm); }
.heat-card .line .t { font-family: var(--font-mono); color: var(--text-2); }
/* lap chart */
.lapchart { width: 100%; height: 220px; }
.lapchart path { fill: none; stroke-width: 2.2; }
.lapchart .grid line { stroke: var(--line); }
.lapchart text { fill: var(--text-3); font: 11px var(--font-mono); }

/* brackets */
.bracket { display: flex; gap: var(--s-5); overflow-x: auto; padding-bottom: var(--s-3); }
.bracket .col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 220px; flex: 0 0 auto; }
.bracket .col .races { display: flex; flex-direction: column; justify-content: space-around; gap: var(--s-3); flex: 1; }
.bracket .col h4 { font: 700 var(--fs-xs)/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); }
.bracket .match { padding: var(--s-3); display: grid; gap: 6px; font-size: var(--fs-sm); }
.bracket .slot { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); align-items: center; }
.bracket .slot.win { font-weight: 800; color: var(--text); }
.bracket .slot.out { color: var(--text-3); }
.bracket-card { min-width: 0; }
.bracket { max-width: 100%; scroll-snap-type: x proximity; }
.bracket .col { scroll-snap-align: start; }
.bracket .slot.tbd { color: var(--text-3); font-style: italic; }
.bracket .slot .seed { display: inline-block; min-width: 1.6em; margin-right: 6px; padding: 0 4px; border-radius: 4px; background: var(--surface-2); color: var(--text-3); font-size: 11px; text-align: center; font-style: normal; }
.bracket .match.final { border-color: color-mix(in oklab, var(--leader, var(--brand)) 55%, var(--line)); }
.bracket .match.if-needed { border-style: dashed; opacity: 0.8; }
@media (max-width: 640px) { .bracket .col { min-width: 72vw; } }

/* pilot */
.pilot-hero { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: center; padding-top: var(--s-7); padding-bottom: var(--s-5); }
@media (max-width: 640px) { .pilot-hero { grid-template-columns: 1fr; text-align: left; } }
.pilot-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.035em; }
.spark { width: 100%; height: 120px; }
.spark path.line { fill: none; stroke: var(--brand); stroke-width: 2.4; }
.spark path.area { fill: url(#sparkfill); }
.compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s-4); align-items: center; text-align: center; }
.vs { font: 900 var(--fs-2xl)/1 var(--font-display); color: var(--brand); font-stretch: 125%; }
.h2h-bar { height: 10px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; display: flex; }
.h2h-bar > span { display: block; height: 100%; }

/* auth & forms */
.auth-wrap { max-width: 460px; margin: 0 auto; padding-top: var(--s-7); padding-bottom: var(--s-7); }
.provider { justify-content: flex-start; gap: var(--s-3); width: 100%; min-height: 48px; border-radius: var(--r-md); font-weight: 650; }
.provider svg { width: 20px; height: 20px; }
.provider-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.provider-google:hover { background: #f8f9fa; color: #1f1f1f; }
.provider-microsoft { background: #2f2f2f; color: #fff; border-color: #2f2f2f; }
.provider-apple { background: #000; color: #fff; border-color: #333; }
.provider-discord { background: #5865f2; color: #fff; border-color: #5865f2; }
.provider-discord:hover { background: #4752c4; color: #fff; }
.provider-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.provider-github { background: #24292f; color: #fff; border-color: #24292f; }
.provider-fake { background: var(--surface-2); }
.onboard { display: grid; gap: var(--s-6); padding-top: var(--s-6); padding-bottom: var(--s-8); }
@media (min-width: 1100px) { .onboard { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } .onboard .preview { position: sticky; top: 88px; } }
.preview-frame { width: 100%; height: 640px; border: 0; border-radius: var(--r-lg); background: var(--bg); }
.browser { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); background: var(--surface); }
.browser .chrome { display: flex; align-items: center; gap: var(--s-2); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.browser .url { margin-left: var(--s-3); padding: 5px 12px; border-radius: var(--r-pill); background: var(--surface-2); font: 600 var(--fs-xs)/1 var(--font-mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.swatches { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); display: grid; gap: var(--s-4); }
.fieldset legend { padding: 0 var(--s-2); font: 800 var(--fs-sm)/1 var(--font-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.06em; }
.slug-field { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden; background: var(--bg-raised); }
.slug-field input { border: 0; border-radius: 0; min-width: 0; }
.slug-field span { display: grid; place-items: center; padding: 0 12px; color: var(--text-3); background: var(--surface-2); font: 600 var(--fs-sm)/1 var(--font-mono); white-space: nowrap; }

/* map */
.map { height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong); background: #0b0f14; position: relative; }
.map svg { width: 100%; height: 100%; }
.map .dot { cursor: pointer; }
.map .dot circle.pulse { animation: mapPulse 2s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mapPulse { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
.mailbox pre { white-space: pre-wrap; font: 13px/1.55 var(--font-mono); color: var(--text-2); margin: 0; }
.org-mono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--surface-3); font: italic 800 15px/1 var(--font-display); }
.map .map-tiles { filter: invert(1) hue-rotate(185deg) brightness(0.78) contrast(0.92) saturate(0.6); }
.map .leaflet-container { background: #0b1220; }
.map .leaflet-control-attribution { background: rgb(5 8 15 / 70%); color: var(--text-3); }
.map .leaflet-control-attribution a { color: var(--text-2); }
.trophy .icon { width: 14px; height: 14px; color: var(--gold, #f5c84b); vertical-align: -2px; }

/* ───── Connect Claude, consent, connected apps ───── */
.copy-row { display: flex; gap: var(--s-2); align-items: center; min-width: 0; }
.copy-row .input { flex: 1; min-width: 0; }
.connect-url { display: grid; gap: var(--s-3); padding: var(--s-5); margin-top: var(--s-5); max-width: 820px; }
.connect-steps .card-pad { display: grid; gap: var(--s-3); }
.steps-list { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s-2); }
.steps-list li::marker { color: var(--brand); font-weight: 800; }
.code-block { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; white-space: pre; }
.connect-club { flex: none; width: 34%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.ask-list { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-2); }
.ask-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.ask-list li span::before { content: "“"; color: var(--brand); font-weight: 800; }
.ask-list li span::after { content: "”"; color: var(--brand); font-weight: 800; }
.consent { padding-top: var(--s-7); padding-bottom: var(--s-7); display: grid; justify-items: center; }
.consent-card { width: 100%; max-width: 640px; }
.consent-head { padding: var(--s-6) var(--s-5) var(--s-4); display: grid; gap: var(--s-2); border-bottom: 1px solid var(--line); }
.consent-head .h2 { margin: 0; }
.consent-marks { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.consent-marks .logo { width: 44px; height: 44px; }
.consent-link { color: var(--brand); display: inline-flex; }
.consent-client { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 900 15px/1 var(--font-display); background: var(--surface-3); color: var(--text); border: 1px solid var(--line-strong); }
.consent-unverified { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: color-mix(in oklab, var(--warn) 12%, transparent); border: 1px solid color-mix(in oklab, var(--warn) 40%, transparent); }
.consent-option { cursor: pointer; gap: var(--s-3); }
.consent-option input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.consent-option .brandmark svg, .consent-option .brandmark img { width: 32px; height: 32px; border-radius: 8px; }
.consent-danger { border: 2px solid var(--danger); border-radius: var(--r-lg); padding: var(--s-4); display: grid; gap: var(--s-3); background: color-mix(in oklab, var(--danger) 8%, transparent); }
.consent-danger input[type="checkbox"] { accent-color: var(--danger); }
.consent-warning { margin: 0; font-weight: 650; color: var(--danger); display: flex; gap: var(--s-2); align-items: flex-start; }
.consent-actions { gap: var(--s-3); }
.connection { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.connection:last-child { border-bottom: 0; }
.connection-main { display: flex; gap: var(--s-3); align-items: flex-start; min-width: 0; }
.connection-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.scope-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }
.scope-chips .chip { font: 600 11px/1 var(--font-mono); padding: 4px 7px; }
.chip-danger { border-color: var(--danger) !important; color: var(--danger); }
.new-token .input { font-size: 13px; }
@media (max-width: 640px) {
  .copy-row { flex-wrap: wrap; }
  .copy-row .input { flex-basis: 100%; }
  .connect-club { width: 100%; }
  .connection { flex-direction: column; align-items: stretch; }
}

/* ───── Reports ───── */
.report-list { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.report-card { display: grid; gap: var(--s-2); padding: var(--s-5); align-content: start; }
.report-card .h3 { margin: var(--s-2) 0 0; }
.report-card p { margin: 0; }
.report { max-width: 980px; padding-top: var(--s-7); padding-bottom: var(--s-8, 64px); }
.report-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.report-head .h1, .report-head .lead, .report-meta { margin: 0; }
.report-body { display: grid; gap: var(--s-5); }
.report-prose { font-size: 1.04rem; line-height: 1.7; }
.report-prose h2 { margin: var(--s-5) 0 var(--s-2); font: italic 800 var(--fs-xl)/1.15 var(--font-display); font-stretch: 112%; }
.report-prose h3 { margin: var(--s-4) 0 var(--s-2); }
.report-prose > :first-child { margin-top: 0; }
.report-prose blockquote { margin: var(--s-4) 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.report-prose pre { padding: var(--s-3); background: var(--surface-2); border-radius: var(--r-md); overflow-x: auto; }
.report-prose code { font-family: var(--font-mono); font-size: .92em; }
.report-prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-5) 0; }
.report-prose .report-table td.right, .report-prose .report-table th.right { text-align: right; }
.report-figure { margin: 0; overflow: hidden; }
.report-figure-head { padding: var(--s-4) var(--s-5) 0; }
.report-figure-head h3 { margin: 0; }
.report-caption { padding: 0 var(--s-5) var(--s-4); margin: 0; }
.report-table .table-wrap { margin-top: var(--s-3); }
.chart-box { padding: var(--s-3) var(--s-4) var(--s-2); }
.chart-error { padding: var(--s-4) var(--s-5); margin: 0; }
.report-foot { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); overflow-wrap: anywhere; }

/* Charts (server-rendered Vega-Lite subset): colours follow the theme. */
.vl-chart { width: 100%; height: auto; display: block; font-family: var(--font-body, Inter, system-ui, sans-serif); }
.vl-grid { stroke: var(--line); stroke-width: 1; }
.vl-domain { stroke: var(--line-strong); }
.vl-label { fill: var(--text-2); font-size: 11px; }
.vl-title, .vl-legend text { fill: var(--text-2); font-size: 12px; font-weight: 600; }
.vl-mark, .vl-point, .vl-dot { fill: var(--c); }
.vl-line { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.vl-area { fill: var(--c); opacity: .18; }
.vl-tick, .vl-rule { stroke: var(--c); stroke-width: 2; }
.vl-mark:hover, .vl-point:hover, .vl-dot:hover { opacity: .8; }
.vl-s0 { --c: var(--brand); } .vl-s1 { --c: var(--fastest); } .vl-s2 { --c: var(--leader); } .vl-s3 { --c: var(--accent); }
.vl-s4 { --c: var(--lane-1); } .vl-s5 { --c: var(--lane-4); } .vl-s6 { --c: var(--lane-2); } .vl-s7 { --c: var(--lane-8); }

@media print {
  .site-header, .site-footer, .live-strip, .backdrop, .skip, .report-actions, .filters { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  :root { --text: #111; --text-2: #444; --text-3: #666; --line: #ddd; --line-strong: #bbb; --surface: #fff; --surface-2: #f4f4f4; --bg: #fff; }
  .report { padding-top: 0; max-width: none; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; background: #fff !important; break-inside: avoid; }
  .report-prose h2, .report-figure { break-after: avoid; }
  table.data th, table.data td { color: #111 !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .report-foot a::after { content: ""; }
}
.connect-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--s-5); }
.connect-block { margin-bottom: var(--s-5); }
.wrap-code { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 900px) { .connect-steps { grid-template-columns: minmax(0, 1fr); } }

/* ───── club hero banner and location (clubsite) ───── */
/* A stored banner shows at full strength under a scrim made from the page background, so the headline reads in
   both themes: navy fades over a dark banner, near-white over a light one. */
.club-hero .banner-photo img { opacity: 1; mask-image: none; -webkit-mask-image: none; }
.club-hero .banner-photo::after {
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--bg) 94%, transparent) 0%, color-mix(in oklab, var(--bg) 78%, transparent) 38%, color-mix(in oklab, var(--bg) 18%, transparent) 72%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 34%);
}
@media (max-width: 860px) {
  .club-hero .banner-photo::after { background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 55%, transparent) 0%, color-mix(in oklab, var(--bg) 82%, transparent) 55%, var(--bg) 100%); }
}
.loc-card { display: grid; overflow: hidden; }
@media (min-width: 860px) { .loc-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .loc-card.loc-nomap { grid-template-columns: 1fr; } }
.loc-map { height: 100%; min-height: 340px; border: 0; border-radius: 0; }
.loc-address { font-style: normal; display: grid; gap: 2px; color: var(--text-2); }
.loc-details { display: grid; gap: var(--s-3); margin: 0; }
.loc-details dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.loc-details dd { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
:root[data-mode="light"] .map .map-tiles { filter: none; }
:root[data-mode="light"] .map .leaflet-container { background: #eef2f6; }
/* Subscription banner for a club's owners and admins (billing). */
.bill-banner { border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-sm); }
.bill-banner-row { display: flex; align-items: center; gap: var(--s-3); padding-block: 8px; flex-wrap: wrap; }
.bill-text { flex: 1 1 240px; min-width: 0; color: var(--text-2); }
.bill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info); flex: none; }
.bill-warn .bill-dot { background: var(--warn); }
.bill-danger .bill-dot { background: var(--danger); }
.bill-danger { background: color-mix(in srgb, var(--danger) 10%, var(--surface-2)); }
/* Registration and money (batch 2, workstream A) */
.reg .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.reg .reg-class { gap: 12px; }
.reg .reg-class .row { flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.reg .reg-class input:disabled + .dot { opacity: .5; }
.reg details summary { cursor: pointer; color: var(--brand, currentColor); }
.reg .reg-quote tfoot td { border-top: 1px solid var(--line, rgba(127,127,127,.25)); }
.reg-entry { grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.plan-meta { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) { .reg .reg-class { align-items: flex-start; } .reg-entry { grid-template-columns: 1fr auto; } }
.reg .reg-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reg .reg-pay .panel { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.reg .reg-pay .panel input { margin-top: 4px; flex: none; }
@media (max-width: 600px) { .reg .reg-pay { grid-template-columns: 1fr; } }

/* "Buy me a coffee" (footer, /features, /download) */
.btn-coffee { gap: var(--s-2); background: var(--gold); color: #1b1300; border-color: transparent; font-weight: 750; }
.btn-coffee:hover { background: color-mix(in oklab, var(--gold) 85%, white); color: #1b1300; }
.btn-coffee .icon { width: 18px; height: 18px; }
.site-footer .btn-coffee { min-height: 34px; padding: 6px 12px; font-size: var(--fs-sm); }

/* Support links: the platform's monthly + one-off pair, and a club's own link */
.support-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.support-oneoff { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.support-oneoff:hover { color: var(--gold); }
.site-footer .support-links { gap: var(--s-2); }
.club-support-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }

/* ───── ✦ Supporter badge (supporters.go) ───── */
.pilot-hero h1 + div > .sup-badge { margin: 2px 0 var(--s-2); }
.sup-badge { gap: 4px; font-weight: 750; text-decoration: none; border: 1px solid color-mix(in oklab, var(--sup-c, var(--brand)) 55%, transparent);
  background: color-mix(in oklab, var(--sup-c, var(--brand)) 16%, transparent); color: var(--sup-c, var(--brand)); white-space: nowrap; }
.sup-badge:hover { background: color-mix(in oklab, var(--sup-c, var(--brand)) 26%, transparent); color: var(--sup-c, var(--brand)); }
.sup-mint { --sup-c: var(--brand); } .sup-gold { --sup-c: var(--leader); } .sup-purple { --sup-c: var(--pb); } .sup-cyan { --sup-c: var(--accent); }
