/* ========================================
   500 Over 10 — Main Stylesheet — El Capitano Productions
======================================== */


/* ========================================
   Reset & Variables
======================================== */

* {
  box-sizing: border-box;
}

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --brand: #ff5b00;
  --brand-700: #ff7a1a;
  --border: #e5e7eb;
  --black: #050505;
  --hero-image: url("/assets/images/crownofnewport-background.jpg");
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}


/* ========================================
   Layout
======================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

main.container {
  max-width: none;
  padding: 0;
}


/* ========================================
   Header / Navigation
======================================== */

.header {
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  height: auto;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 150px;
  height: 150px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}


/* ========================================
   Main Nav Links
======================================== */

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nav a,
.nav button {
  width: auto;
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  color: #fff;
  text-decoration: none;
  padding: .5rem .58rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .07em;
  font-size: .86rem;
  border-radius: 0;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav button:hover,
.nav a:focus-visible,
.nav button:focus-visible {
  background: transparent;
  color: var(--brand);
  border-bottom-color: rgba(255,91,0,.55);
  outline: 2px solid transparent;
}

.nav a.active,
.nav button.active,
.active {
  color: #fff;
  border-bottom-color: var(--brand);
}


/* ========================================
   Dropdown Menu
======================================== */

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
}

.menu-item > a {
  display: flex;
  align-items: center;
}

.submenu {
  position: absolute;
  left: 0;
  top: calc(100% + .25rem);
  background: var(--black);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: .75rem;
  padding: .25rem;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  display: none;
}

.menu-item:focus-within .submenu,
.menu-item:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: .5rem .75rem;
  border-radius: .5rem;
  color: #fff;
  border-bottom: 0;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgba(255,255,255,.08);
  color: var(--brand);
}


/* ========================================
   Header Social Icons
======================================== */

.header-social {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: .45rem;
}

.header-social a {
  color: rgba(255,255,255,.85);
  font-size: 1.08rem;
  padding: .25rem;
  border-bottom: 0;
}

.header-social a:hover {
  color: var(--brand);
  transform: translateY(-1px);
}


.header-social a[aria-label="Strava"]:hover,
.footer-social a[aria-label="Strava"]:hover {
  color: #fc4c02;
}


/* ========================================
   Mobile Navigation
======================================== */

.mobile-toggle {
  width: auto;
  display: none;
  border: 1px solid rgba(255,255,255,.3);
  padding: .4rem .6rem;
  border-radius: .5rem;
  background: var(--black);
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .06em;
}


/* ========================================
   Shared Components
======================================== */

.hero {
  padding: 4rem 0 2.5rem;
}

main.container > .hero {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 780px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.section-title span {
  color: var(--brand);
}

.hero-button {
  width: auto;
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.hero-button:hover {
  background: var(--brand-700);
}


/* ========================================
   Reusable Breadcrumb
======================================== */

.site-breadcrumb {
  background: var(--black);
  color: rgba(255,255,255,.68);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.site-breadcrumb__list {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .85rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  list-style: none;
  font-size: .76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.site-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.site-breadcrumb__list li + li::before {
  content: "›";
  color: rgba(255,91,0,.85);
  font-weight: 950;
}

.site-breadcrumb a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
}

.site-breadcrumb a:hover,
.site-breadcrumb a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

.site-breadcrumb [aria-current="page"] {
  color: rgba(255,255,255,.92);
}

@media (max-width: 520px) {
  .site-breadcrumb__list {
    font-size: .68rem;
    letter-spacing: .045em;
  }
}



/* ========================================
   Shared Hero Internals
======================================== */

/*
  Use .hero-content inside every hero:
  - .home-hero
  - .page-hero
  - .course-hero
*/

.hero-content,
.home-hero__content,
.page-hero__content,
.page-hero__inner,
.course-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.hero-overlay,
.home-hero__overlay,
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,91,0,.24), transparent 35%);
  pointer-events: none;
}


/* ========================================
   Homepage Hero / Countdown
======================================== */

.home-hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.62), rgba(0,0,0,.22)),
    var(--hero-image, url("/assets/images/crownofnewport-background.jpg")) center/cover no-repeat,
    var(--black);
  color: #fff;
}



.race-kicker {
  margin: 0 0 .7rem;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}

.countdown-card {
  width: min(720px, 100%);
  margin: 2rem 0 1.25rem;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.countdown-card--link {
  display: block;
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.countdown-card--link:hover,
.countdown-card--link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,91,0,.65);
  background: rgba(0,0,0,.72);
  outline: none;
}

.countdown-card--link:hover .countdown-title,
.countdown-card--link:focus-visible .countdown-title {
  color: var(--brand-700);
}

.countdown-title {
  margin: 0 0 .75rem;
  color: var(--brand);
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  text-align: center;
}

.countdown-grid div {
  padding: .35rem .5rem;
  border-right: 1px solid rgba(255,255,255,.28);
}

.countdown-grid div:last-child {
  border-right: 0;
}

.countdown-grid strong {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
}

.countdown-grid span {
  display: block;
  margin-top: .35rem;
  color: rgba(255,255,255,.84);
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .06em;
}

.race-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  font-weight: 700;
}



/* ========================================
   Homepage Hero — Featured Event Card
======================================== */

.hero-event-card {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(150px, .48fr) minmax(0, 1fr);
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid rgba(255,91,0,.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.24), rgba(0,0,0,.78));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.hero-event-card:hover,
.hero-event-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,91,0,.9);
  background:
    linear-gradient(135deg, rgba(255,91,0,.32), rgba(0,0,0,.82));
  outline: none;
}

.hero-event-card__image {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.24), rgba(0,0,0,.18)),
    var(--event-card-image) center/cover no-repeat,
    #111;
}

.hero-event-card__content {
  display: grid;
  align-content: center;
  gap: .45rem;
  padding: 1.25rem 1.35rem;
}

.hero-event-card__kicker {
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .76rem;
}

.hero-event-card__title {
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: .95;
}

.hero-event-card__text {
  color: rgba(255,255,255,.78);
  max-width: 520px;
}

.hero-event-card__button {
  display: inline-flex;
  width: fit-content;
  margin-top: .35rem;
  padding: .72rem 1rem;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
}

.hero-event-card:hover .hero-event-card__button,
.hero-event-card:focus-visible .hero-event-card__button {
  background: var(--brand-700);
}

@media (max-width: 680px) {
  .hero-event-card {
    grid-template-columns: 1fr;
  }

  .hero-event-card__image {
    min-height: 170px;
  }
}

/* ========================================
   Generic Page Hero Helper
======================================== */

/*
  Use .page-hero on About, Podcasts, Contact, etc.
  To change the hero image on a page, add:
  style="--hero-image: url('/assets/images/your-image.jpg');"
  to the .page-hero or .course-hero section.
*/




/* ========================================
   Standard Page Hero — About / Contact / Podcasts
======================================== */

.page-hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.62), rgba(0,0,0,.22)),
    var(--hero-image, url("/assets/images/crownofnewport-background.jpg")) center/cover no-repeat,
    var(--black);
  color: #fff;
}



.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}


/* ========================================
   Homepage Feature Strip
======================================== */

.feature-strip {
  background: var(--black);
  color: #fff;
  padding: 3.5rem 1rem;
}

.feature-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  color: #fff;
}

.feature-card--highlight {
  background: linear-gradient(135deg, rgba(255,91,0,.20), rgba(255,255,255,.06));
}

.feature-card h2 {
  margin: 0 0 .85rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.25rem;
}

.feature-card p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,.78);
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.feature-card__actions {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  gap: .85rem;
}

.feature-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: .8rem 1.15rem;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.feature-button:hover,
.feature-button:focus-visible {
  background: var(--brand-700);
}

.feature-text-link {
  color: rgba(255,255,255,.86);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

.feature-text-link:hover,
.feature-text-link:focus-visible {
  color: var(--brand);
}





/* ========================================
   Course Outline Hero Mark
======================================== */

.course-hero--with-outline .hero-content {
  min-height: 460px;
  padding-right: clamp(0rem, 34vw, 430px);
}

.course-outline--hero {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 1;
  width: clamp(230px, 34vw, 430px);
  max-height: 82%;
  object-fit: contain;
  transform: translateY(-50%) rotate(-2deg);
  opacity: .96;
  filter:
    drop-shadow(0 0 18px rgba(255,91,0,.28))
    drop-shadow(0 12px 36px rgba(0,0,0,.45));
  pointer-events: none;
}

.course-hero--with-outline .course-kicker,
.course-hero--with-outline h1,
.course-hero--with-outline .course-stats {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .course-hero--with-outline .hero-content {
    min-height: auto;
    padding-right: 0;
  }

  .course-outline--hero {
    position: relative;
    right: auto;
    top: auto;
    width: min(320px, 78vw);
    max-height: none;
    margin-top: 2rem;
    transform: none;
  }
}

@media (max-width: 520px) {
  .course-outline--hero {
    width: min(260px, 76vw);
    margin-top: 1.5rem;
  }
}


/* ========================================
   Course Page — Linked Event Tile
======================================== */

.course-event-link-section {
  padding: 2rem 1rem 1rem;
}

.course-event-link-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-event-card--course {
  width: 100%;
  margin-top: 0;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
}

.hero-event-card--course .hero-event-card__image {
  min-height: 260px;
}

.hero-event-card--course .hero-event-card__content {
  padding: clamp(1.35rem, 3vw, 2rem);
}

@media (max-width: 760px) {
  .hero-event-card--course {
    grid-template-columns: 1fr;
  }

  .hero-event-card--course .hero-event-card__image {
    min-height: 190px;
  }
}

/* ========================================
   Course Pages
======================================== */

.course-hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.62), rgba(0,0,0,.20)),
    var(--hero-image, url("/assets/images/crownofnewport-background.jpg")) center/cover no-repeat,
    var(--black);
  color: #fff;
}

.course-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,91,0,.25), transparent 34%);
}


.course-kicker {
  margin: 0 0 .75rem;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-hero h1 {
  max-width: 855px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-shadow: 0 3px 18px rgba(0,0,0,.45);
}

.course-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.course-stat {
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(0,0,0,.52);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.course-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.dark-panel {
  background: var(--black);
  color: #fff;
  max-width: none;
}

.dark-panel__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.info-card h2 {
  margin-top: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.1rem;
}

.routes-panel {
  max-width: none;
  margin: 0;
  padding: 4rem 1rem;
  background: var(--black);
  color: #fff;
}

.routes-panel__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/*
  Compatibility for existing course pages that do not yet wrap the
  Strava Maps content in .routes-panel__inner. This keeps the dark
  section full-width while constraining the heading and route tiles.
*/
.routes-panel > .section-title,
.routes-panel > .route-card {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.routes-panel .section-title {
  color: #fff;
}

.route-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.route-card:last-child {
  margin-bottom: 0;
}

.route-card h2 {
  margin: 0 0 1rem;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.1;
}

.route-segment {
  display: block;
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,91,0,.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.10), rgba(0,0,0,.03));
  color: #1f2937;
  text-decoration: none;
}

.route-segment--link {
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.route-segment--link:hover,
.route-segment--link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,91,0,.62);
  background:
    linear-gradient(135deg, rgba(255,91,0,.18), rgba(0,0,0,.04));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  outline: none;
}

.route-segment--link:focus-visible {
  outline: 3px solid rgba(255,91,0,.34);
  outline-offset: 3px;
}

.route-segment__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.route-segment__content > span:first-child {
  color: #1f2937;
  font-weight: 650;
}

.route-segment strong {
  color: var(--black);
  font-weight: 950;
}

.route-segment__cta {
  display: inline-flex;
  flex: 0 0 auto;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.route-segment--link:hover .route-segment__cta,
.route-segment--link:focus-visible .route-segment__cta {
  background: var(--brand-700);
}

@media (max-width: 640px) {
  .route-segment__content {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ========================================
   Strava Embeds
======================================== */

.strava-embed-placeholder {
  min-height: 480px;
}


/* ========================================
   Podcast Page
======================================== */

.podcast-section {
  background: var(--black);
  color: #fff;
  padding: 4rem 1rem;
}

.podcast-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.podcast-latest {
  margin-bottom: 4rem;
}

.podcast-season {
  margin-top: 4rem;
}

.podcast-season__header {
  margin-bottom: 1.5rem;
}

.podcast-season__header p {
  color: rgba(255,255,255,.72);
  max-width: 760px;
}

.podcast-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.podcast-grid--archive {
  grid-template-columns: repeat(3, 1fr);
}

.podcast-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
}

.podcast-card--featured {
  max-width: 820px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.podcast-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem;
}

.podcast-kicker {
  margin: 0 0 .4rem;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.podcast-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.podcast-card p {
  color: rgba(255,255,255,.78);
}

.podcast-card__content p:last-of-type {
  margin-bottom: 1rem;
}

.podcast-link {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);

  display: inline-flex;
  align-items: center;
  gap: .55rem;

  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: .88rem;

  transition: color .2s ease, transform .2s ease;
}

.podcast-link:hover {
  color: #1DB954;
  transform: translateY(-1px);
}

.podcast-link i {
  font-size: 1.2rem;
}


/* ========================================
   Forms
======================================== */

label {
  display: block;
  font-weight: 600;
  margin-top: .75rem;
}

input,
textarea,
select,
button {
  font: inherit;
  padding: .6rem .7rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  width: 100%;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

button.primary {
  background: var(--brand);
  color: white;
  border-color: transparent;
  cursor: pointer;
}

button.primary:hover {
  background: var(--brand-700);
}

.helper {
  color: var(--muted);
  font-size: .9rem;
}



/* ========================================
   Contact Page
======================================== */

.contact-section {
  padding: 4rem 1rem;
}

.contact-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
  gap: 1.25rem;
  align-items: start;
}

.contact-panel {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
}

.contact-panel--form {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.contact-panel--aside {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.contact-intro {
  max-width: 720px;
  margin-top: -0.25rem;
  color: rgba(255,255,255,.74);
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-form__row {
  display: grid;
  gap: .4rem;
}

.contact-form label {
  margin: 0;
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .78rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  background: rgba(0,0,0,.34);
  color: #fff;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.42);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(255,91,0,.8);
  outline: 2px solid rgba(255,91,0,.28);
  outline-offset: 2px;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.82) 50%),
    linear-gradient(135deg, rgba(255,255,255,.82) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form textarea {
  min-height: 190px;
}

.contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: grid;
  gap: .8rem;
  align-items: center;
  justify-items: start;
  margin-top: .35rem;
}

.contact-form__submit {
  border: 0;
  cursor: pointer;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: .72;
}

.contact-form__status {
  margin: 0;
  min-height: 1.5rem;
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.contact-form__status.is-success {
  color: #7CFF9B;
}

.contact-form__status.is-error {
  color: #ffb199;
}

.contact-info-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(0,0,0,.22);
}

.contact-info-card h2 {
  margin: 0 0 .65rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.05rem;
}

.contact-info-card p {
  margin: 0 0 .9rem;
  color: rgba(255,255,255,.76);
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   Footer
======================================== */

.footer {
  background: var(--black);
  color: rgba(255,255,255,.82);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-left p {
  margin: 0;
  line-height: 1.6;
}

.footer-slogan {
  margin: 0 0 .35rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.footer-copyright {
  margin: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.footer-copyright a {
  color: rgba(255,255,255,.7);
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.65);
  text-underline-offset: .2rem;
}

.footer-copyright a:hover {
  color: var(--brand);
}

.footer-social-wrap {
  text-align: right;
}

.footer-social-heading {
  margin: 0 0 .45rem;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,.82);
  font-size: 1.6rem;
  transition: color .2s ease, transform .2s ease;
}

.footer-social a:hover {
  color: var(--brand);
  transform: translateY(-2px);
}


/* ========================================
   Footer Sitemap
======================================== */

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-link-group h2 {
  margin: 0 0 .8rem;
  color: var(--brand);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-link-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .42rem;
}

.footer-link-group a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
}

.footer-link-group a:hover,
.footer-link-group a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

@media (max-width: 950px) {
  .footer-sitemap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .footer-sitemap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 460px) {
  .footer-sitemap {
    grid-template-columns: 1fr;
  }
}



/* ========================================
   Responsive
======================================== */



/* Podcast dynamic archive helpers */
.podcast-loading,
.podcast-error {
  color: rgba(255,255,255,.72);
  margin: 0;
}

.podcast-error {
  color: #ffb199;
}

.podcast-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
}

.podcast-link:hover,
.podcast-link:focus-visible {
  color: var(--brand);
}


@media (max-width: 900px) {
  .header-social {
    display: none;
  }
}

@media (max-width: 800px) {
  .nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: .5rem;
  }

  .nav.open {
    display: grid;
    gap: .25rem;
  }

  .menu-item {
    position: static;
  }

  .submenu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-left: 1rem;
  }

  .menu-item.open .submenu {
    display: block;
  }

  .mobile-toggle {
  width: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
  }

  .brand img {
    width: 120px;
    height: 120px;
    max-height: 62px;
  }

  .hero-content,
  .home-hero__content,
  .page-hero__content,
  .page-hero__inner,
  .course-hero__inner {
    padding: 4rem 0;
  }

  .home-hero {
    min-height: 680px;
  }

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

  .countdown-grid div:nth-child(2) {
    border-right: 0;
  }

  .feature-strip__inner {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .course-hero {
    min-height: 550px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    margin-top: .5rem;
  }

  .footer-social-wrap {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .podcast-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .podcast-grid--archive {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   Results Page
======================================== */

.results-section {
  background: var(--black);
  color: #fff;
  padding: 4rem 1rem;
}

.results-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.results-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}

.results-controls label {
  margin: 0;
}

.results-controls span {
  display: block;
  margin-bottom: .4rem;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
}

.results-controls select {
  width: 100%;
  background: #fff;
  color: var(--text);
}

.results-summary {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.results-summary-card {
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}

.results-summary-card--winner {
  background: linear-gradient(135deg, rgba(255,91,0,.24), rgba(255,255,255,.06));
}

.results-summary-card p {
  margin: 0;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .78rem;
  font-weight: 900;
}

.results-summary-card strong {
  display: block;
  margin-top: .35rem;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -1.5rem 0 3rem;
}

.results-meta span {
  padding: .55rem .8rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .78rem;
}

.results-table-wrap {
  overflow-x: auto;
  margin-bottom: 4rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}

.results-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: rgba(255,255,255,.04);
}

.results-table th,
.results-table td {
  padding: .85rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: left;
  vertical-align: middle;
}

.results-table th {
  color: var(--brand);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(0,0,0,.35);
}

.results-table tr:last-child td {
  border-bottom: 0;
}

.results-table a {
  color: #fff;
  text-decoration: none;
}

.results-table a:hover {
  color: var(--brand);
}

.results-table tr.is-dns,
.results-table tr.is-dq,
.results-table tr.is-dnf {
  opacity: .72;
}

.results-place {
  font-weight: 950;
  white-space: nowrap;
}

.results-athlete {
  font-weight: 900;
}

.results-athlete small {
  display: block;
  margin-top: .15rem;
  color: rgba(255,255,255,.55);
  font-weight: 700;
}

.results-status {
  display: inline-flex;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.86);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.results-status--finished {
  background: rgba(46,204,113,.18);
}

.results-status--dq {
  background: rgba(255,91,0,.2);
}

.results-status--dns {
  background: rgba(255,255,255,.12);
}

.results-status--dnf {
  background: rgba(255,255,255,.12);
}

.result-diff--fast {
  color: #7CFF9B;
  font-weight: 950;
}

.result-diff--slow {
  color: #ffb199;
  font-weight: 950;
}

.result-diff--neutral {
  color: rgba(255,255,255,.82);
  font-weight: 950;
}

.results-note {
  color: rgba(255,255,255,.58);
  font-size: .82rem;
}

.race-replay {
  margin-bottom: 4rem;
}

.race-replay__intro {
  max-width: 780px;
  color: rgba(255,255,255,.72);
}

.race-replay__axis {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0 .8rem;
  color: rgba(255,255,255,.58);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.race-replay__rows {
  display: grid;
  gap: .65rem;
}

.race-replay-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr minmax(72px, auto);
  gap: 1rem;
  align-items: center;
}

.race-replay-name {
  color: rgba(255,255,255,.88);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.race-replay-track {
  position: relative;
  min-height: 18px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}

.race-replay-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #ffb36b);
}

.race-replay-place {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.results-stat {
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
}

.results-stat p {
  margin: 0 0 .4rem;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.results-stat strong {
  display: block;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.results-stat span {
  display: block;
  color: rgba(255,255,255,.7);
  margin-top: .25rem;
}

@media (max-width: 900px) {
  .results-summary,
  .results-stats {
    grid-template-columns: 1fr;
  }

  .race-replay-row {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .race-replay-place {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .results-controls {
    grid-template-columns: 1fr;
  }
}




/* ========================================
   Results Page — Race Replay Restored
======================================== */

.results-table {
  min-width: 1120px;
}

.results-stats {
  margin-bottom: 4rem;
}

.race-replay {
  margin-top: 0;
  margin-bottom: 4rem;
}

.race-replay__intro {
  max-width: 820px;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,.72);
}

.race-replay-grid {
  display: grid;
  grid-template-columns: 42px minmax(150px, 210px) 72px minmax(340px, 1fr) minmax(82px, 110px);
  gap: .85rem;
  align-items: center;
}

.race-replay-grid--scale {
  margin: 0 0 .75rem;
}

.race-replay-scale {
  position: relative;
  height: 34px;
  grid-column: 4;
}

.race-replay-scale::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: rgba(255,255,255,.28);
}

.race-replay-scale__label {
  position: absolute;
  top: 0;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 900;
  transform: translateX(-50%);
  white-space: nowrap;
}

.race-replay-scale__label:first-child {
  transform: translateX(0);
}

.race-replay-scale__label:nth-last-child(2) {
  transform: translateX(-100%);
}

.race-replay-scale__tick {
  position: absolute;
  bottom: 3px;
  width: 2px;
  height: 11px;
  background: rgba(255,255,255,.55);
  border-radius: 999px;
  transform: translateX(-50%);
}

.race-replay-scale__tick:nth-child(2) {
  transform: translateX(0);
}

.race-replay-scale__tick:last-child {
  transform: translateX(-100%);
}

.race-replay__rows {
  display: grid;
  gap: .7rem;
}

.race-replay-row {
  display: grid;
  grid-template-columns: 42px minmax(150px, 210px) 72px minmax(340px, 1fr) minmax(82px, 110px);
  gap: .85rem;
  align-items: center;
}

.race-replay-rank {
  color: rgba(255,255,255,.72);
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.race-replay-runner strong,
.race-replay-finish strong,
.race-replay-handicap {
  display: block;
  color: rgba(255,255,255,.9);
  font-weight: 900;
  line-height: 1.2;
}

.race-replay-handicap {
  color: rgba(255,255,255,.66);
  font-size: .82rem;
  text-align: right;
  white-space: nowrap;
}

.race-replay-track {
  position: relative;
  min-height: 18px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: visible;
}

.race-replay-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #ffb36b);
}

.race-replay-finish-marker {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,.45);
}

.race-replay-finish {
  text-align: right;
}

@media (max-width: 900px) {
  .race-replay-grid--scale {
    display: none;
  }

  .race-replay-grid,
  .race-replay-row {
    grid-template-columns: 42px 1fr;
    gap: .4rem .75rem;
  }

  .race-replay-handicap,
  .race-replay-track,
  .race-replay-finish {
    grid-column: 2;
  }

  .race-replay-rank,
  .race-replay-handicap,
  .race-replay-finish {
    text-align: left;
  }
}


/* ========================================
   Results Page — Missing Replay Times
======================================== */

.race-replay-row--no-time .race-replay-track {
  background: rgba(255,255,255,.045);
}

.race-replay-row--no-time .race-replay-finish strong {
  color: rgba(255,255,255,.55);
}


/* ========================================
   Results Page — Summary & Stats Updates
======================================== */

.results-summary-card span {
  display: block;
  color: rgba(255,255,255,.58);
  margin-top: .25rem;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.results-stats {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
  .results-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .results-stats {
    grid-template-columns: 1fr;
  }
}




/* ========================================
   Videos Page
======================================== */

.video-section {
  background: var(--black);
  color: #fff;
  padding: 4rem 1rem;
}

.video-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.video-latest {
  margin-bottom: 4rem;
}

.video-archive {
  margin-top: 4rem;
}

.video-archive__header {
  margin-bottom: 1.5rem;
}

.video-archive__header p {
  color: rgba(255,255,255,.72);
  max-width: 760px;
}

.video-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.video-grid--archive {
  grid-template-columns: repeat(3, 1fr);
}

.video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
}

.video-card--featured {
  max-width: 820px;
}

.video-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem;
}

.video-kicker {
  margin: 0 0 .4rem;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.video-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.video-card p {
  color: rgba(255,255,255,.78);
}

.video-card__subtitle {
  margin: 0 0 .75rem;
  color: rgba(255,255,255,.9);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255,91,0,.18), rgba(255,255,255,.05)),
    #111;
  color: #fff;
  text-align: center;
}

.video-placeholder div {
  display: grid;
  gap: .75rem;
  justify-items: center;
}

.video-placeholder i {
  color: var(--brand);
  font-size: 3rem;
}

.video-placeholder strong {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.video-status {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
  color: var(--brand) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: .88rem;
}

@media (max-width: 768px) {
  .video-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .video-grid--archive {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   Results Page — Three Tile Summary
======================================== */

.results-summary {
  grid-template-columns: 1.4fr 1fr 1fr;
}

@media (max-width: 900px) {
  .results-summary {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   Results Page — DQ Replay State
======================================== */

.race-replay-row--dq .race-replay-rank {
  color: #ff9a9a;
}

.race-replay-row--dq .race-replay-runner strong {
  color: #ffd1d1;
}

.race-replay-row--dq .race-replay-track {
  background: rgba(158,42,43,.18);
}

.race-replay-bar--dq {
  background: linear-gradient(90deg, #8f1f1f, #d94b4b);
}

.race-replay-bar--dq .race-replay-finish-marker {
  background: #ffd1d1;
}



/* ========================================
   In-Page Anchor Links
======================================== */

.story-card[id],
.format-card[id],
#committee,
#team-title {
  scroll-margin-top: 110px;
}

.info-card__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: .2rem;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

.info-card__link:hover,
.info-card__link:focus-visible {
  color: var(--brand);
}

/* ========================================
   About / Events / Courses Listing Pages
======================================== */

.hero-subtitle {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 650;
}

.about-section,
.directory-section {
  background: var(--black);
  color: #fff;
  padding: 4rem 1rem;
}

.about-section__inner,
.directory-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-intro,
.directory-intro {
  max-width: 860px;
  margin-bottom: 3rem;
}

.about-intro p,
.directory-intro p,
.country-block__intro {
  color: rgba(255,255,255,.74);
  font-size: 1.05rem;
}

.story-grid,
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

.story-card,
.format-card {
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.story-card h2,
.format-card h2 {
  margin: 0 0 .75rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.05rem;
}

.story-card p,
.format-card p {
  color: rgba(255,255,255,.76);
}

.story-card p:last-child,
.format-card p:last-child {
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.team-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #111;
}

.team-card__content {
  padding: 1.15rem 1.2rem 1.3rem;
}

.team-card h3 {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
}

.team-card p {
  margin: .35rem 0 0;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
}

.country-block {
  margin-top: 3.5rem;
}

.country-block:first-of-type {
  margin-top: 0;
}

.country-heading {
  margin: 0 0 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.directory-grid--single {
  grid-template-columns: 1fr;
}

.directory-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.directory-card:hover,
.directory-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,91,0,.55);
  background: rgba(255,255,255,.09);
  outline: none;
}

.directory-card--stacked {
  flex-direction: column;
}

.directory-card--featured {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.directory-card__image {
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.18), rgba(0,0,0,.15)),
    var(--card-image, url('/assets/images/B500-setup-dark-background.jpg')) center/cover no-repeat,
    #111;
}

.directory-card--featured .directory-card__image {
  min-height: 360px;
}

.directory-card__content {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.45rem;
}

.directory-card__kicker {
  margin: 0 0 .45rem;
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.directory-card h3 {
  margin: 0 0 .55rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.05;
}

.directory-card p {
  margin: 0 0 1rem;
  color: rgba(255,255,255,.74);
}

.directory-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.directory-card__meta span {
  display: inline-flex;
  padding: .4rem .6rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .72rem;
}


/* ========================================
   Courses Page — Course Atlas
======================================== */

.course-atlas-section {
  padding: 4rem 1rem 1rem;
}

.course-atlas-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.course-atlas-intro {
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.course-atlas-intro p:last-child {
  color: rgba(255,255,255,.74);
  font-size: 1.05rem;
}

.course-atlas-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.16), rgba(255,255,255,.05));
  box-shadow: 0 18px 60px rgba(0,0,0,.3);
}

.course-atlas-map {
  min-height: 430px;
  height: min(68vh, 640px);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,91,0,.2), transparent 34%),
    #050505;
}

.course-atlas-message {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: rgba(255,255,255,.72);
  text-align: center;
  font-weight: 800;
}

.course-atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.38);
}

.course-atlas-legend span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.78);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .72rem;
}

.course-atlas-dot {
  width: .72rem;
  height: .72rem;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.7);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,91,0,.16);
}

.course-atlas-dot--race,
.course-atlas-marker--race {
  background: var(--brand);
}

.course-atlas-dot--ratified,
.course-atlas-marker--ratified {
  background: #7CFF9B;
}

.course-atlas-dot--draft,
.course-atlas-marker--draft {
  background: #ffb36b;
}

.course-atlas-dot--prospect,
.course-atlas-marker--prospect {
  background: rgba(255,255,255,.8);
}

.course-atlas-marker {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 0 0 4px rgba(0,0,0,.32),
    0 0 18px rgba(255,91,0,.45);
  transition: transform .18s ease, box-shadow .18s ease;
}

.course-atlas-marker:hover,
.course-atlas-marker:focus-visible {
  transform: scale(1.18);
  box-shadow:
    0 0 0 5px rgba(0,0,0,.38),
    0 0 24px rgba(255,91,0,.65);
  outline: none;
}

.course-atlas-section .mapboxgl-ctrl-attrib,
.course-atlas-section .mapboxgl-ctrl-group {
  font: inherit;
}

.course-atlas-section .mapboxgl-popup-content {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,91,0,.45);
  border-radius: 16px;
  background: #050505;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.course-atlas-section .mapboxgl-popup-tip {
  border-top-color: #050505;
}

.course-atlas-section .mapboxgl-popup-close-button {
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,.76);
  font-size: 1.3rem;
}

.course-atlas-section .mapboxgl-popup-close-button:hover {
  background: rgba(255,91,0,.18);
  color: #fff;
}

.course-atlas-popup {
  min-width: 245px;
  padding: 1rem;
}

.course-atlas-popup__kicker {
  margin: 0 1.4rem .35rem 0;
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}

.course-atlas-popup h3 {
  margin: 0 0 .75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.2rem;
  line-height: 1;
}

.course-atlas-popup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .9rem;
}

.course-atlas-popup__meta span {
  display: inline-flex;
  padding: .32rem .48rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: .68rem;
}

.course-atlas-popup__status--race {
  border-color: rgba(255,91,0,.58) !important;
  background: rgba(255,91,0,.18);
}

.course-atlas-popup__status--ratified {
  border-color: rgba(124,255,155,.42) !important;
  background: rgba(124,255,155,.12);
}

.course-atlas-popup__status--draft {
  border-color: rgba(255,179,107,.5) !important;
  background: rgba(255,179,107,.14);
}

.course-atlas-popup__status--prospect {
  border-color: rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.08);
}

.course-atlas-popup__link {
  display: inline-flex;
  width: fit-content;
  padding: .65rem .85rem;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  text-decoration: none;
}

.course-atlas-popup__link:hover,
.course-atlas-popup__link:focus-visible {
  background: var(--brand-700);
}

@media (max-width: 680px) {
  .course-atlas-section {
    padding-top: 3rem;
  }

  .course-atlas-map,
  .course-atlas-message {
    min-height: 380px;
    height: 62vh;
  }

  .course-atlas-legend {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ========================================
   Course Directory Status Labels
======================================== */

.course-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.directory-status {
  border-color: rgba(255,91,0,.55) !important;
  color: #fff !important;
  background: rgba(255,91,0,.16) !important;
}

.directory-status--race {
  border-color: rgba(255,91,0,.72) !important;
  background: rgba(255,91,0,.24) !important;
}

.directory-status--ratified {
  border-color: rgba(124,255,155,.45) !important;
  background: rgba(124,255,155,.13) !important;
}

.directory-status--draft {
  border-color: rgba(255,179,107,.5) !important;
  background: rgba(255,179,107,.14) !important;
}

.directory-status--prospect {
  border-color: rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.08) !important;
}

@media (max-width: 950px) {
  .team-grid,
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .directory-card--featured {
    grid-template-columns: 1fr;
  }
  .directory-card--featured .directory-card__image {
    min-height: 260px;
  }
}

@media (max-width: 680px) {
  .story-grid,
  .format-grid,
  .team-grid,
  .directory-grid,
  .directory-grid--single {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Header — Events Dropdown Update
======================================== */

.menu-item--events .submenu {
  min-width: 260px;
}

@media (max-width: 800px) {
  .menu-item {
    display: block;
  }

  .menu-item.open > a {
    color: var(--brand);
  }
}

/* ========================================
   Previous Champions
======================================== */

.previous-champions {
  margin-top: 4rem;
}

.champions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.champion-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.champion-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #111;
}

.champion-card__content {
  padding: 1.25rem 1.5rem;
}

.champion-card__year {
  margin: 0 0 .35rem;
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.champion-card h3 {
  margin: 0 0 .45rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.35rem;
}

.champion-card p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.champion-card strong {
  color: rgba(255,255,255,.9);
}

@media (max-width: 680px) {
  .champions-grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   Event Page — Champion Story Cards
======================================== */

.champion-card__story {
  margin-top: .85rem !important;
  color: rgba(255,255,255,.72) !important;
  font-size: .95rem;
  line-height: 1.58;
}

.previous-champions .champion-card__content p + p {
  margin-top: .55rem;
}

.previous-champions .champion-card h3 {
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1.02;
}

.previous-champions .champion-card {
  display: flex;
  flex-direction: column;
}

.previous-champions .champion-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ========================================
   Course Key Features
======================================== */

.course-features {
  margin-top: 4rem;
}

.course-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.course-feature-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.course-feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #111;
}

.course-feature-card__content {
  padding: 1.25rem 1.5rem;
}

.course-feature-card h3 {
  margin: 0 0 .55rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.25rem;
  line-height: 1.1;
}

.course-feature-card p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

@media (max-width: 680px) {
  .course-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Course Feature Detail Pages
======================================== */

.course-feature-card {
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.course-feature-card:hover,
.course-feature-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,91,0,.55);
  background: rgba(255,255,255,.09);
  outline: none;
}

.feature-detail-section {
  padding: 4rem 1rem;
}

.feature-detail-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.feature-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,.58);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .76rem;
}

.feature-breadcrumb a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
}

.feature-breadcrumb a:hover,
.feature-breadcrumb a:focus-visible {
  color: var(--brand);
}

.feature-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .85fr);
  gap: 1.5rem;
  align-items: start;
}

.feature-detail-main {
  display: grid;
  gap: 1rem;
}

.feature-detail-card,
.feature-quick-facts,
.feature-image-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.feature-detail-card,
.feature-quick-facts {
  padding: 1.35rem 1.5rem;
}

.feature-detail-card h2,
.feature-quick-facts h2 {
  margin: 0 0 .75rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.05rem;
}

.feature-detail-card p,
.feature-quick-facts p,
.feature-source-list {
  color: rgba(255,255,255,.76);
}

.feature-detail-card p:last-child,
.feature-quick-facts p:last-child {
  margin-bottom: 0;
}

.feature-detail-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}

.feature-image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #111;
}

.feature-quick-facts dl {
  display: grid;
  gap: .85rem;
  margin: 0;
}

.feature-quick-facts dl div {
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.feature-quick-facts dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.feature-quick-facts dt {
  margin: 0 0 .2rem;
  color: rgba(255,255,255,.52);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}

.feature-quick-facts dd {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-weight: 800;
}

.feature-quick-facts a,
.feature-source-list a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

.feature-quick-facts a:hover,
.feature-source-list a:hover,
.feature-quick-facts a:focus-visible,
.feature-source-list a:focus-visible {
  color: var(--brand);
}

.feature-source-list {
  margin: .75rem 0 0;
  padding-left: 1.15rem;
}

.feature-source-list li + li {
  margin-top: .45rem;
}

@media (max-width: 900px) {
  .feature-detail-layout {
    grid-template-columns: 1fr;
  }

  .feature-detail-aside {
    position: static;
  }
}

/* ========================================
   Course Outline Hero Mark — Corrected
======================================== */

.course-hero--with-outline {
  isolation: isolate;
}

.course-hero--with-outline::after {
  z-index: 0;
}

.course-hero--with-outline .hero-content {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding-right: clamp(0rem, 36vw, 470px);
}

.course-outline--hero {
  position: absolute;
  top: 50%;
  right: max(1.5rem, calc((100vw - 1100px) / 2 + 1rem));
  z-index: 1;
  width: clamp(320px, 32vw, 500px);
  max-height: 78%;
  display: block;
  object-fit: contain;
  transform: translateY(-50%) rotate(-2deg);
  opacity: .98;
  filter:
    drop-shadow(0 0 22px rgba(255,91,0,.35))
    drop-shadow(0 16px 42px rgba(0,0,0,.55));
  pointer-events: none;
}

.course-hero--with-outline .course-kicker,
.course-hero--with-outline h1,
.course-hero--with-outline .course-stats {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .course-hero--with-outline .hero-content {
    padding-right: 0;
  }

  .course-outline--hero {
    position: relative;
    top: auto;
    right: auto;
    width: min(340px, 78vw);
    max-height: none;
    margin: 2rem auto 0;
    transform: none;
  }
}

@media (max-width: 520px) {
  .course-outline--hero {
    width: min(270px, 76vw);
    margin-top: 1.5rem;
  }
}

/* ========================================
   Course Outline Hero Mark — Mobile Behind Text
======================================== */

/*
  Desktop keeps the large floating course outline on the right.
  Mobile places the outline directly behind the hero text as a low-opacity
  watermark, so it becomes part of the hero identity rather than a separate
  image competing for space.
*/

@media (max-width: 900px) {
  .course-hero--with-outline {
    min-height: 720px;
    overflow: hidden;
  }

  .course-hero--with-outline .hero-content {
    position: relative;
    z-index: 2;
    padding-right: 0;
  }

  .course-outline--hero {
    position: absolute;
    top: 55%;
    left: 50%;
    right: auto;
    z-index: 1;
    width: min(560px, 128vw);
    max-height: none;
    margin: 0;
    transform: translate(-50%, -50%) rotate(-3deg);
    opacity: .60;
    filter:
      drop-shadow(0 0 18px rgba(255,91,0,.18))
      drop-shadow(0 12px 30px rgba(0,0,0,.34));
  }

  .course-hero--with-outline .course-kicker,
  .course-hero--with-outline h1,
  .course-hero--with-outline .course-stats {
    position: relative;
    z-index: 3;
  }
}

@media (max-width: 520px) {
  .course-hero--with-outline {
    min-height: 720px;
  }

  .course-outline--hero {
    top: 56%;
    left: 53%;
    width: 138vw;
    opacity: .40;
  }
}

@media (max-width: 390px) {
  .course-outline--hero {
    left: 54%;
    width: 148vw;
    opacity: .40;
  }
}


/* ========================================
   Course Outline Hero Mark — Wide Course Outlines
======================================== */

/*
  Use this modifier for horizontally stretched course outline images,
  such as Tamworth, so they carry similar visual weight to the square
  Bilgola outline without forcing every course mark to become larger.
*/

.course-hero--wide-outline .hero-content {
  padding-right: clamp(0rem, 43vw, 560px);
}

.course-outline--wide {
  width: clamp(420px, 44vw, 720px);
  max-height: 70%;
  transform: translateY(-50%) rotate(-1deg);
}

@media (max-width: 900px) {
  .course-hero--wide-outline .hero-content {
    padding-right: 0;
  }

  .course-outline--wide {
    width: min(760px, 150vw);
    transform: translate(-50%, -50%) rotate(-2deg);
    opacity: .46;
  }
}

@media (max-width: 520px) {
  .course-outline--wide {
    width: 162vw;
    opacity: .34;
  }
}

@media (max-width: 390px) {
  .course-outline--wide {
    width: 172vw;
    opacity: .32;
  }
}

/* ========================================
   Events Page — Upcoming Races
======================================== */

.upcoming-races {
  background: var(--black);
  color: #fff;
  padding: 4rem 1rem 2rem;
}

.upcoming-races__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.upcoming-race-card {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.45fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.18), rgba(255,255,255,.06));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.upcoming-race-card:hover,
.upcoming-race-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,91,0,.6);
  background:
    linear-gradient(135deg, rgba(255,91,0,.24), rgba(255,255,255,.08));
  outline: none;
}

.upcoming-race-date {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,255,255,.14), transparent 34%),
    linear-gradient(135deg, rgba(255,91,0,.96), rgba(115,34,0,.92));
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.16);
}

.upcoming-race-date__weekday,
.upcoming-race-date__month,
.upcoming-race-date__year {
  display: block;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.upcoming-race-date__weekday {
  font-size: .85rem;
  color: rgba(255,255,255,.82);
}

.upcoming-race-date strong {
  display: block;
  margin: .2rem 0;
  font-size: clamp(5rem, 13vw, 9rem);
  line-height: .82;
  letter-spacing: -.06em;
  text-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.upcoming-race-date__month {
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  line-height: 1;
}

.upcoming-race-date__year {
  margin-top: .45rem;
  color: rgba(255,255,255,.76);
  font-size: .9rem;
}

.upcoming-race-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.upcoming-race-detail h3 {
  margin: 0 0 .8rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: .95;
}

.upcoming-race-detail p {
  max-width: 720px;
  color: rgba(255,255,255,.76);
}

.upcoming-race-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.35rem;
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

.upcoming-race-card:hover .upcoming-race-link,
.upcoming-race-card:focus-visible .upcoming-race-link {
  color: var(--brand);
}

@media (max-width: 780px) {
  .upcoming-race-card {
    grid-template-columns: 1fr;
  }

  .upcoming-race-date {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
  }
}


/* ========================================
   Events Page — Upcoming Event List
======================================== */

.upcoming-race-list {
  display: grid;
  gap: 1.25rem;
}

.upcoming-race-card--image {
  text-decoration: none;
}

.upcoming-race-date--image {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,91,0,.76), rgba(0,0,0,.72)),
    var(--race-card-image) center/cover no-repeat,
    #111;
}

.upcoming-race-date--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.18), transparent 38%),
    linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.58));
}

.upcoming-race-date--image > * {
  position: relative;
  z-index: 1;
}

.upcoming-race-date__day-range {
  font-size: clamp(3.8rem, 10vw, 7rem) !important;
  letter-spacing: -.09em !important;
}

.upcoming-race-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

.event-contact-note {
  font-size: .95rem;
  color: rgba(255,255,255,.66) !important;
}

@media (max-width: 780px) {
  .upcoming-race-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ========================================
   Event Page — Standalone Countdown
======================================== */

.event-countdown-section {
  padding: 3rem 1rem 1rem;
}

.event-countdown-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.countdown-card--event {
  width: min(820px, 100%);
  margin: 0;
}

.countdown-card--event .countdown-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

@media (max-width: 800px) {
  .event-countdown-section {
    padding-top: 2rem;
  }
}



/* ========================================
   Event Page — Winner Announcement
======================================== */

.winner-announcement-section {
  padding: 2rem 1rem 1rem;
}

.winner-announcement-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.winner-announcement-card {
  overflow: hidden;
  border: 1px solid rgba(255,91,0,.48);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.20), rgba(255,255,255,.06));
  box-shadow: 0 18px 60px rgba(0,0,0,.26);
}

.winner-announcement-card--podium {
  display: grid;
  grid-template-columns: 1fr;
}

.winner-announcement-card__image {
  margin: 0;
  background: #111;
}

.winner-announcement-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: block;
  object-fit: cover;
  background: #111;
}

.winner-announcement-card__content {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.winner-announcement-card__kicker {
  margin: 0 0 .45rem;
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
}

.winner-announcement-card h2 {
  max-width: 920px;
  margin: 0 0 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: .95;
}

.winner-announcement-card p {
  color: rgba(255,255,255,.78);
}

.winner-announcement-card__copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.winner-announcement-card__copy p {
  margin: 0;
}

.winner-announcement-card__signoff {
  margin-top: 1.25rem;
  color: rgba(255,255,255,.92) !important;
  font-weight: 900;
}

.winner-podium {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
}

.winner-podium span {
  display: inline-flex;
  padding: .5rem .7rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.9);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78rem;
}

@media (max-width: 860px) {
  .winner-announcement-card__copy {
    grid-template-columns: 1fr;
  }

  .winner-announcement-card h2 {
    font-size: clamp(1.85rem, 10vw, 3.2rem);
  }
}

/* ========================================
   Event Page — Current Champion
======================================== */

.current-champion {
  margin-top: 4rem;
}

.champions-grid--current {
  grid-template-columns: minmax(0, 1fr);
}

.champion-card--current {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
}

.champion-card--current img {
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
}

.champion-card--current .champion-card__content {
  display: grid;
  align-content: center;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.champion-card--current h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: .95;
}

.champion-card--current p + p {
  margin-top: .65rem;
}

@media (max-width: 760px) {
  .champion-card--current {
    grid-template-columns: 1fr;
  }

  .champion-card--current img {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

/* ========================================
   Event Page — Welcome Pack Tile
======================================== */

.welcome-pack-section {
  padding: 2rem 1rem 1rem;
}

.welcome-pack-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.welcome-pack-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.20), rgba(255,255,255,.06));
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.welcome-pack-card__content {
  max-width: 780px;
}

.welcome-pack-card__kicker {
  margin: 0 0 .35rem;
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.welcome-pack-card h2 {
  margin: 0 0 .55rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.welcome-pack-card p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.welcome-pack-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.welcome-pack-card__meta span {
  display: inline-flex;
  padding: .4rem .6rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  color: rgba(255,255,255,.86);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .72rem;
}

.welcome-pack-card__actions {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .welcome-pack-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ========================================
   Event Page — Previous Races
======================================== */

.previous-races {
  margin-top: 4rem;
}

.previous-races-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.previous-race-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.previous-race-card__content {
  padding: 1.25rem 1.5rem 1rem;
}

.previous-race-card h3 {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.35rem;
}

.previous-race-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #111;
}

@media (max-width: 680px) {
  .previous-races-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Event Page — Related Links
======================================== */

.event-links-section {
  padding: 4rem 1rem;
}

.event-links-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.event-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.event-link-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.event-link-card h2 {
  margin: 0 0 .75rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.05rem;
}

.event-link-card p {
  color: rgba(255,255,255,.76);
}

.event-link-card p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .event-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Reusable Inline Content Links
======================================== */

.content-link {
  color: #fff;
  font-weight: normal;
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

.content-link:hover,
.content-link:focus-visible {
  color: var(--brand);
}

/* ========================================
   Reusable Feature Gallery
======================================== */

.feature-gallery > p {
  margin-top: 0;
  color: rgba(255,255,255,.76);
}

.feature-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-gallery-card {
  display: block;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  color: #fff;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.feature-gallery-card:hover,
.feature-gallery-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(255,91,0,.55);
  background: rgba(255,255,255,.09);
}

.feature-gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.feature-gallery-trigger:focus-visible {
  outline: 3px solid rgba(255,91,0,.75);
  outline-offset: -3px;
}

.feature-gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #111;
}

.feature-gallery-card__content {
  display: grid;
  gap: .3rem;
  padding: .9rem 1rem 1rem;
}

.feature-gallery-card__title {
  color: rgba(255,255,255,.92);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
}

.feature-gallery-card__caption,
.feature-gallery-card__source {
  color: rgba(255,255,255,.64);
  font-size: .9rem;
}

.gallery-credit-link,
.lightbox__credit-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.75);
  text-underline-offset: .25rem;
}

.gallery-credit-link:hover,
.gallery-credit-link:focus-visible,
.lightbox__credit-link:hover,
.lightbox__credit-link:focus-visible {
  color: var(--brand);
}

@media (max-width: 680px) {
  .feature-gallery-grid {
    grid-template-columns: 1fr;
  }
}



/* ========================================
   Reusable Image Lightbox Triggers
======================================== */

.image-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.image-lightbox-trigger:focus-visible {
  outline: 3px solid rgba(255,91,0,.75);
  outline-offset: -3px;
}

.image-lightbox-trigger img {
  transition: transform .25s ease, filter .25s ease;
}

.image-lightbox-trigger:hover img,
.image-lightbox-trigger:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.champion-card__image-trigger,
.previous-race-card__image-trigger {
  overflow: hidden;
}

.champion-card__image-trigger img,
.previous-race-card__image-trigger img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #111;
}

.champion-card--current .champion-card__image-trigger {
  height: 100%;
}

.champion-card--current .champion-card__image-trigger img {
  height: 100%;
  min-height: 320px;
  aspect-ratio: auto;
}

@media (max-width: 760px) {
  .champion-card--current .champion-card__image-trigger img {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
}

/* ========================================
   Reusable Lightbox
======================================== */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.lightbox.is-open {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(7px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
}

.lightbox__topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
}

.lightbox__counter {
  margin-right: auto;
  color: rgba(255,255,255,.68);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lightbox__button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(0,0,0,.54);
  color: #fff;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
  color: var(--brand);
  border-color: rgba(255,91,0,.65);
  background: rgba(0,0,0,.78);
  outline: none;
}

.lightbox__button:active {
  transform: scale(.96);
}

.lightbox__button[hidden] {
  display: none;
}

.lightbox__close {
  font-size: 2rem;
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox__figure {
  width: min(1120px, 100%);
  max-height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: .85rem;
  justify-items: center;
}

.lightbox__image-wrap {
  position: relative;
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 210px);
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 24px 90px rgba(0,0,0,.62);
}

.lightbox__caption {
  width: min(920px, 100%);
  text-align: center;
}

.lightbox__title {
  margin: 0 0 .25rem;
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.lightbox__text {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.lightbox__credit {
  margin: .45rem 0 0;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

.lightbox__nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lightbox__hint {
  margin: 0;
  color: rgba(255,255,255,.46);
  text-align: center;
  font-size: .78rem;
}

@media (max-width: 760px) {
  .lightbox__dialog {
    padding: .75rem;
  }

  .lightbox__stage {
    align-items: center;
  }

  .lightbox__image {
    max-height: calc(100vh - 230px);
    border-radius: 12px;
  }

  .lightbox__nav {
    position: static;
    transform: none;
  }

  .lightbox__stage {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .5rem;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox__nav--prev,
  .lightbox__nav--next {
    grid-row: 2;
  }

  .lightbox__nav--prev {
    grid-column: 1;
    justify-self: end;
  }

  .lightbox__nav--next {
    grid-column: 3;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-card--link,
  .hero-event-card,
  .winner-announcement-card,
  .feature-gallery-card,
  .feature-gallery-trigger,
  .image-lightbox-trigger img,
  .lightbox__button,
  .course-atlas-marker {
    transition: none;
  }
}

/* ========================================
   Articles Section
======================================== */

.articles-section {
  padding: 4rem 1rem;
}

.articles-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.articles-intro {
  max-width: 860px;
  margin-bottom: 2rem;
}

.articles-intro p {
  color: rgba(255,255,255,.74);
  font-size: 1.05rem;
}

.article-list-grid {
  display: grid;
  gap: 1rem;
}

.article-list-grid--featured {
  margin-bottom: 4rem;
}

.article-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255,91,0,.6);
  background: rgba(255,255,255,.09);
  outline: none;
}

.article-card--featured {
  grid-template-columns: minmax(260px, .92fr) minmax(0, 1.08fr);
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.18), rgba(255,255,255,.06));
}

.article-card__image {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(255,91,0,.22), rgba(0,0,0,.18)),
    var(--article-card-image) center/cover no-repeat,
    #111;
}

.article-card--featured .article-card__image {
  min-height: 360px;
}

.article-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.article-card__kicker,
.article-meta-pills span,
.article-topic-card h3,
.article-aside-card h2,
.article-related-card span {
  color: var(--brand);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.article-card__title {
  display: block;
  margin-bottom: .75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 950;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: .95;
}

.article-card__excerpt {
  display: block;
  max-width: 650px;
  color: rgba(255,255,255,.76);
  font-size: 1.02rem;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.25rem;
}

.article-card__meta span,
.article-meta-pills span {
  display: inline-flex;
  padding: .42rem .62rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(0,0,0,.24);
  color: rgba(255,255,255,.84);
  font-size: .72rem;
}

.article-category-section {
  margin-top: 4rem;
}

.article-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.article-topic-card {
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.article-topic-card h3 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}

.article-topic-card p {
  margin: 0;
  color: rgba(255,255,255,.74);
}

.article-hero .hero-content {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.article-section {
  padding: 4rem 1rem;
}

.article-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.article-header {
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.article-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.15rem;
}

.article-header h2 {
  max-width: 940px;
  margin: 0 0 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(2.35rem, 5vw, 4.75rem);
  line-height: .92;
}

.article-lede {
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 700;
  line-height: 1.5;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, .78fr);
  gap: 1.5rem;
  align-items: start;
}

.article-body {
  display: grid;
  gap: 1.2rem;
}

.article-body section,
.article-pullquote,
.article-aside-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.article-body section {
  padding: 1.5rem;
}

.article-body h2 {
  margin: 0 0 .85rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1.12rem;
}

.article-body p {
  color: rgba(255,255,255,.76);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-pullquote {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255,91,0,.22), rgba(255,255,255,.06));
}

.article-pullquote p {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 950;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.article-result-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
}

.article-result-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: rgba(0,0,0,.22);
}

.article-result-table th,
.article-result-table td {
  padding: .85rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: left;
}

.article-result-table th {
  color: var(--brand);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(0,0,0,.35);
}

.article-result-table tr:last-child td {
  border-bottom: 0;
}

.article-result-table td:first-child,
.article-result-table td:nth-child(2) {
  color: #fff;
  font-weight: 900;
}

.article-note {
  color: rgba(255,255,255,.58) !important;
  font-size: .92rem;
}

.article-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 1rem;
}

.article-aside-card {
  padding: 1.25rem 1.35rem;
}

.article-aside-card--highlight {
  background:
    linear-gradient(135deg, rgba(255,91,0,.2), rgba(255,255,255,.06));
}

.article-aside-card h2 {
  margin: 0 0 .85rem;
  font-size: 1.02rem;
}

.article-aside-card p {
  margin: 0;
  color: rgba(255,255,255,.76);
}

.article-fact-list {
  display: grid;
  gap: .85rem;
  margin: 0;
}

.article-fact-list div {
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.article-fact-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.article-fact-list dt {
  margin: 0 0 .2rem;
  color: rgba(255,255,255,.52);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
}

.article-fact-list dd {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-weight: 900;
}

.article-related-section {
  margin-top: .4rem;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.article-related-card {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.article-related-card:hover,
.article-related-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,91,0,.58);
  background: rgba(255,255,255,.08);
  outline: none;
}

.article-related-card strong {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
}

@media (max-width: 900px) {
  .article-card--featured,
  .article-layout,
  .article-topic-grid,
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-card--featured .article-card__image {
    min-height: 240px;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 520px) {
  .article-section,
  .articles-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .article-body section,
  .article-aside-card {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-card,
  .article-related-card {
    transition: none;
  }
}

/* ========================================
   Results Page — Sortable Official Results Table
======================================== */

.results-table--sortable th[aria-sort] {
  white-space: nowrap;
}

.results-sort-button {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.results-sort-button:hover,
.results-sort-button:focus-visible {
  color: #fff;
  outline: none;
}

.results-sort-button:focus-visible span:first-child {
  text-decoration: underline;
  text-decoration-color: rgba(255,91,0,.85);
  text-underline-offset: .22rem;
}

.results-sort-indicator {
  min-width: .9em;
  color: rgba(255,255,255,.42);
  font-size: .9em;
  line-height: 1;
}

.results-table--sortable th[aria-sort="ascending"],
.results-table--sortable th[aria-sort="descending"] {
  background: rgba(255,91,0,.12);
}

.results-table--sortable th[aria-sort="ascending"] .results-sort-indicator,
.results-table--sortable th[aria-sort="descending"] .results-sort-indicator {
  color: #fff;
}

@media (hover: hover) {
  .results-table--sortable th:hover {
    background: rgba(255,91,0,.08);
  }
}

