/* Fonts: Cabin and Mulish (SIL Open Font License), served from /fonts instead of Google Fonts. Basic and extended Latin. */
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/cabin-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/cabin-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/fonts/mulish-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/fonts/mulish-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Toy Hermit brand: white pages, a sunny yellow band, a sky-blue "watercolor" band, navy headings,
   warm orange buttons, Mulish headings and Cabin text, as on the original toyhermit.com.
   Each school keeps its own colour on the calendar and the class track. */
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #2c4258;
  --head: #1f3958;
  --muted: #5a6c75;
  --line: #e2e6ea;
  --soft: #f5f1e6;
  --accent: #e5692b;
  --accent-ink: #ffffff;
  --accent-soft: #fde9dc;
  --link: #b4501b;
  --sun: #fff9c7;
  --sky: #caecf9;
  --sky-2: #e4f6fd;
  --sky-3: #a9ddf3;
  --yellow: #f3b340;
  --pink: #f294a8;
  --good: #1d7f53;
  --good-soft: #e1f3ea;
  --warn: #8f5a06;
  --warn-soft: #fbf0d9;
  --bad: #b8332a;
  --bad-soft: #fbe5e2;
  --shadow: 0 2px 4px rgba(31, 57, 88, .06), 0 10px 24px rgba(31, 57, 88, .09);
  --display: "Mulish", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Cabin", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 8px;
}
/* Light only: the brand is a bright, sunny page, so a phone in dark mode still gets these colours
   (dark variants made the yellow band murky next to the white header). */
:root { color-scheme: light; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.65 var(--body); }
a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0; text-wrap: balance; color: var(--head); }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 720px; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.stack-lg { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font: 800 .76rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* header: stays white in both themes so the logo's navy lettering reads */
.top { background: #ffffff; border-bottom: 1px solid #e6e9ec; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; color-scheme: light; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: #ffffff; }
.top .wrap { display: flex; align-items: center; gap: 10px 22px; min-height: 76px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 2px 4px; flex-wrap: wrap; align-items: center; flex: 1; }
.nav a { text-decoration: none; color: #3b4f63; padding: 6px 9px; font: 500 .95rem var(--body); text-underline-offset: 5px; }
.nav a:hover { color: #1f3958; text-decoration: underline; }
.nav a.on { color: #1f3958; text-decoration: underline; }
.nav .acct { margin-left: auto; display: flex; gap: 2px 4px; flex-wrap: wrap; }
.nav a.cta { background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; }
.nav a.cta:hover { text-decoration: none; filter: brightness(1.06); }
@media (max-width: 560px) {
  /* Phones: logo on top, the menu on one line underneath (it scrolls sideways if an admin has extra links). */
  .top .wrap { min-height: 0; padding-block: 8px 2px; row-gap: 2px; }
  .brand { flex: 1 0 100%; }
  .brand img { height: 34px; }
  .nav { flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -8px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 8px; font-size: .95rem; white-space: nowrap; }
  .nav .acct { flex-wrap: nowrap; }
}

main { padding-block: 36px 64px; min-height: 60vh; }
main.flush { padding-block: 0 0; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 .95rem var(--body); padding: 10px 18px; border-radius: 4px; border: 1px solid var(--line); background: var(--card); color: var(--head); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.pill { border-radius: 999px; padding: 13px 24px; box-shadow: 0 6px 14px rgba(229, 105, 43, .32); }
.btn.outline { background: transparent; border: 1.5px solid var(--head); color: var(--head); }
.btn.big { width: 100%; padding: 13px 18px; font-size: 1rem; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.link { border: 0; background: none; color: var(--link); padding: 4px 6px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input, select, textarea { font: 1rem var(--body); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
[hidden] { display: none !important; }
/* on/off switch: a checkbox drawn as a sliding toggle */
.switch { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; padding: 0; margin: 0; border: 0; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.switch span { padding-top: 3px; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-weight: 700; padding: 0 6px; font-family: var(--display); }
.err { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.ok { background: var(--good-soft); color: var(--good); padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.note { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 8px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
.raised { box-shadow: var(--shadow); border-color: transparent; }

/* home: yellow hero band, then the blue watercolor band */
.band { padding-block: 44px; }
.band.sun { background: var(--sun); }
.band.sky {
  background:
    radial-gradient(60% 50% at 12% 20%, var(--sky-2) 0%, transparent 70%),
    radial-gradient(45% 60% at 85% 30%, var(--sky-3) 0%, transparent 70%),
    radial-gradient(50% 45% at 60% 90%, var(--sky-2) 0%, transparent 70%),
    radial-gradient(35% 40% at 30% 75%, var(--sky-3) 0%, transparent 75%),
    var(--sky);
}
.hero { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; max-width: 900px; margin: 0 auto; }
.hero img { width: 100%; max-width: 380px; height: auto; justify-self: center; }
.hero .copy { text-align: center; display: grid; gap: 16px; justify-items: center; }
.hero h1, .hero h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); }
.hero p { color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero img { max-width: 300px; } }
.center { text-align: center; }
.why { display: grid; gap: 14px; justify-items: center; text-align: center; }
.why > p { color: var(--muted); max-width: 70ch; }
.why-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 250px)); justify-content: center; margin-top: 18px; width: 100%; }
.why-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 22px 30px; display: grid; gap: 12px; justify-items: center; align-content: start; }
.why-card img { width: 64px; height: 64px; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* sign-up page */
.program { display: grid; gap: 22px 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.program img, .program .vid { width: 100%; height: auto; border-radius: 2px; }
.program .copy { display: grid; gap: 10px; color: var(--muted); }
@media (max-width: 760px) { .program { grid-template-columns: 1fr; } }
.logo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.logo-card { border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); text-decoration: none; color: inherit; display: grid; grid-template-rows: auto 1fr; transition: border-color .15s, box-shadow .15s; }
.logo-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.logo-card .pic { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.logo-card .pic img { width: 100%; height: 100%; object-fit: contain; }
.logo-card .body { padding: 12px 14px 14px; display: grid; gap: 4px; align-content: start; }
.logo-card h3 { font-size: .95rem; }
.logo-card .line { font-size: .88rem; color: var(--muted); }
.logo-card .line b { color: var(--head); font-family: var(--display); }
.mono { width: 100%; height: 100%; display: grid; place-items: center; background: var(--pc, var(--head)); color: #fff; font: 800 clamp(2.4rem, 7vw, 3.4rem) var(--display); letter-spacing: .02em; }
.mono span { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; opacity: .85; text-align: center; }

/* school page, laid out like the old product page */
.product { display: grid; gap: 24px 40px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.product .pic { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; aspect-ratio: 1; max-width: 460px; width: 100%; }
.product .pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product .info { display: grid; gap: 14px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
/* Pictures and videos never run wider than their column (a missing video swaps in a full-size picture). */
img, video { max-width: 100%; height: auto; }
.product .info .vid, .product .info > img { width: 100%; border-radius: 2px; }
.big-price { font: 800 1.6rem var(--display); color: var(--head); }
.big-price s { color: var(--muted); font-weight: 600; font-size: 1.1rem; margin-left: 8px; }
.specs { display: grid; gap: 4px; }
.specs p b { color: var(--head); }
.btn-col { display: grid; gap: 10px; max-width: 440px; }
.notice { font-size: .92rem; }
.notice b { color: var(--head); }

/* long-form pages (policies, careers, blog, contact) */
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { margin-top: 18px; font-size: 1.35rem; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose table { width: auto; min-width: 280px; }
.prose .table-wrap { overflow-x: auto; max-width: 100%; }
.prose .table-wrap table { border: 1px solid var(--line); border-radius: 6px; }
.prose .lede { font: 700 1.05rem var(--display); color: var(--muted); }
.prose .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.prose .facts > div { background: var(--soft); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; }
.prose .facts span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prose .facts strong { color: var(--head); font-family: var(--display); }
.prose .callout { background: var(--sun); border-radius: 8px; padding: 18px 20px; display: grid; gap: 10px; }
.prose img { max-width: 100%; height: auto; border-radius: 4px; }
.blog-grid { display: grid; gap: 30px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.post-card { display: grid; gap: 8px; text-decoration: none; color: inherit; align-content: start; }
.post-card .thumb { aspect-ratio: 364 / 118; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card h2 { font-size: 1.15rem; }
.post-card:hover h2 { text-decoration: underline; }
.post-date { font: 800 .7rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--head); }
.post-card p { color: var(--muted); font-size: .93rem; }
.draft-note { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 12px 14px; font-size: .92rem; }

/* school cards */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.school { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; }
.school::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc, var(--accent)); flex: none; display: inline-block; }
.piece { width: 26px; height: 26px; border-radius: 50% 50% 6px 6px; background: var(--pc, var(--accent)); flex: none; }
.price { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.price small { font: 400 .9rem var(--body); color: var(--muted); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* the class track: one square per class, like a score track on a board */
.track { display: flex; flex-wrap: wrap; gap: 4px; }
.track i { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--pc, var(--accent)); background: transparent; }
.track i.done { background: var(--pc, var(--accent)); opacity: .35; border-color: transparent; }
.track i.next { background: var(--pc, var(--accent)); }
.track i.x { border-color: var(--line); background: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 5px); }
.track-label { font-size: .85rem; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.values > div { display: grid; gap: 6px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps > div { counter-increment: s; display: grid; gap: 6px; }
.steps > div::before { content: counter(s); font: 700 1rem var(--display); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }

/* signup */
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.student-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; align-items: end; }
.student + .student { border-top: 1px dashed var(--line); padding-top: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line); }
.total b { font: 700 1.5rem var(--display); }

/* calendar */
.cal-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 600 .85rem var(--body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); gap: 1px; }
.month .dow { background: var(--soft); padding: 6px 8px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.month .day { background: var(--card); min-height: 104px; padding: 6px; display: grid; align-content: start; gap: 3px; min-width: 0; }
.month .day.out { background: var(--paper); }
.month .day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.month .d { font-size: .8rem; color: var(--muted); font-weight: 700; }
.ev { display: block; width: 100%; text-align: left; border: 0; border-left: 4px solid var(--pc); background: var(--soft); color: var(--ink); border-radius: 4px; padding: 2px 5px; font: 600 .74rem/1.3 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
button.ev { cursor: pointer; }
.ev.x { text-decoration: line-through; opacity: .6; }
.agenda { display: none; }
@media (max-width: 700px) { .month { display: none; } .agenda { display: grid; gap: 14px; } }
.agenda h4 { font-size: .95rem; margin-bottom: 6px; }
.agenda .ev { white-space: normal; font-size: .9rem; padding: 6px 8px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* admin */
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.admin-tabs a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.admin-tabs a.on { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; }
.tile b { font: 700 1.7rem var(--display); font-variant-numeric: tabular-nums; }
.tile.alert { border-color: var(--warn); }
.sub { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 16px; display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 4px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* overlay dialog (used instead of browser confirm boxes) */
.overlay { position: fixed; inset: 0; background: rgba(10, 12, 30, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.dialog { background: var(--card); border-radius: 12px; padding: 22px; width: min(560px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }

.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.loading { color: var(--muted); padding: 40px 0; }

@media (prefers-reduced-motion: no-preference) {
  .school, .panel, .tile { transition: border-color .15s, box-shadow .15s; }
}

/* Days off on the calendar, roster tables and the sign-in sheet */
.off { display: block; border: 1px dashed var(--line); color: var(--muted); border-radius: 4px; padding: 2px 5px; font: 600 .72rem/1.3 var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda .off { white-space: normal; font-size: .9rem; padding: 6px 8px; }
th.r, td.r { text-align: right; font-variant-numeric: tabular-nums; }
th.c, td.c { text-align: center; }
tr.past td { color: var(--muted); }
.sheet td.c { font-size: 1.2rem; line-height: 1; }
.attn:hover { border-color: var(--accent); }
td select, td input { min-width: 8rem; }
.admin-tabs a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
a.chip { text-decoration: none; }
a.sub { text-decoration: none; color: inherit; padding: 10px 12px; }
a.sub:hover { border-color: var(--accent); }
.dialog { width: min(680px, 100%); }
.site-foot { border-top: 1px solid var(--line); background: var(--paper); }
.foot-grid { display: grid; gap: 28px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 44px 28px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h2 { font-size: 1.05rem; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot ul a { color: var(--muted); text-decoration: none; }
.site-foot ul a:hover { text-decoration: underline; color: var(--head); }
.news { display: flex; gap: 0; max-width: 420px; }
.news input { border-radius: 4px 0 0 4px; border-right: 0; }
.news button { border-radius: 0 4px 4px 0; }
.social { display: flex; gap: 14px; margin-top: 18px; }
.social a { color: var(--head); display: inline-flex; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.copy-line { border-top: 1px solid var(--line); padding-block: 18px; font-size: .82rem; color: var(--muted); text-align: center; }
.nw { white-space: nowrap; }
#schools-list { scroll-margin-top: 90px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Videos from the old site */
.vid { margin: 0; position: relative; min-width: 0; }
.vid video, .vid img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 2px; background: var(--sky, #caecf9); }
.prose .vid { margin-block: 18px; }
/* Blog videos: square and tall ones, kept within one screen at the same height, centered */
.prose .vid video { width: auto; max-width: 100%; max-height: min(60vh, 520px); margin-inline: auto; background: transparent; }
