.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding-block: 0.55rem 0.65rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9) 72%, rgba(255, 255, 255, 0));
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.site-nav {
  --route-progress: 0%;
  display: grid;
  gap: 0.35rem;
  color: var(--color-ink);
  pointer-events: auto;
}

.nav-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.35rem;
  border: 1px solid rgba(16, 32, 51, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-tight);
}

.nav-menu {
  display: none;
  grid-column: 1 / -1;
  gap: 0.45rem;
}

.site-nav.is-menu-open .nav-menu {
  display: grid;
}

.site-nav.is-menu-open .race-route {
  display: none;
}

.nav-actions {
  display: grid;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--color-line);
}

.nav-actions .button {
  width: 100%;
  white-space: nowrap;
}

.nav-donate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  color: rgba(16, 32, 51, 0.76);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-donate-link:hover {
  color: var(--color-navy);
  transform: translateY(-1px);
}

.nav-main > .button {
  justify-self: end;
  margin-right: 0.45rem;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(18, 53, 91, 0.16);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: 0 6px 16px rgba(16, 32, 51, 0.08);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  border-color: rgba(18, 53, 91, 0.3);
  background: var(--color-blue-soft);
  transform: translateY(-1px);
}

.nav-toggle span {
  grid-area: 1 / 1;
  width: 1.2rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-0.38rem);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(0.38rem);
}

.site-nav.is-menu-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-nav.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-menu-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding-left: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.site-brand > span:not(.site-brand__logo-stack) {
  display: inline-block;
  min-width: 0;
  max-width: 12rem;
  color: var(--color-navy);
  white-space: nowrap;
}

.site-brand__logo-stack {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 3.2rem;
  height: 2rem;
}

.site-brand__logo {
  grid-area: 1 / 1;
  width: 3.2rem;
  height: 2rem;
  object-fit: contain;
  transition:
    opacity 240ms ease,
    transform 240ms cubic-bezier(.165, .84, .44, 1);
}

.site-brand__logo--rotary {
  width: 2rem;
  height: 2rem;
  opacity: 0;
  transform: scale(0.88);
}

.nav-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-block: 0.45rem 0.1rem;
  border-top: 1px solid var(--color-line);
  overflow: visible;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-scroll a {
  width: 100%;
  padding: 0.76rem 0.85rem;
  border-radius: var(--radius-sm);
  color: rgba(16, 32, 51, 0.72);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.nav-scroll a.is-active,
.nav-scroll a:hover {
  background: rgba(18, 53, 91, 0.1);
  color: var(--color-navy);
}

.race-route {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding-inline: 0.35rem;
}

.route-label {
  color: rgba(16, 32, 51, 0.58);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.route-label--finish {
  position: relative;
  padding-right: 0.35rem;
}

.route-label--start {
  position: relative;
  padding-left: 0.45rem;
}

.route-label--start::before {
  content: "";
  position: absolute;
  top: -0.2rem;
  left: -0.2rem;
  width: 0.34rem;
  height: 1.3rem;
  border-radius: 1px;
  background: var(--color-coral);
  box-shadow: 0 0 0 1px rgba(16, 32, 51, 0.14);
}

.route-label--finish::after {
  content: "";
  position: absolute;
  top: -0.2rem;
  right: -0.35rem;
  width: 0.34rem;
  height: 1.3rem;
  background:
    linear-gradient(45deg, #102033 25%, transparent 25%) 0 0 / 0.34rem 0.34rem,
    linear-gradient(45deg, transparent 75%, #102033 75%) 0 0 / 0.34rem 0.34rem,
    var(--color-white);
  border: 1px solid rgba(16, 32, 51, 0.2);
  transition: opacity 180ms ease, transform 180ms ease;
}

.route-path {
  position: relative;
  height: 1.25rem;
}

.route-path::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0.2rem;
  background: linear-gradient(
    90deg,
    rgba(16, 32, 51, 0.32) 0 10%,
    transparent 10% 13%,
    rgba(16, 32, 51, 0.32) 13% 23%,
    transparent 23% 26%,
    rgba(16, 32, 51, 0.32) 26% 36%,
    transparent 36% 39%,
    rgba(16, 32, 51, 0.32) 39% 49%,
    transparent 49% 52%,
    rgba(16, 32, 51, 0.32) 52% 62%,
    transparent 62% 65%,
    rgba(16, 32, 51, 0.32) 65% 75%,
    transparent 75% 78%,
    rgba(16, 32, 51, 0.32) 78% 88%,
    transparent 88% 91%,
    rgba(16, 32, 51, 0.32) 91% 100%
  );
  border-radius: var(--radius-pill);
  transform: translateY(-50%);
}

.route-progress {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: var(--route-progress);
  height: 0.22rem;
  background: var(--color-coral);
  border-radius: var(--radius-pill);
  transform: translateY(-50%);
}

.route-runner {
  position: absolute;
  top: 50%;
  left: var(--route-progress);
  z-index: 2;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 99, 0.16), 0 5px 12px rgba(16, 32, 51, 0.22);
  transform: translate(-50%, -50%);
  transition: width 240ms ease, height 240ms ease, background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.route-runner img {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 3.2rem;
  height: auto;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.logo-runner-active .site-brand__logo--event,
.logo-runner-launching .site-brand__logo--event {
  opacity: 0;
}

.logo-runner-active .site-brand__logo--rotary {
  opacity: 1;
  transform: scale(1);
}

.logo-runner-active .route-runner {
  width: var(--runner-logo-width, 3.2rem);
  height: var(--runner-logo-height, 2rem);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.logo-runner-active .route-runner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}

.logo-runner-clone {
  position: fixed;
  z-index: 400;
  pointer-events: none;
  object-fit: contain;
  transform-origin: center center;
  filter: drop-shadow(0 8px 14px rgba(16, 32, 51, 0.22));
  will-change: transform;
}

.route-confetti {
  position: absolute;
  right: 0.25rem;
  bottom: 0.2rem;
  width: 3.25rem;
  height: 2.4rem;
  pointer-events: none;
}

.route-confetti span {
  position: absolute;
  right: 0.5rem;
  bottom: 0.25rem;
  width: 0.34rem;
  height: 0.62rem;
  border-radius: 2px;
  opacity: 0;
}

.route-confetti span:nth-child(1) { background: var(--color-coral); }
.route-confetti span:nth-child(2) { background: var(--color-gold); }
.route-confetti span:nth-child(3) { background: var(--color-bay); }
.route-confetti span:nth-child(4) { background: var(--color-amber); }
.route-confetti span:nth-child(5) { background: var(--color-sage); }
.route-confetti span:nth-child(6) { background: var(--color-navy); }

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 3rem;
  font-weight: 800;
  line-height: 1;
}

.button {
  padding: 0.9rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(16, 32, 51, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::after {
  content: "->";
  font-weight: 900;
}

.button:hover {
  box-shadow: 0 14px 34px rgba(16, 32, 51, 0.18);
  transform: translateY(-2px);
}

.button--small {
  min-height: 2.6rem;
  padding: 0.66rem 0.86rem;
  font-size: 0.86rem;
}

.button--coral {
  background: var(--color-coral);
  color: var(--color-white);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.button--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.button--gold {
  background: var(--color-gold);
  color: var(--color-ink);
}

.text-link {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.25rem;
}

.hero .button-row {
  gap: 0.85rem;
  align-items: center;
  margin-top: 0;
}

.button--hero,
.button--navy,
.button--gold {
  position: relative;
  isolation: isolate;
  min-height: 3.45rem;
  padding: 1rem 1.25rem 1rem 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background:
    linear-gradient(135deg, rgba(0, 103, 200, 0.96), rgba(23, 69, 143, 0.98)),
    var(--color-navy);
  color: var(--color-white);
  box-shadow:
    0 16px 38px rgba(5, 31, 71, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 220ms cubic-bezier(.165, .84, .44, 1),
    transform 220ms cubic-bezier(.165, .84, .44, 1);
}

.button--hero::before,
.button--navy::before,
.button--gold::before {
  content: "";
  position: absolute;
  top: -45%;
  bottom: -45%;
  left: -55%;
  z-index: 1;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-160%) skewX(-18deg);
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(.165, .84, .44, 1);
}

.button--hero::after,
.button--navy::after,
.button--gold::after {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-left: 0.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
  transition:
    background 180ms ease,
    transform 220ms cubic-bezier(.165, .84, .44, 1);
}

.button--hero:hover,
.button--navy:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, var(--color-gold), #ffd66f),
    var(--color-gold);
  color: var(--color-ink);
  box-shadow:
    0 22px 48px rgba(5, 31, 71, 0.34),
    0 0 0 5px rgba(247, 168, 27, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateY(-3px) scale(1.015);
}

.button--gold {
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, var(--color-gold), #ffd66f),
    var(--color-gold);
  color: var(--color-ink);
  box-shadow:
    0 16px 38px rgba(120, 75, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.button--gold::after {
  background: rgba(16, 32, 51, 0.12);
}

.button--gold:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, #0067c8, rgba(23, 69, 143, 0.98)),
    #0067c8;
  color: var(--color-white);
  box-shadow:
    0 22px 48px rgba(5, 31, 71, 0.34),
    0 0 0 5px rgba(23, 69, 143, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-3px) scale(1.015);
}

.button--hero:hover::before,
.button--navy:hover::before,
.button--gold:hover::before {
  opacity: 1;
  transform: translateX(520%) skewX(-18deg);
}

.button--hero:hover::after,
.button--navy:hover::after {
  background: rgba(16, 32, 51, 0.12);
  transform: translateX(0.22rem);
}

.button--gold:hover::after {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(0.22rem);
}

.button--hero:active,
.button--navy:active,
.button--gold:active {
  box-shadow:
    0 12px 26px rgba(5, 31, 71, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px) scale(0.985);
}

.button--small.button--navy {
  min-height: 2.6rem;
  padding: 0.66rem 0.9rem 0.66rem 1rem;
  box-shadow:
    0 10px 24px rgba(5, 31, 71, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button--small.button--navy::after {
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.06rem;
}

.button--small.button--navy:hover {
  box-shadow:
    0 14px 32px rgba(5, 31, 71, 0.28),
    0 0 0 4px rgba(247, 168, 27, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.sponsor-marquee {
  display: grid;
  gap: 1.75rem;
  width: min(100% - 2rem, var(--container));
  margin: 1.6rem auto 2rem;
  overflow: hidden;
}

.marquee-row {
  position: relative;
  overflow: hidden;
  padding-block: 0.25rem;
}

.marquee-row::before,
.marquee-row::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 2;
  width: 4rem;
  height: 100%;
  pointer-events: none;
}

.marquee-row::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.marquee-row::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.sponsor-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.sponsor-card {
  display: grid;
  place-items: center;
  width: 174px;
  min-width: 174px;
  min-height: 70px;
  padding: 0.8rem;
  border: 1px solid rgba(18, 53, 91, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, filter 180ms ease;
}

.marquee-row--featured .sponsor-card {
  width: 290px;
  min-width: 290px;
  min-height: 132px;
  padding: 1.15rem;
}

.sponsor-card img {
  max-width: 100%;
  max-height: 3rem;
  object-fit: contain;
}

.marquee-row--featured .sponsor-card img {
  max-height: 5.5rem;
}

.sponsor-card--gilead {
  background: #59705b;
}

.sponsor-card__name {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}

.sponsor-card__name--stanford {
  color: #8c1515;
}

.marquee-row--featured .sponsor-card__name {
  font-size: 1.35rem;
}

.sponsor-card:hover {
  transform: translateY(-2px);
}

.sponsor-action {
  display: grid;
  gap: 0.7rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.sponsor-benefits {
  margin-top: 2rem;
}

.sponsor-callout {
  display: grid;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  margin-inline: auto;
}

.sponsor-callout h3 {
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
}

.sponsor-callout p {
  color: rgba(16, 32, 51, 0.72);
}

.sponsor-callout .button {
  justify-self: start;
}

.info-card,
.benefit-card,
.stat-card,
.tier-card,
.cta-card,
.map-card,
.race-panel,
.faq-item {
  border: 1px solid rgba(18, 53, 91, 0.1);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.info-card,
.benefit-card,
.stat-card,
.tier-card,
.cta-card {
  padding: 1.25rem;
}

.info-card {
  display: grid;
  gap: 1rem;
  min-height: 13rem;
}

.info-card h3,
.benefit-card h3,
.tier-card h3,
.cta-card h3 {
  font-size: 1.25rem;
}

.info-card p,
.benefit-card p,
.tier-card p,
.cta-card p {
  color: rgba(16, 32, 51, 0.74);
}

.race-photo-card {
  display: grid;
  gap: 0.75rem;
}

.race-photo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(16, 32, 51, 0.12);
}

.race-photo-card figcaption {
  display: grid;
  gap: 0.25rem;
  padding-inline: 0.1rem;
}

.race-photo-card h3 {
  color: var(--color-ink);
  font-size: 1.18rem;
}

.race-photo-card p {
  color: rgba(16, 32, 51, 0.76);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.line-mark {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--color-bay);
}

.line-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
}

.line-mark::after {
  content: "";
  position: absolute;
  display: block;
}

.line-mark--bib::before {
  inset: 0.35rem 0.15rem 0.45rem;
  border: 2px solid currentColor;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 28% 23%, currentColor 0 0.12rem, transparent 0.14rem),
    radial-gradient(circle at 72% 23%, currentColor 0 0.12rem, transparent 0.14rem),
    rgba(255, 255, 255, 0.34);
}

.line-mark--bib::after {
  content: "5K";
  top: 1.17rem;
  left: 0;
  width: 100%;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.line-mark--bib-10k::after {
  content: "10K";
}

.line-mark--stopwatch::before {
  inset: 0.62rem 0.45rem 0.25rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.line-mark--stopwatch::after {
  top: 0.18rem;
  left: 50%;
  width: 0.8rem;
  height: 0.48rem;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 0.22rem 0.22rem 0 0;
  transform: translateX(-50%);
}

.line-mark--flag::before {
  left: 0.65rem;
  top: 0.35rem;
  bottom: 0.3rem;
  width: 0.18rem;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.line-mark--flag::after {
  top: 0.45rem;
  left: 0.83rem;
  width: 1.9rem;
  height: 1.25rem;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.38);
  clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
}

.line-mark--medal::before {
  top: 0.25rem;
  left: 50%;
  width: 1.2rem;
  height: 1.45rem;
  border-left: 0.35rem solid var(--color-coral);
  border-right: 0.35rem solid var(--color-bay);
  transform: translateX(-50%) skewX(-8deg);
}

.line-mark--medal::after {
  left: 50%;
  bottom: 0.28rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--color-gold);
  transform: translateX(-50%);
}

.line-mark--candy::before {
  top: 50%;
  left: 50%;
  width: 2.1rem;
  height: 1.3rem;
  border: 2px solid currentColor;
  border-radius: 0.75rem;
  background:
    linear-gradient(90deg, transparent 0 28%, rgba(255, 255, 255, 0.7) 28% 38%, transparent 38% 62%, rgba(255, 255, 255, 0.7) 62% 72%, transparent 72%),
    var(--color-coral);
  transform: translate(-50%, -50%) rotate(-8deg);
}

.line-mark--candy::after {
  top: 50%;
  left: 50%;
  width: 3.35rem;
  height: 1.65rem;
  background:
    linear-gradient(135deg, transparent 0 31%, currentColor 31% 69%, transparent 69%) left center / 0.9rem 1.35rem no-repeat,
    linear-gradient(45deg, transparent 0 31%, currentColor 31% 69%, transparent 69%) right center / 0.9rem 1.35rem no-repeat;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.impact {
  background: rgba(247, 251, 255, 0.76);
}

.stat-card {
  display: grid;
  gap: 0.5rem;
  min-height: 10rem;
}

.stat-card strong {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.95;
}

.stat-card span {
  color: rgba(16, 32, 51, 0.7);
  font-weight: 700;
}

.stat-card--link {
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.stat-card--link strong::after {
  content: " ->";
}

.stat-card--link:hover {
  background: var(--color-gold);
  box-shadow: 0 14px 32px rgba(16, 32, 51, 0.14);
  transform: translateY(-2px);
}

.race-panel {
  background:
    linear-gradient(145deg, rgba(223, 246, 251, 0.88), rgba(255, 255, 255, 0.96)),
    var(--color-white);
}

.detail-table {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.detail-table div {
  display: grid;
  gap: 0.2rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid rgba(18, 53, 91, 0.12);
}

.detail-table dt {
  color: var(--color-navy);
  font-weight: 800;
}

.detail-table dd {
  color: rgba(16, 32, 51, 0.75);
}

.map-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  align-self: start;
  padding: 0.75rem;
}

.map-card iframe {
  width: 100%;
  min-height: 21rem;
  border: 0;
  border-radius: var(--radius-sm);
}

.map-card p {
  padding-inline: 0.25rem;
  color: rgba(16, 32, 51, 0.72);
}

.benefit-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 53, 91, 0.1);
}

.benefit-card p {
  color: rgba(16, 32, 51, 0.72);
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier-card--featured {
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.92), rgba(255, 255, 255, 0.96)),
    var(--color-white);
  border-color: rgba(247, 168, 27, 0.65);
}

.tier-card__label {
  color: var(--color-bay);
  font-size: 0.9rem;
  font-weight: 800;
}

.tier-card__price {
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.tier-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(16, 32, 51, 0.72);
}

.package-action {
  display: grid;
  justify-items: center;
  margin-top: 2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item h3 {
  font-size: 1rem;
}

.faq-item button {
  position: relative;
  width: 100%;
  padding: 1.1rem 3rem 1.1rem 1rem;
  background: var(--color-white);
  color: var(--color-ink);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--color-bay);
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.faq-item[data-open="true"] button::after {
  content: "-";
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
}

.faq-panel p {
  padding: 0 1rem 1.1rem;
  color: rgba(16, 32, 51, 0.72);
}

.faq-item[data-open="true"] .faq-panel {
  max-height: 14rem;
}

.dual-cta {
  margin-top: 1.75rem;
}

.cta-card {
  display: grid;
  gap: 1rem;
  background: rgba(255, 247, 234, 0.96);
  color: var(--color-ink);
}

.cta-card .button {
  margin-top: 0.45rem;
}

.legal-kicker {
  color: var(--color-bay);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-title {
  max-width: 16ch;
  color: var(--color-navy);
  font-size: 2.45rem;
  line-height: 0.98;
  text-wrap: balance;
}

.legal-summary {
  color: rgba(16, 32, 51, 0.78);
  font-size: 1.08rem;
  line-height: 1.72;
}

.legal-updated {
  color: rgba(16, 32, 51, 0.62);
  font-size: 0.95rem;
  font-weight: 800;
}

.legal-nav a {
  padding: 0.52rem 0.7rem;
  border: 1px solid rgba(18, 53, 91, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-navy);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.legal-nav a:hover {
  background: var(--color-gold);
  color: var(--color-ink);
}

.legal-document {
  padding: 1rem 0 0;
}

.legal-notice {
  padding: 1rem;
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(16, 32, 51, 0.78);
}

.legal-block {
  display: grid;
  gap: 0.8rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(18, 53, 91, 0.14);
}

.legal-block h2 {
  color: var(--color-navy);
  font-size: 1.55rem;
}

.legal-block h3 {
  color: var(--color-ink);
  font-size: 1.06rem;
}

.legal-block p,
.legal-block li {
  color: rgba(16, 32, 51, 0.76);
}

.legal-block ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
}

.legal-block a {
  color: var(--color-navy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.24em;
}

.legal-page-link {
  display: inline-flex;
  width: fit-content;
  color: var(--color-navy);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.site-footer {
  padding-block: 3rem;
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.footer-layout {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-rcsm-logo {
  display: block;
  width: min(12.5rem, 70vw);
  height: auto;
  margin: 0 auto 1rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1rem;
}

.footer-links a {
  position: relative;
  color: var(--color-white);
  font-weight: 700;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.24rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.footer-links a:hover {
  color: var(--color-gold);
  transform: translateY(-1px);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.footer-credit a {
  color: inherit;
  transition: color 180ms ease, font-size 180ms ease;
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.95em;
}

.back-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.back-top span {
  width: 0.72rem;
  height: 0.72rem;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translateY(0.2rem) rotate(45deg);
}

.back-top:hover {
  background: var(--color-gold);
  color: var(--color-ink);
  animation: back-top-bounce 620ms ease-in-out both;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 51, 0.58);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  width: min(100%, 34rem);
  max-height: min(90vh, 46rem);
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid rgba(18, 53, 91, 0.16);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(16, 32, 51, 0.28);
}

.modal-panel h2 {
  max-width: 18ch;
  color: var(--color-navy);
  font-size: 1.65rem;
}

.modal-panel p {
  color: rgba(16, 32, 51, 0.72);
}

.modal-close {
  justify-self: end;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(18, 53, 91, 0.08);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
}

.modal form {
  display: grid;
  gap: 0.85rem;
}

.modal label {
  display: grid;
  gap: 0.3rem;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid rgba(18, 53, 91, 0.18);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
}

.modal textarea {
  resize: vertical;
}

.modal .button {
  justify-self: start;
  margin-top: 0.2rem;
}

.form-hidden {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 620px) {
  .legal-title {
    font-size: 3rem;
  }

  .site-brand {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .site-brand > span:not(.site-brand__logo-stack) {
    display: inline;
  }

  .sponsor-callout {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 860px) {
  .site-nav {
    padding-inline: 0.7rem 0.45rem;
  }

  .nav-main {
    grid-template-columns: minmax(5.5rem, 1fr) auto minmax(5.5rem, 1fr);
    gap: 0.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: contents;
  }

  .nav-scroll {
    flex-direction: row;
    justify-content: center;
    justify-self: center;
    gap: 0.15rem;
    overflow-x: auto;
    padding-block: 0.25rem;
    border-top: 0;
  }

  .nav-scroll a {
    flex: 0 0 auto;
    width: auto;
    padding: 0.56rem 0.72rem;
  }

  .nav-actions {
    display: flex;
    justify-self: end;
    gap: 0.45rem;
    margin-right: 0.45rem;
    padding-top: 0;
    border-top: 0;
  }

  .nav-actions .button {
    width: auto;
  }

  .nav-donate-link {
    min-height: auto;
    padding: 0.35rem 0.2rem;
  }

  .info-card,
  .benefit-card,
  .stat-card,
  .tier-card,
  .cta-card {
    padding: 1.5rem;
  }

  .race-panel {
    padding: 1.5rem;
  }
}

@media (min-width: 1080px) {
  .legal-title {
    font-size: 3.65rem;
  }
}
