/* T03 module page — composition only. All values are zuvamo.css tokens; components reused:
   crumbs, station, chip, answer, rule-list, sign-list (home.css), tmap/tline/stop, board, callout, faq, captions, scr (home.css). */

/* template preview bar (specimen only — not shipped) */
.tpl-bar { background: var(--surface); border-block-end: 1px dashed var(--signal); font-size: 14px; }
.tpl-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 8px; }
.tpl-bar b { font: 600 13px/1 var(--f-mono); color: var(--slate); }
.tpl-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-2); text-decoration: none; color: var(--ink); font-weight: 600; }
.tpl-bar a:hover { background: var(--info-tint); }
.tpl-bar a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--live); }
.tpl-bar .chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* hero */
.m-hero { padding-block: var(--s-3) var(--s-5); }
.m-hero__grid { display: grid; gap: var(--s-4); margin-block-start: var(--s-3); }
@media (min-width: 1024px) { .m-hero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; gap: var(--s-5); } }
.m-hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -.03em; }
.m-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.variant-note { margin-block-start: var(--s-2); }

/* reservations board in the hero */
.resv .board td:first-child { white-space: nowrap; font-weight: 600; }
.resv .board td.r { white-space: nowrap; }

/* problem: operator pains */
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-block-start: 2px solid var(--ink); }
@media (min-width: 1024px) { .pains { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); } }
.pains li { padding-block: var(--s-3); border-block-end: 1px solid var(--rail); display: grid; gap: 10px; align-content: start; }
.pains p { font: 600 20px/1.4 var(--f-display); letter-spacing: -.01em; }
.pains small { color: var(--slate); font-size: 15px; }

/* how it works: stations on one route line (horizontal ≥1024, vertical below) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.step { position: relative; display: grid; gap: var(--s-2); align-content: start; }
.step__no { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 4px solid var(--action); font: 600 17px/1 var(--f-mono); color: var(--ink); }
.step:last-child .step__no { background: var(--live); border-color: var(--ink); color: var(--on-live); }
.step h3 { font-size: 20px; }
.step p { font-size: 15px; color: var(--slate); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
  .step::before { content: ""; position: absolute; top: 19px; inset-inline: 0 calc(-1 * var(--gutter)); height: 6px; background: var(--action); }
  .step:last-child::before { display: none; }
}
@media (max-width: 1023px) {
  .step { padding-inline-start: 64px; }
  .step__no { position: absolute; inset-inline-start: 0; top: 0; }
  .step::before { content: ""; position: absolute; inset-inline-start: 19px; top: 0; bottom: calc(-1 * var(--s-4)); width: 6px; background: var(--action); }
  .step:last-child::before { bottom: auto; height: 22px; }
}
.shot-s { border: 2px solid var(--ink); border-radius: 20px; overflow: hidden; background: var(--surface); }
.shot-s--wide { border-radius: var(--r-2); }
.shot-s .scr { border: 0; border-radius: 0; height: auto; position: static; width: auto; }
.step .captions { gap: 4px; }
.step .captions li { grid-template-columns: 28px 1fr; padding: 4px; font-size: 14px; }
.step .captions li::before { width: 28px; height: 28px; font-size: 13px; }

/* mini screen parts for this module */
.days { display: flex; gap: 6px; }
.days span { flex: 1; display: grid; place-items: center; gap: 2px; padding: 6px 0; border: 1px solid var(--rail); border-radius: var(--r-1); font-size: 12px; line-height: 1.2; text-align: center; }
.days span b { font: 600 15px/1 var(--f-body); }
.days span.on { border: 2px solid var(--ink); }
.times { display: grid; gap: 4px; }
.times span { padding: 6px 10px; border-radius: var(--r-1); border: 1px solid var(--rail); font-variant-numeric: tabular-nums; }
.times span.on { border: 2px solid var(--ink); font-weight: 600; }
.rlist { display: grid; }
.rlist div { display: grid; gap: 2px; padding: 9px 12px; border-block-end: 1px solid var(--rail); font-size: 13px; }
.rlist div small { color: var(--slate); }
.rlist div.on { box-shadow: inset 3px 0 0 var(--live); background: var(--info-tint); }
.rlist .tag { justify-self: start; font: 600 12px/1 var(--f-body); padding: 4px 8px; border-radius: var(--r-pill); background: var(--ok-tint); }
.rlist .tag--new { background: var(--live); color: var(--on-live); }
.remind { margin: 12px; padding: 12px; border: 2px solid var(--ink); border-radius: var(--r-2); display: grid; gap: 6px; font-size: 13px; }
.remind b { font-size: 15px; }
.queue { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.queue th { text-align: start; font: 600 11.5px/1.2 var(--f-body); color: var(--slate); padding: 8px; border-block-end: 2px solid var(--ink); }
.queue td { padding: 8px; border-block-end: 1px solid var(--rail); vertical-align: top; }
.queue td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.queue tr.warn td { background: var(--info-tint); }
.queue tr.warn td:first-child { box-shadow: inset 3px 0 0 var(--live); }

/* empty media slot fallback: a diagram instead of a screenshot */
.media-fallback { border: 2px dashed var(--signal); border-radius: 20px; padding: var(--s-3) var(--s-2); background: var(--paper); display: grid; gap: var(--s-2); }
.fb-line { list-style: none; margin: 0; padding: 0; display: grid; }
.fb-line li { position: relative; padding: 0 0 20px 40px; font-weight: 600; min-height: 26px; }
.fb-line li::before { content: ""; position: absolute; inset-inline-start: 10px; top: 4px; bottom: -4px; width: 6px; background: var(--action); }
.fb-line li:last-child::before { display: none; }
.fb-line li::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 26px; height: 26px; box-sizing: border-box; border-radius: 50%; background: var(--action); border: 4px solid var(--paper); box-shadow: 0 0 0 3px var(--action); }
.fb-line li.is-x::after { background: var(--live); box-shadow: 0 0 0 3px var(--ink); border-radius: 13px; }

/* clip slot + transcript */
.clip { margin: var(--s-5) 0 0; display: grid; gap: var(--s-2); }
@media (min-width: 1024px) { .clip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.clip__slot { aspect-ratio: 16 / 9; border: 2px dashed var(--signal); border-radius: var(--r-2); background: var(--surface); display: grid; align-content: space-between; padding: var(--s-3); }
.clip__slot .route { color: var(--action); }
.transcript { padding: var(--s-2) 0 0; }
.transcript[hidden] { display: none; }
.transcript p + p { margin-block-start: 8px; }
.transcript .num { color: var(--slate); margin-inline-end: 8px; }

/* key facts (dispatch-board style), label/value rows by nature */
.kf { width: 100%; border-collapse: collapse; background: var(--surface); }
.kf caption { text-align: start; padding: 0 0 8px; font: 600 13px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.kf th[scope="row"] { width: 30%; text-align: start; vertical-align: top; padding: 14px 16px; border-block-end: 1px solid var(--rail); font: 600 15px/1.4 var(--f-body); }
.kf td { padding: 14px 16px; border-block-end: 1px solid var(--rail); font-size: 15px; vertical-align: top; }
.kf tr:first-child th, .kf tr:first-child td { border-block-start: 2px solid var(--ink); }
.kf td ul { margin: 0; padding-inline-start: 18px; }
@media (max-width: 640px) {
  .kf tr { display: grid; border-block-end: 1px solid var(--rail); padding-block: 12px; }
  .kf th[scope="row"], .kf td { width: auto; border: 0; padding: 2px 0; }
  .kf tr:first-child { border-block-start: 2px solid var(--ink); }
  .kf tr:first-child th, .kf tr:first-child td { border-block-start: 0; }
}

/* wide settings table: scrolls inside its container, sticky first column */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rail); border-radius: var(--r-2); background: var(--surface); }
.settings { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.settings caption { text-align: start; padding: 12px 16px; font: 600 13px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.settings th, .settings td { padding: 12px 16px; border-block-end: 1px solid var(--rail); text-align: start; vertical-align: top; }
.settings thead th { font: 600 13px/16px var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); border-block-end: 2px solid var(--ink); white-space: nowrap; }
.settings th:first-child, .settings td:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); box-shadow: inset -1px 0 0 var(--rail); }
.settings tbody th { font-weight: 600; }
.settings .tnum { font-weight: 600; }

/* works with: one line, stations are links */
.works .tline--bare { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.works .stop__name a { color: var(--ink); text-decoration-color: var(--signal); }
.works .stop__name a:hover { color: var(--action); }
@media (max-width: 860px) { .works .tline--bare { grid-template-columns: 1fr; } }

/* help links */
.help-list { list-style: none; margin: 0; padding: 0; border-block-start: 2px solid var(--ink); display: grid; }
@media (min-width: 768px) { .help-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); } }
.help-list a { display: grid; grid-template-columns: 24px 1fr 16px; gap: 14px; align-items: center; min-height: 56px; padding-block: 12px; border-block-end: 1px solid var(--rail); color: var(--ink); text-decoration: none; font-weight: 600; }
.help-list a:hover { color: var(--action); }
.help-list .icon { color: var(--action); }

/* coming soon: waitlist + states */
.wait { border: 2px solid var(--ink); border-radius: var(--r-2); background: var(--surface); padding: var(--s-4); display: grid; gap: var(--s-3); }
.wait__ok { display: grid; gap: var(--s-2); }
.wait__ok[hidden], .wait form[hidden] { display: none; }
.today { list-style: none; margin: 0; padding: 0; display: grid; border-block-start: 2px solid var(--ink); }
.today li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding-block: 16px; border-block-end: 1px solid var(--rail); align-items: start; }
.today p { color: var(--slate); font-size: 15px; grid-column: 1 / -1; }

.btn-row { display: flex; align-items: center; gap: 4px; }
.btn-row .scr__btn { flex: 1; }
.days .callout--flow { flex: none; margin-inline: 4px 2px; }
.tbl-title { font: 600 13px/16px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: var(--s-5) 0 8px; }
