/* nextup — upcoming ticker. */
.nextup { background: var(--color-navy); color: var(--color-white); position: relative; }
.nextup::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--accent-decor); }

.nextup__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 36px var(--margin);
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 32px;
  align-items: stretch;
}
.nextup__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--accent-decor);
  border-right: 1px solid rgba(255, 255, 255, .15);
  padding-right: 24px;
  transition: gap var(--transition-fast);
}
a.nextup__label:hover { gap: 8px; }
.nextup__label-line {
  font-family: var(--font-display);
  font-weight: var(--weight-poster-heavy);
  text-transform: uppercase;
  font-size: 32px;
  line-height: .92;
  letter-spacing: .01em;
}
.nextup__arrow { margin-top: 8px; width: 20px; }

.nextup__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nextup__item {
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  row-gap: 8px;
  align-content: start;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.nextup__item:first-child { padding-left: 0; }
.nextup__item:last-child  { padding-right: 0; border-right: none; }
.nextup__dot   { grid-column: 2; align-self: center; display: inline-flex; }
.nextup__title {
  grid-column: 1 / -1;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: var(--weight-poster-heavy);
  text-transform: uppercase;
  font-size: var(--fs-h3);
  line-height: 1.08;
  margin: 0;
}
.nextup__meta  { grid-column: 1 / -1; color: #ffffff99; margin: 0; }

@media (max-width: 1023px) {
  .nextup__inner { grid-template-columns: 1fr; gap: 24px; }
  .nextup__label { border-right: 0; padding-right: 0; flex-direction: row; gap: 10px; align-items: baseline; }
  .nextup__grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
  .nextup__item:nth-child(2n)   { padding-right: 0; border-right: none; }
  .nextup__item:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 599px) {
  .nextup__grid { grid-template-columns: 1fr; }
  .nextup__item { padding: 0; border-right: none; }
}

/* --- Overlay variant ------------------------------------------------------
   When the ticker directly follows the home hero it sits ON the photo instead
   of in a band beneath it. Three things make that safe:

   * The height is declared once as a custom property and enforced with
     min-height, so the negative margin can never disagree with the real box.
   * The hero reserves that height plus breathing room as padding, so the
     overlay can never cover the hero's CTA.
   * Desktop only. Below 900px the items stack and the strip becomes tall
     enough to swallow the hero, so there it stays a band underneath. */
@media (min-width: 900px) {
  .hero-home + .nextup {
    --nextup-overlay-h: 136px;
    min-height: var(--nextup-overlay-h);
    margin-top: calc(var(--nextup-overlay-h) * -1);
    position: relative;
    z-index: 3;
    /* Dial the navy here. Below roughly 65% the white text stops clearing 4.5:1
       against the lighter parts of the photo, so the band becomes unreadable
       exactly where the grass catches the light. */
    --nextup-overlay-tint: 20%;
    background: color-mix(in srgb, var(--color-navy) var(--nextup-overlay-tint), transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .hero-home + .nextup .nextup__inner { padding-top: 24px; padding-bottom: 24px; }
  /* 136px overlay + 40px clearance. Literal because the custom property is
     scoped to .nextup and this rule is on the hero. */
  .hero-home:has(+ .nextup) .hero-home__inner { padding-bottom: 176px; }
}
