/* The game-night companion (/tonight/, site/pages/tonight/index.html). Loaded on that page only,
   after ring28.css. Tokens only; field green marks "now" on the timeline and the picked mode, and
   nothing else. */

/* What the script hides stays hidden, whatever display a class gives it. */
.tonight [hidden] { display: none !important; }
/* No game left on the schedule (the script's): only the heading and the status stay. */
.tonight.tn-none [data-game] { display: none !important; }

.tn-head { padding-bottom: 1.5rem; }
.tn-head .when { margin: 0.75rem 0 0.5rem; }
.tn-countdown {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--navy);
  border-left: 4px solid var(--field-green);
  padding: 0.25rem 0 0.25rem 0.75rem;
  margin: 0.75rem 0;
}
.tn-status { font-size: 0.9375rem; color: var(--reading-gray); }
.tn-off {
  border-left: 4px solid var(--navy);
  padding: 0.5rem 0 0.5rem 1rem;
  margin-top: 1rem;
}
.tn-links { margin-top: 0.75rem; font-size: 0.9375rem; }
.tn-offline {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* The editor's three lines, only when approved. */
.tn-preview {
  background: var(--paper);
  border-top: 4px double var(--navy);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.tn-preview h2 { font-size: 1.5rem; }
.tn-preview dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1rem;
}
.tn-preview dd { margin: 0.25rem 0 0; }
.tn-preview .source { margin-top: 1rem; }

/* The toggle: two buttons, the picked one filled. */
.tn-modes { margin: 0.5rem 0 0; }
.tn-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.5rem;
  border: 2px solid var(--navy);
}
.tn-toggle button {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: var(--white);
  color: var(--navy);
  font: 600 1rem var(--font-sans);
  cursor: pointer;
}
.tn-toggle button + button { border-left: 2px solid var(--navy); }
.tn-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.tn-toggle button:focus-visible { outline: 3px solid var(--field-green); outline-offset: 2px; }

.tn-away { font-size: 0.9375rem; margin-bottom: 1rem; }

/* The timeline: the time on the left, what happens on the right, ruled like a scorecard. */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 4px double var(--navy);
}
.timeline li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--road-gray);
}
.tl-when {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
}
.tl-what h3 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.tl-what p { font-size: 0.9375rem; }
.tl-what .source { margin-top: 0.375rem; }
.timeline li.is-past .tl-when, .timeline li.is-past h3 { color: var(--reading-gray); }
.timeline li.is-now { border-left: 4px solid var(--field-green); padding-left: 0.75rem; }
.tl-now {
  display: inline-block;
  margin-bottom: 0.25rem;
  padding: 0.125rem 0.5rem;
  background: var(--field-green);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tn-first { margin-top: 1.5rem; }
.tn-first .checklist { margin-top: 0.5rem; }

/* On the couch */
.tn-services { display: grid; gap: 1.5rem; margin: 1rem 0 1.5rem; }
.tn-plans { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.tn-plans li { padding: 0.4rem 0; border-bottom: 1px solid var(--road-gray); }
.tn-plans b { font-family: var(--font-mono); font-weight: 400; margin-right: 0.5rem; }
.tn-panel h3 { margin-top: 1.5rem; }
.tn-panel .tl-what h3, .tn-panel .receipt h3 { margin-top: 0; }
.tn-panel .action { margin-top: 1.25rem; }

/* The next games */
.tn-next { list-style: none; padding: 0; margin: 0.75rem 0; border-top: 4px double var(--navy); }
.tn-next li {
  display: grid;
  gap: 0.125rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--road-gray);
  font-size: 0.9375rem;
}
.tn-next .mono { font-size: 0.8125rem; color: var(--reading-gray); }

@media (min-width: 40rem) {
  .tn-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-toggle { max-width: 26rem; }
  .timeline li { grid-template-columns: 9rem minmax(0, 1fr); }
}

@media (forced-colors: active) {
  .tn-toggle button[aria-pressed="true"] { outline: 3px solid ButtonText; outline-offset: -5px; }
  .tl-now { border: 1px solid ButtonText; }
}
