/* today-page.css: district landing pages "Is there school today in <district>?" (today/<slug>.html and
   today/index.html, scripts/build_today_pages.py, js/today-page.js). Class prefix tp-.
   On top of css/pages.css (tokens, light and dark) and css/today.css (the answer card, td-). Phone first. */

.tp-page .wrap { max-width: 980px; }
.tp-main { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.tp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 14px 0 0; font-size: .82rem; color: var(--muted); }
.tp-crumbs li + li::before { content: "›"; margin-right: 4px; }
.tp-crumbs a { color: var(--accent); text-decoration: none; display: inline-block; padding: 4px 0; }   /* 24px targets (WCAG 2.5.8) */
.tp-crumbs a:hover { text-decoration: underline; }
.tp-intro { padding: 6px 0 0; }
.tp-intro h1 { overflow-wrap: anywhere; }
.tp-intro .td-lead { margin: 0; }

.tp-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .tp-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.tp-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.tp-today { display: flex; flex-direction: column; gap: 10px; }
.tp-today .td-small { margin: 0; }
.tp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; min-width: 0; }
.tp-card h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--ink); overflow-wrap: anywhere; }
.tp-card h3 { margin: 0 0 4px; font-size: .98rem; color: var(--ink); }
.tp-card p { margin: 0 0 8px; font-size: .93rem; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.tp-card p:last-child { margin-bottom: 0; }
.tp-card a, .tp-week a, .tp-pick a { color: var(--accent); font-weight: 700; }
.tp-src { font-size: .84rem !important; color: var(--muted) !important; }
.tp-muted { margin: 0; font-size: .9rem; color: var(--muted); }
.tp-qa + .tp-qa { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* level times: css/today.css .td-times, with a caption and a second line */
.tp-levels[hidden], .tp-hook:empty { display: none; }
.tp-cap { margin: 0 0 6px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.tp-times div { overflow-wrap: anywhere; }
.tp-times b { font-size: 1.02rem; }
.tp-sub { display: block; font-size: .74rem; color: var(--muted); }
.tp-school { margin-top: 0; }
.tp-school select { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }

/* this week */
.tp-days { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; }
.tp-days:last-child { margin-bottom: 0; }
.tp-day { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 9px 0 9px 10px; border-top: 1px solid var(--border); border-left: 3px solid var(--border); font-size: .92rem; }
.tp-day:first-child { border-top: 0; }
.tp-day.tp-stop { border-left-color: var(--td-stop); }
.tp-day.tp-warn { border-left-color: var(--td-warn); }
.tp-day.tp-info { border-left-color: var(--td-info); }
.tp-when { color: var(--ink); white-space: nowrap; }
.tp-what { color: var(--text); text-align: right; min-width: 0; overflow-wrap: anywhere; }

.tp-cta { margin: 0; }
.tp-cta .btn { width: 100%; min-height: 48px; text-align: center; white-space: normal; }
.tp-indep { margin: 0; font-size: .84rem; font-weight: 600; color: var(--ink); }
.tp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.tp-list li { padding: 3px 0; }   /* room between link targets (WCAG 2.5.8) */
.tp-card p a, .tp-muted a { display: inline-block; padding: 2px 0; }

/* index: pick your district */
.tp-q { width: 100%; min-height: 46px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.tp-all { display: grid; gap: 12px; }
@media (min-width: 720px) { .tp-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-letter { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 16px; min-width: 0; }
.tp-letter[hidden], .tp-dlist li[hidden] { display: none; }
.tp-letter h2 { margin: 0 0 4px; font-size: 1.05rem; color: var(--ink); }
.tp-dlist { list-style: none; margin: 0; padding: 0; }
.tp-dlist li { padding: 2px 0; font-size: .95rem; overflow-wrap: anywhere; }
.tp-dlist a { display: inline-block; padding: 5px 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.tp-dlist a:hover { text-decoration: underline; }
.tp-tag { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 6px; padding: 1px 6px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); vertical-align: middle; }
.tp-tag-live { background: var(--td-okbg); color: var(--td-ok); border-color: transparent; }

@media print { .tp-cta, .tp-hook, .tp-school { display: none; } }
