@font-face{font-family:"DM Sans"; font-style:normal; font-weight:100 1000; font-display:swap; src:url("fonts/dm-sans.woff2") format("woff2")}
@font-face{font-family:"DM Serif Display"; font-style:normal; font-weight:400; font-display:swap; src:url("fonts/dm-serif-display.woff2") format("woff2")}
/* the tokens: Deckhand's palette (Croix, 7 Nov 2026: "use my color palette from deckhand instead") — cream ground, white and
   pale-turquoise surfaces, turquoise where something is live, navy ink and primary buttons, sand for quiet fills, coral only
   for an alarm. The values are public/teacher/deckhand/index.html's :root; the -Ink, muted and soft values are measured
   (≥ 4.5:1 for text on every surface they sit on). */
:root{
  --navy:#17324D; --navy2:#22476B; --cream:#F8F2E4; --white:#FFFFFF; --sand:#E6D5B8; --grid:#EADFC6; --shadow:#D8C5A0;
  --turq:#40E0D0; --turq-mid:#8FE5DC; --turq-light:#BFEFEA; --paleturq:#D8F6F1; --teal:#127A85;
  --coral:#FF7F6A; --coral-deep:#E85F4A; --coral-pale:#FFC2B5;
  --tealInk:#0F6B74;    /* teal text and links: 5.6:1 on cream, 6.2 on white, 5.0 on turq-light */
  --coralInk:#AD3B28;   /* an error's words, Delete: coral-deep darkened to ≥ 4.6:1 on cream, white and the sand buttons */
  --focus:var(--tealInk);
  --quiet:rgba(230,213,184,.42); --quiet2:rgba(230,213,184,.7);   /* sand: reference, quiet, the secondary buttons */
  --live:var(--paleturq);                                         /* paleturq: what is now or next to it */
  --soft:rgba(23,50,77,.76);
  --paper:var(--white); --line:rgba(23,50,77,.09); --muted:rgba(23,50,77,.78); --black:#1A1D23;
  --lift:0 0 0 1px rgba(23,50,77,.06), 0 10px 30px -16px rgba(23,50,77,.22);
  /* the roles the dark theme re-points (Croix, 7 Nov 2026: "based on the system, also give me an option … true dark mode") —
     each light value is what the rule had before, so the light page is unchanged */
  --ink-rgb:23,50,77;            /* hairlines, hover tints and quiet fills drawn in the ink */
  --shade:23,50,77;              /* drop shadows (none on black: the dark theme makes them black) */
  --card-rgb:255,255,255;        /* the translucent white sheets */
  --ground-rgb:248,242,228;      /* the frosted top bar and the audience strip */
  --hair:rgba(23,50,77,.08);     /* a row's separator */
  --field:#FFFFFF; --field-edge:rgba(23,50,77,.16); --find-edge:rgba(23,50,77,.14); --gate-edge:rgba(23,50,77,.2);
  --seg-on:#FFFFFF; --seg-on-ink:#17324D;          /* the pressed segment */
  --on-turq:#17324D; --on-coral:#17324D; --on-teal:#FFFFFF; --go:#127A85; --go-h:#0F6B74;   /* a unit page's Slides chip */
  --next-bg:#17324D; --next-ink:#F8F2E4;           /* a course page's Next test */
  --today-bg:#BFEFEA; --today-ink:#17324D; --today-muted:rgba(23,50,77,.78); --today-accent:#0F6B74; --today-dot:#1A1D23; --today-teal:#127A85; --today-cream:#F8F2E4; --today-ink-rgb:23,50,77;
  --quiet-on:#FFFFFF;   /* the appearance switch's chosen word: quiet, not turquoise — nothing about it is live */
  --teal-line:rgba(15,107,116,.35); --danger-hover:#8F2F1F;
  --ref:var(--quiet); --chip-bg:rgba(23,50,77,.06); --raised:rgba(255,255,255,.92);
  color-scheme:light;
}
/* the dark theme (Croix, 7 Nov 2026: "based on the system, also give me an option. But dark mode should be true dark mode.
   Black background not dark teal." — "And white letters."): black ground, near-black cards with a hairline edge instead of
   a shadow, white ink, light grey for the quiet words, turquoise (black ink on it) only where something is live, the
   teal-on-black #5FD9CC for links and codes, coral only for an urgent banner. No navy surface: white is the primary button.
   Applied by the system unless the footer's control says Light or Dark (public/theme.js sets <html data-theme>). The two
   blocks are identical (tools/test_site.mjs checks); /board/ keeps its own token set. */
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]):not([data-theme="board"]){
  color-scheme:dark;
  --navy:#FFFFFF; --navy2:#E3E5E9; --cream:#000000; --white:#000000; --paper:#121418; --raised:#181B21;
  --sand:rgba(255,255,255,.1); --grid:#22262E; --shadow:rgba(255,255,255,.24);
  --turq:#40E0D0; --turq-mid:#40E0D0; --turq-light:rgba(64,224,208,.14); --paleturq:rgba(64,224,208,.12); --teal:#5FD9CC;
  --coral:#FF7F6A; --coral-deep:#E85F4A; --coral-pale:rgba(255,127,106,.16);
  --tealInk:#5FD9CC; --coralInk:#FF8E7C; --focus:#5FD9CC;
  --quiet:rgba(255,255,255,.08); --quiet2:rgba(255,255,255,.14); --ref:rgba(255,255,255,.05); --chip-bg:rgba(255,255,255,.08);
  --live:rgba(64,224,208,.12); --soft:#B4B9C2; --muted:#B4B9C2; --black:#F3F1EC;
  --line:rgba(255,255,255,.14); --hair:rgba(255,255,255,.14); --lift:0 0 0 1px rgba(255,255,255,.08);
  --ink-rgb:255,255,255; --shade:0,0,0; --card-rgb:18,20,24; --ground-rgb:0,0,0;
  --field:rgba(255,255,255,.06); --field-edge:rgba(255,255,255,.38); --find-edge:rgba(255,255,255,.38); --gate-edge:rgba(255,255,255,.38);
  --seg-on:#40E0D0; --seg-on-ink:#000000;
  --on-turq:#000000; --on-coral:#000000; --on-teal:#000000; --go:#FFFFFF; --go-h:#E3E5E9;
  --next-bg:#121418; --next-ink:#FFFFFF; --next-edge:0 0 0 1px rgba(255,255,255,.08);
  --today-bg:#40E0D0; --today-ink:#000000; --today-muted:rgba(0,0,0,.72); --today-accent:#000000; --today-dot:#000000; --today-teal:#0A5A61; --today-cream:#40E0D0; --today-ink-rgb:0,0,0; --quiet-on:rgba(255,255,255,.16);
  --teal-line:rgba(95,217,204,.45); --danger-hover:#FFA393;
} }
:root[data-theme="dark"]{
  color-scheme:dark;
  --navy:#FFFFFF; --navy2:#E3E5E9; --cream:#000000; --white:#000000; --paper:#121418; --raised:#181B21;
  --sand:rgba(255,255,255,.1); --grid:#22262E; --shadow:rgba(255,255,255,.24);
  --turq:#40E0D0; --turq-mid:#40E0D0; --turq-light:rgba(64,224,208,.14); --paleturq:rgba(64,224,208,.12); --teal:#5FD9CC;
  --coral:#FF7F6A; --coral-deep:#E85F4A; --coral-pale:rgba(255,127,106,.16);
  --tealInk:#5FD9CC; --coralInk:#FF8E7C; --focus:#5FD9CC;
  --quiet:rgba(255,255,255,.08); --quiet2:rgba(255,255,255,.14); --ref:rgba(255,255,255,.05); --chip-bg:rgba(255,255,255,.08);
  --live:rgba(64,224,208,.12); --soft:#B4B9C2; --muted:#B4B9C2; --black:#F3F1EC;
  --line:rgba(255,255,255,.14); --hair:rgba(255,255,255,.14); --lift:0 0 0 1px rgba(255,255,255,.08);
  --ink-rgb:255,255,255; --shade:0,0,0; --card-rgb:18,20,24; --ground-rgb:0,0,0;
  --field:rgba(255,255,255,.06); --field-edge:rgba(255,255,255,.38); --find-edge:rgba(255,255,255,.38); --gate-edge:rgba(255,255,255,.38);
  --seg-on:#40E0D0; --seg-on-ink:#000000;
  --on-turq:#000000; --on-coral:#000000; --on-teal:#000000; --go:#FFFFFF; --go-h:#E3E5E9;
  --next-bg:#121418; --next-ink:#FFFFFF; --next-edge:0 0 0 1px rgba(255,255,255,.08);
  --today-bg:#40E0D0; --today-ink:#000000; --today-muted:rgba(0,0,0,.72); --today-accent:#000000; --today-dot:#000000; --today-teal:#0A5A61; --today-cream:#40E0D0; --today-ink-rgb:0,0,0; --quiet-on:rgba(255,255,255,.16);
  --teal-line:rgba(95,217,204,.45); --danger-hover:#FFA393;
}
*{box-sizing:border-box}
html,body{margin:0; height:100%}
body{min-height:100vh; color:var(--navy);
  background:var(--cream);   /* Deckhand's ground: flat cream, white cards on it */
  font:500 18px/1.4 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing:antialiased; display:flex; flex-direction:column}
a{-webkit-tap-highlight-color:transparent; color:inherit; text-decoration:none}
a:focus-visible{outline:3px solid var(--focus); outline-offset:6px; border-radius:30px}

main{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:clamp(40px, 8vh, 96px) 16px clamp(48px, 10vh, 120px)}
.date{font-weight:700; font-size:clamp(13px, 1.1vw, 15px); letter-spacing:.16em; text-transform:uppercase; color:var(--muted);
  margin-bottom:10px; min-height:1.4em}
h1{font:400 clamp(48px, 6.4vw, 92px)/1 "DM Serif Display", Georgia, serif; letter-spacing:-.015em; margin:0;
  text-align:center}
.rule{width:44px; height:3px; border-radius:3px; background:var(--turq); margin:clamp(22px, 3.4vh, 34px) 0 clamp(40px, 7vh, 76px)}

/* home: icons on the page, like a home screen — no boxes around them */
nav.apps{display:grid; grid-template-columns:repeat(6, auto); gap:clamp(28px, 5vw, 84px); justify-content:center}
a.app{display:flex; flex-direction:column; align-items:center; gap:16px; padding:6px}
.ic{position:relative; width:clamp(112px, 9vw, 148px); aspect-ratio:1; border-radius:23.5%; overflow:hidden;
  box-shadow:0 1px 1px rgba(var(--shade),.10), 0 6px 14px rgba(var(--shade),.14), 0 18px 36px -12px rgba(var(--shade),.30);
  transition:transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease}
.ic::after{content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 46%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)}
.ic img, .ic svg{position:absolute; inset:0; width:100%; height:100%; display:block}
.nm{font-weight:700; font-size:clamp(18px, 1.45vw, 21px); letter-spacing:-.005em}
.app:hover .ic{transform:translateY(-4px); box-shadow:0 1px 1px rgba(23,50,77,.10), 0 10px 20px rgba(23,50,77,.16), 0 26px 48px -14px rgba(23,50,77,.34)}
.app:active .ic{transform:scale(.94); transition-duration:.08s}

.i-deck{background:var(--navy)}
.i-cad{background:linear-gradient(160deg, #1A8C97 0%, #0F6670 100%)}
.i-tally{background:linear-gradient(160deg, #2B4768 0%, #182A40 100%)}
.i-geo{background:linear-gradient(160deg, #EFE3CC 0%, #D8C5A0 100%)}
.i-tempo{background:linear-gradient(160deg, #26395C 0%, #15223B 100%)}
.i-prac{background:linear-gradient(160deg, #FFFFFF 0%, var(--grid) 100%)}
.i-prac::after{box-shadow:inset 0 0 0 1px rgba(23,50,77,.08)}
.i-sched{background:linear-gradient(160deg, #FFFFFF 0%, var(--grid) 100%)}
.i-sched::after{box-shadow:inset 0 0 0 1px rgba(23,50,77,.08)}
.i-teach{background:linear-gradient(160deg, #FFFFFF 0%, var(--grid) 100%)}
.i-teach::after{box-shadow:inset 0 0 0 1px rgba(23,50,77,.08)}
.i-cl{background:linear-gradient(160deg, #2E6E8E 0%, #1D4E68 100%)}
.i-pass{background:linear-gradient(160deg, #EFE3CC 0%, #E6D5B8 100%)}
.i-gg{background:linear-gradient(160deg, #3B4F66 0%, #243548 100%)}

/* the second row: school links, smaller; Google opens as a folder */
.divider{width:min(640px, 70vw); height:1px; background:rgba(var(--ink-rgb),.10); margin:clamp(36px, 6vh, 60px) 0 clamp(28px, 5vh, 48px)}
nav.links{display:grid; grid-template-columns:repeat(4, auto); gap:clamp(24px, 4.2vw, 70px); justify-content:center}
.app.sm{gap:12px}
.app.sm .ic{width:clamp(76px, 6vw, 96px)}
.app.sm .nm{font-size:clamp(15px, 1.1vw, 17px); font-weight:600}
button.app{display:flex; flex-direction:column; align-items:center; gap:12px; font:inherit; color:inherit; background:none; border:0; padding:6px; margin:0; cursor:pointer; align-self:start; -webkit-tap-highlight-color:transparent}
nav.links{align-items:start}
button.app:focus-visible{outline:3px solid var(--focus); outline-offset:6px; border-radius:30px}
.folder{background:rgba(255,255,255,.75); display:grid !important; grid-template-columns:repeat(3, 1fr); gap:9%; padding:17%;
  box-shadow:0 0 0 1px rgba(var(--ink-rgb),.08), 0 6px 14px rgba(var(--shade),.10), 0 18px 36px -12px rgba(var(--shade),.22) !important}
.folder::after{display:none}
.folder i{display:block; border-radius:24%}
.t1{background:#1E8E5A}.t2{background:#E0A82E}.t3{background:#2F6FD0}.t4{background:#1F9D55}.t5{background:#E7A21A}
.t6{background:#7B4FC4}.t7{background:#D24B3E}.t8{background:#3A7BE0}.t9{background:#13897E}.t10{background:#4A5BC4}
.sheetBg{position:fixed; inset:0; z-index:10; display:grid; place-items:center; padding:16px;
  background:rgba(var(--ink-rgb),.28); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); opacity:0; transition:opacity .22s ease}
.sheetBg.on{opacity:1}
.sheetBg[hidden]{display:none}
.folderSheet{width:min(560px, 100%); background:var(--raised); border-radius:32px; padding:28px 28px 32px;
  box-shadow:0 30px 80px -20px rgba(var(--shade),.45); transform:scale(.94); transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.sheetBg.on .folderSheet{transform:none}
.folderSheet h2{font:400 34px/1 "DM Serif Display", Georgia, serif; margin:0 0 24px; text-align:center}
.gGrid{display:grid; grid-template-columns:repeat(5, 1fr); gap:22px 10px}
.gGrid a{display:flex; flex-direction:column; align-items:center; gap:8px; font-weight:600; font-size:14px; border-radius:16px; padding:4px 0}
.gGrid a:active .gi{transform:scale(.92)}
.gi{width:62px; height:62px; border-radius:16px; display:grid; place-items:center; transition:transform .12s ease;
  box-shadow:0 4px 10px rgba(var(--shade),.14)}
.gi svg{width:58%; height:58%; fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round}

@media (max-width:1000px){ nav.apps{grid-template-columns:repeat(3, auto)} }   /* six icons: two rows of three before they crowd */
@media (max-width:760px){
  nav.apps{grid-template-columns:repeat(3, auto); gap:30px 22px}
  .ic{width:88px}
  nav.links{grid-template-columns:repeat(4, auto); gap:18px}
  .app.sm .ic{width:64px}
  .gGrid{grid-template-columns:repeat(3, 1fr)}
}

/* a list of pages (the Geopardy games) */
.back{position:fixed; top:max(16px, env(safe-area-inset-top)); left:16px; z-index:2; display:flex; align-items:center; gap:4px;
  padding:10px 16px 10px 10px; border-radius:999px; font-weight:700; font-size:16px; color:var(--navy);
  background:rgba(var(--card-rgb),.72); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  box-shadow:0 0 0 1px rgba(var(--ink-rgb),.08), 0 4px 14px rgba(var(--shade),.08)}
.back svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round}
.back:active{transform:scale(.96)}
.sheet{width:100%; max-width:620px; background:rgba(var(--card-rgb),.9); border-radius:24px; overflow:hidden;
  box-shadow:0 0 0 1px rgba(var(--ink-rgb),.07), 0 12px 40px -10px rgba(var(--shade),.18)}
a.row{display:flex; align-items:center; gap:16px; padding:20px 22px 20px 26px; transition:background .15s ease}
a.row + a.row{box-shadow:inset 0 1px 0 var(--hair)}
a.row:hover{background:rgba(64,224,208,.08)}
a.row:active{background:rgba(64,224,208,.16)}
.rt{flex:1; font-weight:700; font-size:clamp(19px, 1.6vw, 23px)}
.rc{font-size:15px; font-weight:600; color:var(--soft); white-space:nowrap}
.chev{width:20px; height:20px; fill:none; stroke:rgba(var(--ink-rgb),.35); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; flex:none}
@media (max-width:520px){ .rc{display:none} }

/* the students' practice tests: choose a class, then a unit */
nav.courses{display:grid; grid-template-columns:repeat(2, minmax(0, 300px)); gap:clamp(18px, 3vw, 36px); justify-content:center; width:100%}
a.course{display:flex; flex-direction:column; align-items:center; gap:6px; padding:clamp(28px, 5vh, 48px) 20px;
  background:rgba(var(--card-rgb),.9); border-radius:28px; box-shadow:0 0 0 1px rgba(var(--ink-rgb),.07), 0 12px 40px -10px rgba(var(--shade),.18);
  transition:transform .18s ease, box-shadow .18s ease}
a.course:hover{transform:translateY(-3px); box-shadow:0 0 0 1px rgba(var(--ink-rgb),.07), 0 18px 48px -12px rgba(var(--shade),.24)}
a.course:active{transform:scale(.97); transition-duration:.06s}
.course .code{font:400 clamp(64px, 8vw, 104px)/1 "DM Serif Display", Georgia, serif; letter-spacing:-.01em}
.course:nth-child(1) .code{color:var(--tealInk)}
.course:nth-child(2) .code{color:var(--navy)}
.course .cname{font-weight:700; font-size:clamp(17px, 1.4vw, 20px); color:var(--soft); text-align:center}
.practice a.row .rt{flex:none}
a.row:has(.rn) .rt{flex:none; min-width:4.3em}   /* "Unit 10" and "Unit 9" start their titles on one line (Apple audit, 7 Nov 2026) */
.rn{flex:1; font-weight:500; font-size:clamp(17px, 1.4vw, 20px); color:var(--soft)}

p.none{font-size:20px; color:var(--soft); margin:0}
@media (max-width:520px){ nav.courses{grid-template-columns:1fr 1fr; gap:12px} a.course{border-radius:22px} }

/* the class schedules (/schedule/, built by tools/schedule.py): the next test, the tests, then the year by week */
.sched main{justify-content:flex-start}
.sched .back{position:absolute}   /* a long page: the pill scrolls away rather than sitting over the days */
.sched h2{font:700 clamp(22px, 2.2vw, 26px)/1.2 "DM Sans", system-ui, sans-serif; letter-spacing:-.01em; margin:clamp(34px, 5vh, 48px) 0 14px; width:100%; max-width:620px}
.sched .lead{width:100%; max-width:620px; font-size:16px; color:var(--soft); margin:-4px 0 6px}
.alltests{width:100%; max-width:620px; margin-top:14px}
.alltests summary{list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 22px;
  font-weight:700; font-size:18px; background:rgba(var(--card-rgb),.9); border-radius:18px; box-shadow:0 0 0 1px rgba(var(--ink-rgb),.07), 0 8px 26px -10px rgba(var(--shade),.16)}
.alltests summary::-webkit-details-marker{display:none}
.alltests summary:focus-visible{outline:3px solid var(--focus); outline-offset:4px}
.alltests summary .chev{transition:transform .18s ease}
.alltests[open] summary .chev{transform:rotate(90deg)}
.alltests .sheet{margin-top:10px}
.next{width:100%; max-width:620px; display:flex; flex-direction:column; align-items:flex-start; gap:2px; padding:20px 24px 22px;
  background:var(--next-bg); color:var(--next-ink); border-radius:24px; box-shadow:var(--next-edge, 0 0 0 0 transparent), 0 12px 40px -10px rgba(var(--shade),.35)}
.next[hidden]{display:none}
.next .nl{font-weight:700; font-size:13px; letter-spacing:.16em; text-transform:uppercase; color:var(--turq)}
.next .nv{font:700 clamp(26px, 2.8vw, 32px)/1.2 "DM Sans", system-ui, sans-serif; letter-spacing:-.015em}
.next .nd{font-weight:600; font-size:18px; opacity:.85}
.tests .trow{display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:4px 16px; align-items:baseline; padding:14px 22px}
.tests .trow + .trow{box-shadow:inset 0 1px 0 var(--hair)}
.trow .tu{font-weight:700; white-space:nowrap}
.trow .tn{color:var(--soft); font-size:16px}
.trow .tw{font-weight:600; font-size:16px; text-align:right; white-space:nowrap}
.trow.past{opacity:.45}
.week{width:100%; max-width:620px}
.week[hidden]{display:none}
.wk{display:flex; justify-content:space-between; gap:12px; font-weight:700; font-size:13px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); margin:26px 8px 10px}
.wk span{color:var(--soft); letter-spacing:.1em}
.day{display:grid; grid-template-columns:78px minmax(0, 1fr); gap:14px; padding:14px 22px 14px 20px}
.day + .day{box-shadow:inset 0 1px 0 var(--hair)}
.dd{display:flex; flex-direction:column; align-items:flex-start; line-height:1.25}
.dd b{font-weight:700; font-size:14px; letter-spacing:.08em; text-transform:uppercase}
.dd span{font-size:15px; color:var(--soft)}
.dt{font-weight:700; font-size:18px; line-height:1.3}
.dt .lc{font-weight:600; color:var(--tealInk); margin-right:8px; font-variant-numeric:tabular-nums}
.dx{font-size:15px; color:var(--soft); margin-top:5px; line-height:1.5}
.dx .ixl{display:block; font-weight:700; color:var(--navy)}
.dx ul{list-style:none; margin:2px 0 0; padding:0}
.dx li{padding:1px 0}
.dx b{color:var(--tealInk); font-weight:700; white-space:nowrap}
.day.test{background:var(--ref)}
.day.test .dt{color:var(--navy)}
.day.quiet .dt, .day.off .dt, .day.hol .dt{font-weight:600; color:var(--soft)}
.day.hol{background:rgba(var(--ink-rgb),.035)}
.day.past .dd, .day.past .dt, .day.past .dt .lc, .day.past .dx, .day.past .dx b, .day.past .dx .ixl, .day.past .arrow{color:var(--muted)}
.day.today{background:var(--live); box-shadow:inset 4px 0 0 var(--turq), inset 0 1px 0 var(--hair)}
.dd .tag{margin-top:6px; font-weight:700; font-size:12.5px; letter-spacing:.02em; color:var(--cream); background:var(--navy);
  padding:2px 7px; border-radius:7px}
.earlier{min-height:44px; font:700 15px "DM Sans", system-ui, sans-serif; color:var(--navy); background:rgba(var(--card-rgb),.8); border:0; border-radius:999px;
  padding:11px 18px; margin:4px 0 0; box-shadow:0 0 0 1px rgba(var(--ink-rgb),.1); cursor:pointer}
.earlier[hidden]{display:none}
.earlier:focus-visible{outline:3px solid var(--focus); outline-offset:4px}
.sched .foot{width:100%; max-width:620px; font-size:15px; color:var(--soft); margin:30px 0 0; text-align:center}
.sheet.sl{margin-bottom:22px}
@media (max-width:520px){
  .day{grid-template-columns:60px minmax(0, 1fr); gap:10px; padding:12px 16px}
  .dt{font-size:17px}
  .tests .trow{grid-template-columns:auto minmax(0, 1fr); padding:12px 18px}
  .trow .tw{grid-column:1 / -1; text-align:left}
}
/* the day's extras on a course page (public/course.js): the completed notes and tonight's practice, only on days that have them */
.xx{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
a.xnotes{display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border-radius:999px; background:var(--navy); color:var(--white); font-weight:700; font-size:14px}
.xskill{display:inline-flex; align-items:center; flex-wrap:wrap; min-height:36px; padding:4px 12px; border-radius:12px; background:var(--live); font-size:14.5px; line-height:1.3; color:var(--navy)}
.xskill .xv{font-weight:600; margin-right:4px}
a.xskill:hover{background:rgba(64,224,208,.3)}
/* the teacher copies' unlisted index (tools/practice.mjs) */
.tnote{width:100%; max-width:620px; font-size:15px; color:var(--soft); margin:8px 0 0; text-align:center}

/* ---- the course page: a day that opens something (its slides, the unit's practice test) — 24 Oct 2026 */
a.dt.go{display:block; color:inherit; text-decoration:none; border-radius:10px; margin:-11px -8px; padding:11px 8px}
a.dt.go:hover{background:rgba(var(--ink-rgb),.06)}
a.dt.go .arrow{display:inline-block; margin-left:10px; font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--tealInk); vertical-align:2px}
.day.test a.dt.go .arrow{color:var(--tealInk)}
.sched .sheet + .lead{margin-top:14px}
.tnote a{color:var(--tealInk)}
/* the landing: the two courses first (nav.courses above), then the board and the teacher's door */
main > nav.courses{margin-bottom:clamp(26px, 4vh, 40px)}

/* ---- the units (tools/build.mjs + tools/units.mjs, 24 Oct 2026): a document is a row; several formats are chips */
.unit main{justify-content:flex-start}
.unit .back{position:absolute}
.unit .date + .sheet, .unit .date + nav{margin-top:8px}
.unit .date{margin-top:clamp(26px, 4vh, 40px); align-self:center; max-width:620px; width:100%; text-align:left}
.unit .rule + .date{margin-top:clamp(18px, 3vh, 28px)}
.row.doc{display:flex; align-items:center; gap:14px; padding:16px 22px 16px 26px; flex-wrap:wrap}
.row.doc + .row.doc, .row + .row.doc, .row.doc + a.row{box-shadow:inset 0 1px 0 var(--hair)}
.row.doc .rt{flex:none; font-size:clamp(17px, 1.4vw, 20px)}
.row.doc .rn{flex:1 1 160px; font-size:clamp(15px, 1.2vw, 17px)}
.fmts{display:flex; gap:8px; flex-wrap:wrap; margin-left:auto}
a.fmt{display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:999px; font-weight:700; font-size:13px; letter-spacing:.02em; color:var(--navy);
  background:var(--quiet); text-decoration:none; transition:background .15s ease, transform .1s ease; white-space:nowrap}
a.fmt:hover{background:rgba(64,224,208,.22)}
a.fmt:active{transform:scale(.96)}
a.fmt.go{background:var(--go); color:var(--on-teal)}
a.fmt.go:hover{background:var(--go-h)}
a.fmt.key{background:var(--quiet2); color:var(--navy)}
.sheet.lessons .row.doc .rt{min-width:62px; color:var(--tealInk)}
@media (max-width:620px){
  .row.doc{padding:14px 16px}
  .row.doc .rn{flex-basis:100%; order:3}
  .fmts{margin-left:0; flex-basis:100%; order:4}
}
/* the notes (START HERE, the audits), rendered from Markdown */
.doc main.notes{justify-content:flex-start; align-items:stretch; max-width:760px; width:100%; margin:0 auto}
.doc .back{position:absolute}
.notes article{background:rgba(var(--card-rgb),.92); border-radius:24px; padding:clamp(22px, 4vw, 44px); margin-top:14px;
  box-shadow:0 0 0 1px rgba(var(--ink-rgb),.07), 0 12px 40px -10px rgba(var(--shade),.18); font-size:16px; line-height:1.55; color:var(--navy); overflow-wrap:anywhere}
.notes article h2{font:400 clamp(28px, 3vw, 36px)/1.1 "DM Serif Display", Georgia, serif; margin:0 0 18px}
.notes article h3{font:400 clamp(22px, 2.2vw, 27px)/1.15 "DM Serif Display", Georgia, serif; margin:30px 0 10px}
.notes article h4{font-size:17px; font-weight:700; margin:24px 0 8px}
.notes article h5, .notes article h6{font-size:15px; font-weight:700; margin:18px 0 6px; letter-spacing:.04em; text-transform:uppercase; color:var(--soft)}
.notes article p{margin:0 0 12px}
.notes article ul, .notes article ol{margin:0 0 12px; padding-left:24px}
.notes article li{margin:4px 0}
.notes article code{font:500 .92em/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background:rgba(var(--ink-rgb),.06); padding:1px 5px; border-radius:6px}
.notes article pre{font:13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background:rgba(var(--ink-rgb),.06); padding:14px 16px; border-radius:12px; overflow:auto}
.notes article blockquote{margin:0 0 12px; padding:2px 0 2px 16px; border-left:3px solid var(--shadow); color:var(--soft)}
.notes article hr{border:0; height:1px; background:rgba(var(--ink-rgb),.12); margin:24px 0}
.notes article .tbl{overflow:auto; margin:0 0 16px; border-radius:12px; box-shadow:0 0 0 1px rgba(var(--ink-rgb),.1)}
.notes article table{border-collapse:collapse; width:100%; font-size:14.5px}
.notes article th, .notes article td{padding:8px 10px; text-align:left; vertical-align:top; border-bottom:1px solid rgba(var(--ink-rgb),.1)}
.notes article th{background:rgba(var(--ink-rgb),.05); font-weight:700}
.notes article td:first-child, .notes article th:first-child{min-width:96px}
.notes article a{color:var(--tealInk)}

/* ---- 30 Oct 2026: the site for students and parents (Croix: "absolutely student and parent facing … a login button at the
   top to get into the teacher section"). A top bar on every page: the way back, and the teacher's door on the right. */
header.top{position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:max(10px, env(safe-area-inset-top)) clamp(14px, 3vw, 28px) 10px;
  background:rgba(var(--ground-rgb),.86); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  box-shadow:0 1px 0 rgba(var(--ink-rgb),.08)}
header.top .back, .sched .back, .unit .back, .doc .back{position:static; top:auto; left:auto; box-shadow:none; background:none; padding:8px 12px 8px 6px}
header.top .back:hover{background:rgba(var(--ink-rgb),.06)}
a.tbtn{display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:999px; font-weight:700; font-size:15px; color:var(--navy);
  background:var(--quiet); white-space:nowrap; transition:background .15s ease, transform .1s ease}
a.tbtn svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
a.tbtn:hover{background:var(--quiet2)}
a.tbtn:active{transform:scale(.97)}
a.tbtn:focus-visible{outline:3px solid var(--focus); outline-offset:3px; border-radius:999px}
a.brand{display:flex; flex-direction:column; justify-content:center; min-height:44px; line-height:1.15; padding:2px 6px; border-radius:12px}
.brand .bm{font:400 22px/1.1 "DM Serif Display", Georgia, serif}
.brand .bs{font-weight:600; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
@media (max-width:560px){ .brand .bs{display:none} a.tbtn{padding:9px 13px; font-size:14px} a.tbtn span{display:none} }
.sched main, .unit main, .doc main{padding-top:clamp(22px, 4vh, 48px)}


/* ---- Nov 2026: the course switch, in the top bar of the home page and of each course page */
header.top .back, a.tbtn{min-height:44px}
a.tbtn span{margin-left:-8px; white-space:pre}
.seg{display:inline-flex; padding:2px; gap:2px; border-radius:13px; background:rgba(var(--ink-rgb),.075)}
.seg a, .seg button{display:inline-flex; align-items:center; justify-content:center; min-width:60px; min-height:44px; padding:0 16px; border:0; border-radius:11px;
  background:none; font:700 15px/1 "DM Sans", system-ui, sans-serif; letter-spacing:.03em; color:var(--muted); cursor:pointer;
  -webkit-tap-highlight-color:transparent; transition:background .15s ease, color .15s ease}
.seg a:hover, .seg button:hover{color:var(--navy)}
.seg [aria-pressed="true"], .seg [aria-current="page"]{background:var(--seg-on); color:var(--seg-on-ink); box-shadow:0 1px 2px rgba(var(--shade),.14), 0 3px 10px rgba(var(--shade),.08)}
.seg a:focus-visible, .seg button:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:11px}
header.top.bar, header.top.cockpit-top, header.top:has(> .seg){display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr)}
header.top .back{white-space:nowrap}
header.top > :first-child{justify-self:start}
header.top > .tbtn{justify-self:end; grid-column:3}
@media (max-width:560px){
  a.tbtn{padding:0 14px}
  .seg a, .seg button{min-width:52px; padding:0 12px}
  header.top{gap:8px; padding-left:12px; padding-right:12px}
}

/* ---- the home page: a dashboard (public/home.js fills it from the courses' schedule.json, site-data.js and the announcements) */
.dash main.board{display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; align-items:start; justify-content:stretch;
  width:100%; max-width:1120px; margin:0 auto; padding:16px 16px 40px}
.board section{min-width:0}
.board [hidden]{display:none !important}
.c-today, .card{background:var(--paper); border-radius:22px; padding:22px 20px; box-shadow:var(--lift)}
/* the serif carries ONE statement per screen (the hero, below); every card heading is DM Sans */
.board h2{font:700 19px/1.2 "DM Sans", system-ui, sans-serif; margin:0 0 14px; letter-spacing:-.01em}
.board h1{text-align:left}
.eyebrow{margin:0 0 6px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}

/* Today (public/home.js; the states are Dash.state() in public/dash.js) */
.c-today .hero{font:400 clamp(36px, 4.6vw, 54px)/1.06 "DM Serif Display", Georgia, serif; letter-spacing:-.012em; margin:0; text-wrap:balance}
.c-today .hero.long{font-size:clamp(30px, 3.6vw, 42px)}
.c-today .tophead{display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:30px; margin-bottom:10px}
.c-today .tophead .eyebrow{margin:0}
.c-today .tophead .ds{display:none}
@media (max-width:430px){ .c-today .tophead .dl{display:none} .c-today .tophead .ds{display:inline} }
.c-today .hero.date{font-size:clamp(42px, 5vw, 60px); line-height:1}
.status{margin:14px 0 0}
.status:first-child{margin-top:0}
.sline{display:flex; flex-wrap:wrap; align-items:center; gap:6px 0; margin:0; font-size:16.5px; font-weight:500; line-height:1.35}
.sline b{font-weight:700}
.sline .dot{padding:0 7px; color:var(--muted)}
.sline + .sline{margin-top:2px}
.wchip{display:inline-flex; align-items:center; gap:7px; min-height:30px; padding:0 11px; border-radius:999px; background:var(--chip-bg);
  font-weight:700; font-size:14px; color:var(--navy); white-space:nowrap}
.wchip i{width:9px; height:9px; border-radius:50%; background:var(--black); flex:none}
.wchip.teal i{background:var(--teal)}
.wchip.sm{min-height:22px; padding:0 8px 0 7px; gap:5px; font-size:13px; font-weight:600; background:rgba(var(--ink-rgb),.05)}
.wchip.sm i{width:7px; height:7px}
/* the bell now: a turquoise pill, the number in the serif when it is the hero */
.pill{display:inline-flex; align-items:center; gap:12px; margin:0 0 12px; padding:8px 20px 8px 16px; border-radius:22px; background:var(--turq); color:var(--on-turq)}
.pill .pn{font:700 30px/1 "DM Sans", system-ui, sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.02em}
.pill .pu{display:flex; flex-direction:column; line-height:1.15; font:600 15px/1.2 "DM Sans", system-ui, sans-serif}
.pill .pu b{font-weight:700; font-size:16px}
.pill.hero{padding:12px 26px 12px 20px; border-radius:28px; gap:14px}
.pill.hero .pn{font:400 72px/.9 "DM Serif Display", Georgia, serif; letter-spacing:-.02em}
.pill.hero .pu{font-size:17px}
.pill.hero .pu b{font-size:20px}
.qline{display:flex; align-items:center; gap:8px; margin:12px 0 0; padding:10px 14px; border-radius:12px; background:var(--live);
  font-weight:600; font-size:15.5px; line-height:1.3}
.qline svg{width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round}
.qline[hidden]{display:none}
.board .lessons{margin-top:6px}
.board .lesson{padding-top:18px; margin-top:18px; box-shadow:inset 0 1px 0 var(--line)}
.c-today .status:first-child + .lessons > .lesson:first-child, .c-today > #t-body > .lessons:first-child > .lesson:first-child{padding-top:4px; margin-top:0; box-shadow:none}
.lesson .lead{margin:0 0 6px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--tealInk)}
.lesson .idline{margin:0 0 4px; font-weight:700; font-size:16px; letter-spacing:.02em; color:var(--tealInk); font-variant-numeric:tabular-nums}
.board .lesson h2.title{font:700 clamp(20px, 2vw, 23px)/1.25 "DM Sans", system-ui, sans-serif; letter-spacing:-.01em; margin:0}
.lesson .id{color:var(--tealInk); font-variant-numeric:tabular-nums}
.lesson .sep{color:var(--muted)}
.lesson .sub{margin:8px 0 0; font-size:17px; font-weight:500; line-height:1.4}
.lesson .sub a{color:var(--tealInk); font-weight:700; text-decoration:underline; text-underline-offset:3px}
.lesson .gap{height:16px}
.lesson.message .hero + .gap + .lead{margin-top:4px}
/* three equal taps: Slides · Completed notes · Practice test (only those the day has) */
.taps{display:grid; grid-template-columns:repeat(var(--n, 3), minmax(0, 1fr)); gap:10px; margin-top:18px; max-width:520px}
.taps.n1{--n:1; max-width:200px} .taps.n2{--n:2; max-width:360px} .taps.n3{--n:3}
a.tap{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:7px; min-height:72px; padding:10px 6px; border-radius:16px;
  background:var(--navy); color:var(--white); font-weight:700; font-size:14.5px; line-height:1.15; text-align:center; transition:background .15s ease, transform .1s ease}
a.tap svg{width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
a.tap:hover{background:var(--navy2)}
a.tap:active{transform:scale(.97)}
a.tap:focus-visible{outline:3px solid var(--focus); outline-offset:3px; border-radius:16px}
/* the cockpit's chips (public/teacher/cockpit.js) */
.chips{display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 0}
.chip{display:inline-flex; align-items:center; gap:8px; min-height:32px; padding:0 12px; border-radius:999px; background:var(--quiet);
  font-weight:600; font-size:14.5px; color:var(--navy)}
.chip i{width:9px; height:9px; border-radius:50%; background:var(--black)}
.chip.teal i{background:var(--teal)}
.chip.now{background:var(--navy); color:var(--cream)}
.cockpit .c-today h1{line-height:1}
.board .lesson h2{font-size:clamp(25px, 2.4vw, 30px); line-height:1.15; margin:0}
.board .lesson h2 .code{display:block; margin-bottom:4px; font:700 14px/1.2 "DM Sans", system-ui, sans-serif; letter-spacing:.04em; color:var(--tealInk); font-variant-numeric:tabular-nums}
.acts{display:flex; flex-wrap:wrap; gap:10px; margin-top:16px}
/* a verb row under the taps: "Practice tonight → IXL C.4 · Integer addition rules" (the day's extras, from the cockpit) */
.verb{display:flex; align-items:center; gap:10px; min-height:48px; margin:12px 0 0; padding:11px 14px; border-radius:14px; background:var(--live);
  font-size:15.5px; line-height:1.35; color:var(--navy); max-width:520px}
.verb + .verb{margin-top:8px}
.verb .vx{flex:1; min-width:0}
.verb .vt{font-weight:600}
.verb b{font-weight:700}
.verb svg{width:17px; height:17px; flex:none; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.verb .va{display:inline-block; vertical-align:-3px; margin:0 6px; color:var(--tealInk)}
.verb .ve{stroke:var(--muted)}
a.verb:hover{background:rgba(64,224,208,.3)}
a.verb:focus-visible{outline:3px solid var(--focus); outline-offset:2px}
.plain{margin:16px 0 0; font-size:17px; line-height:1.5}
.plain a{color:var(--tealInk); text-decoration:underline; text-underline-offset:3px}

/* buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:0 20px; border-radius:13px;
  font:700 16px/1 "DM Sans", system-ui, sans-serif; color:var(--navy); background:var(--quiet); white-space:nowrap;
  transition:background .15s ease, transform .1s ease}
.btn svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none}
.btn.primary{background:var(--navy); color:var(--white)}
.btn.primary:hover{background:var(--navy2)}
.btn.ghost:hover, .btn:not(.primary):hover{background:var(--quiet2)}
.btn:active{transform:scale(.97)}
.btn:focus-visible{outline:3px solid var(--focus); outline-offset:3px; border-radius:13px}

/* the next test, as it ages (Dash.testView): Today / Tomorrow / in 3 days / in 2 weeks, the date beneath, a bar from 14 days out */
.c-tests .item + .item{margin-top:20px; padding-top:20px; box-shadow:inset 0 1px 0 var(--line)}
.c-tests h3{font:700 25px/1.15 "DM Sans", system-ui, sans-serif; letter-spacing:-.015em; margin:0}
.c-tests .tname{margin:4px 0 0; font-size:16px; color:var(--navy); font-weight:500}
.c-tests .when{display:flex; flex-direction:column; gap:2px; margin:14px 0 0}
.c-tests .away{font-weight:700; font-size:22px; letter-spacing:-.01em; color:var(--navy)}
.c-tests .abs{font-weight:600; font-size:14.5px; color:var(--muted)}
.c-tests .bar{height:4px; margin:12px 0 0; border-radius:4px; background:rgba(var(--ink-rgb),.09); overflow:hidden}
.c-tests .bar i{display:block; height:100%; border-radius:4px; background:var(--teal)}   /* teal, not turquoise: the bar has to reach 3:1 against the white card (turquoise is 1.6) */
.c-tests .acts{margin-top:16px; align-items:center; gap:6px 18px}
.c-tests a.quiet, .cfoot a.quiet, .c-fast a.quiet{display:inline-flex; align-items:center; min-height:44px; font-weight:700; font-size:15.5px; color:var(--tealInk); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--teal-line)}
.c-tests .was{margin:14px 0 0; font-size:16px; line-height:1.4}
.c-tests h3 + .was, .c-tests .eyebrow + .was{margin-top:0}
.c-tests .was .dot{color:var(--muted)}
.quarter .d-date{font-weight:700; font-size:17px; color:var(--tealInk)}

/* announcements */
.posts{list-style:none; margin:0; padding:0}
.posts li + li{margin-top:14px; padding-top:14px; box-shadow:inset 0 1px 0 var(--line)}
.posts .text{margin:0; font-size:17px; line-height:1.5; white-space:pre-line; overflow-wrap:anywhere}
.posts .meta{margin:6px 0 0; font-size:13px; font-weight:600; color:var(--muted)}
.posts .meta:empty{display:none}

/* retakes */
.facts{list-style:none; margin:0 0 18px; padding:0; font-size:16px; line-height:1.5}
.facts li{position:relative; padding-left:18px}
.facts li + li{margin-top:8px}
.facts li::before{content:""; position:absolute; left:2px; top:.62em; width:6px; height:6px; border-radius:50%; background:var(--teal)}

/* the quarter */
.quarter .big{display:flex; align-items:baseline; gap:10px; margin:0}
.quarter #q-left{font:700 52px/1 "DM Sans", system-ui, sans-serif; letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.quarter .lbl{font-weight:600; font-size:16px; color:var(--muted)}
.quarter .sub{margin:10px 0 0; font-size:16px; color:var(--navy)}
/* FAST Math (8 Nov 2026, Croix: "Yes obviously the 8th is math. That's the one I care about!"): the quarter's card, counting
   the school days to the FAST — the same type, nothing louder */
.c-fast .big{display:flex; align-items:baseline; gap:10px; margin:0}
.c-fast #f-left{font:700 52px/1 "DM Sans", system-ui, sans-serif; letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.c-fast #f-left.word{font-size:40px; letter-spacing:-.02em}
.c-fast .lbl{font-weight:600; font-size:16px; color:var(--muted)}
.c-fast .sub{margin:10px 0 0; font-size:16px; color:var(--navy)}
.c-fast .fprac{margin:4px 0 -8px}

/* Coming up (public/coming.js; 8 Nov 2026, Croix: "Can you also put things like the fast test on December 8, Wednesday off for
   Veterans day. Stuff that's relevant to them. And the class."): the date in a small left column (the week strip's), what it is
   with its course when it is one course's, the day or days under it, the countdown muted on the right (the Tests card's words) */
.cups{list-style:none; margin:0; padding:0}
.cu{display:grid; grid-template-columns:40px minmax(0, 1fr) auto; grid-template-areas:"leaf t t" "leaf s n" "leaf d d"; column-gap:14px; row-gap:2px; padding:12px 0}
.cu + .cu{box-shadow:inset 0 1px 0 var(--line)}
.cu:first-child{padding-top:0}
.leaf{grid-area:leaf; display:flex; flex-direction:column; align-items:flex-start; line-height:1.1; padding-top:4px}   /* the month on the title's baseline */
.leaf .lm{font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.leaf .ld{font-size:19px; font-weight:700; font-variant-numeric:tabular-nums}
.cu .ct{grid-area:t; margin:0; font-weight:700; font-size:16px; line-height:1.3; overflow-wrap:anywhere}
.cu .cs{grid-area:s; margin:0; font-weight:600; font-size:14.5px; line-height:1.35; color:var(--muted)}
.cu .cd{grid-area:d; margin:0; font-weight:600; font-size:14.5px; line-height:1.35; color:var(--muted); overflow-wrap:anywhere}
.cu .cn{grid-area:n; font-weight:600; font-size:14.5px; line-height:1.35; color:var(--muted); white-space:nowrap; text-align:right}
.cu .cn.on{color:var(--navy); font-weight:700}
.ctag{display:inline-flex; align-items:center; min-height:20px; padding:0 6px; margin-right:7px; border-radius:6px; background:var(--chip-bg);
  font-weight:700; font-size:12px; letter-spacing:.04em; line-height:1; vertical-align:1px; color:var(--navy)}
.cfoot{display:flex; flex-wrap:wrap; gap:0 18px; margin:6px 0 -10px}
.cfoot:empty{display:none}

/* the week: today filled turquoise-light and labelled, past days greyed in place, the week colour on every day */
.c-week .head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px}
.c-week .head h2{margin:0}
.c-week .meta{display:inline-flex; align-items:center; gap:10px}
.c-week .range{font-weight:600; font-size:15px; color:var(--muted); white-space:nowrap}
.wcourse{margin:18px 0 8px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}
.c-week .head + div > .wcourse:first-child{margin-top:4px}
.days{list-style:none; margin:0; padding:0; border-radius:14px; overflow:hidden; box-shadow:0 0 0 1px var(--line)}
.days .d + .d{box-shadow:inset 0 1px 0 var(--line)}
.days .cell{display:grid; grid-template-columns:40px minmax(0, 1fr) 16px; align-items:center; gap:12px; min-height:58px; padding:10px 14px}
.days div.cell{grid-template-columns:40px minmax(0, 1fr)}
.days a.cell:hover{background:rgba(var(--ink-rgb),.04)}
.days .when{display:flex; flex-direction:column; align-items:flex-start; line-height:1.1}
.days .when b{font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.days .when span{font-size:19px; font-weight:700; font-variant-numeric:tabular-nums}
.days .what{display:flex; flex-direction:column; gap:4px; min-width:0}
.days .tags{display:flex; flex-wrap:wrap; align-items:center; gap:6px}
.days .wt{font-weight:600; font-size:15.5px; line-height:1.3}
.days .wt .id{color:var(--tealInk); font-variant-numeric:tabular-nums}
.days .wt .sep{color:var(--muted)}
.tlabel{display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:7px; font-weight:700; font-size:13px; letter-spacing:.02em}
.tlabel.now{background:var(--navy); color:var(--cream)}
.tlabel.test{background:var(--quiet2); color:var(--navy)}
.days .chev{width:16px; height:16px}
.days .k-test .wt{font-weight:700}
.days .k-off .wt{color:var(--muted); font-weight:500}
.days .is-today{background:var(--today-bg); color:var(--today-ink); --navy:var(--today-ink); --muted:var(--today-muted); --tealInk:var(--today-accent); --black:var(--today-dot); --teal:var(--today-teal); --cream:var(--today-cream); --ink-rgb:var(--today-ink-rgb)}
.days .is-today .when b{color:var(--navy)}
.days .is-today a.cell:hover{background:rgba(64,224,208,.12)}
.days .is-past .when, .days .is-past .wt, .days .is-past .wt .id, .days .is-past .tags{opacity:.5}

/* links */
.linkgrid{display:flex; flex-direction:column; border-radius:14px; overflow:hidden; box-shadow:0 0 0 1px var(--line)}
.linkgrid a{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:0 16px; font-weight:600; font-size:16px}
.linkgrid a + a{box-shadow:inset 0 1px 0 var(--line)}
.linkgrid a:hover{background:rgba(var(--ink-rgb),.04)}
.linkgrid .lt b{font-weight:700; margin-right:6px}
.linkgrid .chev{width:18px; height:18px}
.linkgrid.out{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; box-shadow:none; border-radius:0; overflow:visible}
.linkgrid.out a{min-height:48px; white-space:nowrap; border-radius:12px; background:var(--quiet); box-shadow:none}
.linkgrid.out a:hover{background:var(--quiet2)}
.linkgrid.out a.wide{grid-column:1 / -1; background:var(--navy); color:var(--white); font-weight:700}
.linkgrid.out a.wide .ext{stroke:currentColor}
.linkgrid.out a.wide:hover{background:var(--navy2)}
.ext{width:16px; height:16px; fill:none; stroke:var(--muted); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; flex:none}
.links .also{margin:14px 0 0; font-size:15px}
.links .also a{display:inline-flex; align-items:center; min-height:44px; color:var(--muted); font-weight:600; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(var(--ink-rgb),.25)}
.links .also a:hover{color:var(--navy)}
.linkgrid a:focus-visible, .links .also a:focus-visible{outline:3px solid var(--focus); outline-offset:-3px; border-radius:12px}

/* about the class: folded */
.ref details{box-shadow:inset 0 1px 0 var(--line)}
.ref summary{list-style:none; display:flex; align-items:center; justify-content:space-between; min-height:52px; cursor:pointer; font-weight:600; font-size:16.5px}
.ref summary::-webkit-details-marker{display:none}
.ref summary:hover, .qa summary:hover{background:var(--quiet); box-shadow:-10px 0 0 var(--quiet), 10px 0 0 var(--quiet)}   /* the reference rows: sand on hover, past the text's edge */
.ref summary .chev{transition:transform .18s ease}
.ref details[open] summary .chev{transform:rotate(90deg)}
.ref summary:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:8px}
.ref details > p{margin:0 0 16px; font-size:16px; line-height:1.55; color:var(--navy)}
.ref details a{color:var(--tealInk); font-weight:600; overflow-wrap:anywhere}
.weights{margin:0 0 16px}
.weights div{display:flex; justify-content:space-between; padding:6px 0; font-size:16px}
.weights dt{color:var(--navy)}
.weights dd{margin:0; font-weight:700; font-variant-numeric:tabular-nums}

footer.foot{display:flex; justify-content:center; gap:12px; flex-wrap:wrap; padding:22px 16px max(22px, env(safe-area-inset-bottom));
  font-size:13.5px; color:var(--muted); font-weight:600; text-align:center}
/* the appearance switch (public/theme.js): System · Light · Dark, in every footer, quiet — the words, a 44px target each */
.appear{display:flex; align-items:center; justify-content:center; gap:10px; flex-basis:100%; margin:6px 0 0}
.appear[hidden]{display:none}
.appear .al{font-weight:600; font-size:13px; color:var(--muted)}
.themes{display:inline-flex; padding:2px; gap:2px; border-radius:12px; background:rgba(var(--ink-rgb),.06)}
.themes button{min-width:62px; min-height:44px; padding:0 12px; border:0; border-radius:10px; background:none; cursor:pointer;
  font:600 13.5px/1 "DM Sans", system-ui, sans-serif; color:var(--muted); -webkit-tap-highlight-color:transparent; transition:background .15s ease, color .15s ease}
.themes button:hover{color:var(--navy)}
.themes button[aria-checked="true"]{background:var(--quiet-on); color:var(--navy); box-shadow:0 1px 2px rgba(var(--shade),.14), 0 3px 10px rgba(var(--shade),.08)}
.themes button:focus-visible{outline:3px solid var(--focus); outline-offset:2px}
.appear.in-card{justify-content:space-between; margin:-4px 0 18px; padding-bottom:16px; box-shadow:inset 0 -1px 0 var(--line)}
.appear.in-card .al{font-size:14.5px}

/* the phone: the top bar scrolls away (two rows), the switch takes its own row */
@media (max-width:560px){
  .home header.top{position:static; grid-template-columns:minmax(0, 1fr) auto; row-gap:10px}
  .home header.top .seg{grid-row:2; grid-column:1 / -1; display:flex}
  .home header.top .seg button{flex:1}
  .home header.top > .tbtn{grid-column:2; grid-row:1}
}
/* the desktop and the panel: two columns of cards — today, the week, the announcements, the links; beside them the next
   test, the quarter, retakes, the class. On the phone the columns dissolve into one list in the order a student needs. */
.board .col{display:contents}
.c-today{order:1} .c-tests{order:2} .news{order:3} .retake{order:4} .quarter{order:5} .c-fast{order:5} .coming{order:6} .c-week{order:7} .links{order:8} .ref{order:9}
@media (min-width:900px){
  .dash main.board{grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); gap:20px; padding:28px 28px 48px}
  .board .col{display:flex; flex-direction:column; gap:20px; min-width:0}
  .c-today, .card{padding:28px 28px}
  .linkgrid.out{grid-template-columns:repeat(auto-fit, minmax(150px, 1fr))}
  .board .lessons.two{display:grid; grid-template-columns:1fr 1fr; gap:0 28px}
  .days{display:grid; grid-template-columns:repeat(5, minmax(0, 1fr))}
  .days .d + .d{box-shadow:inset 1px 0 0 var(--line)}
  .days .cell, .days div.cell{display:flex; flex-direction:column; align-items:flex-start; gap:8px; height:100%; min-height:132px; padding:14px 14px}
  .days .when{flex-direction:row; align-items:baseline; gap:6px}
  .days .chev{display:none}
  .days .what{gap:8px}
  .days .wt{font-size:15px}
}

/* ---- the teacher's announcements editor (public/teacher/announce.js) */
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
.ann{width:100%}
.ann h2{margin:0 0 14px}
.ann textarea{display:block; width:100%; min-height:96px; resize:vertical; padding:12px 14px; border-radius:12px; border:1.5px solid var(--field-edge);
  background:var(--field); font:500 16px/1.5 "DM Sans", system-ui, sans-serif; color:var(--navy)}
.ann textarea:focus, .ann input[type=date]:focus{outline:3px solid rgba(64,224,208,.45); outline-offset:1px; border-color:var(--teal)}
.arow{display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px; margin-top:10px}
.arow .grow{flex:1}
.ann .field{display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; color:var(--muted)}
.ann input[type=date]{min-height:44px; padding:0 10px; border-radius:10px; border:1.5px solid var(--field-edge); background:var(--field); font:600 15px "DM Sans", system-ui, sans-serif; color:var(--navy)}
.ann .tog{display:inline-flex; align-items:center; gap:8px; min-height:44px; font-weight:600; font-size:15px; cursor:pointer}
.ann .tog input{width:20px; height:20px; accent-color:var(--navy)}
.ann .count{font-size:13px; font-weight:600; color:var(--muted); font-variant-numeric:tabular-nums}
.ann .count.bad, .ann .msg.bad{color:var(--coralInk)}
.ann .msg{margin:8px 0 0; min-height:1.2em; font-size:14px; font-weight:600; color:var(--tealInk)}
.ann .msg:empty{display:none}
.alist{list-style:none; margin:16px 0 0; padding:0; border-radius:14px; box-shadow:0 0 0 1px var(--line)}
.alist li{display:flex; gap:14px; align-items:flex-start; padding:14px 16px}
.alist li + li{box-shadow:inset 0 1px 0 var(--line)}
.alist li.editing{display:block}
.alist li.none{color:var(--muted); font-size:15px}
.alist .abody{flex:1; min-width:0}
.alist .text{margin:0; font-size:16px; line-height:1.45; white-space:pre-line; overflow-wrap:anywhere}
.alist .meta{margin:4px 0 0; font-size:13px; font-weight:600; color:var(--muted)}
.alist li.expired .text{color:var(--muted)}
.aacts{display:flex; gap:6px; flex:none}
button.btn{border:0; cursor:pointer}
.btn.sm{min-height:44px; padding:0 14px; font-size:14px; border-radius:11px}
.btn.danger{color:var(--coralInk)}
.ann.busy{opacity:.6; pointer-events:none}
@media (max-width:620px){ .alist li{flex-direction:column} }

/* ---- the teacher's page, /teacher/: the cockpit (tools/build.mjs, public/teacher/cockpit.js) — the home page's system, denser */
header.cockpit-top .ttl{justify-self:center; font:700 17px/1 "DM Sans", system-ui, sans-serif; letter-spacing:-.005em}
.cockpit .ann{max-width:none; order:2}
.cockpit .tools{order:3} .cockpit .clinks{order:4} .cockpit .cals{order:5} .cockpit .units{order:6}
.cockpit .clinks .linkgrid.out{margin-top:0}   /* the links Croix opens every day (7 Nov 2026), two to a row like the home page's */
@media (min-width:900px){ .board .col.c{grid-column:1 / -1} }
.cockpit .c-today h1{font-size:clamp(36px, 4vw, 48px)}
.cockpit .card h2{font-size:23px}
.toolgrid{display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px 8px}
a.tool{display:flex; flex-direction:column; align-items:center; gap:8px; padding:6px 2px; border-radius:16px; min-height:44px}
a.tool .ic{width:60px; border-radius:15px; box-shadow:0 1px 1px rgba(var(--shade),.10), 0 4px 10px rgba(var(--shade),.14)}
a.tool .nm{font-weight:600; font-size:14px; text-align:center}
a.tool .ts{min-height:1.3em; margin-top:-5px; font-weight:600; font-size:13px; color:var(--muted); text-align:center; line-height:1.3}
.tleft{margin:16px 0 0; padding:12px 14px; border-radius:14px; background:var(--quiet); font-size:15px; line-height:1.45}   /* Tally's classes still in this browser (cockpit.js) */
.tleft a{color:var(--tealInk); font-weight:700; text-decoration:underline; text-underline-offset:3px}
.i-proj{background:linear-gradient(160deg, #2A5378 0%, #17324D 100%)}
a.tool:hover .ic{transform:translateY(-2px)}
a.tool:active .ic{transform:scale(.95)}
a.tool:focus-visible{outline:3px solid var(--focus); outline-offset:2px}
.i-game{background:linear-gradient(160deg, #2B4768 0%, #182A40 100%)}
.i-nib{background:linear-gradient(160deg, #FBF6EA 0%, #E9DDC2 100%)}   /* Nib's own cream (8 Nov 2026) */
.i-nib::after{box-shadow:inset 0 0 0 1px rgba(23,50,77,.10)}
.i-rep{background:linear-gradient(160deg, #2A4A70 0%, #16293F 100%)}
.cals .lt{display:flex; flex-direction:column; gap:2px; padding:8px 0}
.cals .nt{font-size:13.5px; font-weight:600; color:var(--muted)}
.cals .nt:empty{display:none}
.cals .nt .d-date{color:var(--tealInk)}
.units .head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px}
.units .head h2{margin:0}
.units .more{display:inline-flex; align-items:center; min-height:44px; font-weight:700; font-size:14.5px; color:var(--tealInk)}
.units .tbl{position:relative; overflow-x:auto; border-radius:14px; box-shadow:0 0 0 1px var(--line)}
.units table{width:100%; border-collapse:collapse; font-size:14.5px}
.units th, .units td{padding:4px 10px; text-align:left; vertical-align:middle; white-space:nowrap}
.units thead th{font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); background:rgba(var(--ink-rgb),.035)}
.units tbody tr + tr th, .units tbody tr + tr td{box-shadow:inset 0 1px 0 var(--line)}
.units tbody th{font-weight:700}
.units td.un{white-space:normal; color:var(--navy); min-width:160px}
.units td.ud{font-variant-numeric:tabular-nums; color:var(--muted)}
.units td.ck{color:var(--muted); text-align:center}
.units th.ck{text-align:center}
.units tr.no th, .units tr.no td.un{color:var(--muted); font-weight:500}
.st{display:inline-block; padding:3px 9px; border-radius:999px; font-size:13px; font-weight:700}
.st.on{background:var(--live); color:var(--tealInk)}
.st.held{background:var(--sand); color:var(--navy)}   /* the one warning: sand, never coral */
.st.no{background:rgba(var(--ink-rgb),.06); color:var(--muted)}
.units td.ul{text-align:right}
a.chip-link{display:inline-flex; align-items:center; min-height:44px; padding:0 11px; margin-left:4px; border-radius:9px; background:var(--quiet);
  font-weight:700; font-size:13px; color:var(--navy)}
a.chip-link:hover{background:var(--quiet2)}
/* a unit's Tests A·B and Approve (8 Nov 2026): under 1100px the row has no room for both beside Teacher and Student — on a
   phone they would wrap, and the table would scroll — so Approve steps back; the teacher copy's bar has it too */
@media (max-width:1099px){ .units a.chip-link.ap{display:none} }
@media (max-width:620px){
  /* a phone: each unit is a small card — Unit · test date · state; its name; its links */
  .units .ck, .units thead{display:none}
  .units .tbl{overflow:visible}
  .units table, .units tbody{display:block}
  .units tr{display:grid; grid-template-columns:auto minmax(0, 1fr) auto; gap:4px 10px; align-items:center; padding:12px 14px}
  .units tbody tr + tr{box-shadow:inset 0 1px 0 var(--line)}
  .units th, .units td, .units tbody tr + tr th, .units tbody tr + tr td{padding:0; box-shadow:none; white-space:normal}
  .units tbody th{grid-column:1; grid-row:1}
  .units td.ud{grid-column:2; grid-row:1; font-size:13px; min-width:0}
  .units td.s{grid-column:3; grid-row:1}
  .units td.un{grid-column:1 / -1; grid-row:2; min-width:0; font-size:14px; line-height:1.35}
  .units td.un:empty{display:none}
  .units td.ul{grid-column:1 / -1; grid-row:3; text-align:left; display:flex; flex-wrap:wrap; gap:8px; padding-top:4px}
  .units td.ul:empty{display:none}
  .units a.chip-link{margin:0}
}

/* ---- the cockpit's day-extras editor (public/teacher/extras.js): under each course's lesson, its notes and tonight's practice */
.xeds{display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; margin-top:22px}
@media (min-width:900px){ .xeds{grid-template-columns:1fr 1fr; gap:0 28px} }
.xed{padding:16px; border-radius:16px; background:rgba(var(--ink-rgb),.035); box-shadow:inset 0 0 0 1px var(--line)}
.xed.busy{opacity:.6; pointer-events:none}
.xhead{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px}
.xhead h3{margin:0; font-weight:700; font-size:16px}
.xed .field{display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; color:var(--muted)}
.xed input{min-height:44px; padding:0 12px; border-radius:10px; border:1.5px solid var(--field-edge); background:var(--field); font:500 15px "DM Sans", system-ui, sans-serif; color:var(--navy); width:100%; min-width:0}
.xed input[type=date]{width:auto; font-weight:600}
.xed input:focus{outline:3px solid rgba(64,224,208,.45); outline-offset:1px; border-color:var(--teal)}
.xlesson{margin:8px 0 12px; font-weight:600; font-size:15px; color:var(--navy)}
.xf{display:flex; flex-direction:column; gap:5px; margin-top:10px}
.xf .xl{font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.xrow{display:grid; grid-template-columns:minmax(0, 1fr); gap:0 10px}
.xprev{margin-top:14px; padding-top:12px; box-shadow:inset 0 1px 0 var(--line)}
.xcap{margin:0 0 8px; font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.xshow{display:flex; flex-direction:column; align-items:flex-start; gap:0}
.xshow a.tap{width:130px}
.xnone, .xstamp{margin:0; font-size:14px; color:var(--muted)}
.xstamp{margin-top:8px}
.xed .msg{margin:8px 0 0; font-size:14px; font-weight:600; color:var(--tealInk)}
.xed .msg:empty{display:none}
.xed .msg.bad{color:var(--coralInk)}

/* ---- the cockpit's Key dates (public/teacher/keydates.js → /teacher/api/key-dates; Coming up shows them): the dates still to
   come, each a row in Coming up's own type with Edit and Delete, and the one form only when it is asked for — small on purpose
   (8 Nov 2026: Croix called an earlier cockpit editor "very messy") */
.cockpit .kd{order:5}
.kdl{list-style:none; margin:0; padding:0}
.kdl > li + li{box-shadow:inset 0 1px 0 var(--line)}
.kdl > li.none{padding:0 0 2px; color:var(--muted); font-size:15px}
.kdr{display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; padding:10px 0}
.kdr:first-child{padding-top:0}
.kdr .leaf{flex:none; width:40px; align-self:flex-start}
.kdr .kdb{flex:1 1 140px; min-width:0}
.kdr .ct{margin:0; font-weight:700; font-size:16px; line-height:1.3; overflow-wrap:anywhere}
.kdr .cs{margin:2px 0 0; font-weight:600; font-size:14px; line-height:1.35; color:var(--muted); overflow-wrap:anywhere}
.kacts{display:flex; align-items:center; gap:6px; margin-left:auto}
.kacts[hidden], .kdr.editing .kacts{display:none}
.kq{font-weight:700; font-size:14px; margin-right:2px}
.kdr.editing .ct{color:var(--tealInk)}
.kdr.busy, .kdf.busy{opacity:.6; pointer-events:none}
.kd .msg{margin:10px 0 0; font-size:14px; font-weight:600; color:var(--tealInk)}
.kd .msg:empty{display:none}
.kd .msg.bad{color:var(--coralInk)}
.kdadd{margin-top:14px}
.kdadd[hidden], .kdf[hidden]{display:none}
.kdf{margin-top:14px; padding:14px; border-radius:16px; background:rgba(var(--ink-rgb),.035); box-shadow:inset 0 0 0 1px var(--line)}
.kdd{display:grid; grid-template-columns:repeat(auto-fit, minmax(140px, 1fr)); gap:10px}
.kf{display:flex; flex-direction:column; gap:5px; margin-top:10px; min-width:0}
.kdd .kf{margin-top:0}
.kf .xl{font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.kf .opt{margin-left:4px; font-weight:600; letter-spacing:0; text-transform:none}
.kd input{width:100%; min-width:0; min-height:44px; padding:0 12px; border-radius:10px; border:1.5px solid var(--field-edge); background:var(--field);
  font:500 15px "DM Sans", system-ui, sans-serif; color:var(--navy)}
.kd input[type=date]{font-weight:600}
.kd input:focus{outline:3px solid rgba(64,224,208,.45); outline-offset:1px; border-color:var(--teal)}
.kd .kdc{align-self:flex-start; margin:0}
.kdf .msg{margin:10px 0 0}
.kdf .arow{margin-top:12px}

/* ---- the cockpit's Test card (public/teacher/testcard.js → /teacher/api/test/…, exam.js; 16 Nov 2026): each unit's test with Open
   or Close and, while open, started and finished; then the settings as closed rows (the Parents card's .flist) and the day's
   results. Coral stays the alarm's: nothing here is one */
.cockpit .xm{order:2}
.xm .head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px}
.xm .head h2{margin:0}
.xml{list-style:none; margin:0; padding:0}
.xml > li + li{box-shadow:inset 0 1px 0 var(--line)}
.xmmorer{padding:4px 0 0}
.xmmoreb{display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:0; border:0; background:none; color:var(--muted); font:inherit; font-size:15px; font-weight:600; text-align:left; cursor:pointer}
.xmmoreb .ft{flex:1}
.xmmoreb .xmmoren{font-variant-numeric:tabular-nums}
.xmmoreb .chev{transition:transform .18s ease}
.xmmoreb[aria-expanded="true"] .chev{transform:rotate(90deg)}
.xmmoreb:focus-visible{outline:2px solid var(--accent, currentColor); outline-offset:2px; border-radius:6px}
@media (prefers-reduced-motion: reduce){.xmmoreb .chev{transition:none}}
.xml > li.none{padding:0 0 2px; color:var(--muted); font-size:15px}
.xmr{display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; column-gap:14px; padding:10px 0}
.xmr:first-child{padding-top:0}
.xmr > .ct{grid-column:1; grid-row:1; margin:0; font-weight:700; font-size:16px; line-height:1.3}
.xmr > .kacts{grid-column:2; grid-row:1; margin:0}
.xmr > .kconf{grid-column:1 / -1; grid-row:2; justify-content:flex-end; margin-top:6px}
.xmd{grid-column:1 / -1; min-width:0}
/* a unit's lessons (16 Nov 2026): one quiet disclosure under the unit; each lesson its name and Open; today's first and marked */
.xmles{grid-column:1 / -1; min-width:0; margin-top:2px}
.xmlesb{display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:0; border:0; background:none; color:var(--muted); font:inherit; font-size:14px; font-weight:600; text-align:left; cursor:pointer}
.xmlesb .ft{flex:1}
.xmlesb .xmmoren{font-variant-numeric:tabular-nums}
.xmlesb .chev{width:18px; height:18px; transition:transform .18s ease}
.xmlesb[aria-expanded="true"] .chev{transform:rotate(90deg)}
.xmlesb:focus-visible{outline:2px solid currentColor; outline-offset:2px; border-radius:6px}
.xmlesno{margin:0 0 4px !important; white-space:normal !important}
.xmlesl{list-style:none; margin:0 0 2px; padding:0 0 0 12px; border-left:2px solid var(--line)}
.xmlr{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:4px 0}
.xmln{display:grid; grid-template-columns:4.8em minmax(0, 1fr); column-gap:8px; align-items:baseline; margin:0; min-width:0; font-size:15px; line-height:1.35; color:var(--navy)}
.xmlc{font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap}
.xmlt{color:var(--muted); font-weight:500}
.xmln .xmtoday{grid-column:2; justify-self:start; margin:3px 0 0}
.xmtoday{display:inline-block; margin-left:8px; padding:1px 8px; border-radius:999px; background:var(--live); color:var(--tealInk); font-size:12px; font-weight:700; letter-spacing:.02em; vertical-align:1px}
.xmlr .btn{flex:none}
@media (prefers-reduced-motion: reduce){.xmlesb .chev{transition:none}}
.xmr .cs{margin:2px 0 0; font-weight:600; font-size:14px; line-height:1.35; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap}
.xmr .cs.xml1{margin:0}
.xmr.on .ct, .xmr.busy .cs{color:var(--tealInk)}
.xmr.on .xml1, .xmr.on .xml2{color:var(--navy)}
.xmr .kconf[hidden], .xmr .kacts[hidden]{display:none}
.xmr .btn:disabled{opacity:.45; cursor:default}
.xm .msg{margin:10px 0 0; font-size:14px; font-weight:600; color:var(--tealInk); transition:opacity .6s ease}
.xm .msg.fade{opacity:0}
@media (prefers-reduced-motion:reduce){ .xm .msg{transition:none} }
.xm .msg:empty{display:none}
.xm .msg.bad{color:var(--coralInk)}
.xmset{margin-top:16px}
.xmset .fq .xmv:empty{display:none}
.xmset .fq .xmv{white-space:nowrap}
.xmset .fq{gap:8px}
.xmset .fq .ft{overflow-wrap:normal; word-break:normal; hyphens:none; min-width:min-content}   /* a title breaks between words, never in one */
@media (min-width:1100px), (max-width:620px){ .xmset .fq .ft{white-space:nowrap} }   /* his laptop and a phone: one line (the card is narrowest on a 1024 tablet) */
/* the Parents card's rows turn into a numbered grid on a phone; these rows have no number: they stay a line, title then chip */
@media (max-width:620px){ .xmset .fq{display:flex} .xmset .fq .chev{display:block} }
/* the start code's row: its small label above the code and the time left, New code at the right (under it on a phone) */
.xmpg{display:inline-grid; grid-template-columns:auto auto; align-items:baseline; column-gap:10px; row-gap:2px; white-space:nowrap}
.xmpg .xl, .xmpg .xmnone{grid-column:1 / -1}
.xmset .fq .xmv{background:rgba(var(--ink-rgb),.07); color:var(--muted)}
.xmset .fq .xmv.on{background:var(--live); color:var(--tealInk)}
.xmseg{display:inline-flex; flex-wrap:wrap; margin:4px 0 0}
.xmn{display:inline-flex; align-items:center; gap:8px; margin:4px 0 0 10px; font-weight:600; font-size:15px; color:var(--muted); vertical-align:top}
.xmn[hidden]{display:none}
.xm input[type=number], .xm input[type=text], .xm input[type=url], .xm input[type=date], .xm textarea{min-height:44px; padding:0 12px; border-radius:10px; border:1.5px solid var(--field-edge); background:var(--field);
  font:600 15px "DM Sans", system-ui, sans-serif; color:var(--navy); min-width:0}
.xm input[type=number]{width:76px}
.xm input:focus, .xm textarea:focus{outline:3px solid rgba(64,224,208,.45); outline-offset:1px; border-color:var(--teal)}
.xmf{display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px; margin-top:4px}
.xmf input, .xmf textarea{flex:1 1 240px}
/* the Google Form's row: the box (and Try it) and the numbered steps, each pasted text a code chip with Copy (16 Nov 2026) */
.xmfnow{margin:0}
.xmferr{margin:6px 0 0; color:var(--coralInk); font-weight:600; font-size:14px; line-height:1.4}
.xmferr:empty{display:none}
.xmtry{display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:10px 0 0; color:var(--muted); font-size:14px; line-height:1.4}
.xmtry[hidden]{display:none}
.xmsteps{margin-top:12px}
.xmsteps > summary{display:flex; align-items:center; min-height:44px; cursor:pointer; list-style:none; font-weight:700; font-size:15px; color:var(--navy)}
.xmsteps > summary::-webkit-details-marker{display:none}
.xmsteps > summary::after{content:""; width:8px; height:8px; margin-left:10px; border:solid rgba(var(--ink-rgb),.4); border-width:0 2.2px 2.2px 0; transform:rotate(-45deg); transition:transform .18s ease}
.xmsteps[open] > summary::after{transform:rotate(45deg) translate(-2px,-2px)}
.xmsteps > summary:focus-visible{outline:2px solid currentColor; outline-offset:2px; border-radius:6px}
.xmstep{margin:4px 0 0; padding:0 0 0 1.5em; font-size:15px; line-height:1.55; color:var(--navy)}
.xmstep > li{padding:6px 0 8px}
.xmstep > li + li{border-top:1px solid var(--line)}
.xmstep > li::marker{font-weight:700; color:var(--muted)}
.xmstep b{font-weight:700}
.xmstep p{margin:0}
.xmstep p + p{margin-top:6px}
.xmstep > li > .btn{margin:8px 0 0}
.xmstep #xm-fnow{margin-top:8px}
.xmcp{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:8px 0 0}
.xmcp code{font:600 15px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; padding:9px 11px; overflow-wrap:anywhere; border-radius:8px; background:var(--field); box-shadow:inset 0 0 0 1px var(--field-edge); color:var(--navy); user-select:all; -webkit-user-select:all}
.xmcp .xmcopy{min-width:64px}
.xmok{font-size:13px; font-weight:700; color:var(--tealInk)}
.xmok:empty{display:none}
@media (prefers-reduced-motion: reduce){.xmsteps > summary::after{transition:none}}
.xmf textarea{padding:10px 12px; resize:vertical; font:500 14px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break:break-all}
.xmtrial{margin-top:14px; padding:14px 16px; border-radius:16px; background:var(--live)}
.xmtrial[hidden]{display:none}
.xmtrial .xl{margin:0; font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.xmcode{margin:6px 0 0; font:700 30px/1.15 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing:.04em; color:var(--navy)}
.xmwords{margin:6px 0 0; font-weight:700; font-size:19px; color:var(--tealInk)}
.xmtrial .arow{margin-top:12px}
.xmday{margin-top:4px}
.xmday .field{display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; color:var(--muted)}
.xmres{list-style:none; margin:12px 0 0; padding:0; border-radius:14px; box-shadow:0 0 0 1px var(--line)}
.xmres > li{display:flex; align-items:center; justify-content:space-between; gap:4px 14px; padding:10px 14px}
.xmres > li + li{box-shadow:inset 0 1px 0 var(--line)}
.xmres > li.none{color:var(--muted); font-size:15px}
.xmra, .xmrb{min-width:0}
.xmrb{text-align:right}
.xmres p{margin:0}
.xmres .xmc{font:700 15px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing:.03em}
.xmres .xmsc{font-weight:700; font-size:16px; line-height:1.3; font-variant-numeric:tabular-nums}
.xmres .cs{margin-top:2px; font-weight:600; font-size:13.5px; color:var(--muted); font-variant-numeric:tabular-nums}
.xmuntil{display:inline-flex; align-items:center; min-height:44px; padding:0; border:0; background:none; font:inherit; color:inherit; cursor:pointer;
  text-decoration:underline; text-decoration-style:dotted; text-underline-offset:4px; text-decoration-color:var(--teal-line)}
.xmuntil:hover{text-decoration-style:solid}
.xmuntil:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:6px}
.xmtime{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:4px 0}
.xmtime input[type=time]{min-height:44px; padding:0 10px; border-radius:10px; border:1.5px solid var(--field-edge); background:var(--field); font:600 15px "DM Sans", system-ui, sans-serif; color:var(--navy)}
.xmpin, .xmmore{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; margin:8px 0 0; font-weight:600; font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums}
.xmpin .xl{font-weight:700; font-size:12px; letter-spacing:.08em; text-transform:uppercase}
.xmpc{font:700 22px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing:.12em; color:var(--navy)}
.xmleft, .xmnone{white-space:nowrap}
@media (max-width:620px){ .xmpin{flex-direction:column; align-items:flex-start} }
.xmpend{margin:10px 0 0; font-weight:600; font-size:14px; color:var(--muted)}
.xmpend[hidden]{display:none}
.xmframe{position:absolute; left:-10000px; top:0; width:1024px; height:768px; border:0; visibility:hidden}

/* ---- the audience strip (Students · Parents · Teacher sign-in), under the top bar of the home page and /parents/ */
nav.aud{display:flex; justify-content:center; gap:4px; padding:2px 12px; border-bottom:1px solid var(--line); background:rgba(var(--ground-rgb),.6)}
nav.aud a{display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 14px; border-radius:999px; font-weight:600; font-size:15px; color:var(--muted)}
nav.aud a svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
nav.aud a:hover{color:var(--navy); background:rgba(var(--ink-rgb),.05)}
nav.aud a[aria-current]{color:var(--navy); font-weight:700; box-shadow:inset 0 -2px 0 var(--navy); border-radius:0}   /* "page", or "true" on a page under it (/videos/) */
nav.aud a:focus-visible{outline:3px solid var(--focus); outline-offset:-3px; border-radius:10px}
header.top.plain-bar{display:flex}
@media (max-width:560px){ .home header.top{grid-template-columns:auto minmax(0, 1fr)} .home header.top .seg{grid-row:1; grid-column:2; justify-self:end} .home header.top .seg button{flex:none} nav.aud a{padding:0 10px; font-size:14.5px} }
/* the teacher's door in the corner (8 Nov 2026, Croix: "Can you move the teacher sign in to the corner or bottom. Something other
   than center middle top where it's at"): the lock and "Teacher" at the top right of the bar; on a phone the lock alone, 44 px */
a.tbtn.tcorner span{margin-left:0}
header.top.plain-bar{justify-content:space-between}
@media (max-width:560px){
  a.tbtn.tcorner{width:44px; padding:0; justify-content:center}
  .home header.top{grid-template-columns:auto minmax(0, 1fr) auto}
  .home header.top > .tbtn{grid-column:3; grid-row:1}
}
/* the retakes card inside the test card, the week after a test */
.c-tests .retake{margin-top:16px; padding:16px 16px 18px; border-radius:16px; background:var(--ref)}
.c-tests .retake h3{font:700 17px/1.2 "DM Sans", system-ui, sans-serif; margin:0 0 10px}
.c-tests .retake .facts{margin-bottom:14px; font-size:15.5px}
/* the retakes (8 Nov 2026, Tally's rule): who may retake, the note, then what to do as numbered steps */
.retake .rwho, .pgr .rwho{margin:0 0 8px; font-size:15.5px; line-height:1.45; font-weight:600}
.retake .rnote, .pgr .rnote{margin:0 0 12px; font-size:15px; line-height:1.45; color:var(--muted)}
.rsteps li{font-size:15.5px}
.c-tests .retake .rsteps li{padding-bottom:10px}
.c-tests .retake .rsteps li:last-child{padding-bottom:0}
.retake .rbtn, .pgr .rbtn{margin-top:14px}

/* ---- /parents/ (tools/build.mjs from tools/parents.json): the parent's own questions, one open at a time to begin */
.parents .p-hero .hero, .resources .p-hero .hero, .videos .p-hero .hero{font-size:clamp(40px, 5vw, 60px)}
.faq{padding-top:6px; padding-bottom:6px}
.faq > h2{margin:16px 0 4px}
.qa + .qa{box-shadow:inset 0 1px 0 var(--line)}
.qa summary{list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; padding:12px 0; cursor:pointer}
.qa summary::-webkit-details-marker{display:none}
.qa summary h2, .qa summary h3{margin:0; font:700 18px/1.3 "DM Sans", system-ui, sans-serif}
.qa summary .chev{transition:transform .18s ease}
.qa[open] summary .chev{transform:rotate(90deg)}
.qa summary:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:8px}
.qa .ans{padding:0 0 18px; font-size:16.5px; line-height:1.55}
.qa .ans p{margin:0 0 12px}
.qa .ans p:last-child{margin-bottom:0}
.qa .ans a, .help a{color:var(--tealInk); font-weight:600; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere}
.qa .ans .facts{margin-bottom:0}
.qa .ans .weights{max-width:360px; margin:0 0 12px; padding:6px 14px; border-radius:12px; background:var(--ref)}
.pnext{margin:0 0 12px}
.ptests{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.ptests li{display:flex; flex-direction:column; gap:2px; padding:12px 14px; border-radius:12px; background:var(--ref)}
.ptests .pc{font-weight:700; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.ptests .pd{font-size:15px; font-weight:600}
.ptests .pl{display:flex; gap:16px; margin-top:4px}
.ptests .pl a{display:inline-flex; align-items:center; min-height:44px}
.steps{list-style:none; margin:0; padding:0; counter-reset:s}
.steps li{position:relative; display:flex; flex-direction:column; gap:2px; padding:0 0 14px 40px; counter-increment:s; font-size:16px; line-height:1.45}
.steps li::before{content:counter(s); position:absolute; left:0; top:0; width:28px; height:28px; border-radius:50%; background:var(--navy); color:var(--white);
  display:grid; place-items:center; font-weight:700; font-size:14px}
.steps li:last-child{padding-bottom:0}
/* the parents' page on a phone: this week, the dates ahead and how to help first; the questions after the short answers */
.parents .c-today{order:1} .parents .pweek{order:2} .parents .coming{order:3} .parents .phelp{order:4} .parents .pvids{order:5}
.parents .pgr{order:6} .parents .loop{order:7} .parents .needs{order:8} .parents .faq{order:9} .parents .help{order:10}

/* ---- the two tiers (Nov 2026): one banner at a time — turquoise-light, a reminder; coral, urgent; always with the word — and the notes */
aside.banner{display:flex; align-items:flex-start; gap:12px; width:calc(100% - 32px); max-width:1088px; margin:14px auto 0; padding:14px 18px; border-radius:18px;
  color:var(--navy); box-shadow:var(--lift)}
aside.banner[hidden]{display:none}
aside.banner.reminder{background:var(--turq-light); box-shadow:inset 5px 0 0 var(--turq)}
aside.banner.urgent{background:var(--coral); color:var(--on-coral); box-shadow:inset 5px 0 0 var(--coral-deep)}   /* navy on coral 5.3:1; white on coral fails */
aside.banner .bi{width:24px; height:24px; flex:none; margin-top:1px; fill:none; stroke:currentColor; stroke-width:2.1; stroke-linecap:round; stroke-linejoin:round}
aside.banner .bb{min-width:0}
aside.banner .bl{margin:0 0 2px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase}
aside.banner .ttl{margin:0; font-weight:700; font-size:19px; line-height:1.3}
aside.banner .bt{margin:3px 0 0; font-size:16px; line-height:1.45}
@media (min-width:900px){ aside.banner{width:calc(100% - 56px); margin-top:24px; padding:16px 22px} }
.news .head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px}
.news .head h2{margin:0}
.news.folded .head{margin-bottom:0}
.hidebtn, .allbtn, .stamp{font:600 14px "DM Sans", system-ui, sans-serif; color:var(--muted); background:none; border:0; cursor:pointer; padding:0}
.hidebtn{min-height:44px; padding:0 10px; margin-right:-10px; border-radius:10px}
.hidebtn:hover, .allbtn:hover, .stamp:hover{color:var(--navy)}
.posts .ttl{margin:0 0 2px; font-weight:700; font-size:17px; line-height:1.35}
.posts .who, aside.banner .who{font-weight:800}
.posts .meta{display:flex; align-items:center; gap:8px}
.posts .pin{display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:7px; background:var(--quiet2); color:var(--navy); font-weight:700; font-size:13px}
.stamp{min-height:44px; min-width:44px; padding:0 6px; margin:-6px -6px; text-align:left; font-size:13.5px; text-decoration:underline dotted; text-underline-offset:3px; text-decoration-color:rgba(var(--ink-rgb),.3)}
.posts li.all{padding-top:4px}
.allbtn{min-height:44px; color:var(--tealInk); font-weight:700; font-size:15px}
.hidebtn:focus-visible, .allbtn:focus-visible, .stamp:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:8px}

/* the editor's levels (public/teacher/announce.js): the word AND a swatch; the preview; the gentle 5-and-20 count */
.lvl{display:inline-flex; padding:2px; gap:2px; border-radius:13px; background:rgba(var(--ink-rgb),.075); margin-bottom:10px}
.lvl button{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:0; border-radius:11px; background:none;
  font:700 14.5px "DM Sans", system-ui, sans-serif; color:var(--muted); cursor:pointer}
.lvl button[aria-pressed="true"]{background:var(--seg-on); color:var(--seg-on-ink); box-shadow:0 1px 2px rgba(var(--shade),.14), 0 3px 10px rgba(var(--shade),.08)}
.sw{display:inline-block; flex:none; width:12px; height:12px; border-radius:4px; box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.25)}
.lvl .sw{width:12px; height:12px; border-radius:4px; box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.25)}
.sw.note{background:var(--white)} .sw.reminder{background:var(--turq-light); box-shadow:inset 3px 0 0 var(--turq), inset 0 0 0 1px rgba(var(--ink-rgb),.25)} .sw.urgent{background:var(--coral); box-shadow:inset 3px 0 0 var(--coral-deep), inset 0 0 0 1px rgba(var(--ink-rgb),.25)}
.ann .two-f{display:grid; grid-template-columns:minmax(0, 1fr); gap:8px; margin-bottom:8px}
@media (min-width:700px){ .ann .two-f{grid-template-columns:minmax(0, 1fr) minmax(0, 2fr)} }
.ann input[type=text]{min-height:44px; padding:0 12px; border-radius:10px; border:1.5px solid var(--field-edge); background:var(--field); font:600 15.5px "DM Sans", system-ui, sans-serif; color:var(--navy); width:100%}
.ann input[type=text]:focus{outline:3px solid rgba(64,224,208,.45); outline-offset:1px; border-color:var(--teal)}
.rule520{margin:8px 0 0; font-size:13.5px; font-weight:600; color:var(--muted); font-variant-numeric:tabular-nums}
.rule520 .over{color:var(--coralInk)}
.apreview{margin-top:12px; padding:12px; border-radius:14px; background:rgba(var(--ink-rgb),.035); box-shadow:inset 0 0 0 1px var(--line)}
.apreview .xcap{margin:0 0 8px}
.apreview aside.banner{width:100%; margin:0; box-shadow:none}
.apreview .posts li{list-style:none}
.alist .lv{display:inline-flex; align-items:center; gap:6px; margin-right:8px; font-weight:700; font-size:13px}
.alist .ttl{margin:0; font-weight:700; font-size:16px}

/* ---- course and unit pages (Nov 2026): the unit's dates, the lesson's speakable ID, the calendar subscription, one search box */
.rn .rnm{display:block}
.rn .rd{display:block; margin-top:2px; font-weight:600; font-size:14.5px; color:var(--muted); font-variant-numeric:tabular-nums}
.dt .ls{color:var(--muted); font-weight:500; margin:0 2px 0 -6px}
.subscribe{width:100%; max-width:620px; display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin:14px 0 0; font-size:14.5px; color:var(--muted)}
.subscribe a{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border-radius:999px; background:rgba(var(--card-rgb),.9);
  box-shadow:0 0 0 1px rgba(var(--ink-rgb),.1); font-weight:700; font-size:15px; color:var(--navy)}
.subscribe a svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.subscribe span{flex:1 1 260px; overflow-wrap:anywhere; line-height:1.4}
.find{width:100%; max-width:620px; margin:6px 0 4px}
.find[hidden]{display:none}
.find input{width:100%; min-height:48px; padding:0 16px; border-radius:14px; border:1.5px solid var(--find-edge); background:rgba(var(--card-rgb),.95);
  font:500 16px "DM Sans", system-ui, sans-serif; color:var(--navy)}
.find input:focus{outline:3px solid rgba(64,224,208,.45); outline-offset:1px; border-color:var(--teal)}
.findmsg{margin:6px 4px 0; font-size:14.5px; font-weight:600; color:var(--muted)}
.findmsg:empty{display:none}
.day[hidden]{display:none}

/* ---- the projector board, /board/ (public/board.js): the second token set — cooler, less saturated, because a panel pushes
   contrast and saturation — and the board's own layout. 1920 × 1080 CSS px on the 75" ActivPanel; 5% inset; body ≥ 28px,
   labels ≥ 40px; nothing moves unless something changed. */
[data-theme="board"]{--navy:#F8F2E4; --navy2:#E6D5B8; --cream:#17324D; --turq:#4CD4C6; --tealInk:#7FC9CF; --teal:#5FA3AA; --coral:#E8806C;
  --black:#0D141C; --paper:#1E3F5F; --line:rgba(248,242,228,.12); --muted:rgba(248,242,228,.68); --soft:rgba(248,242,228,.62)}
  /* Deckhand's navy as the ground, cream ink; turquoise (15% less saturated, for the panel) only for the minutes left and the bar */
[data-theme="board"] body{background:var(--cream); color:var(--navy); min-height:100vh; overflow:hidden}
.proj .pboard{position:fixed; inset:0; display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows:auto 1fr; gap:3vh 4vw;
  padding:5vh 5vw; align-items:start}
.proj .ptop{grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:24px}
.proj .pdate{margin:0; font-weight:700; font-size:max(40px, 2.6vw); letter-spacing:-.01em}
.proj .wchip{min-height:max(56px, 3.2vw); padding:0 max(26px, 1.4vw); gap:16px; font-size:max(40px, 2.2vw); background:rgba(248,242,228,.1); color:var(--navy)}
.proj .wchip i{width:max(22px, 1.1vw); height:max(22px, 1.1vw); box-shadow:0 0 0 2px rgba(248,242,228,.35)}
.proj .wchip.teal i{background:var(--teal)} .proj .wchip.black i{background:var(--black)}
.proj .pnow{align-self:center}
.proj .pperiod{margin:0; font-weight:700; font-size:max(56px, 3.4vw); color:var(--navy)}
.proj .pbig{display:flex; align-items:baseline; flex-wrap:wrap; gap:0 .25em; margin:.5vh 0 0}
.proj .pbig .pn{font:400 max(220px, 15vw)/.9 "DM Serif Display", Georgia, serif; letter-spacing:-.03em; font-variant-numeric:tabular-nums; color:var(--turq)}
.proj .pbig .pn.time{font-size:max(180px, 12vw)}
.proj .pbig .pu{margin-left:28px; font-weight:700; font-size:max(56px, 3.2vw)}
.proj .pbig.msg{font:400 max(110px, 6.6vw)/1.02 "DM Serif Display", Georgia, serif; letter-spacing:-.015em; display:block}
.proj .pbar{height:max(18px, 1vw); margin:3vh 0 0; border-radius:999px; background:rgba(248,242,228,.13); overflow:hidden; max-width:90%}
.proj .pbar i{display:block; height:100%; border-radius:999px; background:var(--turq); transition:width 1s ease}
.proj .pnext{margin:3vh 0 0; font-weight:600; font-size:max(48px, 2.8vw); color:var(--navy)}
.proj .pside{display:flex; flex-direction:column; gap:3vh; align-self:center}
.proj .pcard{padding:3.4vh 2.2vw; border-radius:32px; background:var(--paper); box-shadow:inset 0 0 0 1px var(--line)}
.proj .plabel{margin:0 0 1vh; font-weight:700; font-size:max(40px, 2.1vw); color:var(--muted)}
.proj .plabel a{color:var(--tealInk)}
.proj .pid{margin:0; font-weight:700; font-size:max(40px, 2.2vw); color:var(--tealInk); font-variant-numeric:tabular-nums}
.proj .ptitle{margin:0; font-weight:700; font-size:max(52px, 3vw); line-height:1.12; letter-spacing:-.01em}
.proj .psub{margin:1vh 0 0; font-weight:500; font-size:max(36px, 2vw); color:var(--navy)}
.proj .swap .pnow, .proj .swap .pside, .proj .swap .ptop{animation:pfade .6s ease}
@keyframes pfade{from{opacity:0} to{opacity:1}}
@media (prefers-reduced-motion:reduce){ .proj .swap .pnow, .proj .swap .pside, .proj .swap .ptop{animation:none} .proj .pbar i{transition:none} }
.proj .pctl{position:fixed; bottom:2.5vh; right:2.5vw; display:flex; gap:16px; align-items:center; opacity:0; pointer-events:none; transition:opacity .3s ease}
.proj .pctl.on{opacity:1; pointer-events:auto}
.proj .pctl .seg{background:rgba(248,242,228,.12)}
.proj .pctl .seg button{min-width:110px; min-height:72px; font-size:32px; color:var(--muted)}
.proj .pctl .seg [aria-pressed="true"]{background:var(--navy); color:var(--cream)}
.proj .pfs{min-height:72px; padding:0 28px; border:0; border-radius:14px; background:rgba(248,242,228,.12); color:var(--navy); font:700 30px "DM Sans", system-ui, sans-serif; cursor:pointer}
@media (max-width:1100px){ .proj .pboard{grid-template-columns:minmax(0, 1fr); overflow:auto; position:static} [data-theme="board"] body{overflow:auto} }

/* ---- the Apple audit (Nov 2026; scratchpad audit/apple-audit.md): regroup, align, re-weight — nothing removed */
/* skip link (H20): hidden until focused */
a.skip{position:absolute; left:12px; top:-60px; z-index:20; padding:10px 16px; border-radius:12px; background:var(--navy); color:var(--cream); font-weight:700; font-size:15px}
a.skip:focus{top:max(10px, env(safe-area-inset-top))}
/* reduced motion everywhere, not only on the board (H19) */
@media (prefers-reduced-motion:reduce){ *, *::before, *::after{transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important} }
/* the date as the hero (H1): navy, title case — the eyebrow above it says only the weekday */
.c-today .hero.dhero{font-size:clamp(42px, 5vw, 60px); line-height:1}
.nw{white-space:nowrap}
/* the loading state (H5): the card keeps its place while the calendars come */
.c-today.loading{min-height:260px}
/* rhythm (H12): the pill, the status line and the lesson on one spacing scale */
.pill{margin-bottom:14px}
.c-today .status:first-child + .lessons > .lesson:first-child{margin-top:16px}
/* the two courses side by side start on one line (H2) */
@media (min-width:900px){ .c-today #t-body .lessons.two > .lesson{margin-top:18px; padding-top:18px; box-shadow:inset 0 1px 0 var(--line)} }
/* taps: the icons on one line whatever the label's length (H10) */
a.tap{justify-content:flex-start; padding-top:15px}
/* tonight's practice: the label above, the skill below (H11) */
.verb .vt{display:block; font-size:13px; font-weight:700; letter-spacing:.04em; color:var(--muted)}
.verb .va{display:none}
/* the week strip (H13, H14): the week on every day, quietly; the lesson code on its own line in a narrow cell */
.wchip.sm{background:none; padding:0; min-height:20px; color:var(--muted)}
.days .is-past .when, .days .is-past .tags{opacity:.6}
.days .is-past .wt, .days .is-past .wt .id{opacity:1; color:var(--muted)}
@media (min-width:900px){ .days .wt .id{display:block} .days .wt .sep{display:none} }
/* widows (H18) */
aside.banner .ttl, .posts .ttl, footer.foot, .c-today .hero{text-wrap:balance}
/* the banner on the cards' edges (H4) */
@media (min-width:900px){ aside.banner{max-width:1064px} }
/* a link still waiting for its address (H17): shown, and plainly not live yet */
a[data-needs-url][aria-disabled="true"]{opacity:.5; cursor:default; pointer-events:none}
/* /parents/: the title on the page, not in a card of its own (P1) */
.parents .p-hero, .resources .p-hero, .videos .p-hero{background:none; box-shadow:none; padding:10px 4px 2px}
/* the unit page (U1–U4): one left edge, the chevrons at the right, the lessons' names as content */
.sheet .row.doc .rc{margin-left:auto}
.sheet.lessons .row.doc .rn{color:var(--navy); font-weight:500}
@media (max-width:620px){
  .unit a.row{flex-wrap:wrap; padding:14px 16px; row-gap:2px}
  .unit a.row .rn{flex-basis:100%; order:3}
  .unit a.row .chev{margin-left:auto}
}
/* the cockpit (T1, T4): link tiles wrap rather than push the page wide; the units table on one row height */
.cockpit .linkgrid.out a{white-space:normal; min-width:0; line-height:1.2}
.days .nw{white-space:normal}
@media (min-width:621px){ .units tbody tr{height:52px} }   /* the table only: on a phone a row is a little card of three lines, and a fixed height let each one spill its chips over the next (Croix, 8 Nov 2026: "It's a little crunched on mobile") */
/* the board (B1–B3): turquoise only while a bell runs or is next; the black dot visible at 3 m; the message balanced */
.proj .pperiod.off{color:var(--muted)}
.proj .wchip.black i{box-shadow:0 0 0 3px rgba(248,242,228,.7)}
.proj .pbig.msg{text-wrap:balance}

/* ---- the cockpit's Parents page editor (public/teacher/faq.js → /teacher/api/parents-faq): the questions in their order,
   each opening to its fields and a preview drawn as /parents/ draws it; ↑ ↓ move a row; a hidden draft wears a sand chip */
.cockpit .pfaq{order:2; max-width:none}
.pfaq .head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 4px}
.pfaq .head h2{margin:0}
.pfaq .more{display:inline-flex; align-items:center; min-height:44px; font-weight:700; font-size:14.5px; color:var(--tealInk)}
.flist{list-style:none; margin:0; padding:0; border-radius:14px; box-shadow:0 0 0 1px var(--line)}
.flist > li + li{box-shadow:inset 0 1px 0 var(--line)}
.flist > li.none{padding:14px 16px; color:var(--muted); font-size:15px}
.fhead{display:flex; align-items:center; gap:8px; padding:6px 8px 6px 6px}
.fq{flex:1; min-width:0; display:flex; align-items:center; gap:12px; min-height:52px; padding:8px 10px; border:0; border-radius:11px; background:none;
  text-align:left; font:700 16px/1.3 "DM Sans", system-ui, sans-serif; color:var(--navy); cursor:pointer}
.fq:hover{background:var(--quiet)}
.fq:focus-visible{outline:3px solid var(--focus); outline-offset:-3px}
.fq .fn{flex:none; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:rgba(var(--ink-rgb),.07);
  font-size:13px; font-weight:700; color:var(--muted); font-variant-numeric:tabular-nums}
.fq .ft{flex:1; min-width:0; overflow-wrap:anywhere}
.fq .fchip{flex:none; display:inline-flex; align-items:center; min-height:24px; padding:0 10px; border-radius:999px; background:var(--sand);
  color:var(--navy); font-weight:700; font-size:12.5px; letter-spacing:.02em}
.fq .fchip[hidden]{display:none}
.fq .chev{flex:none; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; color:var(--muted); transition:transform .18s ease}
.fq[aria-expanded="true"] .chev{transform:rotate(90deg)}
.frow.hid .fq .ft{color:var(--muted); font-weight:600}
.fmv{display:flex; gap:4px; flex:none}
.fmv button{display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:11px; background:var(--quiet); color:var(--navy); cursor:pointer}
.fmv button:hover{background:var(--quiet2)}
.fmv button:disabled{opacity:.32; cursor:default; background:var(--quiet)}
.fmv button:focus-visible{outline:3px solid var(--focus); outline-offset:2px}
.fmv svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.fbody{padding:2px 16px 16px}
.fbody[hidden], .fconfirm[hidden], .pfaq .arow[hidden]{display:none}
.ff{display:flex; margin-top:12px}
.ff:first-child{margin-top:4px}
.ff .fl{display:flex; flex:1; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:5px}
.ff .xl{font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted)}
.ff .fc{font-size:12.5px; font-weight:600; color:var(--muted); font-variant-numeric:tabular-nums}
.ff .fc.bad{color:var(--coralInk)}
.pfaq input[type=text], .pfaq input[type=url], .pfaq textarea{display:block; width:100%; min-width:0; border-radius:10px; border:1.5px solid var(--field-edge); background:var(--field);
  font:500 15.5px/1.5 "DM Sans", system-ui, sans-serif; color:var(--navy)}
.pfaq input[type=text], .pfaq input[type=url]{min-height:44px; padding:0 12px; font-weight:600}
.pfaq textarea{min-height:150px; padding:10px 12px; resize:vertical}
.pfaq input[type=text]:focus, .pfaq input[type=url]:focus, .pfaq textarea:focus{outline:3px solid rgba(64,224,208,.45); outline-offset:1px; border-color:var(--teal)}
.fhint{margin:6px 0 0; font-size:13.5px; line-height:1.4; color:var(--muted); font-weight:600}
.fwarn{margin:6px 0 0; font-size:14px; font-weight:600; color:var(--coralInk)}
.fwarn:empty{display:none}
.fprev{margin-top:14px; padding:12px 16px 14px; border-radius:14px; background:var(--cream); box-shadow:inset 0 0 0 1px var(--line)}
.fprev .xcap{margin:0 0 2px}
.fprev .qa summary{min-height:44px; cursor:default}
.fprev .qa summary:hover{background:none; box-shadow:none}
.fprev .qa .ans{padding-bottom:4px}
.fprev .fnone{color:var(--muted); font-style:italic}
.fprev .pnext p{margin:0 0 12px; padding:10px 14px; border-radius:12px; background:var(--ref); font-size:15px; color:var(--muted)}
.fconfirm{margin-top:12px; padding:12px 14px; border-radius:14px; background:var(--ref); box-shadow:inset 4px 0 0 var(--coralInk)}
.fconfirm p{margin:0; font-weight:600; font-size:15px; line-height:1.4}
.fconfirm .arow{margin-top:8px}
.btn.danger.solid{background:var(--coralInk); color:var(--white)}
.btn.danger.solid:hover{background:var(--danger-hover)}
.btn:disabled{opacity:.45; cursor:default; transform:none}
.pfaq .msg{margin:8px 0 0; font-size:14px; font-weight:600; color:var(--tealInk)}
.pfaq .msg:empty{display:none}
.pfaq .msg.bad{color:var(--coralInk)}
.pfaq > .msg{margin:0 0 12px}
.fadd{margin-top:18px; padding:16px; border-radius:16px; background:rgba(var(--ink-rgb),.035); box-shadow:inset 0 0 0 1px var(--line)}
.fadd h3{margin:0 0 4px; font-weight:700; font-size:16px}
.frow.busy, .fadd.busy, .pfaq.moving .fmv{opacity:.6; pointer-events:none}
@media (max-width:620px){ .fbody{padding:2px 12px 14px} .fhead{padding:6px 6px 6px 4px; gap:6px} .fq{gap:10px; padding:8px 8px} }
.cockpit .pfaq .fprev .qa summary h2, .cockpit .pfaq .fprev .qa summary h3{font:700 18px/1.3 "DM Sans", system-ui, sans-serif; margin:0}   /* as /parents/ draws it, not the cockpit's card heading */
@media (max-width:620px){
  .fq{display:grid; grid-template-columns:28px minmax(0, 1fr); align-items:center; column-gap:10px; row-gap:4px}
  .fq .ft{overflow-wrap:break-word}
  .fq .fchip{grid-column:2; justify-self:start}
  .fq .chev{display:none}
}

/* ---- a day's lesson practice, beside its slides (Nov 2026, the lesson banks from Cadence: Croix, "the days should have
   practice questions directly from that day's lessons"): on the course page a lesson day carries a "Practice" pill — its
   lesson's set on the unit's practice page, or the unit's whole practice test when the page has no set for it. 44px tall. */
.dprac{display:inline-flex; align-items:center; gap:6px; min-height:44px; margin:6px 0 -2px; padding:0 16px 0 12px; border-radius:999px; background:rgba(var(--ink-rgb),.055); color:var(--tealInk); font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; text-decoration:none}
.dprac svg{width:13px; height:13px; fill:currentColor; flex:none}
.dprac:hover{background:rgba(var(--ink-rgb),.1)}
.dprac:focus-visible{outline:2px solid var(--tealInk); outline-offset:2px}
.day.past .dprac{color:var(--muted)}

/* ---- the course calendar (Nov 2026; public/calendar.js, the shell from tools/schedule.py): Day · Week · Month · Quarter · List
   in one segmented control; the list is the page tools/schedule.py writes. The view the address asks for is on <html>
   (data-cal-view) before the first paint, so these rules alone say which view shows, and each view keeps its height while
   the calendar's data comes. One serif statement per screen: the period's title. */
main.cal{display:block; width:100%; max-width:1160px; margin:0 auto; padding:14px 16px 36px}
.cal [data-view="list"]{display:flex; flex-direction:column; align-items:center; width:100%; padding-top:26px}
.cal .cal-view{display:none}
html[data-cal-view] .cal .cal-bar, html[data-cal-view] .cal .cal-foot{display:block}
html[data-cal-view]:not([data-cal-view="list"]) .cal [data-view="list"]{display:none}
html[data-cal-view="day"] .cal .cal-view[data-view="day"], html[data-cal-view="week"] .cal .cal-view[data-view="week"],
html[data-cal-view="month"] .cal .cal-view[data-view="month"], html[data-cal-view="quarter"] .cal .cal-view[data-view="quarter"]{display:block}
html[data-cal-view="list"] .cal .cal-head, html[data-cal-view="list"] .cal-foot .sub{display:none}
.cal-view[data-view="day"]{min-height:420px} .cal-view[data-view="week"]{min-height:560px} .cal-view[data-view="month"]{min-height:560px} .cal-view[data-view="quarter"]{min-height:640px}
@media (min-width:900px){ .cal-view[data-view="week"]{min-height:330px} .cal-view[data-view="month"]{min-height:690px} }
.cal-views{touch-action:pan-y pinch-zoom; outline:none}
/* the bar: the views, then the period's title with the way back and on */
.cal-bar .views{display:flex; width:100%; max-width:560px; margin:0 auto}
.cal-bar .views button{flex:1; min-width:0; padding:0 6px}
.cal-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; min-height:104px; margin:18px 0 16px}
.cal-titles{min-width:0}
.cal-eye{display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; min-height:30px; margin:0 0 4px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}
.cal-eye .wchip{letter-spacing:0; text-transform:none; min-height:26px; font-size:13.5px}
.cal .cal-title{font:400 clamp(36px, 4.4vw, 54px)/1.02 "DM Serif Display", Georgia, serif; letter-spacing:-.012em; margin:0; text-align:left; outline:none; min-height:1em}
.cal-sub{display:flex; flex-wrap:wrap; align-items:baseline; min-height:1.4em; margin:6px 0 0; font-size:15.5px; font-weight:500; color:var(--muted)}
.cal-sub b{color:var(--navy); font-weight:700}
.cal-sub .dot, .mv-units .dot, .tl-offs .dot{padding:0 7px; color:var(--muted)}
.cal-nav{display:flex; align-items:center; gap:6px; flex:none}
.cal-step, .cal-today{display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; border:0; border-radius:999px; background:var(--quiet);
  font:700 15px "DM Sans", system-ui, sans-serif; color:var(--navy); cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background .15s ease, transform .1s ease}
.cal-today{padding:0 16px}
.cal-today[hidden]{display:none}
.cal-step svg{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round}
.cal-step:hover, .cal-today:hover{background:var(--quiet2)}
.cal-step:active, .cal-today:active{transform:scale(.95)}
.cal-step:disabled{opacity:.35; cursor:default; transform:none; background:var(--quiet)}
.cal-step:focus-visible, .cal-today:focus-visible, .cal-act:focus-visible, .chp:focus-visible, .wd-h:focus-visible, .wd-t:focus-visible, .qd:focus-visible, .tl-lab:focus-visible, .mu:focus-visible, .dunit:focus-visible, .dnext-d:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:12px}
/* the slide: 160 ms on a change of period or view, none at rest, none with reduced motion */
.cal-view.slide-l{animation:calSlideL .16s cubic-bezier(.2,.7,.3,1)} .cal-view.slide-r{animation:calSlideR .16s cubic-bezier(.2,.7,.3,1)} .cal-view.fade{animation:calFade .16s ease-out}
@keyframes calSlideL{from{transform:translateX(18px); opacity:.3}} @keyframes calSlideR{from{transform:translateX(-18px); opacity:.3}} @keyframes calFade{from{opacity:.4}}
@media (prefers-reduced-motion:reduce){ .cal-view.slide-l, .cal-view.slide-r, .cal-view.fade{animation:none} }
.cal-fail{display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:8px 0; font-size:17px; font-weight:500}
.skel, .skel-l{background:rgba(var(--ink-rgb),.035); box-shadow:none}
.dcard.skel{min-height:300px} .qtl.skel{min-height:420px}
.skel-l{display:block; height:44px; border-radius:10px}
/* the markers: always a word and a shape, never a colour alone */
.mk{display:inline-flex; align-items:center; gap:5px; align-self:flex-start; min-height:24px; padding:0 8px 0 6px; border-radius:7px; font-weight:700; font-size:13px; line-height:1.1; white-space:nowrap}
.mk svg{width:15px; height:15px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.mk.test{background:var(--navy); color:var(--white)}
.mk.ixl{background:var(--quiet2); color:var(--navy)}
.mk.off{padding-left:0; color:var(--muted)}
.chp{display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:999px; background:var(--quiet); font-weight:700; font-size:14px; color:var(--navy); white-space:nowrap; transition:background .15s ease}
.chp:hover{background:var(--quiet2)}
.chp.q{background:none; box-shadow:inset 0 0 0 1px var(--line)}
.hatch, .wd.off, .mc.off, .doff{background-image:repeating-linear-gradient(135deg, rgba(var(--ink-rgb),.05) 0 2px, transparent 2px 9px)}

/* Day: the lesson (or the test, or why there is no school) beside the day's bells */
.dv{display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; align-items:start}
.dv-main{display:flex; flex-direction:column; gap:14px; min-width:0}
@media (min-width:900px){ .dv{grid-template-columns:minmax(0, 1.75fr) minmax(300px, 1fr); gap:20px} .dv.solo{grid-template-columns:minmax(0, 760px)} }
.cal .cal-view h2, .cal .cal-view h3{max-width:none; margin:0; letter-spacing:-.01em}
.dunit{display:inline-flex; align-items:center; min-height:28px; margin:0 0 6px; font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--tealInk)}
a.dunit:hover{text-decoration:underline; text-underline-offset:3px}
.cal .dtitle{font:700 clamp(24px, 2.5vw, 31px)/1.18 "DM Sans", system-ui, sans-serif; text-wrap:balance}
.dtitle .id{display:block; margin-bottom:6px; font-size:17px; letter-spacing:.02em; color:var(--tealInk); font-variant-numeric:tabular-nums}
.cal .dcard.quiet .dtitle{font-size:21px}
.dcard.quiet .dtitle .id{font-size:15px; margin-bottom:3px}
.dcard .taps{margin-top:20px}
.dcard.quiet .taps{margin-top:14px}
.dixl{margin-top:22px; padding-top:16px; box-shadow:inset 0 1px 0 var(--line)}
.card > .dixl:first-child{margin-top:0; padding-top:0; box-shadow:none}
.dixl-h{display:flex; align-items:center; flex-wrap:wrap; gap:0 6px; margin:0 0 8px; font-size:15px; color:var(--muted)}
.dixl-h b{color:var(--navy); font-weight:700}
.dixl-h svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; color:var(--navy)}
.dixl ul{list-style:none; margin:0; padding:0}
.dixl li{display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding:7px 0; font-size:15.5px; line-height:1.35}
.dixl li + li{box-shadow:inset 0 1px 0 var(--hair)}
.dixl li b{color:var(--tealInk); font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap}
.dixl summary{display:flex; align-items:center; min-height:44px; cursor:pointer; font-weight:700; font-size:15px; color:var(--tealInk)}
.dixl summary:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:8px}
.dtest{padding:26px 24px 24px; border-radius:22px; background:var(--next-bg); color:var(--next-ink); box-shadow:var(--next-edge, 0 0 0 0 transparent), 0 14px 40px -14px rgba(var(--shade),.35)}
.dtest .nl{margin:0 0 6px; font-weight:700; font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--turq)}
.cal .dtest h2{font:700 clamp(32px, 3.6vw, 44px)/1.08 "DM Sans", system-ui, sans-serif; letter-spacing:-.02em}
.dtest .tn{margin:6px 0 0; font-size:18px; font-weight:500; opacity:.88}
.dtest .acts{margin-top:20px}
.dtest .btn.primary{background:var(--next-ink); color:var(--next-bg)}
.dtest .btn.primary:hover{opacity:.9; background:var(--next-ink)}
.dtest .btn:not(.primary){background:none; color:var(--next-ink); box-shadow:inset 0 0 0 1.5px color-mix(in srgb, currentColor 45%, transparent)}
.dtest .dixl{box-shadow:inset 0 1px 0 color-mix(in srgb, currentColor 22%, transparent)}
.dtest .dixl-h, .dtest .dixl-h b, .dtest .dixl-h svg, .dtest .dixl li b, .dtest .dixl summary{color:inherit}
.dtest .dixl li + li{box-shadow:inset 0 1px 0 color-mix(in srgb, currentColor 14%, transparent)}
.dtest .dixl summary{text-decoration:underline; text-underline-offset:3px}
.doff .nl, .dplain .nl{display:flex; align-items:center; gap:7px; margin:0 0 6px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}
.doff .nl svg{width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round}
.cal .doff h2{font:700 clamp(26px, 3vw, 34px)/1.15 "DM Sans", system-ui, sans-serif}
.cal .dplain h2{font:700 22px/1.25 "DM Sans", system-ui, sans-serif}
.dps{margin:10px 0 0; font-size:16.5px; line-height:1.5}
.dps a, .dnext-d{color:var(--tealInk); font-weight:700; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--teal-line)}
.dquiet{margin:2px 0 0; font-size:17px; font-weight:600; color:var(--muted)}
.dnext{display:flex; flex-direction:column; gap:10px}
.dnext-h{display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin:6px 0 0; font-size:15px; font-weight:600; color:var(--muted)}
.dnext-d{display:inline-flex; align-items:center; min-height:44px}
.dbells{padding:20px 18px 14px}
.dbh{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 0 10px; padding:0 4px}
.cal .dbh h2{font:700 18px/1.2 "DM Sans", system-ui, sans-serif}
.dbh .meta{font-size:14px; font-weight:600; color:var(--muted); white-space:nowrap}
.dbl{list-style:none; margin:0; padding:0}
.dbl li{display:grid; grid-template-columns:minmax(0, 1fr) auto auto; align-items:center; gap:8px; min-height:44px; padding:0 10px; border-radius:12px}
.dbl li + li{box-shadow:inset 0 1px 0 var(--hair)}
.dbl li.now, .dbl li.now + li, .dbl li.next, .dbl li.next + li{box-shadow:none}
.dbl .bn{grid-column:1; font-weight:600; font-size:15.5px}
.dbl .bt{grid-column:3; font-weight:600; font-size:14.5px; color:var(--muted); font-variant-numeric:tabular-nums; white-space:nowrap}
.dbl .bc, .dbl .bnow{grid-column:2; justify-self:end; display:inline-flex; align-items:center; min-height:22px; padding:0 7px; border-radius:7px; font-weight:700; font-size:13px; background:var(--chip-bg); color:var(--navy)}
.dbl .bc + .bnow{grid-column:2; margin-left:52px}
.dbl li:has(.bc):has(.bnow){grid-template-columns:minmax(0, 1fr) auto auto auto} .dbl li:has(.bc):has(.bnow) .bnow{grid-column:3; margin:0} .dbl li:has(.bc):has(.bnow) .bt{grid-column:4}
.dbl .bnow{background:var(--navy); color:var(--white)}
.dbl .bnow.nx{background:var(--quiet2); color:var(--navy)}
.dbl li.now{background:var(--live); box-shadow:inset 3px 0 0 var(--turq)}
.dbl li.now .bt{color:var(--navy)}
.dbl li.gone .bn, .dbl li.gone .bt{color:var(--muted)}

/* Week: Monday to Friday — five columns on a wide screen, five rows on a phone; today ringed */
.wv{list-style:none; margin:0; padding:0; background:var(--paper); border-radius:22px; box-shadow:var(--lift); overflow:hidden}
.wd{position:relative; display:grid; grid-template-columns:62px minmax(0, 1fr); gap:0 12px; padding:14px 16px 16px 14px}
.wd + .wd{box-shadow:inset 0 1px 0 var(--line)}
.wd-h{display:flex; flex-direction:column; align-items:flex-start; align-self:start; gap:1px; min-height:44px; padding:2px 4px; margin:-2px -4px; border-radius:10px}
.wd-h b{font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.wd-h .n{font-weight:700; font-size:24px; line-height:1.05; font-variant-numeric:tabular-nums}
.wd-h .tday{margin-top:5px; display:inline-flex; align-items:center; min-height:22px; padding:0 7px; border-radius:7px; background:var(--navy); color:var(--white); font-weight:700; font-size:13px}
.wd-b{display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; padding-top:2px}
.wd-t{display:block; max-width:100%; border-radius:8px}
.wd-t .id{display:block; margin-bottom:2px; font-weight:700; font-size:14.5px; color:var(--tealInk); font-variant-numeric:tabular-nums}
.wd-t .tt{display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-weight:600; font-size:16px; line-height:1.3}
.wd-t:hover .tt{text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(var(--ink-rgb),.3)}
.wd.test .wd-t .tt{font-weight:700}
.wd-r{margin:0; font-size:15px; font-weight:600; color:var(--muted); line-height:1.3}
.wd.off .wd-r{color:var(--navy)}
.wd-c{display:flex; flex-wrap:wrap; gap:6px}
.wd-x{margin:0; font-size:14.5px; line-height:1.35; padding:6px 10px; border-radius:10px; background:var(--live)}
.wd-x span{color:var(--muted); font-weight:600}
.wd.is-today{box-shadow:inset 0 0 0 3px var(--turq); border-radius:0}
.wd.is-past .wd-h, .wd.is-past .wd-b{opacity:.62}
@media (min-width:900px){
  .wv{display:grid; grid-template-columns:repeat(5, minmax(0, 1fr))}
  .wd{display:flex; flex-direction:column; gap:12px; min-height:330px; padding:16px 16px 18px}
  .wd + .wd{box-shadow:inset 1px 0 0 var(--line)}
  .wd-h{flex-direction:row; align-items:baseline; flex-wrap:wrap; gap:4px 8px}
  .wd-h .tday{margin:0 0 0 auto}
  .wd.is-today{border-radius:0}
}

/* Month: a true grid of school days — Monday to Friday, because a weekend has nothing on it and costs a third of the width */
.mv-units{display:flex; flex-wrap:wrap; align-items:baseline; min-height:1.5em; margin:0 0 12px; font-size:15px; font-weight:500; color:var(--muted)}
.mv-units .mu{display:inline-flex; align-items:baseline; gap:6px; min-height:28px}
.mv-units .mu b{color:var(--navy); font-weight:700}
.mv-units a.mu:hover b{text-decoration:underline; text-underline-offset:3px}
.mv{background:var(--paper); border-radius:22px; box-shadow:var(--lift); overflow:hidden}
.mv-r{display:grid; grid-template-columns:4px repeat(5, minmax(0, 1fr))}
.mv-r + .mv-r{box-shadow:inset 0 1px 0 var(--line)}
.mv-ch{padding:12px 6px 10px; font-weight:700; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-align:left}
.mv-ch span{padding-left:2px}
.mv-rh{position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden}
.mv-rh > span:not(.sr){display:none}
.w-teal > .mv-rh{background:var(--teal)} .w-black > .mv-rh{background:var(--black)}
.w-off > .mv-rh{background:repeating-linear-gradient(180deg, rgba(var(--ink-rgb),.25) 0 3px, transparent 3px 6px)}
.mc{position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:0; min-height:92px; padding:7px 6px 8px; cursor:pointer; outline:none; transition:background .12s ease}
.mc + .mc, .mv-rh + .mc{box-shadow:inset 1px 0 0 var(--hair)}
.mv-rh + .mc{box-shadow:none}
.mc:hover{background:rgba(var(--ink-rgb),.035)}
.mc:focus-visible{box-shadow:inset 0 0 0 3px var(--focus); z-index:1}
.mc-n{font-weight:700; font-size:15px; line-height:1.2; font-variant-numeric:tabular-nums; white-space:nowrap}
.mc-c{font-weight:700; font-size:13.5px; line-height:1.2; color:var(--tealInk); font-variant-numeric:tabular-nums; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mc-t{display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; max-width:100%; font-weight:500; font-size:13.5px; line-height:1.25}
.mc-t .wf{display:none}
.mc-t .w2 > span{display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.mc-t:has(.w2){display:block}
.mv-band{grid-row:1; grid-column:2 / -1; align-self:end; justify-self:center; margin:0 0 10px; padding:3px 12px; border-radius:999px; background:var(--paper);
  box-shadow:0 0 0 1px var(--line); font-weight:700; font-size:14px; color:var(--navy); pointer-events:none; z-index:1}
.w-off > *{grid-row:1} .w-off > .mv-rh{grid-column:1} .w-off > .mc:nth-child(2){grid-column:2} .w-off > .mc:nth-child(3){grid-column:3} .w-off > .mc:nth-child(4){grid-column:4} .w-off > .mc:nth-child(5){grid-column:5} .w-off > .mc:nth-child(6){grid-column:6}
.w-off > .mv-band{grid-column:2 / -1; white-space:nowrap}
.mc-t.q, .mc-t.r{color:var(--muted)}
.mc.off .mc-t.r{color:var(--navy)}
.mc .mk{min-height:22px; padding:0 6px; gap:4px}
.mc .mk svg{width:13px; height:13px}
.mc .mk.off{padding:0}
.mc.out{cursor:default; background:rgba(var(--ink-rgb),.02)}
.mc.out .mc-n{color:var(--muted); opacity:.6}
.mc.is-past > :not(.mc-n){opacity:.6}
.mc.is-past .mc-n{color:var(--muted)}
.mc.is-today{box-shadow:inset 0 0 0 3px var(--turq); z-index:1}
.mc.is-today .mc-n{display:inline-grid; place-items:center; min-width:26px; height:26px; margin:-3px 0 -1px -3px; padding:0 5px; border-radius:999px; background:var(--turq); color:var(--on-turq)}
.mc.is-today:focus-visible{box-shadow:inset 0 0 0 3px var(--turq), inset 0 0 0 6px var(--focus)}
@media (max-width:520px){
  .mc .mk svg{display:none}
  .mc .mk{padding:0 5px}
  .mc .mk.off{padding:0}
  .mc{padding:7px 4px 8px 5px}
}
@media (min-width:700px){
  .mv-r{grid-template-columns:30px repeat(5, minmax(0, 1fr))}
  .mc{min-height:118px; padding:10px 12px 12px; gap:4px}
  .mv-ch{padding:13px 12px 11px}
  .mv-rh{background:none !important}
  .mv-rh::before{content:""; position:absolute; left:0; top:0; bottom:0; width:4px}
  .w-teal > .mv-rh::before{background:var(--teal)} .w-black > .mv-rh::before{background:var(--black)}
  .w-off > .mv-rh::before{background:repeating-linear-gradient(180deg, rgba(var(--ink-rgb),.25) 0 3px, transparent 3px 6px)}
  .mv-rh > span:not(.sr){display:block; writing-mode:vertical-rl; transform:rotate(180deg); padding-left:4px; font-weight:700; font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); white-space:nowrap}
  .mc-t{font-size:14px}
  .mc-t .w2:not(:only-child){display:none} .mc-t .wf{display:inline}
  .mc-t:has(.wf){display:-webkit-box}
  .mc-t .w2:only-child > span{display:inline; white-space:normal} .mc-t .w2:only-child > span + span::before{content:" "}
  .mc-c{font-size:14px}
  .mc-n{font-size:16px}
}
@media (min-width:1100px){ .mc{min-height:128px} }

/* Quarter: the grading period as a timeline — the units as bars, their tests, the days without school as gaps, the last
   week (nothing new is graded), the end; then every test and every IXL due date in it */
.qtl{padding:22px 20px 18px}
.tl{position:relative}
.tl-axis{position:relative; height:24px; margin:0 0 10px; box-shadow:inset 0 -1px 0 var(--line)}
.tl-tick{position:absolute; top:0; padding-left:5px; font-weight:600; font-size:13px; color:var(--muted); white-space:nowrap; box-shadow:inset 1px 0 0 var(--line)}
.tl-lanes{position:relative; display:flex; flex-direction:column; gap:18px; padding:4px 0 6px; min-height:120px}
.tl-last{position:absolute; top:-10px; bottom:0; background:var(--live); border-radius:0 8px 8px 0; pointer-events:none}
.tl-gap{position:absolute; top:-10px; bottom:0; background-image:repeating-linear-gradient(135deg, rgba(var(--ink-rgb),.1) 0 2px, transparent 2px 7px); pointer-events:none}
.tl-lane{position:relative; z-index:3}
.tl-lab{display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 8px; margin:0 0 7px; min-height:24px}
.tl-lab b{font-weight:700; font-size:15.5px}
.tl-lab .nm{font-weight:500; font-size:15px; color:var(--navy)}
.tl-lab .dr{font-weight:600; font-size:14px; color:var(--muted); font-variant-numeric:tabular-nums}
a.tl-lab:hover b{text-decoration:underline; text-underline-offset:3px}
.tl-track{position:relative; height:48px}
.tl-bar{position:absolute; top:0; height:24px; border-radius:7px; background:rgba(var(--ink-rgb),.14); box-shadow:inset 0 0 0 1px rgba(var(--ink-rgb),.1)}
.tl-bar.cont-l{border-top-left-radius:0; border-bottom-left-radius:0} .tl-bar.cont-r{border-top-right-radius:0; border-bottom-right-radius:0}
.tl-test{position:absolute; top:0; height:24px; border-radius:6px; background:var(--navy)}
.tl-cut{position:absolute; top:-2px; height:28px; background-color:var(--paper); background-image:repeating-linear-gradient(135deg, rgba(var(--ink-rgb),.22) 0 2px, transparent 2px 6px)}
.tl-tl{position:absolute; top:28px; display:inline-flex; align-items:center; gap:4px; font-weight:700; font-size:13px; white-space:nowrap}
.tl-tl svg{width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.tl-none{margin:10px 0; font-size:16px; font-weight:600; color:var(--muted)}
.tl-now{position:absolute; top:-10px; bottom:-30px; width:2px; margin-left:-1px; background:var(--turq); z-index:2; pointer-events:none}
.tl-now span{position:absolute; bottom:-2px; left:50%; transform:translateX(-50%); padding:2px 8px; border-radius:7px; background:var(--turq); color:var(--on-turq); font-weight:700; font-size:13px; white-space:nowrap}
.tl-end{display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:6px 16px; margin:38px 0 0; font-weight:700; font-size:14px}
.tl-end svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.tl-end .lw{display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--muted)}
.tl-end .lw i{width:16px; height:12px; border-radius:3px; background:var(--live); box-shadow:inset 0 0 0 1px var(--teal-line)}
.tl-end .qe{display:inline-flex; align-items:center; gap:6px}
.tl-offs{display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; margin:16px 0 0; padding-top:14px; box-shadow:inset 0 1px 0 var(--line); font-size:14.5px; line-height:1.4; color:var(--muted)}
.tl-offs .mk{margin-right:10px; color:var(--navy)}
.tl-offs b{color:var(--navy); font-weight:700; margin-right:4px}
@media (max-width:620px){ .tl-tick:nth-child(even){display:none} .qtl{padding:18px 14px 16px} }
.tl-lab > *, .tl-tl{position:relative; z-index:3; background:var(--paper); border-radius:4px; box-shadow:0 0 0 2px var(--paper)}
.tl-tl{position:absolute}
.qlists{display:grid; grid-template-columns:minmax(0, 1fr); gap:14px; margin-top:14px}
@media (min-width:900px){ .qlists{grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:20px; margin-top:20px} }
.cal .ql h2{font:700 19px/1.2 "DM Sans", system-ui, sans-serif; margin:0 0 6px}
.qnone{margin:6px 0 0; font-size:15.5px; color:var(--muted)}
.qrows{list-style:none; margin:0; padding:0}
.qrows li{display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"d a" "w a"; gap:0 12px; align-items:center; padding:10px 0}
.qrows li + li{box-shadow:inset 0 1px 0 var(--line)}
.qd{grid-area:d; justify-self:start; display:inline-flex; align-items:center; min-height:32px; font-weight:700; font-size:14.5px; color:var(--tealInk); font-variant-numeric:tabular-nums}
.qd:hover{text-decoration:underline; text-underline-offset:3px}
.qw{grid-area:w; display:flex; flex-direction:column; min-width:0}
.qw b{font-weight:700; font-size:16.5px}
.qw span{font-size:14.5px; color:var(--muted)}
.qa2{grid-area:a; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px}
.qrows li.is-past .qd, .qrows li.is-past .qw{opacity:.55}
@media (max-width:520px){ .qrows li{grid-template-columns:minmax(0, 1fr); grid-template-areas:"d" "w" "a"} .qa2{justify-content:flex-start; margin-top:8px} }

/* the key, once, and the calendar's two actions */
.cal-foot{margin:22px 0 0}
.cal-foot[hidden]{display:none}
.legend{display:flex; flex-wrap:wrap; justify-content:center; gap:8px 18px; list-style:none; margin:0; padding:0; font-size:13.5px; font-weight:600; color:var(--muted)}
.legend li{display:flex; align-items:center; gap:12px}
.legend .mk.off{color:var(--muted)}
.lg-wk{display:inline-flex; align-items:center; gap:6px}
.lg-wk i{width:4px; height:16px; border-radius:2px; background:var(--black)} .lg-wk i.teal{background:var(--teal)}
.lg-today{display:inline-flex; align-items:center; min-height:24px; padding:0 8px; border-radius:7px; box-shadow:inset 0 0 0 2.5px var(--turq); color:var(--navy)}
.cal-acts{display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:14px}
.cal-act{display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 16px; border:0; border-radius:999px; background:var(--quiet); cursor:pointer;
  font:700 15px "DM Sans", system-ui, sans-serif; color:var(--navy); transition:background .15s ease}
.cal-act:hover{background:var(--quiet2)}
.cal-act svg{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
@media (max-width:560px){
  .cal-head{display:grid; grid-template-columns:minmax(0, 1fr) auto; grid-template-areas:"eye nav" "title title" "sub sub"; align-items:center; min-height:0; margin:14px 0 14px; row-gap:0}
  .cal-titles{display:contents}
  .cal-eye{grid-area:eye; min-width:0} .cal .cal-title{grid-area:title; margin-top:2px} .cal-sub{grid-area:sub} .cal-nav{grid-area:nav}
  .cal-eye .cal-course{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
  .cal .cal-title{font-size:clamp(32px, 9vw, 38px)}
  .cal-nav{gap:4px}
  .cal-today{padding:0 12px}
}
@media (min-width:900px){ main.cal{padding:22px 28px 44px} .cal-head{margin:24px 0 20px} }

/* print: black on white; the month on one landscape page for the fridge (markers as words), the other views as they read */
@page cal-month{size:landscape; margin:9mm}
@media print{
  :root, :root[data-theme]{color-scheme:light; --navy:black; --cream:white; --white:white; --paper:white; --raised:white; --muted:dimgray; --soft:dimgray;
    --tealInk:black; --teal:dimgray; --black:black; --turq:black; --on-turq:white; --live:transparent; --quiet:transparent; --quiet2:transparent; --chip-bg:transparent;
    --line:silver; --hair:silver; --lift:none; --ink-rgb:0,0,0; --shade:0,0,0; --next-bg:white; --next-ink:black; --next-edge:0 0 0 1.5px black; --focus:black}
  html, body{background:white !important}
  body{display:block; font-size:11pt}
  header.top, a.skip, footer.foot, .cal-bar .views, .cal-nav, .cal-acts, .cal [data-view="list"] .find, .cal [data-view="list"] .earlier{display:none !important}
  main.cal{max-width:none; padding:0}
  .cal-head{min-height:0; margin:0 0 4mm}
  .cal .cal-title{font-size:24pt}
  .cal-view{min-height:0 !important; animation:none !important}
  .card, .wv, .mv, .dtest{box-shadow:0 0 0 1px black !important; break-inside:avoid}
  .mk.test, .dbl .bnow, .wd-h .tday{background:none !important; color:black !important; box-shadow:inset 0 0 0 1px black}
  .mk svg{display:inline !important}
  html[data-cal-view="month"] body{page:cal-month}
  html[data-cal-view="month"] .cal-head{margin-bottom:2mm}
  html[data-cal-view="month"] .cal .cal-title{font-size:20pt}
  .mv-units{margin-bottom:2mm; font-size:9.5pt}
  .mv{border-radius:0; break-inside:avoid}
  .mv-r{grid-template-columns:7mm repeat(5, minmax(0, 1fr))}
  .mv-r + .mv-r{box-shadow:inset 0 1px 0 black}
  .mc + .mc, .mv-rh + .mc{box-shadow:inset 1px 0 0 black}
  .mc{min-height:25mm; padding:1.5mm 2mm; gap:1mm}
  .mc-n{font-size:10pt} .mc-c, .mc-t{font-size:8.5pt; -webkit-line-clamp:3} .mc .mk{font-size:8pt; min-height:0; padding:0 1.2mm}
  .mc.is-today, .wd.is-today{box-shadow:none} .mc.is-today .mc-n{background:none; color:black}
  .mc.is-past > *, .wd.is-past .wd-h, .wd.is-past .wd-b{opacity:1 !important}
  .mv-rh{background:none !important} .mv-rh::before{display:none}
  .mv-rh > span:not(.sr){display:block !important; writing-mode:vertical-rl; transform:rotate(180deg); font-size:8pt; font-weight:700; text-transform:uppercase; color:black}
  .legend{font-size:9pt; color:black} .cal-foot{margin-top:3mm}
  .tl-now{display:none}
  .dv{grid-template-columns:1.6fr 1fr}
}

/* the home page's date and week open the course calendar (public/home.js) */
a.dlink{display:inline-flex; align-items:center; min-height:44px; margin:-7px 0; border-radius:8px; color:inherit; text-decoration:underline; text-decoration-color:transparent; text-underline-offset:4px; transition:text-decoration-color .15s ease}
a.dlink:hover{text-decoration-color:currentColor}
a.dlink:focus-visible{outline:3px solid var(--focus); outline-offset:2px}

/* ---- 8 Nov 2026, the parents' page built out (Croix: "parents is basically just an FAQ. Can you build that out a little bit
   better") and Resources for students: the dashboard's cards, type and tokens; nothing new in colour */
.p-intro{margin:10px 0 0; font-size:17px; line-height:1.45; color:var(--navy); max-width:640px}
.linkgrid .lt{min-width:0}
.linkgrid .ls{display:block; margin:1px 0 0; font-size:13.5px; font-weight:600; color:var(--muted); line-height:1.3}
.linkgrid a:has(.ls){padding-top:8px; padding-bottom:8px}
.links .linkgrid.out{grid-template-columns:1fr 1fr}   /* Focus · FAST calculator, half each (Math Nation, IXL and ALEKS moved to Resources) */
.linkgrid.out a.calc{background:var(--quiet)}
.linkgrid.out a.calc .chev{width:18px; height:18px}
.pgr h3, .loop h3{font:700 16px/1.3 "DM Sans", system-ui, sans-serif; margin:20px 0 8px}
/* This week: each course's unit, today's (or the next) class, its next test */
.pwc + .pwc{margin-top:18px; padding-top:18px; box-shadow:inset 0 1px 0 var(--line)}
.pweek .pwh{margin:0 0 4px; font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted)}
.pweek .pwh a{color:inherit; text-decoration:underline; text-decoration-color:rgba(var(--ink-rgb),.25); text-underline-offset:3px}
.pwu{margin:0; font-weight:700; font-size:17px; line-height:1.3}
.pwl{margin:6px 0 0; font-size:16px; line-height:1.4}
.pwl .pwd{font-weight:700; color:var(--tealInk); margin-right:8px}
.pwt{margin:8px 0 0; font-size:15.5px; line-height:1.4; color:var(--navy)}
.pwk{display:flex; flex-wrap:wrap; gap:0 18px; margin:2px 0 -6px}
.pwk a.quiet, .credit a, .more a, .lpnote a{display:inline-flex; align-items:center; min-height:44px; font-weight:700; font-size:15.5px; color:var(--tealInk); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--teal-line)}
/* How to help at home (the cockpit's words) and Classroom needs */
.ptext{font-size:16.5px; line-height:1.55}
.ptext p{margin:0 0 12px} .ptext p:last-child{margin-bottom:0}
.ptext .facts{margin:0 0 12px; font-size:16.5px} .ptext .facts:last-child{margin-bottom:0}
.ptext a{color:var(--tealInk); font-weight:600; text-decoration:underline; text-underline-offset:3px}
.nintro{margin:0 0 12px; font-size:16px; line-height:1.45}
.nlist{margin-bottom:0}
.nlist .nnote{color:var(--muted); font-weight:600}
/* Grades and retakes; Stay in the loop */
.pgr .facts{margin-bottom:12px}
.pgr .more{margin:6px 0 -10px; font-size:15.5px; color:var(--muted)}
.lps{display:flex; flex-direction:column; border-radius:14px; overflow:hidden; box-shadow:0 0 0 1px var(--line)}
a.lp{display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:8px 16px}
a.lp + a.lp{box-shadow:inset 0 1px 0 var(--line)}
a.lp:hover{background:rgba(var(--ink-rgb),.04)}
a.lp:focus-visible{outline:3px solid var(--focus); outline-offset:-3px; border-radius:12px}
.lpt{display:flex; flex-direction:column; gap:1px; min-width:0}
.lpt b{font-weight:700; font-size:16px}
.lpt span{font-size:14px; font-weight:600; color:var(--muted); line-height:1.35}
a.lp.sub{min-height:48px; padding-left:28px}
a.lp.sub .lpt span{color:var(--tealInk); font-weight:700; font-size:14.5px}
.subs{display:flex; flex-wrap:wrap; gap:8px; margin:0}
.subs .btn{padding:0 12px; gap:6px}
.subs .btn svg{width:17px; height:17px}
.lpnote{margin:8px 0 0; font-size:14px; line-height:1.45; color:var(--muted); overflow-wrap:anywhere}
.lpnote .nw{color:var(--navy); font-weight:600}
#p-contact{font-size:16px; line-height:1.5}
#p-contact p{margin:0}
#p-contact a{color:var(--tealInk); font-weight:600; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere}
/* the videos: links to YouTube, never a player */
.vgroup + .vgroup{margin-top:16px}
.vgroup .eyebrow{margin-bottom:8px}
.vids{list-style:none; margin:0; padding:0; border-radius:14px; overflow:hidden; box-shadow:0 0 0 1px var(--line)}
.vids li + li{box-shadow:inset 0 1px 0 var(--line)}
a.vid{display:flex; align-items:center; gap:12px; min-height:56px; padding:10px 16px}
a.vid:hover{background:rgba(var(--ink-rgb),.04)}
a.vid:focus-visible{outline:3px solid var(--focus); outline-offset:-3px; border-radius:12px}
a.vid .vplay{width:18px; height:18px; flex:none; fill:none; stroke:var(--tealInk); stroke-width:2; stroke-linejoin:round}
.vt{flex:1; min-width:0; display:flex; flex-direction:column; gap:2px}
.vt b{font-weight:700; font-size:15.5px; line-height:1.3}
.vm{font-size:13.5px; font-weight:600; color:var(--muted)}
.vtoday{display:inline-flex; align-items:center; min-height:20px; padding:0 7px; margin-left:4px; border-radius:6px; background:var(--live); color:var(--navy); font-weight:700; font-size:12.5px}
/* the Videos card's way to all of them; Worth watching's own line under a title; a lesson's code beside its video (16 Nov 2026) */
.pvids .head, .vunits .head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px}
.pvids .head h2, .vunits .head h2{margin:0}
.pvids .more{display:inline-flex; align-items:center; min-height:44px; font-weight:700; font-size:14.5px; color:var(--tealInk)}
.pvids .more:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:8px}
.vhook{font-size:14.5px; font-weight:500; line-height:1.35}
.vcode{margin-left:4px; color:var(--tealInk); font-weight:700; font-variant-numeric:tabular-nums}
/* ---- /videos/ (tools/build.mjs from public/videos.json): By unit, each unit a row that opens; Worth watching by kind */
@media (min-width:900px){ .dash main.board.videos-page{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr)} }
.videos .c-today{order:1} .videos .vunits{order:2} .videos .vworth{order:3}
.vunits{padding-bottom:10px}
.vcourse + .vcourse{margin-top:22px}
.vunits.one .vcourse{margin-top:0}   /* one course at a time (videos-page.js) */
.vcourse > .eyebrow{margin:0 0 2px}
.vu{scroll-margin-top:84px}
.vu .vids{margin:0 0 18px}
.vu summary h3 .vtoday{margin-left:6px; vertical-align:2px}
.vworth > h2{margin-bottom:12px}
.vjump{display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px}
.vjump a{display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:11px; background:var(--quiet); font-weight:700; font-size:14.5px}
.vjump a:hover{background:var(--quiet2)}
.vjump a:focus-visible{outline:3px solid var(--focus); outline-offset:2px; border-radius:11px}
.vworth .vgroup{scroll-margin-top:84px}
.vworth .vgroup + .vgroup{margin-top:24px}
.vworth, .vunits{scroll-margin-top:84px}
.vtop{margin:14px 0 2px}   /* one column (a phone): Worth watching is below the units, so the title has the way to each */
@media (min-width:900px){ .vtop{display:none} }
/* Resources: the calculators, one at a time; the practice; the online tools; FAST prep */
.calc .head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 14px; margin-bottom:12px}
.calc .head h2{margin:0}
.cseg button{min-width:0}
.cpanel[hidden]{display:none}
.cpanel + .cpanel{margin-top:22px}
.cseg:not([hidden]) ~ * .cpanel + .cpanel{margin-top:0}
.cline{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 14px; margin:0 0 10px; font-size:15.5px; line-height:1.4; color:var(--navy)}
a.newtab{display:inline-flex; align-items:center; gap:6px; min-height:44px; font-weight:700; font-size:15px; color:var(--tealInk); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--teal-line); white-space:nowrap}
a.newtab .ext{stroke:currentColor}
.cframe{position:relative; border-radius:16px; overflow:hidden; background:var(--quiet); box-shadow:inset 0 0 0 1px var(--line)}
.cframe iframe{position:relative; display:block; border:0}
/* under the frame, seen only while it is empty: where to go if the other site won't show inside this page */
.cfall{position:absolute; inset:0; display:grid; place-items:center; margin:0; padding:24px; text-align:center; font-size:15px; font-weight:600; color:var(--muted)}
.cframe.fast iframe{width:100%; height:460px}
.cframe.ti{width:100%; max-width:372px; height:640px; margin:0 auto; background:#55595c}   /* the emulator's own grey, so a scaled frame has no seam; the photo ends at 628 */
.cframe.ti iframe{width:372px; height:640px; transform-origin:0 0}
.credit{margin:8px 0 -8px; font-size:14px; text-align:center}
.calc.one .cpanel + .cpanel{margin-top:0}   /* one calculator at a time (resources.js): no gap above the second */
.credit a{font-size:14px; font-weight:600}
.prac .eyebrow{margin:16px 0 8px}
.prac .pr > .eyebrow:first-child{margin-top:0}
.prac .linkgrid + .linkgrid{margin-top:16px}
.prac .pr:not(:empty) + .linkgrid{margin-top:16px}
.prac .chev, .fprep .ext, .otools .ext{flex:none}
.resources .c-today{order:1} .resources .calc{order:2} .resources .prac{order:3} .resources .pvids{order:4} .resources .otools{order:5} .resources .fprep{order:6}
/* the cockpit's Parents page: How to help at home and Classroom needs above the questions */
.pparts{margin-bottom:18px}
.fpart{margin:0 0 12px !important; font-weight:700; font-size:16px}
.ptog{display:inline-flex; align-items:center; gap:8px; min-height:44px; font-weight:600; font-size:15px; cursor:pointer}
.ptog input{width:20px; height:20px; accent-color:var(--navy)}
.fprev .ptext{font-size:15.5px}
.nlh{margin-top:14px}
.nrows{list-style:none; margin:0 0 10px; padding:0; display:flex; flex-direction:column; gap:8px}
.nrow{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.3fr) 44px; gap:8px; align-items:center}
.nrm{display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:11px; background:var(--quiet); color:var(--navy); cursor:pointer}
.nrm:hover{background:var(--quiet2)}
.nrm:focus-visible{outline:3px solid var(--focus); outline-offset:2px}
.nrm svg{width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round}
@media (max-width:620px){ .nrow{grid-template-columns:minmax(0, 1fr) 44px} .nrow input + input{grid-column:1; grid-row:2} .nrow .nrm{grid-column:2; grid-row:1} }
/* ---- "Get notified" (public/notify.js; 8 Nov 2026): a button and a line. On the Parents page under Stay in the loop's
   "Announcements on your phone" (the calendar's own pattern beside it: a small button, then a quiet note); at the foot of
   the home page's Announcements card, below a hairline, and folded away with the notes. In the cockpit: Notify parents
   beside Pin, how many devices (never who) quietly after it, and one quiet line once a send is done. */
.notify{display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px}
.notify[hidden]{display:none}
.notify .btn{padding:0 14px; gap:7px}
.notify .btn svg{width:17px; height:17px}
.notify .nline{flex:1 1 240px; margin:0; font-size:14px; line-height:1.45; color:var(--muted)}
.notify .nline.nbad{flex-basis:100%; font-weight:600; color:var(--coralInk)}
.notify .nline.nios{flex-basis:100%; font-size:15px; color:var(--navy)}
.notify .nstate{display:inline-flex; align-items:center; gap:8px; min-height:44px; margin:0; font-weight:700; font-size:15.5px; line-height:1.3}
.notify .nstate svg{width:20px; height:20px; flex:none; fill:none; stroke:var(--tealInk); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round}
.notify .ish{display:inline-block; width:18px; height:18px; vertical-align:-3px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.news .notify{margin-top:14px; padding-top:14px; box-shadow:inset 0 1px 0 var(--line)}
.news.folded .notify{display:none}
.ann .ntog{display:flex; width:max-content; max-width:100%; margin-top:6px}
.ann .ntog[hidden]{display:none}
.ann .ndev{font-weight:600; color:var(--muted)}
.ann .ndev:not(:empty)::before{content:"· "}
.ann .pline{margin:6px 0 0; font-size:14px; font-weight:600; color:var(--muted)}
.ann .pline:empty{display:none}
.ann .pline.bad{color:var(--coralInk)}
