:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1c1f1d;
  --muted: #5d6560;
  --line: #e3e1da;
  --accent: #1f4d3a;
  --accent-text: #ffffff;
  --accent-soft: #e5efe9;
  --ok: #2f7a4f;
  --warn: #9a6a12;
  --warn-soft: #fbf1dc;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
  --bad: #b3261e;
  --bad-soft: #fbe4e2;
  --track: #eeece6;
  --pl-blackboard: #2d3b8f;
  --pl-canvas: #d64532;
  --pl-d2l: #1b8a9c;
  --pl-moodle: #e8892b;
  --pl-schoology: #7b4bb8;
  --t1: #d6e6dc; --t2: #a9cdb8; --t3: #74ad8d; --t4: #3f8562; --t5: #1f4d3a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513;
    --surface: #1a1e1b;
    --text: #e8ebe8;
    --muted: #9aa39d;
    --line: #2b312d;
    --accent: #7cc4a0;
    --accent-text: #0e1a14;
    --accent-soft: #1f2e26;
    --ok: #7cc4a0;
    --warn: #e0b45c;
    --warn-soft: #2e2716;
    --shadow: none;
    --bad: #f2867c;
    --bad-soft: #3a1d1b;
    --track: #232925;
    --pl-blackboard: #8c9cf0;
    --pl-canvas: #f2836f;
    --pl-d2l: #5cc6d6;
    --pl-moodle: #f3b06a;
    --pl-schoology: #b896e6;
    --t1: #1f3329; --t2: #2a5440; --t3: #3b7a5a; --t4: #5ba57e; --t5: #8fd4ae;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0.4rem 0 0.25rem; }
h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
code { font-size: 0.9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 3rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1rem; height: 60px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark .bm-bg { fill: var(--accent); }
.brand-mark .bm-board { fill: var(--accent-text); }
.brand-mark .bm-check { fill: none; stroke: var(--accent); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .bm-tray { stroke: var(--accent-text); stroke-width: 4.5; stroke-linecap: round; opacity: 0.6; }
.brand-name em { font-style: normal; color: var(--accent); }
.main-nav { display: flex; gap: 0.25rem; margin-left: 1rem; }
.main-nav a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0.7rem; border-radius: 8px; }
.main-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.header-search { margin-left: auto; flex: 0 1 260px; }
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 0.6rem; padding-bottom: 0.6rem; row-gap: 0.4rem; }
  .main-nav { margin-left: auto; }
  .header-search { flex: 1 1 100%; }
}
.header-search input, .search-box input {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem;
}
.header-search input:focus, .search-box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Breadcrumbs & meta */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.875rem; color: var(--muted); margin-top: 1.25rem; }
.crumbs a { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.25rem; }

/* Primary CTA */
.primary-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 600; color: var(--muted); margin: 0; }
.primary-title { font-size: 1.15rem; font-weight: 600; margin: 0.2rem 0; }
.primary-domain { margin: 0; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none;
  font-weight: 600; padding: 0.75rem 1.4rem; border-radius: 10px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.badge { font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--line); color: var(--muted); }
.badge.ok { background: var(--accent-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.notice { background: var(--warn-soft); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.notice p { margin: 0; }

/* Two-column layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

.group { margin-bottom: 2rem; }
.count { font-weight: 500; color: var(--muted); font-size: 0.9rem; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.link-card a {
  display: grid; gap: 0.15rem; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem;
}
.link-card a:hover { border-color: var(--accent); }
.link-title { font-weight: 600; }
.link-domain { color: var(--ok); font-size: 0.875rem; overflow-wrap: anywhere; }
.link-snippet { color: var(--muted); font-size: 0.9rem; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; vertical-align: middle; margin-left: 0.25rem; }
.dot.ok { background: var(--ok); }

.side-col { display: grid; gap: 1.25rem; position: sticky; top: 1rem; }
@media (max-width: 820px) { .side-col { position: static; } }
.tips, .related { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.tips ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; font-size: 0.92rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.92rem; }

/* Home */
.hero { padding: 3rem 0 1.5rem; text-align: center; }
.lede { color: var(--muted); font-size: 1.1rem; margin: 0.5rem auto 1.5rem; max-width: 38rem; }
.search-box { position: relative; max-width: 600px; margin: 0 auto; }
.search-box input { font-size: 1.1rem; padding: 0.9rem 1.3rem; background: var(--surface); box-shadow: var(--shadow); }
.search-results {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); text-align: left;
  list-style: none; margin: 0; padding: 0.35rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.search-results a { display: block; padding: 0.55rem 0.8rem; border-radius: 8px; color: var(--text); text-decoration: none; }
.search-results a:hover, .search-results a.active { background: var(--accent-soft); }
.search-results .empty { padding: 0.55rem 0.8rem; color: var(--muted); }

.az { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; margin: 1.5rem 0 2.5rem; }
.az a {
  min-width: 2.2rem; text-align: center; padding: 0.35rem 0.5rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.az a[aria-current="page"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; }
.tile { display: grid; gap: 0.15rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile-name { color: var(--text); font-weight: 600; }
.tile-domain { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }

.az-list { list-style: none; padding: 0; columns: 3 260px; column-gap: 2rem; }
.az-list li { break-inside: avoid; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.az-domain { display: block; color: var(--muted); font-size: 0.8rem; }

.prose { max-width: 42rem; padding-top: 1rem; }
.prose h2 { margin-top: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1.5rem 0; color: var(--muted); font-size: 0.875rem; }

/* Data tables: per-page link status, hub stats ("data as of" blocks) */
.intro { max-width: 46rem; color: var(--text); margin: 0 0 1.75rem; }
.intro p { margin: 0 0 0.6rem; }
.as-of { color: var(--muted); font-size: 0.85rem; margin: 0.6rem 0 0; }
.stats { margin-bottom: 2rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.data th, table.data td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-sub { display: block; color: var(--muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.status .badge { white-space: nowrap; }
.related h2 + ul + .more, .related .more { margin: 0.75rem 0 0; font-size: 0.9rem; }
.group h2 a { color: inherit; }

.home-data { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; margin-bottom: 1rem; }
@media (max-width: 820px) { .home-data { grid-template-columns: 1fr; } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips a { display: inline-block; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 0.9rem; }
.chips a:hover { border-color: var(--accent); }

.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.footer-h { font-weight: 600; color: var(--text); margin: 0 0 0.4rem; }

/* ---------- Components added for the richer UI ---------- */
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .ha-float { animation: none !important; } }
h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; }

/* Hero */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; align-items: center; text-align: left; padding: 2.5rem 0 1.5rem; }
.hero-split .lede { margin-left: 0; }
.hero-split .search-box { margin: 0; }
.hero-split .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
.hl { color: var(--accent); background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.hero-pop { color: var(--muted); font-size: 0.9rem; margin: 0.9rem 0 0; }
.search-ico { position: absolute; left: 1.1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search-box .search-ico + input { padding-left: 3rem; }
.hero-art svg { width: 100%; height: auto; max-width: 420px; display: block; margin: 0 auto; }
.ha-win { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(0 8px 24px rgb(0 0 0 / 0.08)); }
.ha-bar { fill: var(--track); }
.ha-d1 { fill: #e5776b; } .ha-d2 { fill: #e9c062; } .ha-d3 { fill: #7cbf8e; }
.ha-url { fill: var(--surface); stroke: var(--line); }
.ha-lock { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ha-urltxt { font-size: 10px; fill: var(--muted); font-family: ui-monospace, monospace; }
.ha-line { fill: var(--track); }
.ha-input { fill: var(--bg); stroke: var(--line); }
.ha-btn { fill: var(--accent); }
.ha-btntxt { fill: var(--accent-text); font-size: 12px; font-weight: 600; }
.ha-badge { fill: var(--accent-soft); stroke: var(--surface); stroke-width: 5; }
.ha-check { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ha-pill { fill: var(--surface); stroke: var(--line); }
.ha-pdot { fill: var(--ok); }
.ha-ptxt { font-size: 11px; font-weight: 600; fill: var(--text); }
.ha-float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(262px, 68px); } }
@media (max-width: 820px) { .hero-split { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; margin: 0 0 1.75rem; }
.kpi { display: grid; gap: 0.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.kpi-ok::before { background: var(--ok); }
.kpi-warn::before { background: var(--warn); }
.kpi-v { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.kpi-l { font-weight: 600; font-size: 0.9rem; }
.kpi-s { color: var(--muted); font-size: 0.8rem; }

/* Panels & dashboard grid */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.panel-head h2 { margin: 0; display: inline-flex; align-items: center; gap: 0.5rem; }
.panel-head > a { font-size: 0.9rem; text-decoration: none; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.dash > .panel { margin-bottom: 1.5rem; }
@media (max-width: 820px) { .dash { grid-template-columns: 1fr; gap: 0; } }
.section-block { margin: 2rem 0; }

/* Charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.c-label { font-size: 12px; fill: var(--text); }
.c-num { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.c-big { font-size: 26px; font-weight: 700; fill: var(--text); }
.c-axis { font-size: 11px; fill: var(--muted); }
.c-track { fill: var(--track); }
.c-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.c-area { fill: var(--accent-soft); }
.c-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.c-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.donut { max-width: 200px; }
.donut-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.donut-row .donut { flex: 0 0 180px; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1 1 200px; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.legend li { display: grid; grid-template-columns: 1fr auto 3.2rem; gap: 0.75rem; align-items: center; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.legend a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.legend a:hover { color: var(--accent); }
.lg-n, .lg-p { text-align: right; font-variant-numeric: tabular-nums; }
.lg-p { color: var(--muted); }
.pdot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; vertical-align: middle; margin-right: 0.35rem; }
.legend .pdot { margin-right: 0; }
.strip { width: 298px; max-width: 100%; height: 22px; }
.strip .c-up { fill: var(--ok); }
.strip .c-down { fill: var(--warn); }
.strip .c-empty { fill: var(--track); }
.usmap { max-width: 640px; margin: 0 auto 0.75rem; }
.usmap .t { fill: var(--track); stroke: var(--surface); stroke-width: 1; transition: opacity 0.15s; }
.usmap .t1 { fill: var(--t1); } .usmap .t2 { fill: var(--t2); } .usmap .t3 { fill: var(--t3); } .usmap .t4 { fill: var(--t4); } .usmap .t5 { fill: var(--t5); }
.usmap .t-hl { stroke: var(--pl-canvas); stroke-width: 3; }
.usmap .t-st { font-size: 12px; font-weight: 700; fill: var(--text); pointer-events: none; }
.usmap .t-n { font-size: 10px; fill: var(--text); opacity: 0.75; pointer-events: none; }
.usmap .t4 ~ .t-st, .usmap .t5 ~ .t-st, .usmap .t4 ~ .t-n, .usmap .t5 ~ .t-n { fill: #fff; }
@media (prefers-color-scheme: dark) { .usmap .t4 ~ .t-st, .usmap .t5 ~ .t-st, .usmap .t4 ~ .t-n, .usmap .t5 ~ .t-n { fill: #0e1a14; } }
.usmap a:hover .t { opacity: 0.75; }
.mix-cell { min-width: 120px; }
.mixbar { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--c) var(--w), var(--track) var(--w)); margin-top: 0.45rem; }

/* School logos */
.logo { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; overflow: hidden; border: 1px solid var(--line); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 12%; }
.logo-lg { width: 64px; height: 64px; font-size: 1.35rem; border-radius: 14px; }
.logo-md { width: 44px; height: 44px; font-size: 1rem; }
.logo-sm { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 9px; }
.logo-xs { width: 22px; height: 22px; font-size: 0.6rem; border-radius: 6px; margin-right: 0.5rem; vertical-align: middle; }
.page-head { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0 1.25rem; }
.page-head h1 { margin: 0 0 0.35rem; }
.page-head .meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; align-items: center; }
.meta-item { white-space: nowrap; }
.pchip { display: inline-flex; align-items: center; gap: 0.1rem; font-size: 0.85rem; font-weight: 600; padding: 0.15rem 0.6rem 0.15rem 0.45rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pchip:hover { border-color: var(--accent); }
.pchip .pdot { width: 8px; height: 8px; border-radius: 50%; }

/* School rows (lists with logo + live dot) */
.school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.6rem; }
.school-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); min-width: 0; }
.school-row:hover { border-color: var(--accent); }
.sr-body { display: grid; min-width: 0; flex: 1; }
.sr-name { font-weight: 600; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-sub { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sr-dot.ok { background: var(--ok); }
.sr-dot.warn { background: var(--warn); }

/* Live widgets */
.live-panel { border-left: 4px solid var(--ok); }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.6rem; margin: 0.5rem 0; }
.live-vendor { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.15rem 0.6rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.live-vendor .pdot { margin: 0; }
.lv-name { font-weight: 600; }
.lv-state { font-size: 0.8rem; font-weight: 600; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; }
.lv-state.ok { background: var(--accent-soft); color: var(--ok); }
.lv-state.warn { background: var(--warn-soft); color: var(--warn); }
.lv-state.bad { background: var(--bad-soft); color: var(--bad); }
.lv-link, .lv-incident { grid-column: 2 / -1; font-size: 0.8rem; color: var(--muted); }
.lv-incident { color: var(--warn); font-weight: 600; }
.side-card .live-vendor { background: var(--surface); }
.primary-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-ghost { font: inherit; font-weight: 600; font-size: 0.95rem; padding: 0.7rem 1.1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-ghost:disabled { opacity: 0.6; cursor: progress; }
.live-check-out { flex: 1 1 100%; margin: 0; padding: 0.6rem 0.85rem; border-radius: 8px; background: var(--bg); font-size: 0.9rem; }
.live-check-out.ok { background: var(--accent-soft); color: var(--ok); }
.live-check-out.warn { background: var(--warn-soft); color: var(--warn); }
.lock { width: 14px; height: 14px; fill: none; stroke: var(--ok); stroke-width: 1.6; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.side-card h2 { display: flex; align-items: center; gap: 0.5rem; }
.campus-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.campus-time { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.campus-wx { font-size: 1.2rem; font-weight: 600; }

/* School page article & FAQ */
.answer { padding: 0.75rem 1rem; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.answer.ok { background: var(--accent-soft); border-color: transparent; }
.answer.warn { background: var(--warn-soft); border-color: transparent; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.article p { margin: 0 0 0.75rem; }
.howto { padding-left: 1.3rem; display: grid; gap: 0.45rem; margin: 0 0 1rem; }
.tip-line { background: var(--bg); border-radius: 8px; padding: 0.65rem 0.85rem; font-size: 0.92rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 0.5rem; }
.faq summary { cursor: pointer; padding: 0.8rem 1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1rem 0.9rem; color: var(--muted); }
.side-col .more { margin: 0.75rem 0 0; font-size: 0.9rem; }

/* Guides */
.guide-head { padding: 1rem 0 1.5rem; max-width: 46rem; }
.guide-head h1 { margin-top: 0.3rem; }
.lede.left { margin-left: 0; text-align: left; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.guide-card { display: grid; gap: 0.3rem; align-content: start; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform 0.12s, border-color 0.12s; }
.guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent); }
.guide-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.guide-short { color: var(--muted); font-size: 0.9rem; }
.guide-body { max-width: none; padding-top: 0; }
.guide-body h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.guide-body > p, .guide-body > ul, .guide-body > ol { max-width: 44rem; }
.guide-body li { margin-bottom: 0.35rem; }
.guide-body .chart { margin: 0.75rem 0; }
.kpis-3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.data-box dl { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; margin: 0; font-size: 0.92rem; }
.data-box dt { color: var(--muted); }
.data-box dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* How it works */
.how { margin: 2.5rem 0 1rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.steps li { display: grid; gap: 0.3rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps span:not(.step-n) { color: var(--muted); font-size: 0.92rem; }
.step-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }

/* Phone widths: nothing may push the page wider than the screen */
@media (max-width: 820px) { .layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-v { font-size: 1.35rem; }
  .main-nav { margin-left: auto; gap: 0; }
  .main-nav a { padding: 0.35rem 0.5rem; font-size: 0.9rem; }
  .page-head { align-items: flex-start; }
  .page-head .logo-lg { width: 48px; height: 48px; font-size: 1rem; }
  .meta-item { white-space: normal; }
  .primary-actions, .primary-actions .btn, .primary-actions .btn-ghost { width: 100%; text-align: center; }
  .strip { width: 150px; }
  .legend li { grid-template-columns: 1fr auto 2.8rem; }
}
@media (max-width: 400px) { .brand { font-size: 0.95rem; } .main-nav a[href="/states/"] { display: none; } }

/* Info pages */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 1.5rem; }
.contact-card .eyebrow { margin: 0; }
.contact-mail { font-size: 1.3rem; font-weight: 700; margin: 0.25rem 0; overflow-wrap: anywhere; }
.guide-body table.data { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0.5rem 0 1rem; }
.related strong[aria-current] { color: var(--text); }
