/*
 * What site/week.js adds to the home page: the canvas the seven nights are drawn on, each night's button and the
 * panel of tonight's games. Built from scripts/home/web; values come from theme.css.
 * The bars' layout stays in style.css: the canvas draws where those elements stand.
 */
.home-hero { position: relative; }
.home-copy, #week { position: relative; z-index: 1; }
.week-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Drawn by the canvas: the page's own glass, plates and reflections step aside, keeping their room. */
.week-gl .glass, .week-gl .night::before, .week-gl .night::after { visibility: hidden; }
.week-gl .day { top: auto; bottom: calc(100% + var(--space-3)); transition: color var(--quick) var(--ease); }

/* Without the canvas the page's bars move to the live week's heights. */
.lit, .gain { transition: height var(--slow) var(--ease-out), bottom var(--slow) var(--ease-out); }

.night.tonight .day, .night.reading .day { color: var(--text); }
.night.tonight .day::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--space-1) * -1); height: 2px; background: var(--red);
}
.night-pick {
  position: absolute; top: calc(var(--space-7) * -1); bottom: calc(var(--space-5) * -1);
  left: calc(var(--bar-gap) / -2); right: calc(var(--bar-gap) / -2); min-width: var(--touch);
  background: none; border: 0; padding: 0; cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent;
}
.night-pick:focus-visible { outline: 2px solid var(--text-dim); outline-offset: calc(var(--space-1) * -1); border-radius: var(--radius-control); }

/* Tonight, under the hero: the real slate and the sample roster's lineup, as two quiet columns. */
.home #tonight { padding: var(--space-8) var(--edge); border-top: 1px solid var(--rule); }
.tonight-inner { max-width: var(--measure); margin: 0 auto; display: grid; gap: var(--space-6); }
.tonight-head h2 { margin: 0 0 var(--space-2); font-size: var(--size-title); font-weight: var(--weight-strong); }
.tonight-head p { margin: 0; color: var(--text-faint); font-size: var(--size-small); }
/* Tonight past the feed's refresh time: "Running late." leads the line in red (week.js sets the class). */
.tonight-head .late { display: none; color: var(--red); font-weight: var(--weight-strong); }
.tonight-head .is-late .late { display: inline; }
.tonight-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-7); align-items: start; }
.tonight-col h3 {
  margin: 0 0 var(--space-3); display: flex; justify-content: space-between; gap: var(--space-4);
  font-size: var(--size-micro); font-weight: var(--weight-strong); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--text-faint);
}
.tonight-col h3 span { font-variant-numeric: tabular-nums; }
.tonight-games, .tonight-lineup { list-style: none; margin: 0; padding: 0; font-size: var(--size-small); font-variant-numeric: tabular-nums; }
.tonight-games li, .tonight-lineup li { display: grid; gap: var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--rule); align-items: baseline; }
.tonight-games li { grid-template-columns: 1fr auto; }
.tonight-lineup li { grid-template-columns: 2.5rem minmax(0, 1fr) auto 3rem; }
.tonight-games .status, .tonight-lineup .opp, .tonight-lineup .slot { color: var(--text-dim); }
.tonight-lineup .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tonight-lineup .val { text-align: right; }
.tonight-empty, .tonight-pickup { margin: var(--space-3) 0 0; font-size: var(--size-small); color: var(--text-dim); }
.tonight-pickup { color: var(--green); }

@media (max-width: 820px) {
  .tonight-cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .home #tonight { padding: var(--space-7) var(--edge); }
}
@media (prefers-reduced-motion: reduce) {
  .lit, .gain, .week-gl .day { transition: none; }
}
