:root {
  --bg: #15151e;
  --bg-deep: #101016;
  --bg-card: #1e1e2a;
  --bg-card-hover: #262636;
  --red: #e10600;
  --red-hover: #c40500;
  --white: #ffffff;
  --text: #f0eff0;
  --muted: #b4b4c2;
  --grey-2: #a4a4b2;
  --grey-3: #8a8a9a;
  --border: rgba(255, 255, 255, 0.08);
  --font: "Segoe UI", Arial, sans-serif;
  --header-h: 72px;
  --pad: 1.25rem;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[v-cloak] { display: none !important; }

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  color-scheme: dark;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
}

ul {
  list-style: none;
}

address {
  font-style: normal;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 20;
  background: var(--white);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: calc(var(--header-h) + 0.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: 1.5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.section-link {
  flex-shrink: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.section-link:hover,
.section-link:focus-visible {
  color: var(--white);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--quiet {
  color: var(--muted);
}

.eyebrow__mark {
  width: 1.75rem;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.btn:disabled {
  cursor: default;
  opacity: 0.72;
}

.btn--primary,
.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 52px;
  width: auto;
  mix-blend-mode: screen;
}

.logo__img--small {
  height: 46px;
  width: auto;
  max-width: min(180px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  display: flex;
  flex-direction: column;
  height: var(--header-h);
  border-top: 3px solid var(--red);
  background: rgba(21, 21, 30, 0.96);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.topbar {
  display: none;
}

.header__bar {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
}

.header__cta {
  display: none;
  position: relative;
  z-index: 2;
  min-height: 42px;
  padding-inline: 1.1rem;
  margin-left: 0.4rem;
}

.header.is-scrolled,
.header.is-menu-open {
  background: rgba(21, 21, 30, 0.96);
  border-bottom: 1px solid var(--border);
}

.header.is-menu-open {
  background: var(--bg);
  border-bottom-color: transparent;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.burger {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.burger__box {
  position: relative;
  width: 22px;
  height: 16px;
}

.burger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s var(--ease), top 0.28s var(--ease), opacity 0.2s ease;
}

.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 7px; }
.burger__line:nth-child(3) { top: 14px; }

.burger.is-active .burger__line:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-active .burger__line:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: calc(var(--header-h) + 1rem) max(1.5rem, var(--pad)) calc(1.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 100% 100%, rgba(225, 6, 0, 0.22), transparent 42%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__kicker,
.nav__more {
  display: block;
}

.nav__kicker {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  min-height: 56px;
  padding-block: 0.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  font-size: clamp(1.85rem, 8vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.nav__index {
  color: var(--red);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.nav__list li {
  opacity: 0;
  transform: translateY(16px);
}

.nav.is-open .nav__list li {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
}

.nav.is-open .nav__list li:nth-child(1) { transition-delay: 0.05s; }
.nav.is-open .nav__list li:nth-child(2) { transition-delay: 0.1s; }
.nav.is-open .nav__list li:nth-child(3) { transition-delay: 0.15s; }
.nav.is-open .nav__list li:nth-child(4) { transition-delay: 0.2s; }
.nav.is-open .nav__list li:nth-child(5) { transition-delay: 0.25s; }
.nav.is-open .nav__list li:nth-child(6) { transition-delay: 0.3s; }
.nav.is-open .nav__list li:nth-child(7) { transition-delay: 0.35s; }

.nav__more-label {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav__more-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
}

.nav__link:hover,
.nav__more-list a:hover,
.nav__more-list a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--bg);
}

.hero__stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.hero-slider {
  position: relative;
  flex: 0 0 auto;
  height: min(42svh, 380px);
  min-height: 220px;
  overflow: hidden;
  background: transparent;
}

.hero-slider__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero__layout {
  position: relative;
  z-index: 2;
}

.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding-bottom: 1.35rem;
}

.hero__title {
  font-size: clamp(2.05rem, 8.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  max-width: 28rem;
  color: #dedee6;
  font-size: 1.05rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.hero__actions .btn {
  width: 100%;
}

.hero-slider__controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
}

.hero-slider__dot,
.hero-slider__pause {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.hero-slider__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.hero-slider__dot.is-active::before {
  width: 22px;
  border-radius: 999px;
  background: var(--red);
}

.hero-slider__pause svg {
  width: 16px;
  height: 16px;
}

.hero__brands {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-width: 100%;
  border-top: 1px solid var(--border);
  background: #12121a;
  padding-block: 1.1rem;
}

.brands-marquee {
  overflow: hidden;
  max-width: 100%;
}

.brands-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.brands-marquee__group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
}

.brand-logo {
  height: 34px;
  width: auto;
  opacity: 0.78;
  transition: opacity 0.3s ease;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  overflow: hidden;
  background: rgba(21, 21, 30, 0.96);
  border-bottom: 1px solid var(--border);
}

.subnav__inner {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.75rem;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.92rem;
}

.subnav__link--active,
.subnav__link:hover,
.subnav__link:focus-visible {
  background: var(--red);
  color: var(--white);
}

.races__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 220px);
  gap: 0.75rem;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  padding-bottom: 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}

.races__grid::-webkit-scrollbar {
  display: none;
}

.race-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.95rem 1rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}

.race-card__header,
.race-card__place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.race-card__round,
.race-card__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.race-card__round { color: var(--red); }
.race-card__date { color: var(--muted); }

.race-card__track {
  width: 100%;
  height: 88px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.72;
}

.race-card__place {
  justify-content: flex-start;
  margin-top: 0.2rem;
}

.race-card__flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.race-card__city,
.race-card__name {
  display: block;
  line-height: 1.2;
}

.race-card__city {
  color: var(--white);
  font-weight: 700;
}

.race-card__name {
  color: var(--muted);
  font-size: 0.82rem;
}

.standings__table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.standings__head,
.standings__row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
}

.standings__head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.22);
}

.standings__head span:nth-child(3),
.standings__team {
  display: none;
}

.standings__head span:last-child,
.standings__pts {
  text-align: right;
}

.standings__row {
  position: relative;
  border-top: 1px solid var(--border);
}

.standings__row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--share);
  height: 2px;
  background: var(--red);
  opacity: 0.7;
}

.standings__pos {
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.standings__table .standings__row:nth-child(2) .standings__pos {
  color: var(--red);
}

.standings__driver {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.standings__team-logo {
  width: 36px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.standings__id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.standings__name {
  font-weight: 700;
  color: var(--white);
}

.standings__team-short,
.standings__team {
  color: var(--muted);
  font-size: 0.82rem;
}

.standings__pts {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.teams__grid {
  display: grid;
  gap: 0.9rem;
}

.team-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 168px;
  padding: 1.2rem 1.15rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--tc);
}

.team-card__logo {
  height: 32px;
  width: auto;
  max-width: 92px;
  margin-bottom: 0.85rem;
  object-fit: contain;
  object-position: left center;
}

.team-card__name {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.team-card__country {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-card__drivers {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--text);
}

.podium {
  display: grid;
  gap: 0.9rem;
}

.podium-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 248px;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--pc-dark);
}

.podium-card--1st { order: 1; min-height: 280px; }
.podium-card--2nd { order: 2; }
.podium-card--3rd { order: 3; }

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--pc-dark) 0%, rgba(0, 0, 0, 0.15) 58%, transparent 100%);
  z-index: 1;
}

.podium-card__place {
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  z-index: 2;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.podium-card__place sup {
  font-size: 0.72rem;
  margin-left: 0.1rem;
}

.podium-card__nummask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background: var(--pc);
  opacity: 0.18;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center right;
  pointer-events: none;
}

.podium-card__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 96%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
}

.podium-card__info,
.podium-card__pts {
  position: relative;
  z-index: 2;
}

.podium-card__info {
  max-width: 60%;
}

.podium-card__firstname {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.podium-card__lastname {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.podium-card__team {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.podium-card__pts {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.podium-card__pts span {
  margin-left: 0.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.subscribe__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(225, 6, 0, 0.28), transparent 36%),
    var(--bg-card);
}

.subscribe__text p:last-child {
  max-width: 38rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.subscribe__form,
.form__row,
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form__input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: var(--bg-deep);
  color: var(--white);
  font-size: 1rem;
}

.form__input::placeholder {
  color: #8e8e9e;
}

.form__input:focus {
  border-color: var(--red);
  outline: 2px solid rgba(225, 6, 0, 0.45);
  outline-offset: 1px;
}

.subscribe__form .btn {
  width: 100%;
}

.form__status {
  min-height: 1.3rem;
  font-weight: 600;
}

.news-feature,
.constructor,
.circuit {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.spotlight__card {
  display: grid;
  gap: 0.25rem 2rem;
  align-items: center;
}

.spotlight__media {
  display: grid;
  place-items: center;
}

.spotlight__track {
  width: min(100%, 460px);
  height: auto;
  aspect-ratio: 121 / 85;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
}

.spotlight__place {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.55rem;
  color: var(--text);
}

.spotlight__flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.spotlight__meta {
  margin-top: 0.3rem;
  color: var(--muted);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  margin: 1.15rem 0 0.35rem;
}

.countdown__cell {
  position: relative;
  min-width: 4.2rem;
  padding: 0 0.85rem 0 0;
}

.countdown__cell + .countdown__cell {
  padding-left: 0.75rem;
}

.countdown__cell + .countdown__cell::before {
  content: ":";
  position: absolute;
  left: 0;
  top: -0.05rem;
  color: var(--red);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.countdown__cell b {
  display: block;
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.countdown__cell span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news__layout,
.circuits__grid {
  display: grid;
  gap: 0.9rem;
}

.news-feature {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.news-feature__img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.news-feature__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3.2rem 1.1rem 1.05rem;
  background: linear-gradient(transparent, rgba(8, 8, 12, 0.9));
}

.circuit {
  padding: 1rem;
}

.news-feature__tag,
.news-item__tag {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-feature h3,
.news-item h3,
.circuit h3,
.guide__strip h3,
.constructor h3 {
  margin: 0.35rem 0;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.2;
}

.news-feature h3 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.circuit p,
.constructor p,
.guide__strip p {
  color: var(--muted);
}

.news__side {
  display: grid;
  align-content: center;
}

.news-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 0.15rem;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child {
  border-top: 1px solid var(--border);
}

.news-item h3 {
  margin: 0.1rem 0 0;
  font-size: 1.02rem;
}

.news-item img {
  width: 52px;
  height: 64px;
  object-fit: contain;
  object-position: center bottom;
}

.constructors__list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.constructor {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  overflow: hidden;
  padding: 0.95rem 1rem;
}

.constructor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tc);
}

.constructor::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--share);
  height: 2px;
  background: var(--tc);
}

.constructor img {
  width: 64px;
  height: 26px;
  object-fit: contain;
}

.constructor__pos,
.constructor b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.constructor__pos { color: var(--muted); }
.constructor b { color: var(--white); font-size: 1.2rem; }

.circuit img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.8;
}

.guide__strip {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--border);
}

.guide__strip li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--border);
}

.guide__index {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.guide__strip h3 {
  margin: 0;
  font-size: 1.15rem;
}

.guide__strip p {
  margin-top: 0.2rem;
}

.disclosure-button {
  gap: 0.7rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.disclosure-button > span { font-size: 1.35rem; }
.stats-note { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.9rem; max-width: 75ch; }
.stats-note a { text-decoration: underline; text-underline-offset: 3px; }
.stats-scroll {
  max-width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overscroll-behavior-x: contain;
}
.stats-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.stats-table caption { padding: 1rem; text-align: left; font-weight: 700; color: var(--white); }
.stats-table th, .stats-table td { padding: 0.85rem 1rem; border-top: 1px solid var(--border); white-space: nowrap; }
.stats-table thead th { background: var(--bg-deep); color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.stats-table tbody th { font-weight: 600; }
.stats-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.stats-table tbody tr:hover { background: var(--bg-card-hover); }
.stats-table__points { color: var(--white); font-weight: 700; }
.team-card__lineup { margin-top: 0.8rem; }
.team-driver { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 45%); align-items: center; gap: 0.5rem; border-top: 1px solid var(--border); min-height: 76px; }
.team-driver > span { display: flex; flex-direction: column; font-size: 0.95rem; line-height: 1.3; }
.team-driver__number { color: var(--muted); font-size: 0.75rem; margin-bottom: 0.2rem; }
.team-driver img { width: 100%; height: 60px; object-fit: contain; }
.circuit__heading { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); }
.circuit img { height: 150px; margin-block: 1rem; }
.circuit .section-link { margin-top: 0.4rem; font-size: 0.7rem; }
.guide__strip { border: 0; gap: 1rem; }
.guide__strip li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  align-content: start;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.guide__index { line-height: 1.4rem; margin: 0; }
.guide__strip h3 { line-height: 1.4rem; }
.guide__strip p { margin-top: 0.7rem; max-width: 38ch; line-height: 1.65; }

.footer {
  border-top: 3px solid var(--red);
  background: #0e0e14;
}

.footer__band {
  background:
    radial-gradient(circle at 100% 0%, rgba(225, 6, 0, 0.28), transparent 36%),
    #16161f;
  border-bottom: 1px solid var(--border);
}

.footer__band-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1.4rem;
}

.footer__band-title {
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer__about {
  max-width: 28rem;
  margin-top: 0.7rem;
  color: var(--muted);
}

.footer__brand .social {
  margin-top: 1rem;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-block: 2.5rem;
}

.footer__tagline {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}

.footer__col-title {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__list {
  display: flex;
  flex-direction: column;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: var(--white);
}

.social {
  display: flex;
  gap: 0.5rem;
}

.social__link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1b1b26;
  color: var(--white);
}

.social__link svg {
  width: 18px;
  height: 18px;
}

.social__link:hover,
.social__link:focus-visible {
  background: var(--red);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: 1rem;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__bottom p,
.footer__legal a {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--white);
}

.slider-fade-enter-active,
.slider-fade-leave-active {
  transition: opacity 0.7s ease;
}

.slider-fade-enter-from,
.slider-fade-leave-to {
  opacity: 0;
}

@media (hover: hover) {
  .btn--primary:hover:not(:disabled),
  .btn--red:hover:not(:disabled) {
    background: var(--red-hover);
    transform: translateY(-2px);
  }

  .btn--secondary:hover {
    background: var(--white);
    color: var(--bg);
    transform: translateY(-2px);
  }

  .race-card:hover,
  .race-card:focus-visible {
    border-color: rgba(225, 6, 0, 0.55);
  }

  .race-card:hover .race-card__track,
  .race-card:focus-visible .race-card__track {
    opacity: 1;
  }

  .news-item:hover h3,
  .news-item:focus-within h3 {
    color: var(--white);
  }

  .brand-logo:hover {
    opacity: 1;
  }

  .team-card:hover {
    border-color: color-mix(in srgb, var(--tc) 70%, white);
  }
}

@media (max-width: 380px) {
  .hero-slider {
    height: 36svh;
    min-height: 190px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .podium-card__pts {
    font-size: 1.35rem;
  }
}

@media (min-width: 640px) {
  .hero__actions {
    flex-direction: row;
    width: auto;
  }

  .hero__actions .btn,
  .subscribe__form .btn {
    width: auto;
  }

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

  .form__row {
    flex-direction: row;
  }

  .form__group {
    flex: 1;
  }
}

@media (min-width: 768px) {
  :root { --pad: 1.75rem; }

  .spotlight__card {
    grid-template-columns: minmax(280px, 0.72fr) 1.28fr;
  }

  .spotlight__media {
    justify-items: start;
  }

  .news__layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .news-feature__img { min-height: 100%; }

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

  .guide__strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
  }

  .guide__strip li {
    display: block;
    padding: 1.15rem 1.35rem 1.15rem 0;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }

  .guide__strip li:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .guide__index {
    display: block;
    margin-bottom: 0.55rem;
  }

  .footer__band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__legal a { min-height: 32px; }

  .section { padding-block: 2.5rem; }

  .standings__head,
  .standings__row {
    grid-template-columns: 3rem minmax(0, 1.5fr) minmax(0, 1fr) 4.5rem;
    padding-inline: 1.25rem;
  }

  .standings__head span:nth-child(3),
  .standings__team {
    display: block;
  }

  .standings__team-short {
    display: none;
  }

  .subscribe__inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    padding: 2.25rem;
  }

  .subscribe__text,
  .subscribe__form {
    flex: 1;
  }

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

  .footer__list a {
    min-height: 34px;
  }
}

@media (min-width: 1024px) {
  :root { --header-h: 104px; }

  .topbar {
    display: block;
    height: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .topbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .topbar__season,
  .topbar__next,
  .topbar__link {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .topbar__season { color: var(--muted); }
  .topbar__next { color: var(--white); }
  .topbar__link { color: var(--red); }
  .topbar__next:hover,
  .topbar__link:hover { color: var(--white); }

  .header__cta { display: inline-flex; }

  .nav__item--menu { display: none; }

  .burger {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
  }

  .nav__kicker,
  .nav__more,
  .nav__index {
    display: none;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .nav__list li {
    opacity: 1;
    transform: none;
  }

  .nav__link {
    min-height: 44px;
    padding: 0.4rem 0.8rem;
    border: 0;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
  }

  .hero {
    height: 100svh;
    min-height: 640px;
  }

  .hero__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 3rem);
    width: min(1440px, 100%);
    min-height: 0;
    margin-inline: auto;
    padding: calc(var(--header-h) + 1rem) var(--pad) 0.5rem;
  }

  .hero-slider {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero__layout {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    max-width: none;
    height: auto;
    padding-inline: 0;
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero__title {
    font-size: clamp(2.6rem, 3.8vw, 4.4rem);
  }

  .hero__brands {
    padding-block: 1.35rem;
  }

  .brand-logo {
    height: 42px;
  }

  .brands-marquee__group {
    gap: 5rem;
    padding-right: 5rem;
  }

  .races__grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

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

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

  .podium {
    grid-template-columns: 1fr 1.12fr 1fr;
    align-items: end;
  }

  .podium-card--2nd { order: 1; min-height: 360px; }
  .podium-card--1st { order: 2; min-height: 460px; }
  .podium-card--3rd { order: 3; min-height: 320px; }

  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .footer__brand {
    flex: 0 0 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the weekend cards aligned at every breakpoint. */
@media (min-width: 700px) {
  .guide__strip { border-bottom: 0; }
  .guide__strip li, .guide__strip li:last-child {
    display: grid;
    padding: 1.4rem;
    border: 1px solid var(--border);
  }
  .guide__index { margin-bottom: 0; }
}
@media (max-width: 599px) {
  .section-header { align-items: flex-start; flex-wrap: wrap; }
  .section-header > div { min-width: 0; }
  .section-title { line-height: 1.12; overflow-wrap: anywhere; }
  .guide__strip li { padding: 1.1rem; gap: 0.7rem; }
}

/* Readable type and a separate circuit atlas. */
body { line-height: 1.6; }
.section-title { font-size: clamp(1.65rem, 3.1vw, 2.25rem); line-height: 1.18; letter-spacing: -0.025em; text-transform: none; }
.section-link { font-size: 0.9rem; letter-spacing: 0.015em; text-transform: none; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; }
.team-card__name { font-size: 1.2rem; line-height: 1.3; text-transform: none; letter-spacing: -0.015em; }
.team-card__country { font-size: 0.85rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.team-driver > span { font-size: 1rem; line-height: 1.45; }
.team-driver__number { font-size: 0.8rem; }
.team-driver { grid-template-columns: minmax(0, 1fr) minmax(110px, 46%); min-height: 90px; }
.team-driver img { height: 72px; }
.stats-table thead th { font-size: 0.85rem; text-transform: none; letter-spacing: 0; }
.stats-table td, .stats-table tbody th { font-size: 0.95rem; }
.stats-car { width: 160px; height: 48px; object-fit: contain; }
.standings__head { font-size: 0.85rem; text-transform: none; letter-spacing: 0; }
.podium-card__lastname { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; text-transform: none; letter-spacing: -0.025em; overflow-wrap: anywhere; }
body.track-dialog-open { overflow: hidden; }
.track-dialog { position: fixed; inset: 0; width: min(1180px, calc(100% - 3rem)); height: min(820px, calc(100dvh - 3rem)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #393943; border-radius: 24px; color: var(--text); background: #191922; box-shadow: 0 28px 100px #0009; overflow: hidden; }
.track-dialog::backdrop { background: #08080ee0; backdrop-filter: blur(8px); }
.track-dialog[open] { display: flex; flex-direction: column; }
.track-dialog__header { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; gap: 1rem; padding: 1.4rem 1.75rem; border-bottom: 1px solid var(--border); }
.track-dialog__header .eyebrow { margin-bottom: 0.25rem; }
.track-dialog__header h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; }
.track-dialog__close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 50%; background: #272731; color: var(--white); font-size: 1.7rem; cursor: pointer; }
.track-dialog__close:hover { background: #393943; }
.track-dialog__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 0; flex: 1; }
.track-picker { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); padding: 1rem; background: #14141c; }
#track-search { width: 100%; min-height: 44px; padding: 0.6rem 0.8rem; margin-bottom: 0.85rem; border: 1px solid #3c3c48; border-radius: 10px; background: #20202b; color: var(--white); font-size: 0.9rem; }
#track-search::placeholder { color: #b4b4c2; }
.track-picker__list { overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #51515d transparent; }
.track-option { display: flex; align-items: center; gap: 0.8rem; width: 100%; min-height: 46px; padding: 0.65rem 0.8rem; margin-bottom: 3px; border: 1px solid transparent; border-radius: 9px; text-align: left; background: transparent; color: #d7d7e0; font-size: 0.9rem; cursor: pointer; }
.track-option[hidden] { display: none; }
.track-option:hover { background: #262630; }
.track-option.is-selected { border-color: #e1060066; background: #321a21; color: var(--white); }
.track-option__round { color: #9e9ead; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.track-option.is-selected .track-option__round { color: #ff6e68; }
.track-picker__empty { color: var(--muted); font-size: 0.9rem; padding: 0.5rem; }
.track-detail { min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: clamp(1.3rem, 3vw, 2.5rem); }
.track-detail__heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.track-detail__heading .eyebrow { margin: 0; color: #ff6e68; }
#track-date { font-size: 0.85rem; color: var(--muted); }
#track-name { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.035em; }
#track-circuit { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }
.track-detail__canvas { display: grid; place-items: center; min-height: 200px; flex: 1; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: 16px; background-color: #15151e; background-image: radial-gradient(#34343f 1px, transparent 1px); background-size: 20px 20px; }
#track-outline { filter: invert(1); width: 100%; height: 100%; max-height: 340px; min-height: 160px; object-fit: contain; }
.track-detail__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.track-detail__footer .section-link { color: var(--text); font-size: 0.85rem; }
#track-counter { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.track-detail__credit { margin-top: 1rem; font-size: 0.75rem; color: #a6a6b6; }
.track-detail__credit a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .track-dialog { width: calc(100% - 1rem); height: calc(100dvh - 1rem); border-radius: 18px; }
  .track-dialog__header { padding: 1rem; }
  .track-dialog__layout { display: flex; flex-direction: column; }
  .track-picker { flex-shrink: 0; max-height: 190px; padding: 0.75rem; border-right: 0; border-bottom: 1px solid var(--border); }
  #track-search { margin-bottom: 0.5rem; }
  .track-picker__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .track-option { font-size: 0.85rem; gap: 0.5rem; margin: 0; }
  .track-detail { flex: 1; padding: 1.1rem; }
  .track-detail__canvas { min-height: 210px; margin: 1rem 0; }
  .track-detail__heading { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Compact atlas entry and team specifications. */
.circuits-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.circuits-toolbar .section-title { font-size: 1.3rem; }
.circuits-toolbar p { margin-top: 0.2rem; color: var(--muted); font-size: 0.85rem; }
.circuits-toolbar .btn { min-height: 44px; padding: 0.55rem 1rem; border-color: #484853; font-size: 0.9rem; gap: 1rem; flex-shrink: 0; }
.team-specs { margin-top: 1rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.team-specs__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.team-specs__header label { font-size: 1rem; font-weight: 600; }
#team-choice { min-height: 44px; width: min(100%, 250px); padding: 0.5rem 2rem 0.5rem 0.8rem; border: 1px solid #494954; border-radius: 9px; background: #171720; color: var(--white); font: inherit; font-size: 0.9rem; cursor: pointer; }
.team-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 1rem; }
.team-facts > div { min-width: 0; }
.team-facts dt { color: var(--muted); font-size: 0.8rem; line-height: 1.4; margin-bottom: 0.3rem; }
.team-facts dd { color: var(--text); font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.disclosure-panel { display: flow-root; transform-origin: top; }
@media (max-width: 700px) {
  .team-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1rem; }
}
@media (max-width: 480px) {
  .circuits-toolbar { padding: 1rem; align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .circuits-toolbar .btn { width: 100%; }
  .team-specs { padding: 1rem; }
  .team-specs__header { align-items: stretch; flex-direction: column; gap: 0.6rem; }
  #team-choice { width: 100%; }
  .team-facts { grid-template-columns: 1fr; gap: 0; margin-top: 0.4rem; }
  .team-facts > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
  .team-facts > div:last-child { border-bottom: 0; }
}

/* Text-first team cards and continuous table resizing. */
.team-card { min-height: 0; padding: 1.3rem; gap: 0.4rem; }
.team-card__logo { margin-bottom: 0.65rem; }
.team-card__name { font-size: 1.25rem; line-height: 1.4; font-weight: 650; }
.team-card__country { color: #c4c4d0; font-size: 0.9rem; line-height: 1.6; }
.team-card__lineup { margin-top: 0.6rem; }
.team-driver { display: block; min-height: 0; padding: 0.8rem 0; }
.team-driver:last-child { padding-bottom: 0; }
.team-driver > span { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; font-size: 1.05rem; line-height: 1.55; }
.team-driver__number { margin: 0; color: #c4c4d0; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.team-facts dt { font-size: 0.85rem; line-height: 1.5; color: #bfc0ce; }
.team-facts dd { font-size: 1rem; line-height: 1.65; }
.disclosure-switch { display: flow-root; overflow-anchor: none; }

/* Six leading teams, followed by matching expandable cards. */
.teams__grid--extra { padding-top: 0.85rem; }
.teams .team-card { padding: 1rem 1.1rem; gap: 0.25rem; border-radius: 16px; }
.teams .team-card__logo { height: 27px; max-width: 80px; margin-bottom: 0.45rem; }
.teams .team-card__name { font-size: 1.1rem; line-height: 1.4; }
.teams .team-card__country { font-size: 0.85rem; line-height: 1.5; }
.teams .team-card__lineup { margin-top: 0.45rem; }
.teams .team-driver { padding: 0.6rem 0; }
.teams .team-driver:last-child { padding-bottom: 0; }
.teams .team-driver > span { font-size: 0.98rem; line-height: 1.5; gap: 0.5rem; grid-template-columns: 2.6rem minmax(0, 1fr); }
.disclosure-button > span { transition: transform 0.25s ease; }
.disclosure-button[aria-expanded="true"] > span { transform: rotate(180deg); }

/* Crossfade the contents while preserving a continuously visible panel. */
.disclosure-switch { position: relative; }
.disclosure-outgoing { position: absolute; inset: 0 0 auto; width: 100%; overflow: hidden; pointer-events: none; z-index: 1; background: var(--bg); }
.constructors .constructor::before { content: none; }

.stats-identity { display: inline-flex; align-items: center; gap: 0.85rem; vertical-align: middle; }
.stats-identity img { width: 40px; height: 28px; flex: 0 0 40px; object-fit: contain; }
.stats-identity > span { line-height: 1.5; }

/* Avoid painting static sections until they approach the viewport. */
@supports (content-visibility: auto) {
  .news, .races, .guide, .subscribe, .footer { content-visibility: auto; contain-intrinsic-size: auto 450px; }
}
.brands-marquee__track.is-paused { animation-play-state: paused; }
.track-dialog::backdrop { backdrop-filter: none; }

.all-circuits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; padding-top: 1rem; }
.circuit-card { display: flex; flex-direction: column; align-items: stretch; padding: 1rem; min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.circuit-card:hover { border-color: #8b8b99; background: var(--bg-card-hover); }
.circuit-card__round { color: #ff6e68; font-size: 0.75rem; }
.circuit-card img { width: 100%; height: 130px; margin: 0.6rem 0 0.9rem; object-fit: contain; filter: invert(1); }
.circuit-card strong { font-size: 1.05rem; line-height: 1.4; }
.circuit-card__name { margin-top: 0.3rem; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.circuit-card__date { margin-top: auto; padding-top: 0.75rem; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 1000px) { .all-circuits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .all-circuits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .all-circuits-grid { grid-template-columns: 1fr; } }

.subscribe__consent { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text); font-size: 0.9rem; line-height: 1.6; cursor: pointer; }
.subscribe__consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 0.25rem; accent-color: var(--red); }
.subscribe__hint { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.subscribe__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form__status.is-error { color: #ffaaa4; }

/* The new consent and feedback controls follow the site's existing typography. */
.subscribe__consent { gap: 0.9rem; padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.025); font-family: var(--font); }
.subscribe__consent:hover { border-color: #535361; }
.subscribe__consent:focus-within { border-color: #aaaaba; }
.subscribe__consent input { width: 22px; height: 22px; flex-basis: 22px; margin-top: 0.12rem; cursor: pointer; }
.subscribe__consent-copy { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.subscribe__consent-title { color: var(--text); font-size: 1rem; font-weight: 500; line-height: 1.5; }
.subscribe__consent-detail { color: var(--muted); font-size: 0.9rem; font-weight: 400; line-height: 1.5; }
.subscribe__hint { font-family: var(--font); font-size: 0.95rem; line-height: 1.65; color: #c5c5d0; margin: 0; }
.subscribe__form .form__status { font-family: var(--font); font-size: 1rem; font-weight: 400; line-height: 1.65; padding: 0.85rem 1rem; border: 1px solid #ffffff1a; border-radius: 12px; background: #ffffff06; color: #eeeef3; }
.subscribe__form .form__status:empty { display: none; }
.subscribe__form .form__status.is-error { color: #ffb8b2; border-color: #ff8b822e; }
@media (max-width: 480px) { .subscribe__consent { padding: 0.8rem; gap: 0.75rem; } }
