/* ============================================================================
   7 · WHAT'S NEXT — v2 Block 9: an editorial list of dated rows. On white,
   so the alumni band's rounded corners sit on the same canvas above and
   below it.
   ========================================================================= */

.onnext {
  padding: var(--space-section) 0;
  background: var(--color-canvas);
}

.dates { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-hairline); }
.date {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr auto;
  align-items: center; gap: var(--space-8);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-hairline);
}
.date__when { margin: 0; display: grid; }
.date__when b {
  font-family: var(--font-accent);
  font-size: var(--type-h3);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
}
.date__when span { font-size: var(--type-body-sm); color: var(--color-muted); }
.date__what h3 { margin: 0 0 var(--space-1); font-size: var(--type-h4); font-weight: 600; line-height: 1.4; color: var(--color-ink); }
.date__what p  { margin: 0; font-size: var(--type-body-sm); color: var(--color-muted); }

/* chip-status: a dot plus the word, never the dot alone */
.status {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-left: var(--space-3);
  vertical-align: middle;
  font-size: var(--type-label);
  font-weight: 600;
  color: var(--color-success);
}
.status[hidden] { display: none; }
.status__dot { width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--color-success); }

/* The dates window (whats-next.js sets .is-live, its height and the fades). Three
   rows in full; the rows beyond sit faded at its edges, like the
   numbers either side of a picker's selection. The inline padding keeps the
   buttons' focus rings inside the clip. Without script, the full list. */
.onnext {
  --dates-edge: var(--purple-300);   /* 3.3:1 on white: clears the 3:1 boundary floor */
  --dates-nav: 44px;                 /* §10.1 button-icon */
}
.dates-view.is-live {
  --fade-top: 0px;
  --fade-bottom: 0px;
  margin-inline: calc(var(--space-2) * -1);
  padding-inline: var(--space-2);
  overflow: clip;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, var(--color-white) var(--fade-top), var(--color-white) calc(100% - var(--fade-bottom)), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, var(--color-white) var(--fade-top), var(--color-white) calc(100% - var(--fade-bottom)), transparent 100%);
}
.dates-view.is-live .dates { position: relative; transition: transform var(--motion-slow); }   /* relative: rows' offsetTop is measured from the list */
.dates-view.is-live .date  { transition: opacity var(--motion-slow); }
.dates-view.is-live .date.is-off { opacity: 0.4; }

.dates-nav {
  display: flex; justify-content: center; gap: var(--space-3);
  margin-top: var(--space-6);
}
.dates-nav[hidden] { display: none; }
.dates-nav__step {
  display: grid; place-items: center;
  width: var(--dates-nav); height: var(--dates-nav);
  padding: 0;
  border: 1px solid var(--dates-edge);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.dates-nav__step svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dates-nav__step:hover { border-color: var(--color-ink); background: var(--color-canvas-tinted); }
.dates-nav__step:focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }
.dates-nav__step:active { background: var(--color-canvas-pressed); transform: scale(0.94); }
.dates-nav__step:disabled { opacity: 0.5; transform: none; background: transparent; border-color: var(--dates-edge); cursor: not-allowed; }

.onnext__foot { margin: var(--space-12) 0 0; font-size: var(--type-lead); color: var(--color-body); }
.onnext__foot a {
  color: var(--color-action-primary);
  font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  border-radius: var(--radius-sm);
}
.onnext__foot a:hover  { color: var(--color-action-primary-hover); }
.onnext__foot a:active { color: var(--color-action-primary-active); }
.onnext__foot a:focus-visible { outline: 3px solid var(--color-focus-ring); outline-offset: 2px; }

/* ---- responsive (§13.1) ------------------------------------------------ */

@media (max-width: 979px) {
  .date { grid-template-columns: 1fr; gap: var(--space-4); }
  .date__when { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: var(--space-3); }
  .date .btn { justify-self: start; }
}
