/* 951 Live — main.css (design tokens per theme.json / docs/design-system.md) */
:root {
  --red: #CE1B22; --red-hot: #E5252D; --red-deep: #A0151B;
  --blue: #005DA4; --blue-hot: #1173C4;
  --gray: #808285; --ink: #231F20;
  --bg: #0E0F11; --surface: #17181B; --surface-2: #1F2125; --line: #2A2C31;
  --text: #F4F5F6; --text-dim: #A9ABAF; --white: #FFFFFF;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --container: 1200px; --gutter: 24px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-hot); text-decoration: none; transition: color .14s; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.dim { color: var(--text-dim); }
.small { font-size: .8rem; }
.page-top { padding-top: 56px; }
.btn-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,15,17,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--red); }

/* mobile nav */
.nav-toggle { display: none; }
.nav-panel { display: none; }
@media (max-width: 960px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
    background: none; border: 0; padding: 10px 4px; cursor: pointer; z-index: 60;
    min-height: 44px; min-width: 44px;
  }
  .nav-toggle span { display: block; width: 26px; height: 3px; background: var(--text); transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-panel {
    display: block; position: fixed; inset: 0; z-index: 55; padding: 96px var(--gutter) 32px;
    background: rgba(14,15,17,.98); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
  }
  .nav-panel.open { visibility: visible; opacity: 1; }
  .nav-panel .site-nav { display: flex; flex-direction: column; gap: 8px; }
  .nav-panel .site-nav a { font-size: 1.8rem; padding: 10px 0; min-height: 44px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 1rem;
  padding: 12px 26px; border-radius: 2px; cursor: pointer; border: 0;
  transition: transform .14s, background .14s, color .14s, border-color .14s;
}
.btn-primary { background: var(--red); color: var(--white); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.btn-primary:hover { background: var(--red-hot); color: var(--white); transform: translateX(2px); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--gray); color: var(--white); }
.btn-sm { padding: 11px 20px; font-size: .9rem; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background:
  linear-gradient(105deg, rgba(14,15,17,.96) 30%, rgba(0,93,164,.18) 70%, rgba(206,27,34,.14)),
  repeating-linear-gradient(115deg, transparent 0 46px, rgba(128,130,133,.05) 46px 48px);
}
.hero-inner { position: relative; padding: 104px 0 88px; max-width: 800px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--red); transform: skewX(-20deg); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: .95; letter-spacing: .01em;
}
.hero h1 em { font-style: italic; color: var(--red-hot); }
.hero p.lede { color: var(--text-dim); font-size: 1.125rem; max-width: 56ch; margin: 22px 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* live chip */
.live-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border: 1px solid var(--red); border-radius: 999px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--red-hot);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .label {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--red-hot); font-size: .9rem;
}
.section-head h1, .section-head h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1;
}
.section-head.sub { margin: 0 0 22px; }
.section-head.sub h2 { font-size: 1.35rem; }
.section-head .view-all { margin-left: auto; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; font-size: .95rem; }
.head-chip { margin-left: auto; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.archive-group { margin-bottom: 56px; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color .14s; }
.video-card:hover { border-color: var(--gray); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease-out; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.play-glyph { position: absolute; inset: 0; display: grid; place-items: center; }
.play-glyph::before {
  content: ""; width: 0; height: 0; border-left: 26px solid rgba(255,255,255,.9);
  border-block: 16px solid transparent; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); margin-left: 6px;
}
.round-tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px; background: rgba(14,15,17,.85);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; color: var(--text);
}
.duration {
  position: absolute; bottom: 10px; right: 10px; padding: 2px 8px; background: rgba(14,15,17,.9);
  border-radius: 2px; font-family: var(--font-mono); font-size: .72rem; color: var(--text);
}
.video-card .meta { padding: 14px 16px 16px; }
.video-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-transform: uppercase;
  line-height: 1.15; border-bottom: 2px solid transparent; display: inline; transition: border-color .14s;
}
.video-card:hover h3 { border-bottom-color: var(--red); }
.video-card .date { font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); margin-top: 8px; }

/* ---------- stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.stats-row.big .num { font-size: 3.4rem; }
.stat { border-left: 3px solid var(--red); padding: 6px 0 6px 18px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.stat .lbl { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
.about-stats { margin: 34px 0; }

/* ---------- marquee ---------- */
.marquee { display: flex; gap: 20px; align-items: center; overflow-x: auto; padding: 8px 0; scrollbar-width: thin; }
.marquee .plate {
  flex: 0 0 auto; padding: 14px 30px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gray); filter: grayscale(1); transition: filter .14s, color .14s;
}
.marquee .plate:hover { filter: none; color: var(--white); }
.plate-cta a { color: var(--gray); }
.plate-cta a:hover { color: var(--white); }

/* ---------- countdown / race ---------- */
.race-row { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.countdown { display: flex; gap: 14px; flex-wrap: wrap; }
.countdown .cell { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 10px; text-align: center; min-width: 88px; }
.countdown .num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.countdown .lbl { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em; color: var(--text-dim); text-transform: uppercase; margin-top: 6px; }
.race-venue { font-size: .8rem; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; }
.race-note { color: var(--text-dim); margin-top: 8px; }

/* ---------- player ---------- */
.player { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.embed-wrap { position: relative; aspect-ratio: 16/9; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-chip { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(14,15,17,.75); }
.player-idle { aspect-ratio: 16/9; display: grid; place-items: center; background:
  linear-gradient(140deg,#101820,#0c0e11 60%,#16181d); }
.player-idle-inner { text-align: center; padding: 20px; }
.player-idle-inner h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 6px; }
.player-idle-inner .countdown { justify-content: center; margin: 22px 0; }
.player-idle-inner .dim { margin-top: 4px; font-size: .78rem; }

/* ---------- schedule table ---------- */
.schedule { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .85rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.schedule th { text-align: left; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 0.75rem; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.schedule td { padding: 14px; border-bottom: 1px solid var(--line); }
.schedule tr:last-child td { border-bottom: 0; }
.schedule .time, .schedule td.day { color: var(--red-hot); white-space: nowrap; }

/* ---------- events ---------- */
.events-list { display: flex; flex-direction: column; gap: 14px; }
.event-row {
  display: grid; grid-template-columns: 160px 200px 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px;
}
.event-row.past { opacity: .55; }
.event-round { display: flex; align-items: center; gap: 10px; }
.round-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; }
.chip-dir { padding: 2px 8px; border: 1px solid var(--line); border-radius: 2px; font-family: var(--font-mono); font-size: .68rem; color: var(--text-dim); }
.event-dates { font-size: .85rem; }
.event-note { color: var(--text-dim); font-size: .9rem; }

/* ---------- sponsors ---------- */
.tier { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 34px; margin-bottom: 22px; }
.tier-title { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.tier-title .slash { width: 22px; height: 4px; background: var(--red); transform: skewX(-20deg); }
.tier-title h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.6rem; }
.tier.gold .slash { background: var(--gray); }
.tier.silver .slash { background: var(--blue); }
.logo-plate {
  display: grid; place-items: center; gap: 6px; padding: 30px 20px; min-height: 110px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 6px; text-align: center;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gray); filter: grayscale(1); transition: filter .14s, color .14s, border-color .14s;
}
.logo-plate:hover { filter: none; color: var(--white); border-color: var(--gray); }
.logo-plate .desc { font-family: var(--font-mono); font-weight: 400; font-size: 0.75rem; text-transform: none; letter-spacing: .04em; color: var(--text-dim); }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(100deg, var(--red-deep), var(--red) 55%, #d8343b); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 42px, rgba(0,0,0,.06) 42px 44px); }
.cta-band .inner { position: relative; padding: 64px 0; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 46ch; }
.cta-band .btn { background: var(--white); color: var(--ink); margin-left: auto; }
.cta-band .btn:hover { background: var(--bg); color: var(--white); }

/* ---------- contact + forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-list { list-style: none; margin-top: 8px; }
.contact-list li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl-l { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); min-width: 120px; padding-top: 3px; }
.social-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.form-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 18px; }
.tn-form .field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.tn-form label { display: block; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.tn-form input, .tn-form textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 2px;
  color: var(--text); padding: 12px 14px; font-family: var(--font-body); font-size: .95rem;
}
.tn-form input:focus, .tn-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-success, .form-error { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 24px; margin-bottom: 24px; }
.form-success { border-color: var(--blue); }
.form-error { border-color: var(--red); }

/* ---------- prose / misc ---------- */
.prose p { margin-bottom: 1.2em; color: var(--text-dim); }
.prose p.lede { color: var(--text); font-size: 1.125rem; }
.prose h2, .prose h3 { font-family: var(--font-display); text-transform: uppercase; color: var(--text); margin: 1.4em 0 .5em; }
.hero-h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1; margin: 10px 0 18px; }
.label-404 { font-family: var(--font-mono); letter-spacing: .3em; color: var(--red-hot); }
.tn-search { display: flex; gap: 10px; margin: 20px 0; }
.tn-search input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; color: var(--text); padding: 10px 14px; }
.pagination, .nav-links { margin-top: 30px; font-family: var(--font-mono); font-size: .85rem; }
.nav-links a, .nav-links span { margin-right: 10px; color: var(--blue-hot); }
.nav-links .current { color: var(--text); border-bottom: 2px solid var(--red); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--text-dim); font-size: .9rem; display: inline-block; padding: 4px 0; }
.site-footer li a:hover { color: var(--white); }
.footer-logo img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-desc { color: var(--text-dim); font-size: .9rem; max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); }

/* ---------- wp alignment basics ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-block-embed { margin: 1.2em 0; }

/* newsletter footer form */
.newsletter { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 22px 24px; }
.newsletter h4 { margin-bottom: 6px; }
.newsletter p { font-size: .85rem; color: var(--text-dim); margin-bottom: 14px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input[type="email"] { flex: 1 1 200px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; color: var(--text); padding: 11px 14px; min-height: 44px; }
.newsletter .ok { color: var(--blue-hot); font-size: .85rem; margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .event-row { grid-template-columns: 1fr 1fr; row-gap: 10px; }
  .event-cta { grid-column: span 2; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 72px 0 56px; }
  .event-row { grid-template-columns: 1fr; }
  .event-cta { grid-column: auto; }
  .countdown { gap: 10px; }
  .countdown .cell { min-width: 70px; padding: 14px 8px; }
  .countdown .num { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
