/* Is There School? — styles.
   The status panel's color carries the answer: green open, amber delayed/early, red closed, slate no school. */

:root {
  --bg: #f1f3f6;
  --surface: #ffffff;
  --text: #14171c;
  --text-2: #5b616c;
  --text-3: #868c96;
  --line: #e3e6eb;
  --hover: #f6f7f9;
  --link: #1d5bd8;
  --navy: #0c2340;
  --bus: #ffc20e;
  --bus-soft: #fff4cc;

  --open: #17694a;
  --delay: #9a4f08;
  --closed: #b3261e;
  --off: #3a4a66;

  /* School badges, by level: bus yellow elementary, orange K–8, teal middle, blue high */
  --badge-es: #ffc20e; --badge-es-ink: #0c2340;
  --badge-k8: #ff9e3d; --badge-k8-ink: #3a1d00;
  --badge-ms: #15a39a; --badge-ms-ink: #ffffff;
  --badge-hs: #3d63dd; --badge-hs-ink: #ffffff;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114;
    --surface: #1a1d22;
    --text: #eceef1;
    --text-2: #a6acb6;
    --text-3: #7d838d;
    --line: #2a2e35;
    --hover: #22262c;
    --link: #78a2ff;
    --bus-soft: #3a3014;
    --open: #1b7352;
    --delay: #a8590f;
    --closed: #a8261f;
    --off: #36445d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1114;
  --surface: #1a1d22;
  --text: #eceef1;
  --text-2: #a6acb6;
  --text-3: #7d838d;
  --line: #2a2e35;
  --hover: #22262c;
  --link: #78a2ff;
  --bus-soft: #3a3014;
  --open: #1b7352;
  --delay: #a8590f;
  --closed: #a8261f;
  --off: #36445d;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 10px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--text-3); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 720px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ── Header ───────────────────────────────────────────────── */
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 99px; color: var(--text);
  font: 600 15px/1 var(--font); cursor: pointer; list-style: none; white-space: nowrap; }
.nav__btn::-webkit-details-marker { display: none; }
.nav__btn:hover { background: var(--hover); text-decoration: none; }
.nav__btn svg { width: 19px; height: 19px; flex: none; }
/* Light/dark toggle: needs app.js, so it only shows once the head script has marked the page .js */
.theme-btn { display: none; width: 38px; padding: 0; justify-content: center; border: 0; background: none; }
.js .theme-btn { display: inline-flex; }
.theme-btn .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.nav__mine { background: var(--bus-soft); }
.nav__mine:hover { background: var(--bus-soft); filter: brightness(0.97); }
.nav__mine svg { color: #b07d00; fill: var(--bus); stroke: #b07d00; }
.hsearch[open] .nav__btn { background: var(--hover); }
.hsearch__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 12px max(16px, calc((100vw - 1040px) / 2 + 24px)) 16px; box-shadow: 0 16px 32px rgba(15, 20, 30, 0.12); }
@media (max-width: 440px) { .nav__label { display: none; } .nav { gap: 2px; } .nav__btn { padding: 0 10px; font-size: 14px; gap: 5px; } .brand { font-size: 17px; gap: 8px; } }
/* Phones: the header has to fit (it was wider than the screen from about 375 to 425 px, so pages scrolled sideways).
   The theme button goes (phones follow their own dark mode setting); on the narrowest, "My schools" is its star. */
@media (max-width: 430px) { .js .theme-btn { display: none; } }
@media (max-width: 380px) { .nav__mine span { display: none; } .nav__mine { width: 38px; padding: 0; justify-content: center; } }

.crumbs { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-3); margin: 16px 0 12px; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.crumbs svg { width: 14px; height: 14px; }

/* ── Status panel ─────────────────────────────────────────── */
.panel { --tone: var(--off); background: var(--tone); color: #fff; border-radius: 20px; padding: 22px 20px 16px; margin: 16px 0 0; }
.crumbs + .panel { margin-top: 0; }
.panel--open { --tone: var(--open); }
.panel--delay { --tone: var(--delay); }
.panel--closed { --tone: var(--closed); }
.panel--off { --tone: var(--off); }
.panel a { color: #fff; text-decoration: underline; }
/* Scene illustration across the top of the panel, fading into the panel color */
.panel--art { overflow: hidden; }
.panel__art { position: relative; margin: -22px -20px 16px; height: 150px; }
.panel__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; }
.panel__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, transparent, var(--tone)); }
@media (min-width: 560px) { .panel__art { height: 210px; } }
/* Short phone screens (iPhone SE and the like): a shorter picture, so the answer and the times are on the first screen */
@media (max-width: 559px) and (max-height: 760px) { .panel__art { height: 112px; } }
/* The narrowest phones: the day label stays on one line, and the "Make it my school" bar's question doesn't wrap
   word by word */
@media (max-width: 380px) {
  .when { white-space: nowrap; font-size: 14px; gap: 6px; padding: 5px 10px; }
  .when b { letter-spacing: 0.03em; }
  .mybar { padding: 8px; gap: 8px; justify-content: center; }
  .mybar__text { display: none; } /* the button says it */
}
@media (min-width: 860px) { .panel__art { margin: -28px -32px 20px; height: 280px; } }
.panel__top { display: flex; align-items: center; gap: 12px; }
.panel__id { flex: 1; min-width: 0; }
.panel__title { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
.panel__meta { font-size: 14px; margin: 1px 0 0; opacity: 0.85; }
.panel__date { font-size: 15px; margin: 10px 0 0; opacity: 0.88; }
.panel__top + .panel__date { margin-top: 14px; }
.panel__mine { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 99px; padding: 7px 12px 7px 10px;
  background: var(--bus); color: var(--navy); font: 700 13px/1 var(--font); cursor: pointer; transition: filter .15s; }
.panel__mine:hover { filter: brightness(1.06); }
.panel__mine svg { width: 14px; height: 14px; fill: currentColor; }
@media (min-width: 860px) { .panel__title { font-size: 22px; } }

.save { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 8px 13px 8px 11px;
  background: rgba(255, 255, 255, 0.16); color: #fff; font: 600 14px/1 var(--font); cursor: pointer; transition: background 0.15s; }
.save:hover { background: rgba(255, 255, 255, 0.24); }
.save svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.save[aria-pressed="true"] svg { fill: currentColor; }

.panel__main { margin-top: 24px; }
.status { display: flex; align-items: center; gap: 14px; }
.status__icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--tone); display: grid; place-items: center; flex: none; }
.status__icon svg { width: 30px; height: 30px; }
.status__word { font-size: clamp(42px, 11vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 0; }
.status__sub { font-size: 17px; margin: 12px 0 0; opacity: 0.92; }
/* Which day the answer is for: "TODAY", "TOMORROW · Tuesday, Nov 10", "MONDAY · Nov 9". Always right above the answer. */
.when { display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 12px; padding: 5px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.18); font-size: 15px; line-height: 1.25; }
.when b { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.when span { opacity: 0.92; }
/* Looking ahead to another day: white label, so "Open" can't be read as today */
.when--ahead { background: #fff; color: var(--tone); }
.when--ahead span { opacity: 1; }
.when--card { margin: 0; padding: 3px 10px; font-size: 13px; white-space: nowrap; align-self: flex-start; }

.times { display: flex; gap: 32px; margin-top: 22px; align-items: flex-start; }
.times > div { display: grid; align-content: start; }
.times span { font-size: 14px; opacity: 0.88; }
.times strong { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.times em { font-style: normal; font-size: 14px; opacity: 0.88; }

.notice { margin-top: 18px; background: rgba(0, 0, 0, 0.17); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.notice b { display: block; margin-bottom: 2px; }
.notice--soft { background: rgba(0, 0, 0, 0.1); font-size: 14px; } /* a heads-up (a mountain school), not an announcement */

@media (min-width: 860px) {
  .panel { padding: 28px 32px 20px; }
  .panel__main { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
  .panel__main .times { margin: 0 0 4px; gap: 48px; }
  .panel__main .times strong { font-size: 40px; }
}

.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.panel__checked { margin: 0; font-size: 14px; opacity: 0.88; flex: 1 1 220px; }
.panel__checked--warn { opacity: 1; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.panel__checked--warn a { color: inherit; text-decoration: underline; }
.panel__actions { display: flex; gap: 8px; }
.bar-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 8px 13px 8px 11px; background: rgba(255, 255, 255, 0.16);
  color: #fff; font: 600 14px/1 var(--font); cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.bar-btn:hover { background: rgba(255, 255, 255, 0.24); }
.bar-btn svg { width: 16px; height: 16px; }
/* While checking, a little bus drives along the bottom of the panel */
.panel__bar { position: relative; }
.bar-bus { position: absolute; left: 0; bottom: -10px; width: 26px; height: 26px; opacity: 0; pointer-events: none; }
.panel__bar.is-checking .bar-bus { animation: drive 1.6s cubic-bezier(.45, .05, .55, .95) infinite, bump .4s ease-in-out infinite; }
/* it rolls along, bouncing a little on the road and rocking on its springs, not sliding on a rail */
@keyframes drive { 0% { opacity: 0; translate: -30px 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; translate: calc(var(--bar-w, 300px) + 10px) 0; } }
@keyframes bump { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-1.5px) rotate(-2deg); }
  50% { transform: translateY(0) rotate(0); } 70% { transform: translateY(-0.8px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .panel__bar.is-checking .bar-bus { animation: none; } }

/* Scene effects (scene-fx.js) */
.fx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.panel__art::after { z-index: 2; }
.fx-glow { position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(255, 244, 190, .95) 0, rgba(255, 220, 120, .55) 30%, rgba(255, 210, 100, 0) 70%);
  animation: glow 2.2s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes glow { 0%, 100% { opacity: .45; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .fx-glow { animation: none; opacity: .7; } }
/* A classroom light coming on (scene-moments.js): warm light over a window, blended with the drawing */
.fx-lamp { position: absolute; pointer-events: none; z-index: 1; opacity: 0; border-radius: 2px; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 226, 150, .95), rgba(255, 196, 96, .75) 70%, rgba(255, 180, 80, .6));
  box-shadow: 0 0 14px 4px rgba(255, 210, 120, .35); }

/* Small touches */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px) scale(.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .save.just-saved svg { animation: pop .45s ease-out; }
  .alerts-row.just-on .row-illus img { animation: ring .9s ease-in-out; transform-origin: 50% 10%; }
  .week .wd__icon { animation: rise .32s ease-out both; }
  .week .wd:nth-child(2) .wd__icon { animation-delay: .04s; } .week .wd:nth-child(3) .wd__icon { animation-delay: .08s; }
  .week .wd:nth-child(4) .wd__icon { animation-delay: .12s; } .week .wd:nth-child(5) .wd__icon { animation-delay: .16s; }
  .panel.is-flipped .status__word { animation: flip .6s cubic-bezier(.2,.8,.3,1.2) both; transform-origin: 50% 60%; }
}
@keyframes flip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

.alerts-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.alerts-row[hidden] { display: none; }
/* Home page, before alerts are on: above the family's schools, with a warm edge so it reads as an offer */
.alerts-row { position: relative; }
.alerts-row--top { margin: 0 0 14px; box-shadow: inset 0 0 0 2px #f2c94c; }
.alerts-row--top .alerts-row__text { padding-right: 22px; }
.alerts-row__later { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.alerts-row__later[hidden] { display: none; }
.alerts-row__later:hover { background: rgba(127, 127, 127, 0.14); }
.alerts-row__later svg { width: 16px; height: 16px; }
/* "Show me how": a short glow so the eye lands on it */
.alerts-row.is-flash { animation: alerts-flash 1.4s ease-out; }
@keyframes alerts-flash { 0%, 40% { box-shadow: inset 0 0 0 3px #f2c94c, 0 0 0 6px rgba(242, 201, 76, 0.35); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .alerts-row.is-flash { animation: none; box-shadow: inset 0 0 0 2px #f2c94c; } }
.alerts-row__icon { width: 40px; height: 40px; border-radius: 10px; background: #fff4d6; color: #a86b00; display: grid; place-items: center; flex: none; }
.alerts-row__icon svg { width: 22px; height: 22px; }
.alerts-row__text { display: grid; flex: 1 1 220px; }
.alerts-row__text span { font-size: 15px; color: var(--text-2); }
.alerts-row.is-on .alerts-row__icon { background: #dff1e8; color: var(--open); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alerts-row__icon { background: #3a2f12; } :root:not([data-theme="light"]) .alerts-row.is-on .alerts-row__icon { background: #143627; } }
:root[data-theme="dark"] .alerts-row__icon { background: #3a2f12; } :root[data-theme="dark"] .alerts-row.is-on .alerts-row__icon { background: #143627; }

/* Week strip */
.week { list-style: none; margin: 22px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wd { display: grid; justify-items: center; text-align: center; border-radius: 12px; padding: 8px 2px 9px; }
.wd--first { background: rgba(255, 255, 255, 0.15); }
.wd__name { font-size: 15px; font-weight: 600; }
.wd__date { font-size: 14px; opacity: 0.9; white-space: nowrap; }
.wd__icon { width: 30px; height: 30px; border-radius: 50%; margin: 7px 0 5px; display: grid; place-items: center; }
.wd__icon svg { width: 18px; height: 18px; }
.k-open { background: #fff; color: var(--open); }
.k-delay { background: #ffd28a; color: #6b3a00; }
.k-closed { background: #ffb4ad; color: #7a130d; }
.k-off { background: rgba(255, 255, 255, 0.22); color: #fff; }
.wd__label { font-size: 14px; opacity: 0.95; white-space: nowrap; }
/* The narrowest phones: "23" under "Mon" (the month doesn't fit five across at a readable size) */
@media (max-width: 360px) { .wd__mon { display: none; } .wd__label { font-size: 13px; } }

/* ── Sections and grouped lists ───────────────────────────── */
.sections { display: grid; gap: 28px; margin: 28px 0 0; padding-bottom: 8px; }
@media (min-width: 860px) { .sections { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .sections__wide { grid-column: 1 / -1; } }
h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 10px 4px; }
.note { font-size: 14px; color: var(--text-3); margin: 8px 4px 0; }

.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; min-height: 50px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.value { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; display: inline-flex; align-items: center; gap: 6px; }
.value--strong { color: var(--text); font-weight: 600; }
.value svg { width: 16px; height: 16px; color: var(--text-3); }
.row--link { color: var(--text); }
.row--link:hover { background: var(--hover); text-decoration: none; }
.row--stack { display: grid; gap: 2px; justify-content: stretch; }
.row--stack span { color: var(--text-2); font-size: 15px; }

/* Illustrated icons */
.illus { display: block; object-fit: contain; }
h2.with-illus { display: flex; align-items: center; gap: 10px; }
h2.with-illus .illus { width: 30px; height: 30px; flex: none; }
.row-illus { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.row-illus .illus { width: 44px; height: 44px; }
.card__illus { width: 56px; height: 56px; flex: none; background: rgba(255, 255, 255, 0.92); border-radius: 14px; padding: 4px; display: grid; place-items: center; }
.card__illus .illus { width: 48px; height: 48px; }

/* Lunch */
.food { display: flex; align-items: center; gap: 12px; }
.food i { width: 8px; height: 8px; border-radius: 50%; background: #e0a43a; flex: none; }
.food--side i { background: #8fbf7c; }
.food--side span { color: var(--text-2); }

.lunch-week { margin-top: 10px; }
.lunch-week summary { cursor: pointer; color: var(--link); font-weight: 500; font-size: 15px; margin: 0 4px 8px; list-style: none; width: fit-content; }
.lunch-week summary::-webkit-details-marker { display: none; }
.lunch-week summary::after { content: " ›"; }
.lunch-week[open] summary::after { content: " ⌄"; }

/* Coming up */
.event { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.cal { width: 46px; flex: none; border-radius: 10px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.cal span { display: block; background: #d64545; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 0; text-transform: uppercase; letter-spacing: 0.02em; }
.cal--early span { background: #d9890f; }
.cal strong { display: block; font-size: 20px; font-weight: 600; line-height: 30px; }
.event__body { display: grid; min-width: 0; }
.event__name { font-weight: 600; }
.event__meta { font-size: 15px; color: var(--text-2); }
.event__when { margin-left: auto; padding-left: 8px; font-size: 14px; color: var(--text-3); white-space: nowrap; align-self: flex-start; padding-top: 2px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: #8a5a00; background: #fff1c7; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
@media (max-width: 460px) { .event__when { display: none; } }

.subscribe { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.subscribe__icon { width: 40px; height: 40px; border-radius: 10px; background: #eaf0fd; color: var(--link); display: grid; place-items: center; flex: none; }
.subscribe__icon svg { width: 22px; height: 22px; }
.subscribe__text { display: grid; flex: 1 1 220px; }
.subscribe__text span { font-size: 15px; color: var(--text-2); }
.subscribe__links { display: flex; gap: 8px; }
.pill { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; white-space: nowrap; }
.pill:hover { background: var(--hover); text-decoration: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .subscribe__icon { background: #22304d; } }
:root[data-theme="dark"] .subscribe__icon { background: #22304d; }

/* Neighbor tip (Walks for Lucy) */
.tip { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 12px 16px; }
.tip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.tip p { margin: 0; font-size: 15px; color: var(--text-2); }

.about-school p { color: var(--text-2); margin: 0 4px 12px; max-width: 46rem; }

/* Town pages */
.town__title { font-size: 26px; margin: 4px 4px 14px; }
.town__level { font-size: 14px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 8px; }
.town__level:first-of-type { margin-top: 4px; }

/* Questions at the bottom of school and county pages: closed, one line each */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--text-2); font-size: 20px; line-height: 1; flex: none; }
.faq__item[open] summary::after { content: '–'; }
.faq__item summary:hover { background: var(--hover); }
.faq__item h3 { margin: 0; font-size: 15px; font-weight: 600; }
.faq__item p { margin: 0; padding: 0 16px 14px; color: var(--text-2); font-size: 15px; max-width: 46rem; }

/* ── Search ───────────────────────────────────────────────── */
.finder { position: relative; }
.finder-wrap { margin-top: 16px; }
.finder__box { position: relative; }
.finder__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: grid; pointer-events: none; }
.finder__icon svg { width: 20px; height: 20px; }
.finder__input { width: 100%; height: 52px; padding: 0 16px 0 44px; font: 17px var(--font); color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; -webkit-appearance: none; appearance: none; }
.finder__input::placeholder { color: var(--text-3); }
.finder__input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px color-mix(in srgb, var(--link) 22%, transparent); }
.finder__input::-webkit-search-cancel-button { display: none; }
.finder__list { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 20, 30, 0.14); max-height: min(360px, 60vh); overflow: auto; }
.finder__list li { display: grid; gap: 1px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.finder__list li[aria-selected="true"] { background: var(--hover); }
.finder__list .n b { font-weight: 700; }
.finder__list .c { color: var(--text-3); font-size: 14px; }
.finder__list .empty { color: var(--text-3); cursor: default; }

/* ── Home ─────────────────────────────────────────────────── */
.intro { padding: 16px 0 28px; }
.intro > :not(.intro__art) { max-width: 640px; }
/* Bus-stop banner for first-time visitors; on phones it crops to the family and the bus */
.intro__art { margin: 0 0 24px; height: 150px; border-radius: 20px; overflow: hidden; background: #dfe9ef; }
.intro__art img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 70%; display: block; }
@media (min-width: 560px) { .intro__art { height: 210px; } }
@media (min-width: 860px) { .intro__art { height: 280px; margin-bottom: 32px; } }
.intro__title { font-size: clamp(32px, 7vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.intro__sub { font-size: 18px; color: var(--text-2); margin: 10px 0 22px; }
.intro .finder__input { height: 56px; box-shadow: 0 1px 2px rgba(15, 20, 30, 0.05); }

[data-when-saved] { display: none; }
.has-schools [data-when-saved] { display: block; }
.has-schools [data-when-empty] { display: none; }
.mine { padding: 24px 0 8px; }
.mine__head { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 12px; }
.mine__title { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.btn-text { border: 0; background: none; color: var(--link); font: 500 16px var(--font); cursor: pointer; padding: 6px 4px; }
.mine__cards { display: grid; gap: 12px; }
@media (min-width: 760px) { .mine__cards { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); } }
.mine__add { margin: 14px 4px 8px; }
.mine__add summary { cursor: pointer; color: var(--link); font-weight: 500; list-style: none; width: fit-content; }
.mine__add summary::-webkit-details-marker { display: none; }
.mine__add summary::before { content: "+ "; }
.mine__add .finder { margin-top: 10px; }
.districts, .browse { margin-top: 28px; }
.has-schools .districts { margin-top: 32px; }

.card-wrap { position: relative; }
.card { --tone: var(--off); display: block; background: var(--tone); color: #fff; border-radius: 18px; padding: 18px 18px 12px; }
.card:hover { text-decoration: none; filter: brightness(1.04); }
.card--open { --tone: var(--open); }
.card--delay { --tone: var(--delay); }
.card--closed { --tone: var(--closed); }
.card__top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.card__name { font-weight: 600; }
.card__when { opacity: 0.88; white-space: nowrap; }
.card .status { margin-top: 14px; }
.card .status__icon { width: 40px; height: 40px; }
.card .status__icon svg { width: 22px; height: 22px; }
.card .status__word { font-size: 36px; }
.card__sub { display: block; margin-top: 8px; font-size: 16px; opacity: 0.92; font-variant-numeric: tabular-nums; }
.card .week { margin-top: 14px; padding-top: 10px; }
.card .wd { padding: 6px 2px; }
.card .wd__date { display: none; }
.card .wd__icon { width: 26px; height: 26px; margin: 5px 0 3px; }
.card .wd__icon svg { width: 15px; height: 15px; }
.is-editing .card { opacity: 0.85; }

/* ── District directory ───────────────────────────────────── */
.dir { border-bottom: 1px solid var(--line); }
.dir:last-child { border-bottom: 0; }
.dir summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 600; }
.dir summary::-webkit-details-marker { display: none; }
.dir summary:hover { background: var(--hover); }
.dir summary svg { transition: transform 0.2s; }
.dir[open] summary svg { transform: rotate(90deg); }
.dir__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; }
@media (min-width: 760px) { .dir__list { grid-template-columns: 1fr 1fr; } .dir__list li:nth-child(odd) { border-right: 1px solid var(--line); } }
.dir__list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.dir__list a:hover { background: var(--hover); text-decoration: none; }
.dir__name { display: grid; font-weight: 500; }
.dir__name small { font-size: 13px; color: var(--text-3); font-weight: 400; }
.dir__time { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── Reference pages (delay times, early release, differences) ── */
.guide { padding-bottom: 8px; }
.guide h1 { font-size: clamp(28px, 6vw, 36px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin: 4px 0 10px; max-width: 30ch; }
.guide .lead { font-size: 18px; color: var(--text-2); max-width: 46rem; margin: 0 0 8px; }
.guide h2 { margin-top: 28px; }
.guide-section { margin-top: 8px; }
.crumbs span[aria-hidden] { color: var(--text-3); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table thead th { font-size: 13px; font-weight: 600; color: var(--text-3); background: var(--hover); white-space: nowrap; }
.table tbody th { font-weight: 500; }
.table tbody th a { color: var(--text); }
.aka { font-size: 0.9em; color: var(--text-3); }
.table small { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; }
/* A break week by week (fall break): a dot per district per weekday */
.break__week { font-size: 15px; margin: 18px 4px 8px; color: var(--text-2); }
.table--week th, .table--week td { text-align: center; }
.table--week tbody th { text-align: left; white-space: nowrap; }
.table--week td .dot { margin: 0; width: 12px; height: 12px; }
@media (max-width: 560px) { .table--week th, .table--week td { padding: 10px 2px; } .table--week tbody th { padding-left: 12px; } }
.break > .note .dot { margin: 0 4px 0 10px; }
.break > .note .dot:first-child { margin-left: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.table .strong { color: var(--text); font-weight: 700; }
.table .short { display: none; }
@media (max-width: 560px) { .table--answers th, .table--answers td { padding: 11px 8px; } .table--answers th:first-child { padding-left: 14px; } .table--answers td .dot { margin-right: 4px; } .table .long { display: none; } .table .short { display: inline; } }
.nowrap { white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot--open { background: var(--open); }
.dot--off { background: var(--off); }
.prose-box { padding: 14px 18px; margin: 14px 0 0; }
.prose-box p { margin: 0 0 6px; }
.prose-box ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.prose-box li { margin: 4px 0; }
@media (max-width: 520px) { .table th, .table td { padding: 10px 12px; font-size: 15px; } }

.table td small { margin-top: 2px; }
/* Tables whose rows are schools: the whole row opens the school (the name's link covers the row) */
.table--link tbody tr { position: relative; }
.table--link tbody th a::after { content: ""; position: absolute; inset: 0; }
.table--link tbody tr:hover { background: var(--hover); }
.table--link tbody tr:has(a:focus-visible) { outline: 3px solid var(--link); outline-offset: -3px; }
.table--link tbody th a:focus-visible { outline: none; }
.earlier { margin: 22px 0 8px; }
.earlier summary { cursor: pointer; color: var(--link); font-weight: 600; list-style: none; width: fit-content; margin: 0 4px 12px; }
.earlier summary::-webkit-details-marker { display: none; }
.earlier summary::before { content: "▸ "; }
.earlier[open] summary::before { content: "▾ "; }
.holiday-cards { display: grid; gap: 12px; margin: 16px 0 8px; }
@media (min-width: 760px) { .holiday-cards { grid-template-columns: 1fr 1fr; } }
.card__word-line { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-top: 10px; }

/* ── About / prose ────────────────────────────────────────── */
.prose { padding-top: 36px; padding-bottom: 24px; }
.prose h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 10px; }
.prose h2 { margin-top: 32px; }
.prose > p { margin: 0 4px 12px; color: var(--text-2); }
.prose .lead { font-size: 19px; color: var(--text); margin-bottom: 20px; }
.person { display: flex; gap: 18px; align-items: center; padding: 16px; }
.person__photo { margin: 0; flex: none; width: 128px; }
.person__photo img { width: 128px; height: 170px; border-radius: 12px; object-fit: cover; }
.person__photo figcaption { font-size: 12px; color: var(--text-3); margin-top: 6px; text-align: center; }
@media (max-width: 480px) { .person { align-items: flex-start; } .person__photo, .person__photo img { width: 104px; } .person__photo img { height: 138px; } }
.person p { margin: 0; color: var(--text-2); }

/* ── Not found ── */
.not-found { text-align: left; }
.not-found__art { width: min(100%, 420px); height: auto; margin: 0 auto 18px; }
.not-found h1 { margin-top: 4px; }
.not-found .group { margin-top: 16px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { overflow-x: clip; margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); padding: 26px 0 36px; }
.footer__anissa { display: flex; gap: 14px; align-items: center; }
.footer__walk { flex: none; position: relative; display: block; -webkit-tap-highlight-color: transparent; }
.footer__walk picture img { width: 65px; height: 72px; display: block; transform-origin: 50% 100%; transition: transform 0.25s cubic-bezier(.34,1.56,.64,1); }
.footer__anissa:hover .footer__walk picture img { transform: rotate(-4deg) translateY(-2px); }
/* "Walks for Lucy": an underline that sweeps in on hover, and a happy little send-off when tapped (app.js) */
.footer__wfl { --wfl-1: #d2372e; --wfl-2: #e8780c; --wfl-3: #d6337a;
  position: relative; display: inline-block; font-weight: 600; -webkit-tap-highlight-color: transparent; text-decoration: none !important; transition: color 0.25s ease-out; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer__wfl { --wfl-1: #ff7469; --wfl-2: #ffa94d; --wfl-3: #ff7eb6; } }
:root[data-theme="dark"] .footer__wfl { --wfl-1: #ff7469; --wfl-2: #ffa94d; --wfl-3: #ff7eb6; }
.footer__wfl:hover, .footer__wfl:focus-visible { color: var(--wfl-1); }
.footer__wfl.is-going { color: var(--wfl-1); animation: wfl-pop 0.45s cubic-bezier(.34,1.56,.64,1), wfl-colors 0.5s linear; }
@keyframes wfl-colors { 0% { color: var(--link); } 25% { color: var(--wfl-1); } 50% { color: var(--wfl-2); } 75% { color: var(--wfl-3); } 100% { color: var(--wfl-1); } }
/* Lucy jumps on her own: a copy of the drawing cut down to just her, while Anissa's copy has a Lucy-shaped hole */
.footer__lucy { position: absolute; inset: 0; width: 65px; height: 72px; visibility: hidden; pointer-events: none;
  clip-path: polygon(48.3% 100%, 48.3% 69.8%, 59.8% 67.7%, 66.7% 52.1%, 100% 50%, 100% 100%); transform-origin: 74% 98%; }
.footer__walk.is-going picture img { clip-path: polygon(0 0, 100% 0, 100% 50%, 66.7% 52.1%, 59.8% 67.7%, 48.3% 69.8%, 48.3% 100%, 0 100%); transform: none; }
.footer__walk.is-going .footer__lucy { visibility: visible; animation: lucy-jump 1s ease-in-out; }
@keyframes lucy-jump {
  0%   { transform: none; }
  8%   { transform: scale(1.2, 0.72); }
  24%  { transform: translateY(-44px) scale(0.88, 1.18) rotate(-8deg); }
  38%  { transform: translateY(0) scale(1.22, 0.7); }
  46%  { transform: scale(1.25, 0.66); }
  66%  { transform: translateY(-80px) scale(0.85, 1.22) rotate(-24deg); }
  84%  { transform: translateY(0) scale(1.24, 0.7); }
  92%  { transform: translateY(-6px) scale(0.96, 1.05); }
  100% { transform: none; }
}
@keyframes wfl-pop { 0% { transform: scale(1); } 30% { transform: scale(0.9); } 65% { transform: scale(1.12) rotate(-2deg); } 100% { transform: scale(1); } }
.wfl-burst { position: absolute; left: 50%; top: 40%; width: 16px; height: 16px; margin: -8px 0 0 -8px; pointer-events: none; z-index: 2; color: #d2372e; }
.wfl-burst svg { width: 100%; height: 100%; display: block; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .footer__walk img, .footer__wfl { transition: none; } .footer__anissa:hover .footer__walk picture img { transform: none; } .footer__wfl.is-going, .footer__walk.is-going .footer__lucy { animation: none; } }
.footer__anissa p { margin: 0; font-size: 15px; color: var(--text-2); }

@media print { .header nav, .finder, .save, .footer, .tip, .mybar, .cta { display: none; } .panel { color: #000; background: none; border: 2px solid #000; } }

/* ── Redesign: one answer, as little in the way as possible ─── */

/* Snow-day strip (saved schools only): the counties only show up top when one of them has news */
.has-schools .today-strip[data-when-saved] { display: flex; }
.today-strip { align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.today-strip__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-right: 2px; }
.chip { --tone: var(--off); display: inline-flex; gap: 6px; align-items: center; background: var(--tone); color: #fff; border-radius: 99px; padding: 6px 12px; font-size: 14px; }
.chip:hover { text-decoration: none; filter: brightness(1.06); }
.chip--open { --tone: var(--open); } .chip--delay { --tone: var(--delay); } .chip--closed { --tone: var(--closed); }

/* First visit */
.intro__sub { max-width: 34rem; }
.near { margin-top: 22px; }
.near__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 10px; flex-wrap: wrap; }
.near__title { font-size: 17px; margin: 0; }
.near__locate { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; padding: 4px 0; }
.near__locate svg { width: 17px; height: 17px; }
.near__list { display: grid; }
.near__list li { border-bottom: 1px solid var(--line); }
.near__list li:last-child { border-bottom: 0; }
.near__row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 0; background: none;
  color: var(--text); font: 500 17px/1.3 var(--font); text-align: left; cursor: pointer; }
.near__row:hover { background: var(--hover); }
.near__name { display: grid; }
.near__name small { font-size: 14px; color: var(--text-3); font-weight: 400; }
.near__mi { font-size: 14px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.intro__counties { font-size: 15px; color: var(--text-3); margin: 18px 4px 0; }

/* Returning: the answer first */
.mine { padding: 16px 0 8px; }
.mine__cards.is-single { display: block; }
.card-wrap--panel .panel { margin-top: 0; }
.panel__title a { color: inherit; text-decoration: none; }
.panel__title a:hover { text-decoration: underline; }
.more-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 12px; color: var(--text); font-weight: 500; }
.more-link:hover { background: var(--hover); text-decoration: none; }
.more-link svg { width: 16px; height: 16px; color: var(--text-3); }
.mine__summary { margin: 0 4px 2px; font-size: 16px; color: var(--text-2); }
.mine__summary b { color: var(--text); }
.mine__tools { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 14px 4px 0; }
.mine__tools .mine__add { margin: 0; flex: 1; }
.mine__tools .btn-text { padding-top: 0; }
.nick { display: inline-block; background: rgba(255, 255, 255, 0.92); color: var(--tone, var(--navy)); font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  border-radius: 6px; padding: 2px 7px; margin-right: 8px; vertical-align: 2px; }
.card-tools { display: flex; gap: 8px; margin-top: 8px; }
.card-tools button { flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 9px; font: 600 14px var(--font); cursor: pointer; }
.card-tools [data-remove] { color: var(--closed); }
.panel--loading { min-height: 220px; }
/* Several schools: tighter cards, so two or three fit on a phone screen */
.mine__cards:not(.is-single) .card { padding: 14px 16px 10px; }
.mine__cards:not(.is-single) .card .status { margin-top: 10px; gap: 12px; }
.mine__cards:not(.is-single) .card__illus { width: 44px; height: 44px; border-radius: 12px; padding: 3px; }
.mine__cards:not(.is-single) .card__illus .illus { width: 38px; height: 38px; }
.mine__cards:not(.is-single) .card .status__word { font-size: 30px; }
.mine__cards:not(.is-single) .card__sub { margin-top: 6px; font-size: 15px; }
.mine__cards:not(.is-single) .card .week { margin-top: 10px; padding-top: 8px; }
.mine__cards:not(.is-single) .card .wd { padding: 4px 2px; }
.mine__cards:not(.is-single) .card .wd__icon { width: 22px; height: 22px; margin: 3px 0 2px; }
.mine__cards:not(.is-single) .card .wd__icon svg { width: 13px; height: 13px; }
.mine__cards:not(.is-single) .card .wd__name { font-size: 13px; }
.skeleton { height: 16px; width: 40%; border-radius: 8px; background: rgba(255, 255, 255, 0.18); }
.skeleton--big { height: 48px; width: 55%; margin-top: 60px; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.2s ease-in-out infinite alternate; } }
@keyframes shimmer { from { opacity: .5; } to { opacity: 1; } }

/* School page: "Make it my school" */
.mybar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--navy); color: #fff;
  box-shadow: 0 12px 32px rgba(12, 35, 64, 0.35); transform: translateY(140%); transition: transform .3s cubic-bezier(.2,.8,.3,1); }
.mybar.is-in { transform: none; }
body:has(.mybar.is-in) .footer { padding-bottom: 110px; }
@media (prefers-reduced-motion: reduce) { .mybar { transition: none; } }
.mybar__text { flex: 1; font-size: 15px; font-weight: 500; line-height: 1.3; }
.mybar__btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; background: var(--bus); color: var(--navy);
  padding: 10px 15px; font: 700 15px/1 var(--font); cursor: pointer; white-space: nowrap; }
.mybar__btn svg { width: 16px; height: 16px; fill: currentColor; }
.mybar__close { border: 0; background: none; color: rgba(255, 255, 255, 0.7); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.mybar__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.mybar__close svg { width: 16px; height: 16px; }
.mybar.is-done .mybar__btn svg { display: none; }

/* Lunch as one line */
.lunch__one summary { cursor: pointer; list-style: none; }
.lunch__one summary::-webkit-details-marker { display: none; }
.lunch__one summary:hover { background: var(--hover); }
.lunch__one[open] summary { border-bottom: 1px solid var(--line); }
.lunch__one[open] summary .food { display: none; }
.lunch__one[open] summary::before { content: "The full menu"; font-weight: 600; }
.lunch__more { font-size: 14px; color: var(--link); font-weight: 600; white-space: nowrap; }
.lunch__one[open] .lunch__more { font-size: 0; } .lunch__one[open] .lunch__more::after { content: "Close"; font-size: 14px; }
.lunch__later { border-top: 1px solid var(--line); }
.lunch__later > b { display: block; padding: 12px 16px 0; font-size: 14px; color: var(--text-3); }
.lunch__day { font-weight: 600; color: var(--text) !important; }
.subscribe__text b { font-weight: 600; }

/* Find your school (end of reference pages) */
.cta { margin-top: 36px; background: var(--navy); color: #fff; border-radius: 20px; padding: 22px 20px; }
.cta h2 { margin: 0 0 4px; font-size: 22px; }
.cta p { margin: 0 0 14px; opacity: 0.85; max-width: 36rem; }
.cta .finder__input { border-color: transparent; }

/* Footer */
.footer { padding: 28px 0 40px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 24px; margin: 24px 0 18px; }
.footer__cols h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin: 0 0 6px; }
.footer__cols nav { display: grid; gap: 2px; align-content: start; }
.footer__cols a { color: var(--text-2); font-size: 15px; padding: 3px 0; }
.footer__group { margin: 0; padding: 3px 0; font-size: 15px; color: var(--text-3); line-height: 1.7; }
.footer__group a { padding: 3px 0; white-space: nowrap; }
@media (min-width: 601px) { .footer__cols nav[aria-label="Guides"] { grid-column: span 2; } }
/* phones: the short lists side by side, "Good to know" across the width */
@media (max-width: 600px) {
  .footer__cols { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 18px 16px; }
  .footer__cols nav[aria-label="Counties"] { grid-row: span 2; }   /* "This site" and "Also on" stacked beside it */
  .footer__cols nav[aria-label="Guides"] { grid-column: 1 / -1; }
}
.footer__fine { margin: 0; font-size: 13px; color: var(--text-3); max-width: 46rem; }
.diet { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; border-radius: 5px; padding: 1px 5px; margin-left: 4px; vertical-align: 1px; }
.diet--vegetarian, .diet--vegan { background: #e2f2e6; color: #1d6b38; }
.diet--halal { background: #e6eefc; color: #2552a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .diet--vegetarian, :root:not([data-theme="light"]) .diet--vegan { background: #183a24; color: #8fd6a4; } :root:not([data-theme="light"]) .diet--halal { background: #1c2b4a; color: #9dbcff; } }
:root[data-theme="dark"] .diet--vegetarian, :root[data-theme="dark"] .diet--vegan { background: #183a24; color: #8fd6a4; } :root[data-theme="dark"] .diet--halal { background: #1c2b4a; color: #9dbcff; }
.meal { margin-bottom: 10px; }
.meal__label { font-size: 13px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3) !important; }
.meal__dish { color: var(--text) !important; font-size: 17px !important; }
.meal__or { color: var(--text-3); }
.meal__daily { font-size: 14px !important; color: var(--text-3) !important; }
.lunch__labeled { display: grid; gap: 2px; }
.lunch__one[open] .lunch__labeled { display: none; }
.lunch__labeled .food i { display: none; }
/* Menu pages */
.menu-jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.menu-days { list-style: none; }
.menu-day { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.menu-day:last-child { border-bottom: 0; }
.menu-day.is-today { background: var(--bus-soft); }
.menu-day.is-past { opacity: 0.6; }
.menu-day__date { font-size: 15px; color: var(--text-2); }
.menu-day__date b { color: var(--text); }
.menu-day__food { display: grid; gap: 3px; }
.menu-day__mains { font-weight: 500; }
.menu-day__sides { font-size: 14px; color: var(--text-3); }
@media (max-width: 460px) { .menu-day { grid-template-columns: 1fr; gap: 4px; } }
.nearby { list-style: none; }
.nearby li { border-bottom: 1px solid var(--line); }
.nearby li:last-child { border-bottom: 0; }
.nearby .row { border-bottom: 0; }
.nearby .value { white-space: nowrap; }
.footer__fix { margin: 0 0 10px; font-size: 15px; color: var(--text-2); }

/* First visit to the home page: the big search box is right there, so the header's search would only repeat it */
html:not(.has-schools) .header[data-home] .hsearch { display: none; }

/* ── School badges and picking a school ───────────────────── */
.badge { --b: var(--badge-es); --ink: var(--badge-es-ink); flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: var(--b); color: var(--ink); font: 800 15px/1 var(--font); letter-spacing: -0.02em;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); transition: background .2s, color .2s, transform .2s; }
.badge--k8 { --b: var(--badge-k8); --ink: var(--badge-k8-ink); }
.badge--ms { --b: var(--badge-ms); --ink: var(--badge-ms-ink); }
.badge--hs { --b: var(--badge-hs); --ink: var(--badge-hs-ink); }
.badge--district { --b: var(--bus-soft); --ink: var(--navy); font-size: 13px; letter-spacing: 0; }
.near__go { flex: none; color: var(--text-3); display: grid; }
.near__go svg { width: 18px; height: 18px; }
.badge svg { width: 20px; height: 20px; }
/* On a status panel: bigger, with a white ring so it holds up on green, amber or red */
.badge--panel { width: 52px; height: 52px; border-radius: 15px; font-size: 19px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), inset 0 -3px 0 rgba(0, 0, 0, 0.12); }
.badge--card { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.card__id { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.card__top { align-items: center; }

/* Search results: badge, then name over level · town · county */
.finder__list li { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 8px 10px; }
.finder__list li.empty { display: block; }
.finder__list .t { display: grid; gap: 1px; min-width: 0; }
.finder__list .badge { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
.finder__list li.is-picked, .finder__list li.is-picked[aria-selected] { background: var(--bus-soft); }

/* Nearby, on the home page: each row is a clear thing to tap */
.near__row { justify-content: flex-start; gap: 14px; padding: 12px 14px; transition: background .15s; }
.near__row .near__name { flex: 1; min-width: 0; }
.near__pick { flex: none; border-radius: 99px; padding: 7px 14px; background: var(--bus-soft); color: var(--navy); font: 700 14px/1 var(--font); transition: background .15s, color .15s; }
.near__row:hover .near__pick { background: var(--bus); }
.near__row.is-picked { background: var(--bus-soft); }
.near__row.is-picked .near__pick { background: var(--open); color: #fff; }
.is-picked .badge { --b: var(--open); --ink: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .near__pick { color: var(--bus); } :root:not([data-theme="light"]) .near__row:hover .near__pick { color: var(--navy); } }
:root[data-theme="dark"] .near__pick { color: var(--bus); } :root[data-theme="dark"] .near__row:hover .near__pick { color: var(--navy); }
/* Nearby schools on a school page and town pages */
.near__link { justify-content: flex-start; gap: 14px; }
.near__link .near__name { flex: 1; min-width: 0; }
.near__link .badge { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }

/* The school that was just picked arrives with a little bounce, and a note says what happened */
@keyframes arrive { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.12) rotate(3deg); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .is-picked .badge { animation: pop .38s ease-out; }
  .card-wrap.is-new { animation: arrive .5s cubic-bezier(.2,.8,.3,1.1) both; }
  .card-wrap.is-new .badge--panel, .card-wrap.is-new .badge--card { animation: stamp .55s .25s cubic-bezier(.2,.8,.3,1.2) both; }
  .card-wrap.is-new .panel__mine svg { animation: pop .45s .5s ease-out both; }
}
.toast { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(14px, env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 500; line-height: 1.3; box-shadow: 0 12px 32px rgba(12, 35, 64, 0.35);
  transform: translateY(140%); transition: transform .3s cubic-bezier(.2,.8,.3,1); }
.toast.is-in { transform: none; }
.toast svg { width: 20px; height: 20px; flex: none; fill: var(--bus); }
.toast > span { flex: 1; }
.toast__undo { flex: none; border: 0; border-radius: 99px; padding: 8px 14px; background: rgba(255, 255, 255, 0.14); color: var(--bus);
  font: 700 14px/1 var(--font); cursor: pointer; }
.toast__undo:hover { background: rgba(255, 255, 255, 0.24); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
/* With a scene on top, the Save / My school pill sits in the picture's corner so the school's name gets the full width */
.panel--art { position: relative; }
.panel--art .panel__top > .save, .panel--art .panel__top > .panel__mine { position: absolute; top: 12px; right: 12px; z-index: 3; }
.panel--art .panel__top > .save { background: rgba(12, 35, 64, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel--art .panel__top > .save:hover { background: rgba(12, 35, 64, 0.78); }
.panel--art .panel__top > .panel__mine { box-shadow: 0 2px 8px rgba(12, 35, 64, 0.25); }
@media (min-width: 860px) { .panel--art .panel__top > .save, .panel--art .panel__top > .panel__mine { top: 16px; right: 16px; } }

/* Wider screens: the header's empty middle becomes the search box itself, so clicking there searches */
@media (min-width: 641px) {
  .header__bar .nav { flex: 1; justify-content: flex-end; }
  .hsearch { flex: 1; max-width: 440px; }
  .hsearch > .nav__btn { width: 100%; justify-content: flex-start; gap: 10px; padding: 0 16px; background: var(--bg); border: 1px solid var(--line);
    color: var(--text-3); font-weight: 400; }
  .hsearch > .nav__btn:hover { background: var(--hover); border-color: color-mix(in srgb, var(--link) 40%, var(--line)); }
  .hsearch > .nav__btn .nav__label { font-size: 0; }
  .hsearch > .nav__btn .nav__label::after { content: "Search any school"; font-size: 15px; }
  /* open: the real search field takes the box's place, results drop down under it */
  .hsearch { position: relative; }
  .hsearch__panel { top: 0; left: 0; right: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .hsearch__panel .finder__input { height: 38px; border-radius: 99px; font-size: 15px; padding-left: 42px; }
  .hsearch__panel .finder__icon { left: 16px; }
  .hsearch__panel .finder__icon svg { width: 19px; height: 19px; }
  .hsearch__panel .finder__list { min-width: 100%; }
}

/* Lunch on the home page: one quiet line under the answer, linking to the full menu */
.lunch-peek { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 10px 16px 10px 12px;
  margin-top: 12px; color: var(--text); }
.lunch-peek:hover { background: var(--hover); text-decoration: none; }
.lunch-peek .illus { width: 40px; height: 40px; flex: none; }
.lunch-peek__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lunch-peek__label { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.lunch-peek__dish { font-weight: 600; line-height: 1.3; }
.lunch-peek__dish .skeleton { background: var(--line); width: 60%; margin-top: 3px; }
.lunch-peek > svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.lunch-peek + .more-link { margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) { .lunch-peek.is-filled .lunch-peek__dish { animation: rise .3s ease-out; } }
/* On the compact cards (several schools) */
.card__lunch { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; margin-top: 8px; font-size: 14px; opacity: 0.95; }
.card__lunch .illus { width: 22px; height: 22px; flex: none; background: rgba(255, 255, 255, 0.92); border-radius: 6px; padding: 1px; }
.card__lunch > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__lunch b { font-weight: 600; }
.mine__cards > * { min-width: 0; }

/* Owner page (/owner) */
.owner { padding: 24px 0 40px; }
.owner h1 { margin: 0 0 6px; }
.owner__code { margin-top: 20px; display: grid; gap: 8px; }
.owner__row { display: flex; gap: 8px; }
.owner__msg { margin: 0; color: var(--closed); }
.owner__tools { display: grid; gap: 10px; margin: 20px 0 12px; }
.owner__count { margin: 0; font-weight: 600; }
.owner__filter { font-size: 15px; color: var(--text-2); }
.owner__schools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.owner__school { position: relative; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.owner__head { display: grid; }
.owner__head .muted { font-size: 14px; }
.owner__links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.owner__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.owner__fields label { display: grid; gap: 3px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.owner__fields input { font: 16px var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; min-width: 0; }
.owner__fields input:focus { outline: none; border-color: var(--link); }
.owner__note { grid-column: 1 / -1; }
.owner__saved { position: absolute; top: 14px; right: 16px; font-size: 13px; color: var(--open); font-weight: 600; }
@media (max-width: 460px) { .owner__fields { grid-template-columns: 1fr; } }
/* Events at school (school page) */
.events__dayrow { gap: 4px; }
.events__day { font-weight: 700; font-size: 15px; }
.events__item { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.events__time { flex: 0 0 auto; min-width: 64px; color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.events__sports { font-size: 15px; }
.events__sports summary { cursor: pointer; color: var(--link); }
.events__sports .events__item { margin-top: 4px; }
.owner__h2 { margin: 32px 0 0; }
.owner__details { margin-top: 32px; }
.owner__details > summary { cursor: pointer; font-size: 1.15rem; font-weight: 700; }
.owner__details[open] > summary { margin-bottom: 12px; }
/* Owner: what needs doing (both sites) */
.todo { margin-top: 20px; }
.todo h2 { margin: 0 0 4px; }
.todo__sum { margin: 0; font-weight: 600; }
.todo__bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 12px 0 4px; }
.todo__note { margin: 4px 0 0; font-size: 14px; }
.todo__link { font: 600 15px var(--font); color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.todo__note.is-good { color: var(--open); font-weight: 600; }
.todo__note.is-bad { color: var(--closed); font-weight: 600; }
.todo__site { margin-top: 22px; }
.todo__site h3 { margin: 0 0 8px; font-size: 18px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.todo__site h3 .muted { font-size: 14px; font-weight: 400; }
.todo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo__item { background: var(--surface); border-radius: var(--radius); padding: 12px 14px 12px 16px; border-left: 5px solid var(--open); display: grid; gap: 4px; }
.todo__item[data-s="late"] { border-left-color: var(--closed); }
.todo__item[data-s="due"] { border-left-color: var(--delay); }
.todo__item[data-s="soon"] { border-left-color: var(--link); }
.todo__item[data-s="unset"] { border-left-color: var(--line); }
.todo__head { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.todo__tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.todo__item[data-s="late"] .todo__tag { color: var(--closed); }
.todo__item[data-s="due"] .todo__tag { color: var(--delay); }
.todo__detail { font-size: 14px; color: var(--text-2); }
.todo__more { font-size: 14px; }
.todo__more summary { cursor: pointer; color: var(--link); }
.todo__more p { margin: 6px 0; overflow-wrap: anywhere; }
.todo__acts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.todo__acts button { font: 600 14px var(--font); color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.todo__err { color: var(--closed); font-size: 14px; margin: 0; }

/* A school's drawn badge (an image): same size and spots as the initials tile */
img.badge--img { display: block; object-fit: cover; background: none; box-shadow: none; border-radius: 22%; }
img.badge--img.badge--panel { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92); }
img.badge--img.badge--card { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.is-picked img.badge--img { animation: pop .38s ease-out; }

/* Nearby (first visit): the row opens the school; Save is a separate button, so nothing is added by accident */
.near__item { display: flex; align-items: center; gap: 4px; padding-right: 12px; transition: background .15s; }
.near__item .near__row { flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.near__item .near__row:hover { background: none; text-decoration: none; }
.near__item:hover { background: var(--hover); }
button.near__pick { border: 0; cursor: pointer; min-height: 36px; }
button.near__pick:hover { background: var(--bus); color: var(--navy); }
.near__item.is-picked { background: var(--bus-soft); }
.near__item.is-picked .near__pick { background: var(--open); color: #fff; }

/* Click feedback now that tapping a school opens it: a press before the page changes, and a check when it's saved */
@keyframes press { 0% { transform: scale(1); } 45% { transform: scale(.94); } 100% { transform: scale(1.06); } }
.badge--check { --b: var(--open); --ink: #fff; }
.badge--check svg { width: 55%; height: 55%; }
.is-hidden-for-check { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .near__item.is-pressed, .finder__list li.is-pressed { background: var(--bus-soft); }
  .near__item.is-pressed .badge, .finder__list li.is-pressed .badge { animation: press .2s ease-out both; }
  .badge--celebrate { animation: stamp .55s cubic-bezier(.2,.8,.3,1.2) both; }
  .badge--back { animation: pop .45s ease-out; }
}
.panel .badge--check { --b: #ffffff; --ink: var(--tone); }

/* Mist drifting across foggy mornings (scene-fx.js) */
.fx-mist { position: absolute; left: -40%; width: 180%; height: 38%; pointer-events: none; z-index: 1; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 70%); filter: blur(6px); }
.fx-mist--1 { top: 38%; animation: mist 46s ease-in-out infinite alternate; opacity: .5; }
.fx-mist--2 { top: 55%; animation: mist 62s ease-in-out infinite alternate-reverse; opacity: .35; }
/* the mist rolls: it drifts across, but swells, lifts and settles on the way rather than sliding along a line */
@keyframes mist { 0% { transform: translate(-12%, 0) scaleY(1); } 30% { transform: translate(-4%, -6%) scaleY(1.08); }
  65% { transform: translate(5%, 4%) scaleY(.94); } 100% { transform: translate(12%, -2%) scaleY(1.03); } }
@media (prefers-reduced-motion: reduce) { .fx-mist { display: none; } }

/* Snow-day emails: under the alerts row's button */
.email-alerts { flex: 1 1 100%; margin: -4px 0 0 58px; }
.email-alerts[hidden], .email-alerts__form[hidden] { display: none; }
.email-alerts__line { margin: 0; font-size: 14px; color: var(--text-2); }
.link-btn { font: 600 14px var(--font); color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn[hidden] { display: none; }
.email-alerts__form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.email-alerts__input { flex: 1 1 200px; min-width: 0; font: 16px var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; }
.email-alerts__input:focus { outline: 2px solid var(--link); outline-offset: 1px; }
.email-alerts__note { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--text-2); }
.email-alerts__lunch { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.email-alerts__lunch input { width: 18px; height: 18px; margin: 0; accent-color: var(--link); }
.pill--solid { background: var(--bus); border-color: var(--bus); color: var(--navy); cursor: pointer; font-family: var(--font); }
.pill--solid:hover { background: #f2b600; }
.pill--solid:disabled { opacity: .6; cursor: default; }
.pill--big { padding: 12px 22px; font-size: 17px; }
@media (max-width: 520px) { .email-alerts { margin-left: 0; } }
.email-page form { margin: 18px 0; }
.email-page button.pill { cursor: pointer; font-family: var(--font); background: var(--bus); border-color: var(--bus); color: var(--navy); }

.todo__email { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 14px; }
.todo__email .finder__input { flex: 1 1 220px; min-width: 0; padding-left: 14px; }
.todo__select { font: 15px var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.todo__email .todo__note { flex: 1 1 100%; margin: 0; }
/* /owner: post a closing or delay by hand */
.handpost__words { flex: 1 1 100%; min-height: 54px; resize: vertical; padding: 10px 14px; font: 15px var(--font); }
.handpost__list { list-style: none; margin: 4px 0 18px; padding: 0; }
.handpost__list li { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }

/* Denver: a pale Colorado sky at the top of every page, and above the footer downtown in front of the mountains: one
   drawing (scripts/build-skyline.py -> src/skyline.js) in two palettes, day and, in dark mode, night with lit
   windows. Behind nothing: content stays as is. */
:root[data-region="denver"] {
  --sky-top: #e4eef9;
  --sk-far: #7392b2; --sk-rim: #9db2cb; --sk-snow: #dbe5ef; --sk-mid: #6582a2; --sk-near: #4f6b8a;
  --sk-light: #a9b8ca; --sk-trim: #c3cfdc; --sk-midb: #6c829c; --sk-dark: #3d5068; --sk-face: #8fa3ba;
  --sk-band: #c0cddb; --sk-cream: #ece2cd; --sk-win: transparent; --sk-gold: #e6b752; --sk-goldd: #c99433;
  --sk-trees: #3b4f4c; --sk-ground: #33465c;
}
[data-region="denver"] body { background: linear-gradient(to bottom, var(--sky-top), var(--bg) 560px) no-repeat, var(--bg); }
.skyline { margin-top: 40px; height: clamp(140px, 24.8vw, 380px); overflow: hidden; pointer-events: none; }
.skyline svg { display: block; width: 100%; height: 100%; }
.sk-far { fill: var(--sk-far); } .sk-rim { fill: none; stroke: var(--sk-rim); stroke-width: 6; stroke-linejoin: round; }
.sk-snow { fill: var(--sk-snow); } .sk-mid { fill: var(--sk-mid); } .sk-near { fill: var(--sk-near); }
.sk-b-light { fill: var(--sk-light); } .sk-b-trim { fill: var(--sk-trim); } .sk-b-mid { fill: var(--sk-midb); }
.sk-b-dark { fill: var(--sk-dark); } .sk-b-face { fill: var(--sk-face); } .sk-b-band { fill: var(--sk-band); }
.sk-b-cream { fill: var(--sk-cream); } .sk-win { fill: var(--sk-win); } .sk-gold { fill: var(--sk-gold); }
.sk-gold-d { fill: var(--sk-goldd); } .sk-trees { fill: var(--sk-trees); } .sk-ground { fill: var(--sk-ground); }
.skyline + .footer { margin-top: 0; border-top: 0; }
@media (prefers-color-scheme: dark) {
  :root[data-region="denver"]:not([data-theme="light"]) {
    --sky-top: #141c27;
    --sk-far: #34445c; --sk-rim: #6d82a3; --sk-snow: #8fa3c1; --sk-mid: #2c3a50; --sk-near: #222e42;
    --sk-light: #3e4d63; --sk-trim: #55667e; --sk-midb: #2a3648; --sk-dark: #19222f; --sk-face: #1d2737;
    --sk-band: #e2b45a; --sk-cream: #f3cf78; --sk-win: #f3c969; --sk-gold: #e0a93a; --sk-goldd: #b98425;
    --sk-trees: #15211c; --sk-ground: #111822;
  }
}
:root[data-region="denver"][data-theme="dark"] {
  --sky-top: #141c27;
  --sk-far: #34445c; --sk-rim: #6d82a3; --sk-snow: #8fa3c1; --sk-mid: #2c3a50; --sk-near: #222e42;
  --sk-light: #3e4d63; --sk-trim: #55667e; --sk-midb: #2a3648; --sk-dark: #19222f; --sk-face: #1d2737;
  --sk-band: #e2b45a; --sk-cream: #f3cf78; --sk-win: #f3c969; --sk-gold: #e0a93a; --sk-goldd: #b98425;
  --sk-trees: #15211c; --sk-ground: #111822;
}
/* Twin Cities and Louisville: above the footer, the owner's day and night paintings shown as pictures
   (scripts/build-skyline-picture.py), the day one in light mode and the night one in dark mode. Cropped from the top (sky) and, on phones, the sides, like the drawings. */
/* as tall as the picture (2000 x 547), so the towers' tops aren't cut off; phones still crop the sides */
.skyline.skyline--img { height: clamp(140px, 27.35vw, 700px); }
.skyline--img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.skyline__night { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skyline__day { display: none !important; }
  :root:not([data-theme="light"]) .skyline__night { display: block !important; }
}
:root[data-theme="dark"] .skyline__day { display: none !important; }
:root[data-theme="dark"] .skyline__night { display: block !important; }
@media print { .skyline { display: none; } }

/* /sitemap: every page, for people */
.sitemap__list, .sitemap__schools ul { columns: 2 220px; column-gap: 24px; padding-left: 18px; margin: 8px 0 20px; }
.sitemap__list li, .sitemap__schools li { break-inside: avoid; margin: 0 0 6px; }
.sitemap__schools { margin: 8px 0 20px; }
.sitemap__schools summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

/* /towns: today's answer above the list of towns */
.towns-today { margin: 8px 0 20px; }
.towns-today__lead { font-size: 18px; margin: 0 0 10px; }
.towns-today__name { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.towns-today__art { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 16px; margin: 0 0 14px; }
.towns-today__thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; margin-right: -4px; }
.towns-today__sub { font-size: 13px; color: var(--text-3); }
.towns-today .chip { white-space: nowrap; }
/* Home page: the counties' answer between the title and the finder, no art, smaller type */
.towns-today--compact { margin: 16px 0 4px; }
.towns-today--compact .towns-today__lead { font-size: 16px; margin-bottom: 8px; }
.intro .towns-today--compact + .intro__sub { margin-top: 14px; }
.town__same { margin: 4px 0 20px; }

/* Two-hour delay page: today's answer and the school search come before the long tables */
.guide-find { margin: 20px 0 8px; }
.guide-jump { margin: 10px 0 0; font-size: 15px; }
.guide-section { scroll-margin-top: 80px; }

/* "Looking for Denver-area schools?": one line under the header for a visitor clearly in another region (app.js) */
.elsewhere { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1008px; margin: 10px auto 0; padding: 8px 8px 8px 14px; border-radius: var(--radius); background: var(--surface); color: var(--text); border: 1px solid var(--line); font-size: 15px; }
.elsewhere a { color: var(--link); }
.elsewhere a { font-weight: 600; white-space: nowrap; }
.elsewhere__close { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.elsewhere__close:hover { background: var(--hover); }
@media (max-width: 1040px) { .elsewhere { margin: 8px 16px 0; } }

/* Search with no match here: a school on another region's site, or one not listed yet (app.js findOutside) */
.finder__list li.outside { display: block; padding: 0; }
.finder__list .outside a { display: flex; gap: 12px; padding: 12px 14px; color: var(--text); text-decoration: none; }
.finder__list .outside a:hover { background: var(--hover); }
.finder__list .outside .c { color: var(--text-2); }
.finder__list .outside .n { font-weight: 600; }

/* Pages that list every school: the list narrows as you type (app.js schoolFilter) */
.guide tr[hidden], .dir__list li[hidden], .guide-section[hidden], .sections__wide[hidden], details.dir[hidden], [data-filter-hide][hidden] { display: none; }
.filter__none { margin: 10px 4px 0; color: var(--text-2); }
.guide-mine h2 { margin-top: 6px; }
