/* Blackwood Run: The Holiday Edition — page-only styles
   Desktop hero: 16:9 clean banner (left ~40% lawn/sky reserved for HTML text).
   Mobile hero: PosterC clean portrait. */

.run-page {
  --run-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --run-numeral: "Oswald", "Cinzel", sans-serif;
  --header-h: 84px;
  background: var(--cream);
}

.run-page h1,
.run-page h2,
.run-page .run-kit-copy h3,
.run-page .run-photo-card h3,
.run-page .run-hub-card h3,
.run-page .run-prize h3,
.run-page .run-register h2 {
  font-family: var(--run-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.run-page h2 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  color: var(--green);
  margin: 0 0 0.7rem;
}

.run-page .run-band-dark h2,
.run-page .run-register h2 {
  color: var(--ivory);
}

.run-kicker {
  font-family: var(--run-numeral);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.85rem;
}

.run-band-dark .run-kicker,
.run-hero .run-kicker,
.run-register .run-kicker {
  color: var(--gold);
}

/* ----- Motifs ----- */
.run-motif {
  pointer-events: none;
  user-select: none;
  position: absolute;
  z-index: 0;
}

.run-motif-tl {
  top: 2.4rem;
  left: 0.4rem;
  width: min(220px, 28vw);
  height: auto;
  opacity: 0.7;
}

.run-motif-br {
  right: 0.4rem;
  bottom: 2.4rem;
  width: min(220px, 28vw);
  height: auto;
  opacity: 0.7;
}

.run-motif-hero-tr {
  top: 1.2rem;
  right: 0.2rem;
  width: min(210px, 42%);
  height: auto;
  opacity: 0.55;
}

.run-motif-hero-bl {
  left: 0.2rem;
  bottom: 0.4rem;
  width: min(200px, 40%);
  height: auto;
  opacity: 0.45;
}

.run-motif-ribbon {
  top: 1rem;
  right: 4%;
  width: min(160px, 22vw);
  height: auto;
  opacity: 0.55;
}

.run-motif-wreath {
  top: 50%;
  left: 50%;
  width: min(230px, 50vw);
  height: auto;
  transform: translate(-50%, -82%);
  opacity: 0.22;
}

/* ----- Hero: 16:9 clean banner, HTML text over the left lawn/sky ----- */
.run-page .run-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  margin-top: var(--header-h);
  background: var(--green-deep);
  color: var(--ivory);
}

.run-page .run-hero-media,
.run-page .run-hero-media picture,
.run-page .run-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.run-page .run-hero-media {
  background: var(--green-deep);
}

.run-page .run-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(90deg,
      rgba(15, 26, 21, 0.88) 0%,
      rgba(15, 26, 21, 0.72) 22%,
      rgba(15, 26, 21, 0.38) 38%,
      rgba(15, 26, 21, 0.1) 52%,
      transparent 66%),
    linear-gradient(to top, rgba(15, 26, 21, 0.4) 0%, transparent 38%);
}

.run-page .run-hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 0 3.4rem;
  background: none;
}

.run-page .run-hero h1 {
  color: var(--ivory);
  max-width: 12ch;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.run-page .run-hero h1 span {
  display: block;
  margin-top: 0.15rem;
  font-style: italic;
  font-weight: 500;
  font-size: 0.52em;
  letter-spacing: 0;
  color: var(--gold-soft);
}

.run-page .run-hero .lede {
  font-family: var(--run-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--gold-soft);
  margin: 0.85rem 0 0;
}

.run-page .run-hero-meta {
  margin-top: 1.15rem;
  color: var(--cream);
  max-width: 36ch;
}

.run-page .run-hero-meta p { margin: 0.2rem 0; }

.run-page .countdown {
  margin-top: 2rem;
  gap: 0.55rem;
}

.run-page .countdown-cell {
  min-width: 4.4rem;
  padding: 0.8rem 0.65rem 0.7rem;
  background: rgba(15, 26, 21, 0.5);
  border: 1px solid rgba(198, 170, 128, 0.45);
}

.run-page .countdown-cell [data-unit] {
  font-family: var(--run-numeral);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.run-page .countdown-cell .countdown-label {
  font-family: var(--run-numeral);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.run-page .run-hero .btn-row { margin-top: 1.85rem; }

/* ----- Bands and angled breaks ----- */
.run-band {
  position: relative;
  padding: 5rem 0 5.25rem;
}

.run-band-cream { background: var(--cream); }
.run-band-ivory { background: var(--ivory); }

.run-band-dark {
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(49, 74, 62, 0.55), transparent 50%),
    var(--green);
  color: var(--ivory);
}

.run-band-tilt {
  clip-path: polygon(0 2.6rem, 100% 0, 100% calc(100% - 2.6rem), 0 100%);
  padding-top: 6.4rem;
  padding-bottom: 6.6rem;
  margin-top: -1.6rem;
  margin-bottom: -1.6rem;
  z-index: 1;
}

.run-band-dark > .wrap,
.run-register > .wrap {
  position: relative;
  z-index: 1;
}

.run-section-head { margin-bottom: 2rem; max-width: 46rem; }
.run-section-head p:last-child { margin: 0; color: var(--muted); }
.run-band-dark .run-section-head p:last-child { color: rgba(246, 241, 232, 0.82); }

.run-section-head-center {
  text-align: center;
  margin-inline: auto;
}

/* ----- Glance ----- */
.run-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.run-glance-item {
  padding: 1.35rem 1.15rem 1.25rem;
  border-top: 2px solid var(--gold);
  background: var(--ivory);
}

.run-glance-item .run-kicker { margin-bottom: 0.4rem; }
.run-glance-item p { margin: 0; color: var(--green); font-weight: 500; }

/* ----- Categories ----- */
.run-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.run-cat {
  text-align: center;
  padding: 1.8rem 0.6rem 1.6rem;
  border: 1px solid rgba(198, 170, 128, 0.35);
  background: #1a2c24;
}

.run-cat-label {
  font-family: var(--run-numeral);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.65rem;
}

.run-cat-num {
  font-family: var(--run-numeral);
  font-weight: 600;
  font-size: clamp(3.4rem, 8vw, 6.1rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--ivory);
  margin: 0;
}

.run-cat-num span {
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.05em;
  color: var(--gold-soft);
}

/* ----- Race kit (modest cards — official kit photos may replace these) ----- */
.run-kit-cards {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 0.9rem;
  align-items: stretch;
}

.run-kit-card {
  background: var(--ivory);
  border: 1px solid var(--sand);
  padding: 1.15rem 1rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.run-kit-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 0.85rem;
}

.run-icon {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--gold-deep);
  margin-bottom: 0.55rem;
}

.run-icon svg { width: 100%; height: 100%; }

.run-kit-card h3 {
  font-family: var(--run-display);
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  color: var(--green);
}

.run-kit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ----- Arches + hub ----- */
.run-arches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.run-arches figure { margin: 0; }
.run-arches img { width: 100%; height: auto; }

.run-arches figcaption {
  font-family: var(--run-numeral);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.7rem;
  text-align: center;
}

.run-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.run-hub-card {
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid rgba(198, 170, 128, 0.35);
  background: #1a2c24;
}

.run-hub-card h3 {
  color: var(--ivory);
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}

.run-hub-card p { margin: 0; color: rgba(246, 241, 232, 0.86); }

/* ----- After the run ----- */
.run-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}

.run-photo-card {
  background: var(--ivory);
  overflow: hidden;
}

.run-photo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.run-photo-card-body { padding: 1.35rem 1.3rem 1.5rem; }
.run-photo-card-body h3 {
  font-size: 1.7rem;
  color: var(--green);
  margin: 0 0 0.45rem;
}
.run-photo-card-body p:last-child { margin: 0; color: var(--muted); }

/* ----- Prizes ----- */
.run-prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.run-prize {
  text-align: center;
  padding: 1.7rem 1.1rem 1.5rem;
  border: 1px solid rgba(198, 170, 128, 0.45);
  background: #1a2c24;
}

.run-prize-num {
  font-family: var(--run-numeral);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 0.55rem;
}

.run-prize h3 {
  color: var(--ivory);
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
}

.run-prize p { margin: 0; color: rgba(246, 241, 232, 0.86); }

.run-prize-note {
  text-align: center;
  margin: 1.5rem auto 0;
  max-width: 46rem;
  color: rgba(246, 241, 232, 0.82);
}

/* ----- TBC, compact ----- */
.run-tba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.run-page .tba {
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-left: 2px solid var(--gold);
}

.run-page .tba p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.run-page .tba-label {
  font-family: var(--run-numeral);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.2rem !important;
}

/* ----- FAQ typography ----- */
.run-page .faq-list summary {
  font-family: var(--run-display);
  font-weight: 600;
  font-size: 1.15rem;
}

/* ----- Registration ----- */
.run-page .run-register {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 50% 120%, rgba(49, 74, 62, 0.7), transparent 50%),
    var(--green-deep);
  padding: 5.25rem 0 5.5rem;
}

.run-page .run-register h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.run-page .run-register .opens {
  font-family: var(--run-numeral);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
}

/* ----- Sticky mobile registration bar ----- */
.run-sticky {
  display: none;
}

.run-sticky a {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--run-numeral);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  padding: 0.95rem 1rem;
}

.run-sticky [hidden] { display: none !important; }

@media (max-width: 900px) {
  .run-page .run-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    margin-top: var(--header-h);
  }

  .run-page .run-hero-media,
  .run-page .run-hero-media picture {
    position: relative;
    height: 58vw;
    min-height: 250px;
    max-height: 380px;
  }

  .run-page .run-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center 42%;
  }

  .run-page .run-hero-media::after {
    display: block;
    background: linear-gradient(to top, var(--green-deep) 0%, rgba(15, 26, 21, 0.2) 42%, transparent 68%);
  }

  .run-page .run-hero-content {
    width: auto;
    padding: 0.2rem 1.4rem 5.25rem;
    margin-top: -2.6rem;
    background: none;
  }
  .run-page .run-hero h1 { max-width: none; font-size: clamp(2.35rem, 11vw, 3.1rem); }
  .run-page .run-hero .lede { margin-top: 0.4rem; }
  .run-page .run-hero-meta { margin-top: 0.8rem; }
  .run-page .countdown { margin-top: 1.05rem; }
  /* Sticky bar already carries the registration CTA on small screens. */
  .run-page .run-hero .btn-row { display: none; }
  .run-page .run-hero-content { padding-bottom: 4.4rem; }

  .run-motif-ribbon { display: none; }

  .run-glance,
  .run-cats,
  .run-kit-cards,
  .run-arches,
  .run-hub-grid,
  .run-after,
  .run-prizes,
  .run-tba,
  .run-page .run-map {
    grid-template-columns: 1fr 1fr;
  }

  .run-band-tilt {
    clip-path: polygon(0 1.6rem, 100% 0, 100% calc(100% - 1.6rem), 0 100%);
    padding-top: 4.6rem;
    padding-bottom: 4.8rem;
    margin-top: -1rem;
    margin-bottom: -1rem;
  }

  .run-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: var(--gold);
    box-shadow: 0 -8px 24px rgba(21, 36, 29, 0.2);
  }

  .run-page { padding-bottom: 3.6rem; }
}

@media (max-width: 560px) {
  .run-glance,
  .run-cats,
  .run-kit-cards,
  .run-arches,
  .run-hub-grid,
  .run-after,
  .run-prizes,
  .run-tba,
  .run-page .run-map {
    grid-template-columns: 1fr;
  }

  .run-cats { gap: 0.65rem; }
  .run-cat { padding: 1.2rem 0.5rem 1.1rem; }
  .run-kit-card img { max-width: 180px; }

  .run-page .run-hero h1 { max-width: none; }
  .run-page .run-hero-content { padding-inline: 1.25rem; }
  .run-band { padding: 3.6rem 0 3.8rem; }
}

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