/* Generated by scripts/build_css.py; edit source CSS files. */
/* base.css */
:root {
  --yellow: #fd9d4e;
  --yellow-dark: #c9693d;
  --black: #0b1116;
  --ink: #1c1711;
  --muted: #6b6256;
  --line: #dccfbd;
  --surface: #f3f4e4;
  --surface-soft: #f2dec4;
  --green: #81d9e2;
  --red: #e47571;
  --retro-mauve: #a15d78;
  --retro-coral: #e47571;
  --retro-orange: #fd9d4e;
  --retro-sun: #edd771;
  --retro-cyan: #81d9e2;
  --retro-cream: #f3f4e4;
  --retro-teal: #81d9e2;
  --retro-blue: #2d6f8e;
  --retro-magenta: #a15d78;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Rajdhani, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (pointer: fine) {
  body:not(.admin-body):not(.login-body) {
    cursor: url("../img/cursor-wheel.png") 16 16, auto;
  }

  body:not(.admin-body):not(.login-body) a,
  body:not(.admin-body):not(.login-body) button,
  body:not(.admin-body):not(.login-body) select,
  body:not(.admin-body):not(.login-body) summary,
  body:not(.admin-body):not(.login-body) input[type="checkbox"],
  body:not(.admin-body):not(.login-body) input[type="radio"],
  body:not(.admin-body):not(.login-body) input[type="file"] {
    cursor: url("../img/cursor-flag.png") 5 5, pointer;
  }

  body:not(.admin-body):not(.login-body) input,
  body:not(.admin-body):not(.login-body) textarea {
    cursor: text;
  }
}

.icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0 0 0.55em;
  font-family: "Russo One", Impact, sans-serif;
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 2.45rem;
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(8, 8, 8, 0.08);
  box-shadow: 0 10px 30px rgba(8, 8, 8, 0.08);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 34%, rgba(255, 212, 41, 0.22) 42%, var(--yellow) 50%, rgba(255, 212, 41, 0.22) 58%, transparent 66% 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.1));
  background-size: 32% 100%, 100% 100%;
  background-position: -16% 0, 0 0;
  background-repeat: no-repeat;
  box-shadow: 0 0 12px rgba(255, 212, 41, 0.38);
  animation: headerRaceLine 2.4s ease-in-out infinite alternate;
}

.member-beta-banner {
  overflow: hidden;
  border-bottom: 1px solid rgba(8, 8, 8, 0.16);
  background: #c91424;
  color: #fff;
  box-shadow: 0 8px 18px rgba(201, 20, 36, 0.18);
}

.member-beta-banner-track {
  display: inline-flex;
  width: max-content;
  min-width: 100%;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0;
  animation: memberBetaBannerScroll 46s linear infinite;
  will-change: transform;
}

.member-beta-banner-track span {
  display: inline-flex;
  align-items: center;
  padding: 10px 56px 10px 0;
}

.member-beta-banner-track span::before {
  content: "Info beta";
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.16);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid rgba(8, 8, 8, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(8, 8, 8, 0.08);
}

.brand img {
  width: 190px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
  margin-left: auto;
}

.site-nav a,
.header-social a {
  color: var(--black);
  position: relative;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active {
  background: var(--yellow);
  color: var(--black);
}

.site-nav a.is-active {
  box-shadow: inset 0 -3px 0 var(--red), 0 8px 18px rgba(255, 212, 41, 0.22);
}

.site-nav .nav-social-link {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(8, 8, 8, 0.1);
  background: #fff;
}

.site-nav .nav-social-link .social-icon {
  width: 19px;
  height: 19px;
}

.nav-social-label {
  display: none;
}

.header-social {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.header-social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(8, 8, 8, 0.1);
  background: #fff;
}

.header-social a:hover,
.header-social a:focus {
  color: var(--black);
  border-color: var(--yellow);
  background: var(--yellow);
}

.social-icon {
  width: 19px;
  height: 19px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(8, 8, 8, 0.18);
  background: transparent;
  border-radius: var(--radius);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
}

@keyframes memberBetaBannerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* heroes.css */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #fff;
}

.hero-home {
  min-height: 640px;
  display: grid;
  align-items: center;
}

.hero-slider,
.hero-slide,
.hero-slider::after {
  position: absolute;
  inset: 0;
}

.hero-slider {
  overflow: hidden;
}

.hero-slider::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.44));
  z-index: 2;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.1s ease, transform 7s ease;
}

.hero-slide-picture,
.hero-slide-image,
.challenge-hero-slide .hero-slide-picture,
.challenge-hero-slide .hero-slide-image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide-image,
.challenge-hero-slide .hero-slide-image {
  object-fit: cover;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.hero-home::after {
  content: none;
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  height: 8px;
  background: var(--yellow);
}

.hero-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 360px);
  gap: 42px;
  align-items: end;
  padding: 92px 0 76px;
}

.hero-copy {
  max-width: 780px;
}

.hero-lead,
.page-hero p {
  max-width: 720px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  --page-hero-image: url("../img/hero-htcc-bmw.jpg");
  --page-hero-position: center;
  padding: 96px 0 76px;
  background-image:
    linear-gradient(105deg, rgba(8, 8, 8, 0.9), rgba(8, 8, 8, 0.66) 54%, rgba(255, 212, 41, 0.2)),
    var(--page-hero-image);
  background-position: center, var(--page-hero-position);
  background-size: auto, cover;
  background-repeat: no-repeat;
}

.route-public-sale-rental .page-hero,
.route-public-sale-rental-submit .page-hero,
.route-members-announcement-new .page-hero,
.route-members-announcement-edit .page-hero,
.route-announcement-member-required .page-hero {
  --page-hero-image: url("../img/hero-htcc-bmw-side.jpg");
  --page-hero-position: center 46%;
}

.route-members-dashboard .page-hero,
.route-members-login .page-hero,
.route-members-register .page-hero,
.route-members-profile .page-hero,
.route-members-onboarding .page-hero,
.route-members-forgot-password .page-hero,
.route-members-reset-password .page-hero,
.route-members-activate-account .page-hero {
  --page-hero-image: url("../img/hero-htcc-bmw-side.jpg");
  --page-hero-position: center 48%;
}

.route-members-race-entries-new .page-hero,
.route-members-race-entry-edit .page-hero {
  --page-hero-image: url("../img/hero-htcc-clio.jpeg");
  --page-hero-position: center 52%;
}

.route-public-contact .page-hero {
  --page-hero-image: url("../img/hero-htcc-bmw.jpg");
  --page-hero-position: center 45%;
}

.route-public-infos .page-hero,
.route-public-legal .page-hero,
.route-error .page-hero {
  --page-hero-image: url("../img/hero-htcc-track.webp");
  --page-hero-position: center;
}

.route-public-merch .page-hero {
  --page-hero-image: url("../img/hero-htcc-bmw-side.jpg");
  --page-hero-position: center;
}

@supports (background-image: image-set(url("../img/hero-htcc-bmw-1280.webp") type("image/webp"))) {
  .page-hero,
  .route-public-contact .page-hero {
    --page-hero-image: image-set(
      url("../img/hero-htcc-bmw-1280.avif") type("image/avif"),
      url("../img/hero-htcc-bmw-1280.webp") type("image/webp"),
      url("../img/hero-htcc-bmw.jpg") type("image/jpeg")
    );
  }

  .route-public-sale-rental .page-hero,
  .route-public-sale-rental-submit .page-hero,
  .route-members-announcement-new .page-hero,
  .route-members-announcement-edit .page-hero,
  .route-announcement-member-required .page-hero,
  .route-members-dashboard .page-hero,
  .route-members-login .page-hero,
  .route-members-register .page-hero,
  .route-members-profile .page-hero,
  .route-members-onboarding .page-hero,
  .route-members-forgot-password .page-hero,
  .route-members-reset-password .page-hero,
  .route-members-activate-account .page-hero,
  .route-public-merch .page-hero {
    --page-hero-image: image-set(
      url("../img/hero-htcc-bmw-side-1152.avif") type("image/avif"),
      url("../img/hero-htcc-bmw-side-1152.webp") type("image/webp"),
      url("../img/hero-htcc-bmw-side.jpg") type("image/jpeg")
    );
  }

  .route-members-race-entries-new .page-hero,
  .route-members-race-entry-edit .page-hero {
    --page-hero-image: image-set(
      url("../img/hero-htcc-clio-1280.avif") type("image/avif"),
      url("../img/hero-htcc-clio-1280.webp") type("image/webp"),
      url("../img/hero-htcc-clio.jpeg") type("image/jpeg")
    );
  }

  .route-public-infos .page-hero,
  .route-public-legal .page-hero,
  .route-error .page-hero {
    --page-hero-image: image-set(
      url("../img/hero-htcc-track-768.avif") type("image/avif"),
      url("../img/hero-htcc-track-768.webp") type("image/webp"),
      url("../img/hero-htcc-track.webp") type("image/webp")
    );
  }
}

.page-hero::after {
  content: none;
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--yellow);
  z-index: 3;
}

.page-hero > .container {
  position: relative;
  z-index: 4;
  isolation: isolate;
}

.hero-content,
.challenge-hero-content,
.result-hero-grid,
.page-hero > .container {
  isolation: isolate;
}

.hero-content::before,
.challenge-hero-content::before,
.result-hero-grid::before,
.page-hero > .container::before {
  content: none;
}

.hero-copy h1,
.challenge-hero-content h1,
.result-hero-copy h1,
.page-hero h1 {
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
}

.error-page-404 {
  position: relative;
  display: grid;
  align-items: start;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: clamp(56px, 7vh, 108px) 0 clamp(56px, 8vw, 112px);
  background:
    linear-gradient(135deg, rgba(11, 17, 22, 0.98), rgba(23, 34, 39, 0.96) 58%, rgba(11, 17, 22, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px);
  color: #fff;
}

.error-page-layout {
  width: min(1480px, calc(100% - 72px));
  display: grid;
  grid-template-columns: minmax(340px, 0.78fr) minmax(540px, 1.12fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

.error-page-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  aspect-ratio: 821 / 501;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #111;
  box-shadow:
    14px 14px 0 rgba(161, 93, 120, 0.16),
    0 28px 70px rgba(0, 0, 0, 0.34);
}

.error-page-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 17, 22, 0.02), rgba(11, 17, 22, 0.2));
}

.error-page-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.03);
}

.error-page-404::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 5px;
  background: linear-gradient(90deg, #a15d78 0 18%, #e47571 18% 36%, #fd9d4e 36% 54%, #edd771 54% 72%, #81d9e2 72% 100%);
}

.error-page-content {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  max-width: 640px;
  padding: 0;
}

.error-page-404 h1 {
  max-width: 720px;
  margin-bottom: 0.22em;
  font-size: clamp(3.75rem, 5.1vw, 6.3rem);
  text-shadow:
    0 4px 0 rgba(161, 93, 120, 0.5),
    0 18px 42px rgba(0, 0, 0, 0.44);
}

.error-page-content p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 248, 234, 0.9);
  font-size: 1.22rem;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.error-page-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.54);
}

@media (max-width: 1120px) {
  .error-page-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .error-page-media,
  .error-page-content {
    grid-column: 1;
  }

  .error-page-media {
    grid-row: 1;
  }

  .error-page-content {
    grid-row: 2;
    max-width: 780px;
  }
}

@media (max-width: 720px) {
  .error-page-404 {
    min-height: 0;
    padding: 0;
  }

  .error-page-layout {
    width: 100%;
    gap: 0;
  }

  .error-page-media {
    width: 100%;
    aspect-ratio: 821 / 501;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .error-page-media::after {
    background: linear-gradient(180deg, rgba(11, 17, 22, 0.08), rgba(11, 17, 22, 0.34));
  }

  .error-page-content {
    width: min(100% - 28px, 640px);
    padding: 36px 0 58px;
    margin: 0 auto;
  }

  .error-page-404 h1 {
    font-size: 2.8rem;
  }

  .error-page-content p:not(.eyebrow) {
    font-size: 1.06rem;
  }

  .error-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .error-page-actions .btn {
    width: 100%;
  }
}

.challenge-hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 0;
  background: #111;
}

.challenge-hero::before,
.challenge-hero::after,
.challenge-hero-media,
.challenge-hero-slide {
  position: absolute;
  inset: 0;
}

.challenge-hero::before {
  content: "";
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.42) 48%, rgba(255, 212, 41, 0.2)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.16), rgba(8, 8, 8, 0.6));
}

.challenge-hero::after {
  content: none;
  z-index: 3;
  top: auto;
  height: 8px;
  background: var(--yellow);
}

.challenge-hero-media {
  overflow: hidden;
}

.challenge-hero-slide {
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.1s ease, transform 7s ease;
}

.challenge-hero-slide.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.challenge-hero-content {
  position: relative;
  z-index: 4;
  padding: 96px 0 76px;
}

.challenge-hero-content h1 {
  max-width: 940px;
}

.challenge-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 840px;
  margin-top: 34px;
}

.challenge-hero-stats span {
  min-height: 102px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.challenge-hero-stats .stat-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--yellow-dark);
}

.challenge-hero-stats span:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.2);
}

.challenge-hero-stats span:hover .stat-icon {
  animation: iconKick 0.42s ease;
}

.challenge-hero-stats strong,
.challenge-hero-stats small {
  display: block;
}

.challenge-hero-stats strong {
  font-family: "Russo One", Impact, sans-serif;
  font-size: 2.15rem;
  line-height: 1;
}

.challenge-hero-stats small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.result-hero {
  min-height: 540px;
  display: grid;
  align-items: center;
  padding: 0;
  background: #121212;
}

.result-hero::before,
.result-hero::after,
.result-hero-media {
  position: absolute;
  inset: 0;
}

.result-hero::before {
  content: "";
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.78), rgba(8, 8, 8, 0.38) 55%, rgba(255, 212, 41, 0.24)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.08), rgba(8, 8, 8, 0.64));
}

.result-hero::after {
  content: none;
  z-index: 3;
  top: auto;
  height: 8px;
  background: var(--yellow);
}

.result-hero-media {
  background: url("../img/hero-htcc-bmw-side.jpg") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroPhotoZoom 14s ease-in-out infinite alternate;
}

.result-hero-grid {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 54px;
  align-items: center;
  padding: 92px 0 72px;
}

.result-hero-copy h1 {
  max-width: 760px;
}

.result-visual {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: end;
}

.result-board-stack {
  position: relative;
  width: min(100%, 460px);
}

.result-board {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateY(12px) rotate(-1deg) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.result-board.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) rotate(-1deg) scale(1);
  animation: resultFloat 5s ease-in-out infinite;
}

.result-board-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 4px 2px 14px;
  border-bottom: 2px solid var(--black);
  font-weight: 900;
  text-transform: uppercase;
}

.result-board-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 36px;
  border-radius: var(--radius);
  background: var(--yellow);
}

.result-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  transform-origin: left center;
  animation: resultRowIn 0.7s ease both;
}

.result-row:nth-child(3) {
  animation-delay: 0.12s;
}

.result-row:nth-child(4) {
  animation-delay: 0.24s;
}

.result-row span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-weight: 900;
}

.result-row.is-first span {
  background: var(--yellow);
  color: var(--black);
}

.result-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-row em {
  color: var(--red);
  font-style: normal;
  font-weight: 900;
}

.result-progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #dedbd0;
}

.result-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  animation: resultProgress 2.4s ease-in-out infinite alternate;
}

.result-badge {
  width: min(100%, 310px);
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 18px 42px rgba(255, 212, 41, 0.24);
  animation: resultBadge 4.8s ease-in-out infinite;
}

.result-badge strong,
.result-badge span {
  display: block;
}

.result-badge span {
  color: rgba(8, 8, 8, 0.68);
  font-weight: 800;
}

/* ui.css */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 4px;
  background: currentColor;
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -44%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform 0.45s ease;
}

.btn:hover::after,
.btn:focus::after {
  transform: skewX(-18deg) translateX(380%);
}

.btn-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  transition: transform 0.22s ease;
}

.btn:hover .btn-icon,
.btn:focus .btn-icon {
  transform: translateX(3px);
}

.btn-illustrated {
  gap: 10px;
  padding-left: 12px;
}

.btn-graphic {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-graphic .icon {
  width: 18px;
  height: 18px;
}

.btn-primary .btn-graphic {
  background: var(--black);
  color: #fff;
}

.btn-secondary .btn-graphic {
  background: var(--yellow);
  color: var(--black);
}

.btn-illustrated span:last-child {
  position: relative;
  z-index: 1;
}

.btn-illustrated:hover .btn-graphic,
.btn-illustrated:focus .btn-graphic {
  transform: translateX(2px) rotate(-6deg) scale(1.08);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 10px 26px rgba(255, 212, 41, 0.22);
}

.btn-secondary {
  background: #fff;
  color: var(--black);
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.btn-icon-only {
  width: 46px;
  min-width: 46px;
  padding-inline: 0;
  gap: 0;
}

.btn-icon-only.full {
  width: 100%;
}

.btn-icon-only .btn-icon {
  width: 1.18rem;
  height: 1.18rem;
}

.action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.action-icon .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.action-icon:hover,
.action-icon:focus {
  transform: translateY(-2px);
  border-color: var(--yellow);
  box-shadow: 0 10px 22px rgba(8, 8, 8, 0.1);
}

.action-icon.is-primary {
  border-color: rgba(11, 17, 22, 0.42);
  background: var(--yellow);
}

.action-icon.is-danger,
.link-danger.action-icon {
  border-color: rgba(228, 117, 113, 0.42);
  background: #fff5f4;
  color: var(--red);
}

.action-icon.is-muted {
  background: var(--surface-soft);
  color: var(--muted);
}

.member-inline-action.action-icon,
.dashboard-card-action.action-icon,
.meal-followup-link.action-icon,
.photo-clear.action-icon,
.drag-handle.action-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.hero-actions,
.section-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.race-countdown {
  align-self: end;
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 212, 41, 0.42);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.72);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.race-countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 58%, rgba(255, 212, 41, 0.12) 58% 70%, transparent 70%);
}

.race-countdown h2 {
  margin-bottom: 6px;
  font-size: 2rem;
}

.countdown-kicker,
.countdown-date {
  margin: 0 0 12px;
  font-weight: 900;
}

.countdown-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  text-transform: uppercase;
}

.countdown-icon {
  width: 1rem;
  height: 1rem;
}

.countdown-date {
  color: rgba(255, 255, 255, 0.82);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
  perspective: 900px;
}

.countdown-grid span {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 7px;
  place-items: center;
  padding: 0;
  color: #fff;
  text-align: center;
}

.countdown-grid strong,
.countdown-grid small {
  display: block;
}

.countdown-grid strong {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 70px;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 41, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #1c201f 0 49%, #07090a 50% 100%);
  color: var(--yellow);
  font-family: "Russo One", Impact, sans-serif;
  font-size: 2.05rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  box-shadow:
    0 13px 24px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8);
  transform-origin: center top;
  transform-style: preserve-3d;
}

.countdown-grid strong::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.78), 0 1px 0 rgba(0, 0, 0, 0.7);
}

.countdown-grid strong::after {
  content: attr(data-value);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, #262d2b 0 49%, #07090a 50% 100%);
  color: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.85);
  transform: rotateX(-92deg);
  transform-origin: center top;
  transform-style: preserve-3d;
}

.countdown-grid strong.is-ticking {
  animation: countdownTilePulse 0.68s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.countdown-grid strong.is-ticking::after {
  animation: countdownFlipPanel 0.68s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.countdown-grid small {
  width: 100%;
  margin-top: -8px;
  padding: 6px 4px 5px;
  border-radius: 0 0 6px 6px;
  background: rgba(237, 215, 113, 0.96);
  color: var(--black);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.18);
}

.race-countdown .countdown-link {
  color: #fff;
}

@keyframes countdownTilePulse {
  0% {
    transform: translateY(0);
  }

  34% {
    transform: translateY(1px);
    box-shadow:
      0 7px 16px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.8);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes countdownFlipPanel {
  0% {
    opacity: 1;
    transform: rotateX(-92deg);
  }

  48% {
    opacity: 1;
    transform: rotateX(-10deg);
  }

  72% {
    opacity: 1;
    transform: rotateX(8deg);
  }

  100% {
    opacity: 0;
    transform: rotateX(0deg);
  }
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 48px 0;
}

.section-muted {
  background:
    linear-gradient(135deg, rgba(255, 212, 41, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(8, 8, 8, 0.035), transparent 28%),
    var(--surface-soft);
}

.section-dark {
  background: var(--black);
  color: #fff;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 920px;
}

.feature-grid,
.format-grid,
.toolbox-grid,
.sponsors-grid,
.announcement-grid,
.info-grid,
.prose-grid {
  display: grid;
  gap: 22px;
}

.feature-grid,
.format-grid,
.prose-grid {
  grid-template-columns: repeat(3, 1fr);
}

.format-grid,
.prose-grid {
  grid-template-columns: repeat(2, 1fr);
}

.first-entry-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding-left: 0;
  list-style: none;
}

.first-entry-steps .format-card {
  padding: 22px;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-family: "Russo One", sans-serif;
  font-size: 1.1rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 960px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.faq-item summary {
  padding: 20px 58px 20px 22px;
  cursor: pointer;
  font-weight: 900;
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
}

@media (max-width: 1100px) {
  .first-entry-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .first-entry-steps {
    grid-template-columns: 1fr;
  }
}

.feature-card,
.format-card,
.rich-panel,
.announcement-card,
.contact-card,
.info-block,
.toolbox-item,
.sponsor-card,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.feature-card,
.format-card,
.rich-panel,
.announcement-card,
.contact-card,
.info-block,
.toolbox-item,
.sponsor-card,
.result-highlight,
.spec-item {
  position: relative;
}

.feature-card,
.format-card,
.rich-panel,
.announcement-card,
.contact-card,
.info-block,
.toolbox-item,
.sponsor-card,
.result-highlight {
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.feature-card::before,
.format-card::before,
.rich-panel::before,
.announcement-card::before,
.contact-card::before,
.info-block::before,
.toolbox-item::before,
.sponsor-card::before,
.result-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 0 62%, rgba(255, 212, 41, 0.14) 62% 69%, transparent 69%);
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.feature-card:hover,
.format-card:hover,
.rich-panel:hover,
.announcement-card:hover,
.contact-card:hover,
.info-block:hover,
.toolbox-item:hover,
.sponsor-card:hover,
.result-highlight:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 212, 41, 0.85);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.11);
}

.feature-card:hover::before,
.format-card:hover::before,
.rich-panel:hover::before,
.announcement-card:hover::before,
.contact-card:hover::before,
.info-block:hover::before,
.toolbox-item:hover::before,
.sponsor-card:hover::before,
.result-highlight:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.feature-card {
  min-height: 210px;
}

.pricing-callout {
  margin-top: 22px;
}

.pricing-callout .rich-panel {
  max-width: 860px;
  margin-inline: auto;
}

.pricing-callout-actions {
  margin-top: 18px;
}

.catering-highlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(185, 204, 91, 0.24), transparent 28%),
    linear-gradient(135deg, #172017 0%, var(--black) 48%, #20251f 100%);
}

.catering-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(115deg, transparent 0 72px, rgba(255, 255, 255, 0.025) 72px 74px);
}

.catering-card {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(185, 204, 91, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.28);
}

.catering-media {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 330px;
}

.catering-logo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.catering-badge {
  position: absolute;
  right: -12px;
  bottom: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(11, 17, 22, 0.2);
  border-radius: 999px;
  background: #b9cc5b;
  color: var(--black);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.catering-copy {
  max-width: 650px;
}

.catering-copy .eyebrow {
  color: #c9dc70;
}

.catering-copy h2 {
  margin-bottom: 0.4em;
  color: #fff;
}

.catering-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.catering-copy .catering-lead {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
}

.catering-actions {
  margin-top: 24px;
}

.catering-highlight .btn-secondary {
  border-color: rgba(255, 255, 255, 0.76);
  background: #fff;
  color: var(--black);
}

@media (max-width: 820px) {
  .catering-card {
    grid-template-columns: 1fr;
  }

  .catering-copy {
    max-width: none;
    text-align: center;
  }

  .catering-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .catering-card {
    padding: 18px;
  }

  .catering-media {
    max-width: 280px;
  }

  .catering-badge {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    font-size: 0.78rem;
  }

  .catering-copy h2 {
    font-size: 2rem;
  }
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(8, 8, 8, 0.14);
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(-6deg) scale(1.08);
  background: var(--yellow);
  color: var(--black);
}

.feature-svg {
  width: 24px;
  height: 24px;
}

.split-section {
  overflow: hidden;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.split-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(8, 8, 8, 0.14);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow);
}

.split-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 7s ease;
}

.split-slide-picture,
.split-slide-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.split-slide-image {
  object-fit: cover;
}

.split-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(-45deg, transparent 0 28px, rgba(255, 212, 41, 0.12) 28px 32px, transparent 32px 48px);
}

.split-slide.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.split-slide span {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.text-link,
.doc-link,
.footer-bottom a,
.footer-social {
  color: var(--black);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 4px;
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.link-with-icon:hover .link-icon,
.link-with-icon:focus .link-icon {
  transform: translateX(3px);
}

.section-dark .text-link,
.section-dark .doc-link {
  color: #fff;
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin: 1.5rem 0; }

/* calendar-tools.css */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

#calendrier.section-muted {
  position: relative;
  background:
    linear-gradient(135deg, rgba(232, 79, 26, 0.16), rgba(255, 212, 41, 0.12) 28%, transparent 56%),
    linear-gradient(315deg, rgba(8, 8, 8, 0.07), transparent 34%),
    linear-gradient(180deg, #f0f5ee 0%, #e6eee6 100%);
  border-top: 1px solid rgba(8, 8, 8, 0.08);
  border-bottom: 1px solid rgba(8, 8, 8, 0.1);
  box-shadow:
    inset 0 22px 46px rgba(8, 8, 8, 0.045),
    inset 0 -20px 42px rgba(255, 255, 255, 0.68);
}

#calendrier .calendar-item {
  background: rgba(255, 255, 255, 0.94);
}

.calendar-item {
  position: relative;
  min-height: 128px;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.calendar-item::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(255, 212, 41, 0.18), transparent 48%),
    linear-gradient(315deg, rgba(129, 217, 226, 0.16), transparent 44%);
  transition: opacity 0.22s ease;
}

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.calendar-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.calendar-icon .icon {
  width: 18px;
  height: 18px;
}

.calendar-item:hover,
.calendar-item:focus {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.14);
}

.calendar-item:hover::before,
.calendar-item:focus::before {
  opacity: 1;
}

.calendar-item:hover .calendar-icon,
.calendar-item:focus .calendar-icon {
  transform: rotate(-8deg) scale(1.1);
  background: var(--yellow);
  color: var(--black);
  animation: iconKick 0.42s ease;
}

.calendar-item.is-past {
  position: relative;
  opacity: 0.58;
  background: #ebe9e2;
}

.calendar-item.is-next {
  border-color: rgba(255, 212, 41, 0.9);
  background:
    linear-gradient(145deg, #fffef4 0%, #fff3c4 100%);
  box-shadow: 0 22px 48px rgba(8, 8, 8, 0.16), 0 0 0 1px rgba(255, 212, 41, 0.38);
}

.calendar-item.is-next .calendar-icon {
  background: var(--yellow);
  color: var(--black);
  animation: iconKick 1.8s ease-in-out infinite;
}

.calendar-item.is-upcoming {
  border-color: rgba(8, 8, 8, 0.12);
}

.calendar-status {
  width: max-content;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-status-next {
  background: var(--yellow);
  color: var(--black);
}

.calendar-status-upcoming {
  background: #eef3ff;
  color: #264d9b;
}

.calendar-track {
  font-family: "Russo One", Impact, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  text-transform: uppercase;
}

.calendar-date {
  color: var(--muted);
  font-weight: 800;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.spec-item {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border-left: 5px solid var(--yellow);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 2px 14px;
  align-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.spec-item:hover {
  transform: translateX(4px);
  background: #fff;
}

.spec-icon {
  grid-row: span 2;
  justify-self: center;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 10px 22px rgba(255, 212, 41, 0.2);
}

.spec-icon img {
  display: block;
  width: 25px;
  height: 25px;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.spec-icon .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

.spec-item strong,
.spec-item > span:not(.spec-icon) {
  display: block;
}

.spec-item strong {
  font-size: 1.1rem;
}

.spec-item > span:not(.spec-icon) {
  color: var(--muted);
  font-weight: 700;
}

.toolbox-grid {
  grid-template-columns: repeat(3, 1fr);
}

.toolbox-item {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.toolbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbox-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--black);
}

.toolbox-icon .icon {
  width: 20px;
  height: 20px;
}

.toolbox-item:hover,
.toolbox-item:focus {
  transform: translateY(-3px);
  border-color: var(--yellow);
}

.doc-kind {
  width: max-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.76rem;
  font-weight: 900;
}

/* announcements.css */
.announcement-grid {
  grid-template-columns: repeat(3, 1fr);
}

.announcement-card {
  padding: 0;
  overflow: hidden;
}

.announcement-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  overflow: hidden;
}

.announcement-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 212, 41, 0.2), transparent 36%, rgba(8, 8, 8, 0.16));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.announcement-card:hover .announcement-media::after {
  opacity: 1;
}

.announcement-slides,
.announcement-slide {
  position: absolute;
  inset: 0;
}

.announcement-slide {
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.45s ease;
  transform: scale(1.03);
  pointer-events: none;
}

.announcement-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.announcement-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.72);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.carousel-dots button.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--yellow);
}

.carousel-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.announcement-body {
  padding: 22px;
}

.announcement-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 900;
  color: var(--muted);
}

.announcement-type,
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.announcement-type .icon,
.contact-line .icon {
  width: 1rem;
  height: 1rem;
  color: var(--yellow-dark);
}

.status {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.status-disponible {
  background: #dff4e7;
  color: var(--green);
}

.status-vendu,
.status-loue,
.status-trouve {
  background: #f9e1e1;
  color: var(--red);
}

.price {
  color: var(--yellow-dark);
  font-weight: 900;
  font-size: 1.1rem;
}

.contact-line {
  margin: 18px 0 0;
  font-weight: 800;
}

.contact-line-locked {
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
}

.announcement-contact-link {
  white-space: nowrap;
}

.rich-text ul {
  padding-left: 1.2rem;
}

.rich-text.compact {
  max-height: 230px;
  overflow: auto;
}

.info-grid {
  grid-template-columns: repeat(2, 1fr);
}

.info-stack {
  display: grid;
  gap: 20px;
}

.info-block {
  color: var(--ink);
}

/* results-sponsors.css */
.results-focus {
  background:
    linear-gradient(180deg, #fff 0, #fff 58%, var(--surface-soft) 58%, var(--surface-soft) 100%);
}

.result-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.result-highlight {
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.result-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 10px 22px rgba(255, 212, 41, 0.2);
}

.result-highlight-icon .icon {
  display: block;
  width: 22px;
  height: 22px;
}

.result-highlight:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
}

.result-highlight strong,
.result-highlight > span:not(.result-highlight-icon) {
  display: block;
}

.result-highlight strong {
  margin-bottom: 8px;
  font-family: "Russo One", Impact, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
}

.result-highlight > span:not(.result-highlight-icon) {
  color: var(--muted);
  font-weight: 700;
}

.sheet-frame {
  overflow: hidden;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.sheet-frame iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 680px;
  border: 0;
}

.result-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.result-table-wrap:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.result-table-hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.result-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.result-table th,
.result-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.result-table th:nth-child(2),
.result-table td:nth-child(2) {
  min-width: 220px;
  text-align: left;
}

.result-table .result-col-rank,
.result-table .result-col-driver,
.result-table .result-col-total {
  position: sticky;
}

.result-table .result-col-rank {
  left: 0;
  z-index: 2;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
}

.result-table .result-col-driver {
  left: 58px;
  z-index: 2;
  background: #fff;
  box-shadow: 8px 0 14px -14px rgba(0, 0, 0, 0.8);
  font-weight: 800;
}

.result-table .result-col-total {
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -8px 0 14px -14px rgba(0, 0, 0, 0.8);
}

.result-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--black);
  color: #fff;
  font-family: "Russo One", Impact, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
}

.result-table thead .result-col-rank,
.result-table thead .result-col-driver,
.result-table thead .result-col-total {
  z-index: 4;
  background: var(--black);
}

.result-table tbody tr:nth-child(even) {
  background: var(--surface-soft);
}

.result-table tbody tr:nth-child(even) .result-col-rank,
.result-table tbody tr:nth-child(even) .result-col-driver,
.result-table tbody tr:nth-child(even) .result-col-total {
  background: var(--surface-soft);
}

.result-table tbody tr:hover {
  background: rgba(232, 79, 26, 0.08);
}

.result-table tbody tr:hover .result-col-rank,
.result-table tbody tr:hover .result-col-driver,
.result-table tbody tr:hover .result-col-total {
  background: #fcedea;
}

.result-table td:first-child,
.result-table td:last-child {
  font-weight: 900;
}

.info-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.sponsors-grid {
  grid-template-columns: repeat(3, 1fr);
}

.sponsor-card {
  min-height: 160px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.sponsor-card img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.sponsor-logo {
  display: grid;
  place-items: center;
  width: 86%;
  height: 92px;
}

@media (max-width: 760px) {
  .result-table {
    min-width: 820px;
  }

  .result-table th,
  .result-table td {
    padding: 12px 10px;
  }

  .result-table th:nth-child(2),
  .result-table td:nth-child(2) {
    min-width: 128px;
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .result-table .result-col-rank {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }

  .result-table .result-col-driver {
    left: 44px;
  }

  .result-table .result-col-total {
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    padding-inline: 8px;
  }
}

.sponsor-featured {
  border-color: var(--yellow);
  box-shadow: 0 18px 46px rgba(255, 212, 41, 0.22);
}

@keyframes speedSweep {
  from {
    background-position: 0 0, 0 0;
    transform: translateX(0) skewX(-16deg);
  }
  to {
    background-position: 180px 0, 0 0;
    transform: translateX(24px) skewX(-16deg);
  }
}

@keyframes iconKick {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  45% {
    transform: rotate(-8deg) scale(1.12);
  }
}

@keyframes heroSlide {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  7%,
  33% {
    opacity: 1;
  }
  42%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes headerRaceLine {
  from {
    background-position: -16% 0, 0 0;
  }
  to {
    background-position: 84% 0, 0 0;
  }
}

@keyframes heroPhotoZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes resultFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes resultRowIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes resultProgress {
  from {
    width: 54%;
  }
  to {
    width: 86%;
  }
}

@keyframes resultBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* forms.css */
.filters,
.contact-form,
.admin-form {
  display: grid;
  gap: 18px;
}

.filters {
  grid-template-columns: 1fr 1fr auto auto;
  align-items: end;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8d6cf;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(255, 212, 41, 0.35);
  border-color: var(--yellow-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}

.sale-submit-grid {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 34px;
  align-items: start;
}

.auth-grid,
.member-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.member-dashboard-grid {
  grid-template-columns: repeat(3, 1fr);
}

.member-dashboard-card {
  display: grid;
  gap: 12px;
  color: inherit;
}

.member-dashboard-card h2,
.member-dashboard-card p {
  margin-bottom: 0;
}

.dashboard-card-action {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-card-action:hover,
.dashboard-card-action:focus {
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(8, 8, 8, 0.1);
}

.dashboard-card-actions {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-card-actions .dashboard-card-action {
  margin-top: 0;
}

.dashboard-card-action-secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}

.member-priority-section {
  padding-top: 22px;
  padding-bottom: 26px;
}

.member-priority-head {
  margin-bottom: 18px;
}

.member-priority-head h2 {
  margin-bottom: 0;
}

.member-priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.member-priority-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.member-priority-card:hover,
.member-priority-card:focus {
  transform: translateY(-4px);
}

.member-priority-card strong,
.member-priority-card small,
.member-priority-card em {
  display: block;
}

.member-priority-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.member-priority-card em {
  grid-column: 1 / -1;
  margin-top: auto;
  color: var(--black);
  font-style: normal;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.member-priority-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.member-priority-card:hover .member-priority-icon,
.member-priority-card:focus .member-priority-icon {
  animation: iconKick 0.42s ease;
}

.member-priority-icon .icon {
  width: 22px;
  height: 22px;
}

.member-priority-card.task-primary .member-priority-icon {
  background: var(--black);
  color: var(--yellow);
}

.member-priority-card.task-success {
  border-color: #bce4c9;
}

.member-priority-card.task-success .member-priority-icon {
  background: var(--green);
  color: #fff;
}

.member-priority-card.task-warning {
  border-color: rgba(214, 170, 0, 0.5);
}

.member-priority-card.is-done {
  background: var(--surface-soft);
}

.member-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.member-status-nouveau,
.member-status-a_traiter,
.member-status-pending,
.member-status-attente_passeport {
  background: var(--yellow);
  color: var(--black);
}

.member-status-valide,
.member-status-repondu,
.member-status-validated {
  background: #effaf3;
  color: var(--green);
}

.member-status-annule,
.member-status-archive,
.member-status-rejected {
  background: #f0eeee;
  color: var(--muted);
}

.member-status-retour_membre {
  background: #eef3ff;
  color: #264d9b;
}

.member-list {
  display: grid;
  gap: 12px;
}

.member-list-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.member-list-item:hover,
.member-list-item:focus-within {
  transform: translateX(4px);
  border-color: rgba(255, 212, 41, 0.78);
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 8, 8, 0.08);
}

.member-list-item-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.member-item-link,
.member-empty-link {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: inherit;
}

.member-item-link:hover,
.member-item-link:focus,
.member-empty-link:hover,
.member-empty-link:focus {
  color: var(--black);
}

.member-inline-action {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.member-inline-action:hover,
.member-inline-action:focus {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
}

.member-renew-action {
  color: var(--green);
}

.member-cancel-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card a {
  display: block;
  font-weight: 800;
}

.contact-icon,
.panel-icon,
.format-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 12px 30px rgba(255, 212, 41, 0.22);
}

.contact-icon .icon,
.panel-icon .icon,
.format-icon .icon {
  width: 24px;
  height: 24px;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid-two,
.form-grid-three,
.form-grid-four {
  display: grid;
  gap: 16px;
}

.form-grid-two {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.race-car-priority-grid {
  align-items: end;
}

.form-field-stack {
  display: grid;
  gap: 8px;
}

.race-car-documents-grid {
  align-items: start;
}

.race-pricing-notice {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(214, 170, 0, 0.36);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 248, 234, 0.72), rgba(255, 255, 255, 0.78));
}

.race-pricing-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.race-pricing-head .eyebrow,
.race-pricing-head h2,
.race-pricing-head p {
  margin: 0;
}

.race-pricing-head h2 {
  font-size: clamp(1.28rem, 2vw, 1.6rem);
}

.pricing-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
}

.pricing-icon .icon {
  width: 22px;
  height: 22px;
}

.race-pricing-table-wrap {
  overflow-x: auto;
}

.race-pricing-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.race-pricing-table th,
.race-pricing-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.09);
  text-align: left;
  vertical-align: top;
}

.race-pricing-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.race-pricing-table th:last-child,
.race-pricing-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.form-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.form-fieldset legend {
  padding: 0 8px;
  font-weight: 900;
}

.form-fieldset legend small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-fieldset[hidden] {
  display: none;
}

.reuse-driver-line {
  padding: 12px;
  border: 1px solid rgba(255, 212, 41, 0.5);
  border-radius: var(--radius);
  background: #fff8d7;
}

.form-fieldset.is-driver-reused .form-grid-two,
.form-fieldset.is-driver-reused .form-grid-three {
  opacity: 0.45;
}

.form-fieldset.is-driver-reused input:disabled,
.form-fieldset.is-driver-reused select:disabled {
  background: #edeae2;
  color: var(--muted);
}

.license-options,
.driver-license-choice {
  display: grid;
  gap: 8px;
}

.driver-license-choice {
  margin-bottom: 14px;
}

.driver-license-choice .choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.license-options .checkbox-line {
  min-height: 0;
  padding: 8px 10px;
}

.driver-invite-line {
  align-items: flex-start;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(129, 217, 226, 0.6);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(129, 217, 226, 0.16), rgba(237, 215, 113, 0.16));
}

.driver-invite-line span {
  display: grid;
  gap: 3px;
}

.driver-invite-line small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.meal-followup-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(129, 217, 226, 0.62);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(129, 217, 226, 0.15), rgba(253, 157, 78, 0.12));
}

.meal-followup-card .checkbox-line {
  align-items: flex-start;
  min-height: 0;
  padding: 0;
}

.meal-followup-card span {
  display: grid;
  gap: 3px;
}

.meal-followup-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.meal-followup-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-self: start;
  color: var(--ink);
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

.choice-grid,
.event-choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: repeat(2, 1fr);
}

.race-entry-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.race-entry-stepper button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.race-entry-stepper button.is-active {
  border-color: rgba(214, 170, 0, 0.45);
  background: var(--yellow);
  color: var(--black);
}

.race-entry-step-panel {
  display: grid;
  gap: 18px;
}

.race-entry-form.is-stepped .race-entry-step-panel:not(.is-active) {
  display: none;
}

.race-entry-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.race-entry-progress {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.race-entry-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.race-entry-progress progress {
  width: 100%;
  height: 12px;
  accent-color: var(--yellow);
}

.race-entry-history {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.race-entry-history ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.race-entry-history li span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.member-entry-secondary-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.88rem;
}

.member-entry-timeline {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
}

.event-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.choice-card input {
  width: auto;
}

.inline-choice-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.inline-choice-field legend {
  margin: 0;
  padding: 0;
  font-weight: 800;
}

.compact-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-choice-card {
  min-height: 48px;
  padding: 9px 10px;
}

.choice-card-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.choice-card-content,
.choice-card span {
  display: grid;
  gap: 2px;
}

.choice-card-content {
  min-width: 0;
  flex: 1;
}

.choice-card-title-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.choice-card-title-row strong {
  min-width: 0;
}

.choice-card.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.choice-card.is-disabled input {
  cursor: not-allowed;
}

.championship-tooltip {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  cursor: help;
}

.championship-tooltip .icon {
  width: 15px;
  height: 15px;
}

.championship-tooltip-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid !important;
  width: min(280px, calc(100vw - 48px));
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--black);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  visibility: hidden;
}

.championship-tooltip:hover .championship-tooltip-panel,
.championship-tooltip:focus .championship-tooltip-panel,
.championship-tooltip:focus-within .championship-tooltip-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.championship-tooltip-panel strong {
  color: var(--yellow);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.championship-tooltip-line {
  color: #fff;
}

.photo-uploader {
  display: grid;
  gap: 12px;
}

.photo-uploader-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 900;
}

.photo-uploader-head span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.photo-slots {
  display: grid;
  gap: 10px;
}

.member-announcement-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.member-announcement-image {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.member-announcement-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
}

.member-announcement-image small {
  display: flex;
  align-items: center;
  gap: 8px;
}

.js .photo-slot.is-hidden {
  display: none;
}

.photo-slot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.photo-slot.is-selected {
  background: #fff;
  border-color: rgba(255, 212, 41, 0.85);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.photo-slot label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}

.photo-slot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
}

.photo-slot-title,
.photo-slot-action,
.photo-filename {
  display: block;
}

.photo-slot-title {
  font-weight: 900;
}

.photo-slot-action {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 5px;
  color: var(--yellow-dark);
  font-weight: 900;
}

.photo-slot-icon {
  width: 18px;
  height: 18px;
}

.photo-slot input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.photo-filename {
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.photo-clear {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 900;
}

.photo-clear:hover {
  border-color: var(--yellow);
}

.photo-add {
  justify-self: start;
}

.form-error {
  color: var(--red);
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.checkbox-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checkbox-line input {
  width: auto;
}

.form-section-title {
  font-weight: 900;
  margin-top: 8px;
}

.regulation-link {
  color: var(--ink);
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}

.regulation-link:hover,
.regulation-link:focus {
  color: var(--yellow-dark);
  text-decoration-color: currentColor;
}

.honeypot {
  position: absolute;
  left: -5000px;
}

.flash-stack {
  padding-top: 18px;
  display: grid;
  gap: 10px;
}

.race-entry-flashes {
  padding-top: 0;
  margin-bottom: 18px;
}

.member-dashboard-flashes {
  padding-top: 0;
  margin-bottom: 18px;
}

.auth-flashes {
  grid-column: 1 / -1;
  padding-top: 0;
  margin-bottom: 2px;
}

.flash {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
}

.flash-success {
  border-color: #bce4c9;
  background: #effaf3;
  color: #286f63;
}

.flash-error {
  border-color: #edc0c0;
  background: #fff0f0;
  color: var(--red);
}

.legal-content {
  max-width: 920px;
}

.legal-content h2 {
  margin-top: 2.4rem;
}

.legal-content a {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
}

/* footer.css */
.site-footer {
  background: var(--black);
  color: #fff;
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  width: 210px;
  margin-bottom: 18px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
}

.site-footer nav {
  display: grid;
  gap: 9px;
}

.footer-title {
  font-weight: 900;
}

.footer-social,
.footer-bottom a {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal,
.js .calendar-item,
.js .member-priority-card,
.js .member-dashboard-card,
.js .member-list-item,
.js .dashboard-action-card,
.js .dashboard-info-card,
.js .admin-card,
.js .admin-table-wrap,
.js .message-card,
.js .admin-queue-item,
.js .admin-queue-empty {
  transition: opacity 0.58s ease, transform 0.58s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.js .reveal:not(.is-visible),
.js .calendar-item:not(.is-visible),
.js .member-priority-card:not(.is-visible),
.js .member-dashboard-card:not(.is-visible),
.js .member-list-item:not(.is-visible),
.js .dashboard-action-card:not(.is-visible),
.js .dashboard-info-card:not(.is-visible),
.js .admin-card:not(.is-visible),
.js .admin-table-wrap:not(.is-visible),
.js .message-card:not(.is-visible),
.js .admin-queue-item:not(.is-visible),
.js .admin-queue-empty:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible,
.js .calendar-item.is-visible,
.js .member-priority-card.is-visible,
.js .member-dashboard-card.is-visible,
.js .member-list-item.is-visible,
.js .dashboard-action-card.is-visible,
.js .dashboard-info-card.is-visible,
.js .admin-card.is-visible,
.js .admin-table-wrap.is-visible,
.js .message-card.is-visible,
.js .admin-queue-item.is-visible,
.js .admin-queue-empty.is-visible {
  opacity: 1;
}

/* shared.css */
.muted {
  color: var(--muted);
  font-weight: 700;
}

.field-label {
  display: block;
  font-weight: 800;
}

.form-error-list {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid #f0b6b6;
  border-radius: var(--radius);
  background: #fff1f1;
  color: var(--red);
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.form-help,
small {
  color: var(--muted);
  font-weight: 600;
}

/* soft-racing.css */
:root {
  --line: #ddcfbd;
  --line-strong: #bda892;
  --surface: #f3f4e4;
  --surface-soft: #f2dec4;
  --surface-raised: #fff8ea;
  --surface-pressed: #ead6bd;
  --ink-soft: #312920;
  --shadow: 0 18px 48px rgba(11, 17, 22, 0.15);
  --shadow-soft: 8px 10px 0 rgba(11, 17, 22, 0.11), 0 18px 38px rgba(11, 17, 22, 0.11);
  --shadow-soft-low: 5px 6px 0 rgba(11, 17, 22, 0.09), 0 12px 24px rgba(11, 17, 22, 0.08);
  --shadow-inset: inset 3px 3px 0 rgba(11, 17, 22, 0.08), inset -3px -3px 0 rgba(255, 255, 255, 0.72);
  --shadow-yellow: 0 10px 0 rgba(161, 93, 120, 0.25), 0 18px 30px rgba(253, 157, 78, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  --focus-ring: 0 0 0 4px rgba(129, 217, 226, 0.28), 0 0 0 1px rgba(11, 17, 22, 0.34);
}

body {
  background:
    repeating-linear-gradient(90deg, rgba(129, 217, 226, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, rgba(161, 93, 120, 0.13) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, rgba(129, 217, 226, 0.2) 0%, rgba(237, 215, 113, 0.24) 36%, rgba(228, 117, 113, 0.16) 66%, #ead8c5 100%) fixed;
}

body:not(.admin-body):not(.login-body) main {
  background:
    linear-gradient(180deg, rgba(243, 244, 228, 0.72), rgba(242, 222, 196, 0.82));
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.site-header {
  background: rgba(243, 244, 228, 0.94);
  border-bottom-color: rgba(11, 17, 22, 0.18);
  box-shadow: 0 12px 28px rgba(11, 17, 22, 0.13), inset 0 -1px 0 rgba(255, 255, 255, 0.78);
}

.brand,
.header-social a,
.site-nav a,
  .nav-toggle,
  .admin-nav-toggle {
  border-color: rgba(188, 174, 153, 0.95);
  background: var(--surface-raised);
  box-shadow: var(--shadow-soft-low);
}

.brand {
  padding: 7px 10px;
}

.site-nav a {
  box-shadow: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active,
.header-social a:hover,
.header-social a:focus {
  background: var(--yellow);
  color: var(--black);
  border-color: rgba(11, 17, 22, 0.48);
  box-shadow: var(--shadow-yellow);
}

.site-nav a:active,
.header-social a:active,
.nav-toggle:active {
  box-shadow: var(--shadow-inset);
  transform: translateY(1px);
}

.hero-slider::after {
  background:
    linear-gradient(100deg, rgba(11, 17, 22, 0.92), rgba(11, 17, 22, 0.64) 45%, rgba(129, 217, 226, 0.24) 68%, rgba(253, 157, 78, 0.18)),
    repeating-linear-gradient(-48deg, transparent 0 28px, rgba(237, 215, 113, 0.14) 28px 34px, transparent 34px 52px),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.52));
}

.page-hero {
  background-image:
    linear-gradient(105deg, rgba(11, 17, 22, 0.92), rgba(11, 17, 22, 0.64) 54%, rgba(129, 217, 226, 0.28) 74%, rgba(253, 157, 78, 0.2)),
    var(--page-hero-image);
}

.eyebrow {
  color: var(--yellow);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.18);
}

.section-muted {
  background:
    linear-gradient(135deg, rgba(129, 217, 226, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(161, 93, 120, 0.12), transparent 28%),
    repeating-linear-gradient(90deg, rgba(11, 17, 22, 0.04) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, #f3f4e4 0%, #efdec5 100%);
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(253, 157, 78, 0.16), transparent 30%),
    linear-gradient(225deg, rgba(129, 217, 226, 0.14), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    linear-gradient(180deg, #111820 0%, #070b0f 100%);
}

.btn,
.dashboard-card-action,
.drag-handle,
.photo-clear {
  border-color: rgba(205, 213, 206, 0.95);
  box-shadow: var(--shadow-soft-low);
}

.btn {
  min-height: 46px;
  color: var(--black);
}

.btn-primary {
  border-color: rgba(11, 17, 22, 0.55);
  background:
    linear-gradient(180deg, #edd771 0%, var(--yellow) 46%, #e47571 100%);
  box-shadow: var(--shadow-yellow);
}

.btn-secondary,
.dashboard-card-action-secondary {
  background:
    linear-gradient(180deg, #fff8ea 0%, var(--surface-raised) 100%);
  color: var(--black);
}

.btn:hover,
.btn:focus,
.dashboard-card-action:hover,
.dashboard-card-action:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(8, 8, 8, 0.13), -7px -7px 18px rgba(255, 255, 255, 0.9);
}

.btn:active,
.dashboard-card-action:active,
.photo-clear:active,
.drag-handle:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-inset);
}

.btn-graphic,
.feature-icon,
.calendar-icon,
.contact-icon,
.panel-icon,
.format-icon,
.result-highlight-icon,
.spec-icon,
.dashboard-section-icon,
.dashboard-action-icon,
.dashboard-info-icon,
.photo-slot-badge {
  flex-shrink: 0;
  aspect-ratio: 1;
  box-shadow: var(--shadow-soft-low), inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.btn-primary .btn-graphic,
.feature-icon,
.calendar-icon,
.dashboard-action-icon {
  background: #111312;
  color: var(--yellow);
}

.btn-secondary .btn-graphic,
.contact-icon,
.panel-icon,
.format-icon,
.result-highlight-icon,
.spec-icon,
.dashboard-section-icon,
.dashboard-info-icon,
  .photo-slot-badge {
  background:
    linear-gradient(180deg, #edd771 0%, var(--yellow) 58%, #e47571 100%);
  color: var(--black);
}

.feature-card,
.format-card,
.rich-panel,
.announcement-card,
.contact-card,
.info-block,
.toolbox-item,
.sponsor-card,
.empty-state,
.member-priority-card,
.calendar-item,
.result-highlight,
.sheet-frame,
.contact-form,
.filters,
.race-entry-stepper,
.form-fieldset,
.choice-card,
.member-announcement-image,
.photo-slot,
.member-list-item,
.result-board,
  .challenge-hero-stats span {
  background:
    linear-gradient(145deg, #fff8ea 0%, var(--surface-raised) 100%);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.format-card,
.rich-panel,
.announcement-card,
.contact-card,
.info-block,
.toolbox-item,
.sponsor-card,
.result-highlight,
.member-priority-card,
.calendar-item,
.dashboard-action-card,
.dashboard-info-card,
.admin-card,
.admin-table-wrap,
.message-card,
.login-panel,
.admin-stat {
  transform: translateZ(0);
}

.feature-card::before,
.format-card::before,
.rich-panel::before,
.announcement-card::before,
.contact-card::before,
.info-block::before,
.toolbox-item::before,
.sponsor-card::before,
.result-highlight::before {
  background:
    linear-gradient(112deg, transparent 0 62%, rgba(255, 212, 41, 0.18) 62% 69%, transparent 69%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 42%);
}

.feature-card:hover,
.format-card:hover,
.rich-panel:hover,
.announcement-card:hover,
.contact-card:hover,
.info-block:hover,
.toolbox-item:hover,
.sponsor-card:hover,
.result-highlight:hover,
.calendar-item:hover,
.calendar-item:focus {
  border-color: rgba(214, 170, 0, 0.5);
  box-shadow: 14px 14px 32px rgba(36, 43, 38, 0.14), -10px -10px 26px rgba(255, 255, 255, 0.96);
}

.section-dark .rich-panel,
.section-dark .info-block,
.race-countdown {
  background:
    linear-gradient(145deg, rgba(28, 30, 29, 0.88), rgba(8, 8, 8, 0.72));
  border-color: rgba(255, 212, 41, 0.32);
  box-shadow: 14px 18px 38px rgba(0, 0, 0, 0.34), inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.section-dark .info-block {
  color: #fff;
}

.section-dark .info-block .rich-text {
  color: rgba(255, 255, 255, 0.84);
}

.race-countdown::before {
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 212, 41, 0.15) 58% 70%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%);
}

.countdown-grid span {
  background: transparent;
  box-shadow: none;
}

.countdown-grid strong {
  border-color: rgba(237, 215, 113, 0.34);
  background:
    linear-gradient(180deg, #222827 0 49%, #080b0d 50% 100%);
  box-shadow:
    6px 8px 0 rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82);
}

.calendar-item.is-next {
  border-color: rgba(253, 157, 78, 0.78);
  background:
    linear-gradient(145deg, #fffefa 0%, #fff1bb 100%);
  box-shadow: 14px 14px 0 rgba(253, 157, 78, 0.24), 0 24px 46px rgba(11, 17, 22, 0.16);
}

.calendar-item.is-next::after {
  height: 7px;
  background: linear-gradient(90deg, #edd771 0 42%, #81d9e2 42% 62%, #fd9d4e 62% 100%);
}

.calendar-item.is-next .calendar-icon {
  background: #edd771;
  color: #0b1116;
}

.calendar-item.is-upcoming {
  background:
    linear-gradient(145deg, rgba(255, 248, 234, 0.98) 0%, rgba(243, 244, 228, 0.96) 100%);
}

.member-dashboard-card {
  min-height: 100%;
}

.member-list-item,
.admin-clean-list li {
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.82), 4px 4px 12px rgba(36, 43, 38, 0.06);
}

.member-list-item:hover,
.member-list-item:focus-within,
.choice-card:hover,
.choice-card:focus-within {
  border-color: rgba(214, 170, 0, 0.5);
  background: #ffffff;
}

.dashboard-card-action {
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(214, 170, 0, 0.42);
  background:
    linear-gradient(180deg, #ffdf4b 0%, var(--yellow) 62%, #edbd0e 100%);
}

input,
select,
textarea {
  min-height: 46px;
  border-color: var(--line-strong);
  background: #fbfcfa;
  box-shadow: var(--shadow-inset);
}

textarea {
  min-height: 132px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #b9c3bb;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow-dark);
  outline: 0;
  box-shadow: var(--focus-ring), var(--shadow-inset);
}

input[type="checkbox"],
input[type="radio"] {
  min-height: 0;
  accent-color: var(--yellow);
  box-shadow: none;
}

.checkbox-line,
.choice-card {
  color: var(--ink-soft);
}

.checkbox-line {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.checkbox-line:hover,
.checkbox-line:focus-within {
  background: rgba(255, 212, 41, 0.12);
}

.form-fieldset {
  background:
    linear-gradient(145deg, #f9fbf8 0%, #eef3ef 100%);
}

.reuse-driver-line {
  border-color: rgba(214, 170, 0, 0.55);
  background:
    linear-gradient(145deg, #fff8d7 0%, #ffffff 100%);
}

.photo-slot {
  border-left-color: var(--yellow);
}

.photo-slot.is-selected {
  border-color: rgba(214, 170, 0, 0.58);
  background:
    linear-gradient(145deg, #ffffff 0%, #fff8d7 100%);
}

.photo-uploader-head span,
.admin-badge,
.calendar-status,
.doc-kind,
.status,
.admin-collapse > summary small {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.flash {
  box-shadow: var(--shadow-soft-low);
}

.flash-success {
  background:
    linear-gradient(145deg, #effaf3 0%, #ffffff 100%);
}

.flash-error,
.admin-badge.danger {
  background:
    linear-gradient(145deg, #fff0f0 0%, #ffffff 100%);
}

.admin-body,
.login-body {
  background:
    linear-gradient(180deg, #f8faf7 0%, #eef3ef 100%) fixed;
}

.admin-shell {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.04), transparent 22%),
    linear-gradient(180deg, #f8faf7 0%, #eef3ef 100%);
}

.admin-sidebar {
  background:
    linear-gradient(180deg, #151716 0%, #070807 100%);
  border-right: 1px solid rgba(255, 212, 41, 0.18);
  box-shadow: 14px 0 34px rgba(8, 8, 8, 0.18), inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.admin-brand img,
.login-panel img {
  background: var(--surface-raised);
  border: 1px solid rgba(205, 213, 206, 0.88);
  box-shadow: var(--shadow-soft-low);
}

.admin-sidebar .admin-brand img {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.admin-sidebar .btn-secondary {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.admin-sidebar .admin-nav-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-nav a {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-nav-heading {
  color: rgba(255, 212, 41, 0.78);
}

.admin-nav-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 13px;
}

.admin-nav-section-utility {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-nav a:hover,
.admin-nav a:focus,
.admin-nav a.is-active {
  border-color: rgba(214, 170, 0, 0.58);
  background:
    linear-gradient(180deg, #ffdf4b 0%, var(--yellow) 62%, #edbd0e 100%);
  box-shadow: var(--shadow-yellow);
}

.admin-nav a.is-active {
  color: var(--black);
}

.admin-nav-site-link {
  color: #fff;
}

.admin-card,
.admin-table-wrap,
.login-panel,
.message-card,
.admin-stat,
.dashboard-action-card,
.dashboard-info-card,
.admin-queue-item,
.admin-queue-empty,
.settings-group,
.admin-collapse,
.media-picker,
.media-picker-current,
.media-picker-panel,
.media-picker-item,
.admin-media-grid figure,
.admin-clean-list li {
  background:
    linear-gradient(145deg, #ffffff 0%, var(--surface-raised) 100%);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.admin-stat,
.dashboard-action-card,
.dashboard-info-card,
.admin-queue-item,
.admin-queue-empty,
.settings-group,
.admin-collapse,
.media-picker,
.media-picker-current,
.media-picker-item,
.admin-media-grid figure,
.admin-clean-list li {
  box-shadow: var(--shadow-soft-low);
}

.admin-card,
.admin-table-wrap,
.login-panel,
.message-card {
  border-top: 1px solid rgba(255, 255, 255, 0.9);
}

.admin-table th {
  background: var(--surface-soft);
  color: var(--black);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.admin-table tbody tr {
  transition: background 0.16s ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 212, 41, 0.08);
}

.admin-stat {
  position: relative;
  overflow: hidden;
}

.admin-stat::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), transparent);
}

.dashboard-action-card:hover,
.dashboard-action-card:focus,
.dashboard-info-card:hover,
.dashboard-info-card:focus,
.media-picker-item:hover,
.media-picker-item:focus,
.media-picker-item.is-selected {
  border-color: rgba(214, 170, 0, 0.58);
  box-shadow: 12px 12px 26px rgba(36, 43, 38, 0.13), -8px -8px 22px rgba(255, 255, 255, 0.96);
}

.dashboard-action-card.is-empty,
.dashboard-action-card.is-empty .dashboard-action-icon,
.archive-stack .admin-card,
.admin-collapse .nested-table {
  background:
    linear-gradient(145deg, #f8faf7 0%, #eef3ef 100%);
}

.media-picker-backdrop {
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(6px);
}

.media-picker-panel {
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32), inset 1px 1px 0 rgba(255, 255, 255, 0.72);
}

.document-preview {
  background:
    linear-gradient(145deg, #eef3ef 0%, #ffffff 100%);
  box-shadow: var(--shadow-inset);
}

.editor-help {
  background:
    linear-gradient(145deg, #fff8d7 0%, #ffffff 100%);
  box-shadow: var(--shadow-soft-low);
}

.calendar-item.is-past {
  background:
    linear-gradient(145deg, #e8eee8 0%, #f7f9f6 100%);
  box-shadow: var(--shadow-inset);
}

.spec-item,
.result-row,
.toolbox-icon,
.photo-uploader-head span,
.drag-handle {
  background:
    linear-gradient(145deg, #f8faf7 0%, #eef3ef 100%);
  box-shadow: var(--shadow-inset);
}

.sponsor-featured {
  border-color: rgba(214, 170, 0, 0.62);
  box-shadow: 12px 12px 28px rgba(255, 212, 41, 0.18), -8px -8px 22px rgba(255, 255, 255, 0.95);
}

.sheet-frame {
  background: #fff;
}

.text-link,
.doc-link,
.footer-bottom a,
.footer-social,
.dashboard-action-link,
.regulation-link {
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(255, 212, 41, 0.9);
}

.text-link:hover,
.doc-link:hover,
.footer-bottom a:hover,
.footer-social:hover,
.dashboard-action-link:hover,
.regulation-link:hover {
  color: var(--yellow-dark);
}

@media (max-width: 820px) {
  .site-nav {
    background:
      linear-gradient(145deg, #ffffff 0%, var(--surface-raised) 100%);
    box-shadow: var(--shadow-soft);
  }

  .admin-sidebar {
    box-shadow: 0 12px 28px rgba(8, 8, 8, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .btn:focus,
  .feature-card:hover,
  .format-card:hover,
  .rich-panel:hover,
  .announcement-card:hover,
  .contact-card:hover,
  .info-block:hover,
  .toolbox-item:hover,
  .sponsor-card:hover,
  .result-highlight:hover,
  .calendar-item:hover,
  .calendar-item:focus,
  .dashboard-action-card:hover,
  .dashboard-action-card:focus,
  .dashboard-info-card:hover,
  .dashboard-info-card:focus {
    transform: none;
  }
}

/* Retro paddock skin: visual layer only, with the supplied sunset palette. */
.site-header::after {
  height: 4px;
  background:
    linear-gradient(90deg, #a15d78 0 18%, #e47571 18% 36%, #fd9d4e 36% 54%, #edd771 54% 72%, #81d9e2 72% 100%);
  background-size: 100% 100%;
  box-shadow: 0 0 16px rgba(129, 217, 226, 0.38);
  animation: none;
}

.brand,
.admin-brand img,
.login-panel img,
.footer-logo {
  background: #f3f4e4;
  border-color: rgba(11, 17, 22, 0.2);
}

.member-beta-banner {
  background: linear-gradient(90deg, #a15d78 0%, #e47571 52%, #fd9d4e 100%);
  box-shadow: 0 8px 18px rgba(161, 93, 120, 0.2);
}

.site-nav a,
.header-social a,
.btn,
.dashboard-card-action,
.admin-nav a {
  font-family: Rajdhani, system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a.is-active,
.header-social a:hover,
.header-social a:focus {
  background:
    linear-gradient(90deg, rgba(253, 157, 78, 0.92), rgba(237, 215, 113, 0.92));
}

.eyebrow {
  color: #a15d78;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section-dark .eyebrow {
  color: #edd771;
}

.eyebrow::before,
.admin-stat::after {
  background: linear-gradient(90deg, #a15d78, #e47571, #fd9d4e, #edd771, #81d9e2);
}

.hero-copy h1,
.challenge-hero-content h1,
.result-hero-copy h1,
.page-hero h1 {
  text-shadow:
    0 4px 0 rgba(161, 93, 120, 0.45),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

.hero-lead,
.page-hero p {
  color: rgba(255, 248, 234, 0.9);
}

.split-slider {
  border-color: rgba(161, 93, 120, 0.24);
  box-shadow: 12px 14px 0 rgba(161, 93, 120, 0.16), 0 22px 44px rgba(11, 17, 22, 0.14);
}

.split-slide::before {
  background:
    linear-gradient(180deg, transparent 35%, rgba(11, 17, 22, 0.72)),
    repeating-linear-gradient(-45deg, transparent 0 28px, rgba(237, 215, 113, 0.14) 28px 32px, transparent 32px 48px);
}

.split-slide span {
  background: linear-gradient(90deg, #fd9d4e 0%, #edd771 100%);
}

.btn-primary,
.dashboard-card-action,
.admin-nav a:hover,
.admin-nav a:focus,
.admin-nav a.is-active {
  background:
    linear-gradient(90deg, #e47571 0%, #fd9d4e 48%, #edd771 100%);
  color: #0b1116;
}

.btn-secondary,
.dashboard-card-action-secondary {
  border-color: rgba(161, 93, 120, 0.38);
}

.feature-card,
.format-card,
.rich-panel,
.announcement-card,
.contact-card,
.info-block,
.toolbox-item,
.sponsor-card,
.result-highlight,
.calendar-item,
.challenge-hero-stats span {
  position: relative;
  overflow: hidden;
}

.feature-card::after,
.format-card::after,
.rich-panel::after,
.announcement-card::after,
.contact-card::after,
.info-block::after,
.toolbox-item::after,
.sponsor-card::after,
.result-highlight::after,
.calendar-item::after,
.challenge-hero-stats span::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  pointer-events: none;
  background: linear-gradient(90deg, #a15d78 0 20%, #e47571 20% 40%, #fd9d4e 40% 60%, #edd771 60% 80%, #81d9e2 80% 100%);
}

.feature-card,
.format-card,
.rich-panel,
.announcement-card,
.contact-card,
.info-block,
.toolbox-item,
.sponsor-card,
.empty-state,
.member-priority-card,
.calendar-item,
.result-highlight,
.sheet-frame,
.contact-form,
.filters,
.race-entry-stepper,
.form-fieldset,
.choice-card,
.member-list-item,
.result-board,
.challenge-hero-stats span,
.admin-card,
.admin-table-wrap,
.login-panel,
.message-card {
  background:
    linear-gradient(145deg, rgba(255, 248, 234, 0.98) 0%, rgba(243, 244, 228, 0.96) 100%);
  border-color: rgba(161, 93, 120, 0.18);
}

.feature-card:hover,
.format-card:hover,
.rich-panel:hover,
.announcement-card:hover,
.contact-card:hover,
.info-block:hover,
.toolbox-item:hover,
.sponsor-card:hover,
.result-highlight:hover,
.calendar-item:hover,
.calendar-item:focus {
  border-color: rgba(253, 157, 78, 0.72);
  box-shadow: 10px 12px 0 rgba(161, 93, 120, 0.16), 0 18px 34px rgba(11, 17, 22, 0.12);
}

.feature-card:hover .feature-icon,
.feature-card:focus-within .feature-icon,
.format-card:hover .format-icon,
.format-card:focus-within .format-icon,
.contact-card:hover .contact-icon,
.contact-card:focus-within .contact-icon,
.rich-panel:hover .panel-icon,
.rich-panel:focus-within .panel-icon,
.dashboard-action-card:hover .dashboard-action-icon,
.dashboard-action-card:focus .dashboard-action-icon,
.dashboard-info-card:hover .dashboard-info-icon,
.dashboard-info-card:focus .dashboard-info-icon,
.member-priority-card:hover .member-priority-icon,
.member-priority-card:focus .member-priority-icon {
  animation: iconKick 0.42s ease;
}

.feature-icon,
.calendar-icon,
.toolbox-icon,
.btn-primary .btn-graphic,
.dashboard-action-icon {
  background: #0b1116;
  color: #edd771;
}

.contact-icon,
.panel-icon,
.format-icon,
.result-highlight-icon,
.spec-icon,
.dashboard-section-icon,
.dashboard-info-icon,
.photo-slot-badge,
.btn-secondary .btn-graphic {
  background: linear-gradient(180deg, #81d9e2 0%, #edd771 100%);
  color: #0b1116;
}

.section-dark .rich-panel,
.section-dark .info-block,
.race-countdown {
  background:
    linear-gradient(145deg, rgba(22, 26, 31, 0.94), rgba(11, 17, 22, 0.82)),
    linear-gradient(90deg, rgba(161, 93, 120, 0.28), rgba(129, 217, 226, 0.12));
  border-color: rgba(129, 217, 226, 0.34);
}

.race-countdown::before {
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(129, 217, 226, 0.16) 58% 70%, transparent 70%),
    linear-gradient(180deg, rgba(237, 215, 113, 0.11), transparent 45%);
}

.spec-item,
.result-row,
.photo-uploader-head span,
.drag-handle {
  background:
    linear-gradient(145deg, rgba(243, 244, 228, 0.94), rgba(242, 222, 196, 0.92));
}

.countdown-grid span {
  background: transparent;
}

.countdown-grid small {
  background: linear-gradient(180deg, #f3f4e4 0%, #edd771 100%);
  color: #0b1116;
}

#calendrier.section-muted {
  background:
    linear-gradient(135deg, rgba(129, 217, 226, 0.18), rgba(237, 215, 113, 0.16) 28%, transparent 56%),
    linear-gradient(315deg, rgba(161, 93, 120, 0.13), transparent 34%),
    linear-gradient(180deg, #f3f4e4 0%, #f2dec4 100%);
}

.calendar-track,
.result-highlight strong,
.result-table thead th {
  font-family: "Russo One", Impact, sans-serif;
}

.calendar-status,
.doc-kind,
.status {
  background: #a15d78;
  color: #fff8ea;
}

.calendar-status-next {
  background: #edd771;
  color: #0b1116;
}

.calendar-status-upcoming {
  background: rgba(129, 217, 226, 0.24);
  color: #0b1116;
}

.result-table thead th {
  background: linear-gradient(90deg, #0b1116 0%, #a15d78 100%);
}

.result-table tbody tr:hover,
.admin-table tbody tr:hover {
  background: rgba(129, 217, 226, 0.16);
}

.sponsor-featured {
  border-color: rgba(253, 157, 78, 0.78);
  box-shadow: 10px 12px 0 rgba(237, 215, 113, 0.2), 0 18px 34px rgba(11, 17, 22, 0.1);
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(161, 93, 120, 0.28), transparent 34%),
    linear-gradient(225deg, rgba(129, 217, 226, 0.14), transparent 38%),
    #0b1116;
}

.text-link,
.doc-link,
.footer-bottom a,
.footer-social,
.dashboard-action-link,
.regulation-link {
  text-decoration-color: #fd9d4e;
}

.text-link:hover,
.doc-link:hover,
.footer-bottom a:hover,
.footer-social:hover,
.dashboard-action-link:hover,
.regulation-link:hover {
  color: #a15d78;
}

.login-body {
  background:
    radial-gradient(circle at 18% 20%, rgba(129, 217, 226, 0.34), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(228, 117, 113, 0.28), transparent 34%),
    repeating-linear-gradient(90deg, rgba(11, 17, 22, 0.045) 0 1px, transparent 1px 32px),
    linear-gradient(135deg, #f3f4e4 0%, #f2dec4 100%);
}

.login-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(161, 93, 120, 0.24);
  box-shadow: 12px 14px 0 rgba(11, 17, 22, 0.12), 0 24px 50px rgba(11, 17, 22, 0.15);
  animation: panelRise 0.55s ease both;
}

.login-panel::before,
.admin-card::before,
.admin-table-wrap::before,
.message-card::before,
.dashboard-action-card::before,
.dashboard-info-card::before,
.admin-queue-item::before,
.admin-queue-empty::before,
.member-priority-card::before,
.member-dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  pointer-events: none;
  background: linear-gradient(90deg, #a15d78 0 20%, #e47571 20% 40%, #fd9d4e 40% 60%, #edd771 60% 80%, #81d9e2 80% 100%);
}

.login-panel h1 {
  text-shadow: 0 4px 0 rgba(161, 93, 120, 0.22);
}

.admin-body {
  background:
    repeating-linear-gradient(90deg, rgba(129, 217, 226, 0.07) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #f3f4e4 0%, #ead8c5 100%) fixed;
}

.admin-shell {
  background:
    linear-gradient(90deg, rgba(161, 93, 120, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(243, 244, 228, 0.92), rgba(242, 222, 196, 0.88));
}

.admin-sidebar {
  background:
    linear-gradient(180deg, rgba(161, 93, 120, 0.2), transparent 34%),
    linear-gradient(225deg, rgba(129, 217, 226, 0.12), transparent 42%),
    linear-gradient(180deg, #111820 0%, #070b0f 100%);
  border-right-color: rgba(129, 217, 226, 0.28);
}

.admin-brand span {
  color: #edd771;
  font-family: "Russo One", Impact, sans-serif;
  text-transform: uppercase;
}

.admin-nav-heading {
  color: #81d9e2;
}

.admin-main h1,
.dashboard-section-heading h2 {
  text-shadow: 0 3px 0 rgba(161, 93, 120, 0.16);
}

.admin-card,
.admin-table-wrap,
.message-card,
.dashboard-action-card,
.dashboard-info-card,
.admin-queue-item,
.admin-queue-empty,
.settings-group,
.admin-collapse,
.media-picker,
.media-picker-current,
.media-picker-panel,
.media-picker-item,
.admin-media-grid figure,
.admin-clean-list li,
.member-priority-card,
.member-dashboard-card {
  position: relative;
  overflow: hidden;
}

.admin-table-wrap {
  overflow-x: auto;
}

.entries-table-wrap {
  overflow: auto;
}

.dashboard-action-card,
.dashboard-info-card,
.admin-queue-item,
.admin-queue-empty {
  border-color: rgba(161, 93, 120, 0.2);
}

.dashboard-action-card:hover,
.dashboard-action-card:focus,
.dashboard-info-card:hover,
.dashboard-info-card:focus,
.admin-queue-item:hover,
.admin-queue-item:focus,
.member-priority-card:hover,
.member-priority-card:focus {
  border-color: rgba(253, 157, 78, 0.72);
  box-shadow: 10px 12px 0 rgba(161, 93, 120, 0.16), 0 18px 34px rgba(11, 17, 22, 0.12);
}

.admin-queue-kind,
.admin-badge,
.member-status,
.photo-uploader-head span {
  background: rgba(161, 93, 120, 0.12);
  color: #a15d78;
}

.admin-queue-item.priority-1 {
  border-left-color: #e47571;
}

.admin-queue-item.is-owned-lock {
  border-left-color: #81d9e2;
}

.member-priority-card.task-primary .member-priority-icon,
.member-priority-icon {
  background: #0b1116;
  color: #edd771;
}

.member-priority-card.task-success .member-priority-icon {
  background: linear-gradient(180deg, #81d9e2, #edd771);
  color: #0b1116;
}

.member-priority-card.task-warning {
  border-color: rgba(228, 117, 113, 0.42);
}

@keyframes panelRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive.css */
@media (max-width: 1080px) {
  h1 {
    font-size: 3.4rem;
  }

  .header-social {
    display: none;
  }

  .calendar-grid,
  .announcement-grid,
  .toolbox-grid,
  .sponsors-grid,
  .challenge-hero-stats,
  .result-highlight-grid,
  .admin-stat-grid,
  .admin-media-grid.large {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .container,
  .narrow {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 180px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(8, 8, 8, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
    padding: 13px 14px;
  }

  .site-nav .nav-social-link {
    display: inline-flex;
    justify-content: flex-start;
    gap: 8px;
    height: auto;
  }

  .nav-social-label {
    display: inline;
  }

  .site-nav a.is-active {
    box-shadow: inset 4px 0 0 var(--red), 0 8px 18px rgba(255, 212, 41, 0.18);
  }

  .hero-home {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 56px;
    padding-bottom: 46px;
  }

  .page-hero {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .challenge-hero {
    min-height: auto;
  }

  .challenge-hero-content {
    padding-top: 54px;
    padding-bottom: 44px;
  }

  .result-hero {
    min-height: auto;
  }

  .result-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 54px;
    padding-bottom: 44px;
  }

  .result-visual {
    justify-items: start;
  }

  .race-countdown {
    width: 100%;
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .countdown-grid strong {
    min-height: 58px;
    font-size: 1.45rem;
  }

  .countdown-grid small {
    font-size: 0.68rem;
  }

  .section {
    padding: 58px 0;
  }

  .split-grid,
  .format-grid,
  .prose-grid,
  .info-grid,
  .contact-grid,
  .auth-grid,
  .member-dashboard-grid,
  .sale-submit-grid,
  .footer-grid,
  .filters,
  .form-grid-two,
  .form-grid-three,
  .form-grid-four,
  .choice-grid,
  .summary-grid,
  .announcement-settings-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .driver-license-choice .choice-grid {
    grid-template-columns: 1fr;
  }

  .race-entry-stepper {
    grid-template-columns: 1fr;
  }

  .race-entry-stepper button {
    justify-content: flex-start;
    text-align: left;
    padding: 10px 12px;
  }

  .split-grid {
    gap: 28px;
  }

  .calendar-grid,
  .announcement-grid,
  .toolbox-grid,
  .sponsors-grid,
  .challenge-hero-stats,
  .result-highlight-grid,
  .admin-stat-grid,
  .admin-media-grid,
  .admin-media-grid.large {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    gap: 12px;
    padding: 16px 14px;
  }

  .admin-sidebar-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .admin-brand {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .admin-brand img {
    width: 150px;
  }

  .admin-nav-toggle {
    display: block;
  }

  .admin-nav {
    display: none;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 4px;
  }

  .admin-nav.is-open {
    display: grid;
  }

  .admin-nav-section {
    padding: 10px;
    border-radius: var(--radius);
  }

  .admin-nav-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .admin-sidebar > form {
    display: none;
  }

  .admin-sidebar.is-nav-open > form {
    display: block;
  }

  .admin-nav a {
    min-width: 0;
    min-height: 40px;
    padding: 8px 9px;
    font-size: 0.82rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .admin-main {
    padding: 20px 14px;
  }

  .admin-main h1 {
    font-size: 2.45rem;
  }

  .admin-card,
  .admin-table-wrap,
  .login-panel,
  .message-card {
    padding: 18px;
  }

  .admin-heading.with-action,
  .message-card header,
  .media-picker-head,
  .media-picker-panel-head,
  .reorder-help {
    align-items: stretch;
  }

  .admin-heading.with-action .admin-actions,
  .media-picker-actions,
  .reorder-help .admin-actions {
    justify-content: flex-start;
  }

  .dashboard-section-heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .dashboard-section-icon {
    width: 44px;
    height: 44px;
  }

  .dashboard-section-heading h2 {
    font-size: 1.9rem;
  }

  .dashboard-action-content strong {
    font-size: 2.15rem;
  }

  .photo-slot {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .photo-clear,
  .photo-add {
    justify-self: start;
  }

  .admin-heading.with-action,
  .footer-bottom,
  .message-card header {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1,
  .admin-main h1 {
    font-size: 2.25rem;
  }

  .page-hero h1,
  .hero-copy h1,
  .challenge-hero-content h1,
  .result-hero-copy h1 {
    font-size: 2.15rem;
  }

  .challenge-hero-content h1 {
    font-size: 1.95rem;
    line-height: 1.06;
  }

  .hero-lead,
  .page-hero p {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .admin-nav a {
    font-size: 0.78rem;
  }

  .member-beta-banner-track {
    font-size: 0.86rem;
  }

  .member-beta-banner-track span {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .admin-nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-card,
  .admin-table-wrap,
  .contact-form,
  .rich-panel,
  .announcement-card,
  .contact-card,
  .info-block,
  .toolbox-item,
  .sponsor-card,
  .empty-state {
    padding: 16px;
  }

  .section-actions,
  .hero-actions,
  .member-actions,
  .dashboard-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-actions .btn,
  .hero-actions .btn,
  .member-actions .btn,
  .member-actions form,
  .member-actions button,
  .dashboard-card-actions .dashboard-card-action {
    width: 100%;
  }

  .member-list-item-actions {
    grid-template-columns: 1fr;
  }

  .member-inline-action {
    width: 100%;
    text-align: left;
  }

  .dashboard-action-card,
  .dashboard-info-card {
    grid-template-columns: 1fr;
  }

  .admin-queue-item,
  .admin-queue-empty {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-queue-main strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .hero-slide:first-child,
  .challenge-hero-slide:first-child {
    opacity: 1;
    transform: none;
  }

  .result-hero-media,
  .result-board,
  .result-row,
  .result-progress span,
  .result-badge {
    animation: none !important;
    transform: none !important;
  }

  .site-header::after {
    animation: none !important;
    background:
      linear-gradient(90deg, transparent 0 45%, var(--yellow) 50%, transparent 55% 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.2), rgba(8, 8, 8, 0.1));
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .member-beta-banner-track {
    transform: none;
  }

  .member-beta-banner-track span:not(:first-child) {
    display: none;
  }

  .reveal,
  .js .reveal,
  .js .calendar-item,
  .js .member-priority-card,
  .js .member-dashboard-card,
  .js .member-list-item,
  .js .dashboard-action-card,
  .js .dashboard-info-card,
  .js .admin-card,
  .js .admin-table-wrap,
  .js .message-card,
  .js .admin-queue-item,
  .js .admin-queue-empty,
  .split-slide,
  .split-slide.is-active,
  .login-panel {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }
}
