:root {
  --bg: #101113;
  --panel: #17191d;
  --panel-soft: #20242a;
  --paper: #f4f1e8;
  --ink: #f8f5ee;
  --muted: #a8a39a;
  --line: rgba(255, 255, 255, 0.13);
  --gold: #d7b23e;
  --red: #e3342f;
  --blue: #3ba0ff;
  --green: #62c370;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 22px;
  padding: 15px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.78), rgba(7, 8, 9, 0.18));
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  width: 142px;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  grid-column: 2;
}

.header-tools {
  grid-column: 3;
  justify-self: end;
}

.header-action {
  justify-self: end;
}

.desktop-nav a,
.header-action,
.discord-action,
.primary-button,
.ghost-button,
.series-tabs button,
.ops-toolbar button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: 800;
}

.desktop-nav a {
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.82);
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.desktop-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.header-action,
.primary-button {
  padding: 0 16px;
  color: #131313;
  background: var(--gold);
}

.discord-action {
  min-height: 42px;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-weight: 850;
}

.discord-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.header-action,
.primary-button,
.discord-action,
.ghost-button,
.reg-link,
.reg-note,
.series-tabs button,
.ops-toolbar button,
.sponsor-card,
.landing-card,
.desktop-nav a {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    filter 160ms ease;
}

.header-action:hover,
.primary-button:hover,
.reg-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(215, 178, 62, 0.24);
  filter: brightness(1.05);
}

.discord-action:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.discord-action span {
  display: none;
}

.ghost-button:hover,
.series-tabs button:hover,
.ops-toolbar button:hover,
.reg-note:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.header-action:active,
.primary-button:active,
.discord-action:active,
.ghost-button:active,
.reg-link:active,
.series-tabs button:active,
.ops-toolbar button:active,
.desktop-nav a:active,
.landing-card:active,
.sponsor-card:active {
  transform: translateY(0) scale(0.985);
}

.ghost-button {
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
}

.hero {
  position: relative;
  min-height: min(820px, 100vh);
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 36px;
  overflow: hidden;
}

.hero-visual,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.95), rgba(7, 8, 9, 0.55) 48%, rgba(7, 8, 9, 0.08)),
    linear-gradient(0deg, rgba(16, 17, 19, 0.98), rgba(16, 17, 19, 0.12) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 980px;
  font-size: clamp(3.7rem, 9vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.hero-content p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.live-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 1020px);
  margin-top: 70px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.live-strip span,
.live-strip strong {
  padding: 18px;
  background: rgba(9, 10, 11, 0.78);
}

.live-strip strong {
  color: var(--gold);
}

.section {
  padding: clamp(64px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  background: var(--bg);
}

.intro > p,
.entry-copy p,
.sponsor-card p,
.section-head p,
.calendar-summary p {
  color: var(--muted);
}

.series-showcase {
  display: grid;
  gap: 0;
}

.desktop-nav a.is-current {
  color: #151515;
  background: var(--gold);
}

.landing-series {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-card {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  overflow: hidden;
  background: #090a0b;
}

.landing-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 10, 11, 0.26), rgba(9, 10, 11, 0.92) 52%),
    linear-gradient(0deg, rgba(9, 10, 11, 0.8), transparent 60%);
}

.landing-card > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.landing-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(30px, 6vw, 78px);
}

.landing-card > div > span {
  color: var(--series-color);
  font-weight: 950;
  text-transform: uppercase;
}

.landing-card h3 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.94;
}

.landing-card p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
}

.title-sponsor {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.title-sponsor:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 178, 62, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.title-sponsor:active {
  transform: translateY(0) scale(0.985);
}

.title-sponsor span {
  color: var(--series-color);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.title-sponsor img {
  width: auto;
  height: 34px;
  max-width: 150px;
  object-fit: contain;
}

.title-sponsor-hero {
  margin-top: 8px;
  margin-bottom: 4px;
  backdrop-filter: blur(14px);
}

.title-sponsor-hero img {
  height: 42px;
  max-width: 180px;
}

.landing-card:hover {
  transform: translateY(-3px);
}

.landing-card:hover::after {
  background:
    linear-gradient(90deg, rgba(9, 10, 11, 0.2), rgba(9, 10, 11, 0.88) 52%),
    linear-gradient(0deg, rgba(9, 10, 11, 0.74), transparent 60%);
}

.landing-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.landing-card dl div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.landing-card dt {
  color: var(--series-color);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.landing-card dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.series-hero {
  position: relative;
  min-height: min(820px, 100vh);
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 36px;
  overflow: hidden;
}

.series-hero > img,
.series-hero-shade {
  position: absolute;
  inset: 0;
}

.series-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.94), rgba(7, 8, 9, 0.54) 48%, rgba(7, 8, 9, 0.1)),
    linear-gradient(0deg, rgba(16, 17, 19, 0.98), rgba(16, 17, 19, 0.14) 58%);
}

.series-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.series-hero-content .eyebrow {
  color: var(--series-color);
}

.series-hero-content p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.series-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 1160px);
  margin-top: 64px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.series-facts div {
  padding: 18px;
  background: rgba(9, 10, 11, 0.78);
}

.series-facts span {
  display: block;
  color: var(--series-color);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.series-facts strong {
  display: block;
  margin-top: 5px;
}

.series-overview {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--bg);
}

.overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.class-chip {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: white;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.series-timeline {
  max-width: 1180px;
}

.series-regulations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.series-regulations .reg-card.is-general {
  grid-column: auto;
}

.series-lane {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(320px, 1.15fr);
  align-items: stretch;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.series-lane::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 10, 11, 0.93), rgba(9, 10, 11, 0.62) 46%, rgba(9, 10, 11, 0.12)),
    var(--series-color);
  opacity: 0.9;
}

.series-lane > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.series-copy,
.series-calendar-preview {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 5vw, 72px);
}

.series-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.series-kicker {
  color: var(--series-color);
  font-weight: 900;
  text-transform: uppercase;
}

.series-copy h3 {
  margin: 12px 0;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.94;
}

.series-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
}

.series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill,
.event-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.series-calendar-preview {
  display: grid;
  align-content: center;
  gap: 12px;
}

.mini-event {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.mini-event strong {
  color: var(--series-color);
}

.mini-event span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
}

.calendar-section,
.drivers {
  background: var(--paper);
  color: #151515;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.series-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.series-tabs button {
  cursor: pointer;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: #1b1b1b;
  background: transparent;
}

.series-tabs button.is-active {
  color: white;
  background: #151515;
}

.calendar-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(380px, 1.38fr);
  gap: 22px;
}

.calendar-summary {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 26px;
  background: #151515;
  color: white;
  border-radius: 8px;
}

.calendar-summary h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.calendar-summary .pill {
  border-color: rgba(255, 255, 255, 0.22);
}

.event-timeline {
  display: grid;
  gap: 10px;
}

.event-card {
  display: grid;
  grid-template-columns: 132px 118px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  padding: 14px 18px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
}

.event-date {
  color: #151515;
  font-weight: 950;
}

.event-date span {
  display: block;
  color: #6a6258;
  font-size: 0.82rem;
  font-weight: 800;
}

.track-map {
  width: 110px;
  height: 74px;
  object-fit: contain;
}

.event-card h3,
.event-card p {
  margin: 0;
}

.event-card p {
  color: #6a6258;
}

.event-status {
  justify-self: end;
  min-width: 104px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  color: #151515;
  background: #ece7dc;
  font-size: 0.78rem;
  font-weight: 900;
}

.regulations {
  background: #111215;
}

.regulations .section-head p {
  max-width: 620px;
}

.regulations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.reg-card {
  display: grid;
  gap: 18px;
  min-height: 390px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reg-card.is-general {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(215, 178, 62, 0.2), rgba(255, 255, 255, 0.04)),
    var(--panel);
}

.reg-card header {
  display: grid;
  gap: 8px;
}

.reg-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  line-height: 1;
}

.reg-card small {
  color: var(--muted);
  font-weight: 800;
}

.reg-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reg-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.reg-list li::before {
  content: "§";
  color: var(--reg-color, var(--gold));
  font-weight: 950;
}

.reg-card footer {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reg-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #151515;
  background: var(--reg-color, var(--gold));
  border-radius: 5px;
  font-weight: 900;
}

.reg-note {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 0.86rem;
  font-weight: 800;
}

.entries {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  background: var(--bg);
}

.entry-table {
  display: grid;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.entry-table-head,
.entry-row {
  display: grid;
  grid-template-columns: 72px minmax(210px, 1.2fr) 120px minmax(220px, 1fr) 120px;
  gap: 14px;
  align-items: center;
  padding: 14px 17px;
}

.entry-table-head {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-row {
  border-bottom: 1px solid var(--line);
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-team h3,
.entry-team p {
  margin: 0;
}

.entry-team h3 {
  font-size: 1rem;
}

.entry-team p,
.entry-drivers {
  color: var(--muted);
}

.entry-class {
  color: var(--gold);
  font-weight: 900;
}

.ops-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}

.ops-toolbar strong,
.ops-toolbar span {
  display: block;
}

.ops-toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
}

.ops-toolbar button {
  cursor: pointer;
  padding: 0 12px;
  color: white;
  background: transparent;
  border: 1px solid var(--line);
}

.ops-toolbar button.is-active {
  color: #151515;
  background: var(--gold);
}

.team-list {
  display: grid;
}

.team-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 17px;
  border-bottom: 1px solid var(--line);
}

.team-row:last-child {
  border-bottom: 0;
}

.team-number {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #151515;
  background: white;
  border-radius: 5px;
  font-weight: 950;
}

.team-row h3,
.team-row p {
  margin: 0;
}

.team-row p {
  color: var(--muted);
}

.ready {
  min-width: 88px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  color: #151515;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.ready.pending {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.search-field {
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  color: #6a6258;
  font-weight: 800;
}

.search-field input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 5px;
  background: white;
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.driver-card {
  min-height: 150px;
  padding: 16px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
}

.driver-card strong {
  display: block;
  margin-bottom: 6px;
}

.driver-card span {
  color: #6a6258;
}

.driver-rank {
  margin-top: 16px;
  color: var(--red);
  font-weight: 950;
}

.sponsors {
  background: var(--panel);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.sponsor-card {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.sponsor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 178, 62, 0.52);
  background: #252a31;
}

.sponsor-card img {
  width: min(100%, 520px);
  max-height: 150px;
  object-fit: contain;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.site-footer img {
  width: 118px;
}

.site-footer span {
  min-width: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.rulebook-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 150px clamp(18px, 5vw, 72px) 54px;
  background:
    linear-gradient(120deg, rgba(215, 178, 62, 0.18), rgba(255, 255, 255, 0.03)),
    #101113;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.rulebook-hero > img,
.rulebook-hero-shade {
  position: absolute;
  inset: 0;
}

.rulebook-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rulebook-hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.92), rgba(7, 8, 9, 0.56) 50%, rgba(7, 8, 9, 0.12)),
    linear-gradient(0deg, rgba(16, 17, 19, 0.96), rgba(16, 17, 19, 0.08) 58%);
}

.rulebook-hero-content {
  position: relative;
  z-index: 1;
}

.rulebook-hero h1 {
  max-width: 1120px;
  font-size: clamp(2.8rem, 7vw, 7rem);
}

.rulebook-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

.rulebook-document {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 46px);
  color: #171717;
  background: var(--paper);
}

.rulebook-document h2,
.rulebook-document h3,
.rulebook-document h4 {
  margin: 1.8em 0 0.55em;
  line-height: 1.15;
}

.rulebook-document h2 {
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.rulebook-document h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.rulebook-document h4 {
  font-size: 1.12rem;
}

.rulebook-document p,
.rulebook-document li {
  color: #322e28;
  font-size: 1rem;
}

.rulebook-document a {
  color: #7d610f;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rulebook-document ul,
.rulebook-document ol {
  padding-left: 1.2rem;
}

.rulebook-document li + li {
  margin-top: 0.45rem;
}

.rulebook-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.92rem;
  background: white;
}

.rulebook-document th,
.rulebook-document td {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  vertical-align: top;
}

.rulebook-document th {
  background: #1a1b1f;
  color: white;
  text-align: left;
}

.rulebook-document figure {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
}

.rulebook-document .wp-block-table {
  overflow-x: auto;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .live-strip,
  .intro,
  .landing-card,
  .series-lane,
  .series-facts,
  .series-overview,
  .calendar-shell,
  .regulations-grid,
  .series-regulations,
  .entries,
  .entry-table-head,
  .entry-row,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .entry-table-head {
    display: none;
  }

  .entry-row {
    align-items: start;
  }

  .reg-card.is-general {
    grid-column: auto;
  }

  .series-calendar-preview {
    padding-top: 0;
  }

  .calendar-summary {
    position: static;
  }

  .driver-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    grid-template-columns: 110px 1fr;
  }

  .track-map,
  .event-status {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    width: 108px;
  }

  .header-action {
    display: none;
  }

  .discord-action {
    width: 44px;
    padding: 0;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .series-tabs {
    justify-content: flex-start;
  }

  .team-row,
  .event-card {
    grid-template-columns: 1fr;
  }

  .landing-card dl {
    grid-template-columns: 1fr;
  }

  .driver-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}
