/* ===== Base Page Shell ===== */

.page-race-info {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, #fffd80 0, transparent 55%),
    radial-gradient(circle at top right, #ff9bd6 0, transparent 55%),
    linear-gradient(135deg, #14061f 0, #2f1047 45%, #06353a 100%);
  color: #fdfbff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ===== Header & Nav ===== */

.race-site-header {
  padding: 1rem 1.5rem;
}

.race-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.race-logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.race-logo-text {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: #12040f;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #ffe600;
  box-shadow: 0 0 0 2px #12040f, 0 4px 0 #12040f;
}

.race-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffeef6;
}

.race-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.race-nav-link {
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff4ff;
  background: rgba(0, 0, 0, 0.15);
}

.race-nav-link--active {
  background: #2dd6ff;
  color: #041317;
  border-color: #fffd80;
}

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

.race-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem 1rem 3rem;
}

/* ===== Section headers ===== */

.race-section-header {
  margin-bottom: 1.25rem;
  text-align: left;
}

.race-section-header h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fffd80;
  margin-bottom: 0.4rem;
}

.race-section-header p {
  font-size: 0.95rem;
  color: rgba(244, 240, 255, 0.95);
}

/* ===== Hero Section ===== */

.race-hero {
  display: flex;
  justify-content: center;
}

.race-hero-inner {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
}

.race-hero-copy {
  background: rgba(14, 6, 40, 0.9);
  border-radius: 20px;
  border: 2px solid #fffd80;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.race-hero-copy::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.08) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(45, 214, 255, 0.15) 0, transparent 55%);
  opacity: 0.65;
  pointer-events: none;
}

.race-hero-copy > * {
  position: relative;
  z-index: 1;
}

.race-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #2dd6ff;
  margin-bottom: 0.4rem;
}

.race-hero h1 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
  color: #fffd80;
}

.race-hero-subtitle {
  font-size: 0.98rem;
  color: rgba(244, 240, 255, 0.95);
  margin-bottom: 1.1rem;
}

.race-hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.detail-pill {
  display: inline-flex;
  flex-direction: column;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 253, 128, 0.7);
  background: rgba(9, 2, 32, 0.85);
}

.detail-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

.detail-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.race-hero-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(244, 240, 255, 0.96);
}

/* Hero side card: formats */

.race-hero-card {
  background: #14061f;
  border-radius: 20px;
  border: 2px solid #ff9bd6;
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.race-hero-card h2 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ff9bd6;
  margin-bottom: 0.8rem;
}

.race-format-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.race-format-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 0.5rem;
  align-items: baseline;
}

.format-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.format-name--three {
  background: #2dd6ff;
  color: #041317;
}

.format-name--six {
  background: #fffd80;
  color: #14061f;
}

.format-name--last {
  background: #ff9bd6;
  color: #250815;
}

.format-note {
  font-size: 0.9rem;
  color: rgba(244, 240, 255, 0.95);
}

.race-format-footnote {
  font-size: 0.85rem;
  color: rgba(244, 240, 255, 0.9);
  margin-top: 0.2rem;
}

/* ===== How It Works ===== */

.race-how {
  display: flex;
  justify-content: center;
}

.race-how-inner {
  max-width: 1100px;
  width: 100%;
  background: rgba(11, 4, 33, 0.9);
  border-radius: 20px;
  border: 2px solid rgba(255, 253, 128, 0.6);
  padding: 1.7rem 1.5rem 2rem;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

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

.race-how-card {
  background: rgba(27, 16, 48, 0.95);
  border-radius: 14px;
  padding: 0.9rem 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.race-how-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2dd6ff;
  margin-bottom: 0.4rem;
}

.race-how-card p {
  font-size: 0.92rem;
  color: rgba(244, 240, 255, 0.95);
}

/* ===== Schedule ===== */

.race-schedule {
  display: flex;
  justify-content: center;
}

.race-schedule-inner {
  max-width: 1100px;
  width: 100%;
  background: rgba(6, 20, 45, 0.92);
  border-radius: 20px;
  border: 2px solid rgba(45, 214, 255, 0.7);
  padding: 1.7rem 1.5rem 2rem;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.race-schedule-table-wrapper {
  overflow-x: auto;
}

.race-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.race-schedule-table thead {
  background: #08273f;
}

.race-schedule-table th,
.race-schedule-table td {
  padding: 0.75rem 0.6rem;
  text-align: left;
}

.race-schedule-table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #d7f4ff;
  border-bottom: 2px solid rgba(209, 244, 255, 0.8);
}

.race-schedule-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.04);
}

.race-schedule-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.09);
}

.race-schedule-table td {
  color: #fdfbff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-time {
  font-weight: 600;
  width: 7rem;
}

/* ===== Vibe / What to Bring ===== */

.race-vibe {
  display: flex;
  justify-content: center;
}

.race-vibe-inner {
  max-width: 1100px;
  width: 100%;
  background: rgba(13, 26, 19, 0.94);
  border-radius: 20px;
  border: 2px solid #8fffd4;
  padding: 1.7rem 1.5rem 2rem;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

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

.race-vibe-column h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8fffd4;
  margin-bottom: 0.4rem;
}

.race-checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.race-checklist li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: rgba(231, 252, 244, 0.96);
  margin-bottom: 0.35rem;
}

.race-checklist li::before {
  content: "•";
  position: absolute;
  left: 0.4rem;
  top: 0.05rem;
  font-size: 1rem;
  color: #fffd80;
}

/* ===== FAQ ===== */

.race-faq {
  display: flex;
  justify-content: center;
}

.race-faq-inner {
  max-width: 1100px;
  width: 100%;
  background: rgba(19, 10, 46, 0.96);
  border-radius: 20px;
  border: 2px solid rgba(255, 155, 214, 0.8);
  padding: 1.7rem 1.5rem 2.1rem;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.race-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.race-faq-item {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.55rem 0.75rem;
  background: rgba(20, 6, 31, 0.9);
}

.race-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fffd80;
}

.race-faq-item summary::-webkit-details-marker {
  display: none;
}

.race-faq-item p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgba(244, 240, 255, 0.95);
}

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

.race-site-footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem 1.5rem 1.5rem;
  color: rgba(255, 244, 255, 0.88);
}

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

@media (max-width: 900px) {
  .race-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .race-hero-card {
    order: -1;
  }
}

@media (max-width: 700px) {
  .race-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .race-main {
    padding: 1.25rem 0.75rem 2.5rem;
  }

  .race-hero-copy {
    padding: 1.5rem 1.2rem 1.8rem;
  }

  .race-hero h1 {
    font-size: 1.7rem;
  }

  .race-how-inner,
  .race-schedule-inner,
  .race-vibe-inner,
  .race-faq-inner {
    padding: 1.5rem 1.1rem 1.8rem;
  }

  .race-how-grid,
  .race-vibe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
