/* Deltas for the test-load flow (/doorstops/test-load).

   The step system, cards and templates come from bathroom-flow.css,
   repainted for the zine by components/flow/flow-css.js. This file adds what
   only this page has: the two-week calendar beside the title, the handbook
   choice, the survey inputs and the schools list.

   Everything inside a step is drawn with rules, not boxes: the step is
   already the card. */

.tl .tl-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  width: 100%; max-width: 920px; margin: 0 auto; text-align: left;
}
.tl .tl-hero .bf-title { max-width: 12ch; margin: 0 0 14px; text-align: left; }
.tl .tl-hero-sub { max-width: 440px; margin: 0 0 24px; font-size: 18px; line-height: 1.55; color: var(--dl-muted); }
@media (max-width: 760px) {
  .tl .tl-hero { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .tl .tl-hero .bf-title { margin: 0 auto 14px; text-align: center; }
  .tl .tl-hero-sub { margin: 0 auto 24px; }
  .tl .tl-hero .tl-lead { grid-row: 1; }
}

#bf-school-status:empty { display: none; }
.tl a { display: inline; }

/* Any class rule with a `display` beats the browser's own `[hidden]`. */
.tl [hidden] { display: none !important; }

.tl .bf-solution-body { padding-left: 0; }

/* ---------------------------------------------------------- the lead */

.tl .tl-lead { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.tl .tl-week {
  width: min(360px, 100%); padding: 10px 12px 12px;
  border: 3px solid #16130f; background: #fff; box-shadow: 6px 6px 0 #16130f;
}
.tl .tl-week-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b5f52; }
.tl .tl-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tl .tl-day { display: flex; flex-direction: column; gap: 6px; min-height: 64px; }
.tl .tl-day b { font-size: 12.5px; font-weight: 700; color: #16130f; }
.tl .tl-test {
  display: block; padding: 6px 2px; border: 2px solid #16130f; background: #FDE2DC;
  font-style: normal; font-size: 11.5px; font-weight: 700; text-align: center; color: #16130f;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tl .tl-arrives { background: #3ECFB0; }

/* resting style is the last frame: the extra tests are gone from this week
   and sitting in next week. The animation only runs under .is-play. */
.tl .tl-moves { visibility: hidden; }
.tl .tl-lead.is-play .tl-moves { animation: tl-leave 3.4s ease both; }
.tl .tl-lead.is-play .tl-arrives { animation: tl-arrive 3.4s ease both; }
@keyframes tl-leave {
  0%, 45% { visibility: visible; opacity: 1; transform: none; }
  70% { visibility: visible; opacity: 0; transform: translateY(40px); }
  100% { visibility: hidden; opacity: 0; }
}
@keyframes tl-arrive { 0%, 60% { opacity: 0; transform: translateY(-14px); } 85%, 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tl .tl-lead.is-play .tl-moves, .tl .tl-lead.is-play .tl-arrives { animation: none; }
}

/* ------------------------------------------------- the handbook today */

@media (min-width: 720px) { .tl .tl-rules { grid-template-columns: 1fr 1fr 1fr; } }
.tl .bf-step-body p.tl-unsure { margin-top: 22px; }

/* -------------------------------------------------------- shared bits */

.tl .tl-left { justify-content: flex-start; flex-wrap: wrap; }
.tl .tl-hint { margin: 2px 0 10px; font-size: 14px; line-height: 1.5; color: var(--bf-soft); }
.tl .tl-find { margin: 8px 0 0; font-size: 14px; color: var(--bf-soft); }
.tl .bf-template > .tl-find { margin: -4px 0 0; padding: 0 18px 16px; }

.tl .tl-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; align-items: end; margin-top: 8px; }
.tl .tl-inputs .bf-field { margin-bottom: 6px; }
@media (max-width: 560px) { .tl .tl-inputs { grid-template-columns: 1fr; } }

.tl .tl-schools { margin: 0 0 12px; padding-left: 20px; }
.tl .tl-schools li { margin: 0 0 8px; }

/* --------------------------------------------------------- the session */

.tl .tl-session h3 { margin: 0 0 8px; font-family: var(--dl-font-display); font-size: 22px; }
.tl .tl-session ul { margin: 0 0 12px; padding-left: 20px; }
.tl .tl-session li { margin: 0 0 6px; font-size: 15.5px; line-height: 1.5; }
