/* Tiny Saints Academy: shared system for all three homepage options */
/* Tiny Saints custom lettering: HALO for display, SUNDAY for reading */
@font-face { font-family: "TSA Halo"; src: url(/assets/fonts/tsa-halo-regular.woff2) format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "TSA Halo Inline"; src: url(/assets/fonts/tsa-halo-inline.woff2) format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "TSA Sunday"; src: url(/assets/fonts/tsa-sunday-regular.woff2) format("woff2"); font-weight: 100 599; font-display: block; }
@font-face { font-family: "TSA Sunday"; src: url(/assets/fonts/tsa-sunday-bold.woff2) format("woff2"); font-weight: 600 900; font-display: block; }

:root {
  --cream: #fff8ee;
  --paper: #fffdf8;
  --cream-2: #f6ead8;
  --honey: #c09c6c;
  --honey-2: #a8845a;
  --honey-3: #8a6a42;
  --brown: #6c6054;
  --ink: #3d342e;
  --peach: #fcc9a2;
  --blush: #f8dcc6;
  --marian: #a9c8e0;
  --marian-2: #7ea7c9;
  --marian-ink: #3a668d;
  --band: #5b5047;
  --ok: #3f7a52;
  --warn: #9a5a1c;
  --display: "TSA Halo", "Cooper Black", Georgia, serif;
  --body: "TSA Sunday", "Trebuchet MS", Arial, sans-serif;
  --bw: 3px;
  --border: var(--bw) solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --gut: 20px;
  --max: 1120px;
  --fs: 16px;
  --ls: 0.035em;
  --lh: 1.55;
  --press: cubic-bezier(.2, .9, .3, 1.4);
}
@media (max-width: 640px) { :root { --gut: 12px; --shadow: 4px 4px 0 var(--ink); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--fs);
  line-height: var(--lh);
  letter-spacing: var(--ls);
  text-transform: uppercase;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; text-transform: uppercase; }
input::placeholder, textarea::placeholder { color: #8b7d71; opacity: 1; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 900; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: 0.01em; }
p { margin: 0; max-width: 64ch; }
svg { display: block; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--marian-ink); outline-offset: 3px; }

[hidden] { display: none !important; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--cream); padding: 10px 14px; border: var(--border); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: 64px; position: relative; }
@media (max-width: 640px) { .section { padding-block: 42px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .16em; font-weight: 800; background: var(--ink); color: var(--cream); padding: 6px 10px; margin-bottom: 14px; }
.eyebrow svg { width: 16px; height: 16px; }
.h2 { font-size: clamp(27px, 4.4vw, 44px); margin-bottom: 14px; }
.lead { font-size: 17px; }
.muted { color: var(--brown); }
.hl { background: var(--peach); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* icons */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ico .f { fill: var(--honey); stroke: none; }
.ico .fm { fill: var(--marian); stroke: none; }

/* buttons */
.btn { --bg: var(--honey); text-align: center; --fg: var(--ink); position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .05em; background: var(--bg); color: var(--fg); border: var(--border); box-shadow: var(--shadow-sm); text-decoration: none; cursor: pointer; transition: transform .16s var(--press), box-shadow .16s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn .ico { width: 20px; height: 20px; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn.is-down { transform: translate(2px, 2px) scale(.97); box-shadow: 1px 1px 0 var(--ink); transition-duration: .08s; }
.btn.ghost { --bg: var(--paper); }
.btn.marian { --bg: var(--marian); }
.btn.dark { --bg: var(--ink); --fg: var(--cream); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14.5px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.pulse-ring { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid currentColor; pointer-events: none; animation: ring .5s ease-out forwards; }
@keyframes ring { to { transform: scale(9); opacity: 0; } }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--cream); border-bottom: var(--border); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; flex-shrink: 0; }
.brand img { width: 44px; height: auto; }
.brand .name { font-family: var(--display); font-weight: 900; font-size: 18px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.brand .tag { display: block; font-size: 10.5px; letter-spacing: .16em; color: var(--brown); margin-top: 4px; font-weight: 800; }
.stamp-in { animation: stampIn .5s var(--press) both; }
@keyframes stampIn { 0% { transform: scale(1.5) rotate(-6deg); opacity: 0; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: none; } }
.nav { display: flex; gap: 18px; }
.top .btn, .nav a { white-space: nowrap; }
.top .btn, .top .iconbtn { flex-shrink: 0; }
.nav a { text-decoration: none; font-size: 13px; letter-spacing: .12em; font-weight: 800; border-bottom: 3px solid transparent; padding-block: 4px; }
.nav a:hover { border-color: var(--honey); }
.iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border: var(--border); background: var(--paper); cursor: pointer; padding: 0; flex: none; }
.iconbtn .ico { width: 20px; height: 20px; }
.iconbtn[aria-pressed="false"] { background: var(--cream-2); }
.iconbtn[aria-pressed="false"] .strike { display: block; }
.iconbtn .strike { display: none; }
@media (max-width: 1080px) { .nav { display: none; } }
@media (max-width: 900px) { .top .cta-top { display: none; } }
@media (max-width: 1100px) { .nav { gap: 12px; } .nav a { font-size: 12px; letter-spacing: .08em; } }
@media (max-width: 400px) { .actbar .btn { font-size: 13px; padding: 6px 8px; gap: 6px; } }
@media (max-width: 380px) { .actbar .btn.primary .ico { display: none; } }
@media (max-width: 520px) { .brand { flex-shrink: 1; } .top .wrap { gap: 8px; } .brand .name { font-size: 17px; white-space: normal; line-height: 1.02; } .brand .tag { display: none; } .brand img { width: 40px; } .iconbtn { width: 34px; height: 34px; } }

.progress { position: fixed; left: 0; top: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--honey-2); z-index: 70; pointer-events: none; }

/* brand mark backgrounds */
.glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at var(--gx, 70%) var(--gy, 35%), rgba(192, 156, 108, .30), rgba(192, 156, 108, 0) 70%); }
.mark-corner { position: absolute; width: min(62vw, 560px); aspect-ratio: 828 / 538; right: -14%; bottom: -18%; background: var(--honey-3); -webkit-mask: url(/assets/mark-mask.png) center / contain no-repeat; mask: url(/assets/mark-mask.png) center / contain no-repeat; opacity: .06; pointer-events: none; }
.mark-field { position: absolute; inset: 0; pointer-events: none; opacity: .03; background: var(--cream); -webkit-mask: url(/assets/head-mask.png) 0 0 / 64px auto repeat; mask: url(/assets/head-mask.png) 0 0 / 64px auto repeat; }
.drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drift i { position: absolute; top: -80px; width: 34px; aspect-ratio: 494 / 517; background: var(--honey); -webkit-mask: url(/assets/head-mask.png) center / contain no-repeat; mask: url(/assets/head-mask.png) center / contain no-repeat; opacity: .12; animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(-10vh) rotate(-12deg); } to { transform: translateY(120vh) rotate(18deg); } }
.card { position: relative; background: var(--paper); border: var(--border); box-shadow: var(--shadow); }
.card::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 70px; aspect-ratio: 494 / 517; background: var(--honey); -webkit-mask: url(/assets/head-mask.png) center / contain no-repeat; mask: url(/assets/head-mask.png) center / contain no-repeat; opacity: 0; transform: translateY(6px) rotate(-8deg); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.card:hover::after { opacity: .12; transform: none; }

/* reveal */
.rise { transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease; }
html.js .rise:not(.in) { transform: translateY(14px); opacity: 0; }
.wipe { transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
html.js .wipe:not(.in) { clip-path: inset(0 100% 0 0); }

/* stats reels */
.stats { background: var(--ink); color: var(--cream); border-block: var(--border); position: relative; overflow: hidden; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 18px 10px; text-align: center; border-left: 2px dashed rgba(255, 248, 238, .25); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 5vw, 44px); line-height: 1; display: inline-flex; align-items: flex-end; font-variant-numeric: tabular-nums; color: var(--peach); }
.stat .num small { font-size: .5em; margin-left: .18em; margin-bottom: .2em; }
.stat .num small.and { margin-inline: .45em; }
.stat .lbl { font-size: 11.5px; letter-spacing: .14em; margin-top: 6px; font-weight: 800; }
.reel { display: inline-block; height: 1em; overflow: hidden; vertical-align: bottom; }
.reel span { display: block; transition: transform 1.2s cubic-bezier(.2, .9, .1, 1); }
.reel span b { display: block; height: 1em; font-weight: inherit; }
@media (max-width: 640px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); padding-inline: 0; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 2px dashed rgba(255, 248, 238, .25); } }

/* schedule */
.sched-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.seg { display: inline-flex; border: var(--border); background: var(--paper); box-shadow: var(--shadow-sm); }
.seg button { border: 0; background: none; padding: 10px 16px; font-family: var(--display); font-weight: 900; font-size: 14.5px; letter-spacing: .06em; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.seg button + button { border-left: var(--border); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.seg .ico { width: 18px; height: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; letter-spacing: .1em; font-weight: 800; margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border: 2px solid var(--ink); display: inline-block; }
.lg-open { background: var(--marian); }
.lg-few { background: var(--peach); }
.lg-full { background: repeating-linear-gradient(45deg, var(--cream-2) 0 3px, var(--honey) 3px 5px); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; font-weight: 800; }
.live .dot { width: 10px; height: 10px; background: var(--ok); border: 2px solid var(--ink); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.week { display: grid; grid-template-columns: 64px repeat(var(--cols, 3), minmax(0, 1fr)); border: var(--border); background: var(--paper); box-shadow: var(--shadow); position: relative; }
.week .dh { font-family: var(--display); font-weight: 900; font-size: 20px; padding: 10px 8px; text-align: center; border-bottom: var(--border); border-left: var(--border); background: var(--cream-2); }
.week .dh small { display: block; font-family: var(--body); font-weight: 800; font-size: 11px; letter-spacing: .12em; color: var(--brown); }
.week .corner { border-bottom: var(--border); background: var(--cream-2); }
.week .th { font-family: var(--display); font-weight: 900; font-size: 15px; padding: 10px 6px; border-top: 2px dashed var(--honey); text-align: center; display: grid; place-items: center; line-height: 1.1; }
.week .th small { display: block; font-family: var(--body); font-size: 10px; letter-spacing: .1em; }
.week .th.first, .week .slot.first { border-top: 0; }
.slot { position: relative; border-left: var(--border); border-top: 2px dashed var(--honey); padding: 10px; min-height: 92px; text-align: left; background: var(--marian); cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; transition: transform .16s var(--press), background .2s ease; }
.slot:hover { background: #bcd5e8; }
.slot.few { background: var(--peach); }
.slot.few:hover { background: #fdd6b9; }
.slot.full { background: repeating-linear-gradient(45deg, var(--cream-2) 0 8px, #ecdcc4 8px 16px); }
.slot.closed, .slot.none { background: repeating-linear-gradient(45deg, var(--paper) 0 8px, var(--cream-2) 8px 16px); cursor: default; }
.slot.none { display: grid; place-items: center; color: var(--brown); font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.slot .t { font-family: var(--display); font-weight: 900; font-size: 16px; line-height: 1.05; }
.slot .t small { display: block; font-family: var(--body); font-size: 10.5px; letter-spacing: .1em; font-weight: 800; margin-top: 2px; }
.slot .seats { display: flex; flex-wrap: wrap; gap: 3px; }
.slot .seats i { width: 11px; height: 11px; border: 2px solid var(--ink); background: var(--paper); }
.slot .seats i.t { background: var(--ink); }
.slot .left { font-size: 11.5px; letter-spacing: .1em; font-weight: 900; line-height: 1.15; }
.slot.is-down { transform: scale(.97); }
.slot .go { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; }
.slot .go .ico { width: 14px; height: 14px; stroke-width: 3; }
.slot.loading { background: var(--cream-2); cursor: progress; }
.slot.loading .left { opacity: .5; }
@media (max-width: 640px) {
  .week { grid-template-columns: 44px repeat(var(--cols, 3), minmax(0, 1fr)); }
  .week .dh { font-size: 17px; padding: 8px 4px; }
  .week .th { font-size: 13px; padding: 6px 2px; }
  .slot { padding: 7px 6px; min-height: 84px; }
  .slot .t { font-size: 14px; }
  .slot .t small { display: none; }
  .slot .left { font-size: 10.5px; }
  .slot .seats i { width: 9px; height: 9px; }
  .slot .go { display: none; }
}

.month { border: var(--border); background: var(--paper); box-shadow: var(--shadow); }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: var(--border); background: var(--cream-2); }
.mhead h3 { font-size: 22px; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); }
.mgrid .wd { font-size: 11px; letter-spacing: .12em; font-weight: 900; text-align: center; padding: 8px 2px; border-bottom: 2px dashed var(--honey); }
.mday { min-height: 70px; border-right: 1px solid #e6d6bf; border-bottom: 1px solid #e6d6bf; padding: 6px; font-size: 13px; font-weight: 800; display: flex; flex-direction: column; gap: 5px; background: var(--paper); text-align: left; }
.mday:nth-child(7n) { border-right: 0; }
.mday.out { color: #b9aa98; background: var(--cream); }
.mday.class { cursor: pointer; background: #eef5fa; border: 0; border-right: 1px solid #e6d6bf; border-bottom: 1px solid #e6d6bf; }
.mday.class:hover { background: #dcebf5; }
.mday.class.full { background: repeating-linear-gradient(45deg, var(--cream-2) 0 6px, #ecdcc4 6px 12px); }
.mday .dots { display: flex; flex-wrap: wrap; gap: 3px; }
.mday .dots i { width: 9px; height: 9px; border: 2px solid var(--ink); background: var(--marian-2); }
.mday .dots i.f { background: var(--peach); }
.mday .dots i.x { background: var(--cream-2); }
.mday .cnt { font-size: 10px; letter-spacing: .08em; }
.mday.today { outline: 3px solid var(--honey-2); outline-offset: -3px; }
@media (max-width: 640px) { .mday { min-height: 58px; padding: 4px; font-size: 12px; } .mday .cnt { display: none; } .mday.off .cnt { display: block; font-size: 7.5px; letter-spacing: 0; } }
.sched-note { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: var(--border); background: var(--paper); padding: 7px 10px; font-size: 12px; letter-spacing: .1em; font-weight: 800; }
.chip .ico { width: 16px; height: 16px; }
.chip.peach { background: var(--peach); }
.chip.marian { background: var(--marian); }
.chip.honey { background: var(--honey); }
@media (max-width: 640px) { .sched-note { display: grid; grid-template-columns: 1fr 1fr; } .chip { justify-content: center; text-align: center; } }

/* sheet (booking modal) */
.sheet-bg { position: fixed; inset: 0; background: rgba(74, 64, 57, .55); z-index: 120; display: grid; place-items: center; padding: 12px; }
.sheet { width: min(560px, 100%); max-height: calc(100dvh - 24px); overflow: auto; background: var(--paper); border: var(--border); box-shadow: 8px 8px 0 var(--ink); position: relative; animation: sheetIn .32s var(--press) both; }
@keyframes sheetIn { from { transform: translateY(24px) scale(.96); opacity: 0; } }
.sheet-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: var(--border); background: var(--marian); position: relative; overflow: hidden; }
.sheet-top .mk { width: 40px; flex: none; }
.sheet-top h3 { font-size: 21px; }
.sheet-top p { font-size: 11.5px; letter-spacing: .12em; font-weight: 800; }
.sheet-top .x { margin-left: auto; }
.meter { height: 12px; border: 2px solid var(--ink); background: var(--paper); margin-top: 6px; width: min(220px, 100%); }
.meter b { display: block; height: 100%; width: 0; background: var(--ink); transition: width .9s cubic-bezier(.2, .9, .2, 1); }
.sheet form { padding: 12px 14px 14px; display: grid; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld label, .fld .lb { font-size: 11px; letter-spacing: .13em; font-weight: 900; }
.fld input { border: var(--border); background: var(--cream); padding: 9px 10px; min-height: 44px; width: 100%; min-width: 0; text-transform: none; letter-spacing: .01em; font-weight: 700; }
.fld input:focus { background: var(--paper); }
.fld.bad input { border-color: #a3321b; background: #fff1ec; }
.toggle2 { display: grid; grid-template-columns: 1fr 1fr; border: var(--border); }
.toggle2 label { display: grid; place-items: center; min-height: 44px; cursor: pointer; font-family: var(--display); font-weight: 900; font-size: 17px; background: var(--cream); }
.toggle2 label + label { border-left: var(--border); }
.toggle2 input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; }
.toggle2 label { position: relative; }
.toggle2 label:has(input:checked) { background: var(--ink); color: var(--cream); }
.toggle2 label:has(input:focus-visible) { outline: 3px solid var(--marian-ink); outline-offset: -5px; }
.dates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.dates label { flex: none; cursor: pointer; border: var(--border); background: var(--cream); padding: 6px 9px; text-align: center; min-width: 62px; }
.dates label b { display: block; font-family: var(--display); font-size: 18px; line-height: 1; }
.dates label span { font-size: 10px; letter-spacing: .1em; font-weight: 900; }
.dates input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; }
.dates label { position: relative; }
.dates label:has(input:checked) { background: var(--honey); box-shadow: var(--shadow-sm); }
.dates label:has(input:focus-visible) { outline: 3px solid var(--marian-ink); outline-offset: 2px; }
.fine { font-size: 11.5px; letter-spacing: .08em; color: var(--brown); }
.form-err { color: #a3321b; font-size: 12px; letter-spacing: .08em; font-weight: 900; }
.hp { position: absolute; left: -9999px; }
.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.done { padding: 20px 16px 18px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.seal { width: 130px; height: 130px; position: relative; display: grid; place-items: center; }
.seal img { width: 70px; animation: pop .6s var(--press) .2s both; }
.seal svg { position: absolute; inset: 0; animation: spin 14s linear infinite; }
.seal-stamp { font-family: var(--display); font-weight: 900; font-size: 30px; border: 4px solid var(--ok); color: var(--ok); padding: 4px 14px; transform: rotate(-4deg); animation: stampIn .45s var(--press) .35s both; }
.seal-stamp.wait { border-color: var(--warn); color: var(--warn); font-size: clamp(18px, 5.6vw, 28px); white-space: nowrap; }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; text-align: left; font-size: 13px; margin: 0; border: var(--border); padding: 10px 12px; background: var(--cream); width: 100%; }
.done dt { color: var(--brown); letter-spacing: .12em; font-size: 11px; font-weight: 900; padding-top: 2px; }
.done dd { margin: 0; }
.done .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.done .cal { width: 100%; border: var(--border); background: var(--cream); padding: 10px 12px 9px; display: grid; gap: 8px; text-align: left; }
.done .cal-lab { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; font-weight: 900; color: var(--brown); }
.done .cal-lab .ico { width: 16px; height: 16px; }
.done .cal-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.done .cal-opts .btn { padding-inline: 2px; min-width: 0; font-size: 12px; letter-spacing: .02em; }
@media (min-width: 600px) { .done .cal-opts .btn { font-size: 14.5px; } }
@media (max-width: 340px) { .done .cal-opts .btn { font-size: 10.5px; letter-spacing: 0; } }
.done .cal-note { margin: 0; font-size: 10.5px; letter-spacing: .08em; color: var(--brown); line-height: 1.35; }
.mday.off { color: var(--brown); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--cream-2) 6px 12px); }
.mday.off .cnt { font-size: 8.5px; letter-spacing: .06em; font-weight: 900; }
.done-hd { display: grid; justify-items: center; gap: 10px; }
@media (max-height: 760px) {
  .done { padding: 12px 14px 14px; gap: 8px; }
  .done-hd { display: flex; align-items: center; justify-content: center; gap: 14px; }
  .seal { width: 76px; height: 76px; flex: none; } .seal img { width: 42px; }
  .seal-stamp, .seal-stamp.wait { font-size: 21px; padding: 3px 10px; border-width: 3px; }
  .done dl { padding: 8px 10px; font-size: 12.5px; gap: 3px 10px; }
  .done .fine { margin: 0; }
}
.done-hd .seal-stamp.wait { white-space: normal; }
@media (max-height: 760px) { .done-hd .seal-stamp.wait { font-size: 18px; max-width: 190px; line-height: 1.05; } }
@media (max-height: 680px) {
  .sheet-top:has(+ .done) { padding: 8px 12px; }
  .sheet-top:has(+ .done) h3 { font-size: 17px; }
  .sheet-top:has(+ .done) .mk { width: 32px; }
  .seal { display: none; }
  .done { padding: 10px 12px 12px; gap: 7px; }
  .seal-stamp, .seal-stamp.wait, .done-hd .seal-stamp.wait { font-size: 18px; max-width: none; }
  .done dl { font-size: 11.5px; padding: 6px 8px; }
  .done dt { font-size: 10px; }
  .done .fine { font-size: 10.5px; line-height: 1.3; }
  .done .cal { padding: 7px 9px; gap: 6px; }
  .done .cal-note { font-size: 10px; }
  .done .btn.small { min-height: 38px; }
}
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.daypick { padding: 12px 14px 16px; display: grid; gap: 8px; }
.daypick .slot { border: var(--border); min-height: 0; flex-direction: row; align-items: center; }

/* teacher */
.photo { position: relative; border: var(--border); box-shadow: var(--shadow); overflow: hidden; background: var(--cream-2); aspect-ratio: 4 / 5; }
.photo > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(192, 156, 108, .06) 0%, rgba(192, 156, 108, .10) 55%, rgba(108, 96, 84, .42) 100%); pointer-events: none; }
.photo .corner-mark { position: absolute; z-index: 2; right: 10px; top: 10px; width: 50px; height: auto; background: rgba(255, 248, 238, .9); border: 2px solid var(--ink); padding: 4px; }
.photo .cap { position: absolute; z-index: 2; left: 10px; bottom: 10px; right: 10px; color: var(--cream); font-family: var(--display); font-weight: 900; font-size: 22px; text-shadow: 0 2px 0 rgba(74, 64, 57, .5); }
.photo .cap small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: .14em; }

/* details and faq */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { padding: 16px; display: grid; gap: 6px; align-content: start; }
.fact .ico { width: 30px; height: 30px; }
.fact b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.05; }
.fact span { font-size: 13px; letter-spacing: .06em; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; gap: 10px; } .fact { padding: 12px; } .fact b { font-size: 19px; } .fact span { font-size: 12px; } }
.faq { display: grid; gap: 10px; }
.faq details { border: var(--border); background: var(--paper); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 16px; font-family: var(--display); font-weight: 900; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: var(--border); background: var(--marian); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 16px 16px; font-size: 14.5px; }

/* dark band */
.band { background: var(--band); color: var(--cream); position: relative; overflow: hidden; border-block: var(--border); }
.band .h2 { color: var(--cream); }
.sharp span { opacity: .18; filter: blur(3px); transition: opacity .5s ease, filter .5s ease; }
.sharp span.on { opacity: 1; filter: none; }

/* footer */
footer { background: var(--ink); color: var(--cream); padding-block: 44px 110px; position: relative; overflow: hidden; }
footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; position: relative; }
footer h4 { font-size: 17px; color: var(--peach); margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
footer li { display: flex; gap: 8px; align-items: center; }
footer a { text-decoration: none; border-bottom: 2px solid var(--honey); }
footer .lockup { background: var(--cream); border: 3px solid var(--honey); padding: 10px; width: 200px; }
footer .legal { font-size: 11.5px; letter-spacing: .12em; margin-top: 26px; color: #e8dccd; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer .legal button { background: none; border: 0; padding: 0; border-bottom: 2px solid var(--honey); cursor: pointer; color: inherit; font-size: inherit; letter-spacing: inherit; }
@media (max-width: 800px) { footer .wrap { grid-template-columns: 1fr; } }

/* bottom action bar (phones) */
.actbar { display: none; }
@media (max-width: 900px) {
  .actbar { display: grid; grid-template-columns: 1fr auto 52px; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--cream); border-top: var(--border); box-shadow: 0 -6px 18px rgba(192, 156, 108, .35); }
  .actbar .btn { min-height: 46px; font-size: 15px; padding: 6px 12px; box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
  .actbar .btn .ico { width: 18px; height: 18px; }
  .actbar .btn.ig { padding: 0; } .actbar .btn.ig span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body { padding-bottom: 64px; }
}

/* toast */
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 150; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--cream); border: 3px solid var(--honey); padding: 10px 16px; font-size: 13px; letter-spacing: .1em; font-weight: 800; transition: transform .3s var(--press), opacity .3s ease; pointer-events: none; max-width: calc(100% - 24px); text-align: center; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

/* accessibility panel */
.a11y-btn { position: fixed; left: 10px; bottom: 12px; z-index: 95; width: 32px; height: 32px; }
@media (max-width: 900px) { .a11y-btn { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
.a11y { position: fixed; right: 10px; top: calc(74px + env(safe-area-inset-top, 0px)); z-index: 130; width: min(360px, calc(100% - 20px)); max-height: calc(100dvh - 80px); overflow: auto; background: var(--paper); border: var(--border); box-shadow: 6px 6px 0 var(--ink); }
@media (max-width: 900px) { .a11y { max-height: calc(100dvh - 160px); } }
.a11y header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--marian); border-bottom: var(--border); }
.a11y header h2 { font-size: 18px; }
.a11y .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.a11y .grid button { border: var(--border); background: var(--cream); min-height: 48px; padding: 8px; font-size: 11.5px; letter-spacing: .1em; font-weight: 900; cursor: pointer; display: flex; align-items: center; gap: 8px; text-align: left; }
.a11y .grid button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.a11y .grid .full { grid-column: 1 / -1; justify-content: center; }
.a11y .size { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1fr 1fr; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .1em; font-weight: 900; }
.a11y .size button { justify-content: center; }
.a11y .stmt { padding: 0 12px 12px; font-size: 12px; letter-spacing: .05em; line-height: 1.5; }
.a11y .stmt h3 { font-size: 15px; margin: 4px 0 6px; }

/* user settings */
main, .top, footer { zoom: var(--zoom, 1); }
.fld.bad .toggle2, .fld.bad .dates label { border-color: #a3321b; }
html.a-contrast { --cream: #ffffff; --paper: #ffffff; --cream-2: #f2f2f2; --brown: #3b322b; --ink: #2b231d; --honey: #d9b68a; --marian: #cfe2f1; --band: #2b231d; }
html.a-contrast body { color: var(--ink); }
html.a-readable { --display: "Atkinson Hyperlegible", Arial, sans-serif; --body: "Atkinson Hyperlegible", Arial, sans-serif; }
html.a-readable body, html.a-readable h1, html.a-readable h2, html.a-readable h3, html.a-readable h4 { font-variation-settings: normal; }
html.a-links a { text-decoration: underline !important; text-decoration-thickness: 3px !important; background: #fff2a8; color: #2b231d !important; }
html.a-spacing { --ls: .09em; --lh: 1.9; }
html.a-spacing p, html.a-spacing li { word-spacing: .16em; }
html.a-focus :focus { outline: 5px solid #1f5fa0 !important; outline-offset: 4px !important; }
html.a-still *, html.a-still *::before, html.a-still *::after { animation: none !important; transition: none !important; }
html.a-still .rise, html.a-still .wipe { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html.a-still .drift { display: none; }
html.a-still .sharp span { opacity: 1; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rise, .wipe { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .drift { display: none; }
  .sharp span { opacity: 1; filter: none; }
}

/* preloader shell */
.pre { display: none; }
html.js .pre { display: grid; animation: preFail .01s linear 4.6s forwards; }
@keyframes preFail { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.pre { position: fixed; inset: 0; z-index: 300; background: var(--cream); display: grid; place-items: center; transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); clip-path: inset(0 0 0 0); }
.pre.out { clip-path: inset(0 0 100% 0); }
.pre .skipbtn { position: absolute; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.pre .glow { --gx: 50%; --gy: 50%; }

/* option switcher: a slim bar above the page so it never covers content */
.opts { display: none; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; background: var(--cream-2); border-bottom: var(--border); padding: 6px var(--gut); }
.opts.on { display: flex; }
.opts b { font-size: 11px; letter-spacing: .16em; margin-right: 4px; }
.opts a, .opts button { display: inline-grid; place-items: center; min-width: 40px; height: 34px; padding: 0 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 16px; border: var(--border); background: var(--paper); cursor: pointer; gap: 6px; grid-auto-flow: column; }
.opts a[aria-current="page"] { background: var(--honey); }
.opts button { font-size: 11px; letter-spacing: .12em; }
.opts button .ico { width: 16px; height: 16px; }
/* Soft opening notes */
.soft-open { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; background: var(--honey); border: var(--border); box-shadow: 3px 3px 0 var(--ink); padding: 8px 11px; font-size: 12.5px; letter-spacing: .05em; font-weight: 800; line-height: 1.35; max-width: 680px; }
.soft-open svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.soft-open b { font-weight: 900; }
.soft-tag { display: inline-flex; gap: 6px; align-items: center; margin: 12px 0 0; background: var(--peach); border: var(--border); padding: 5px 10px; font-size: 12px; letter-spacing: .08em; font-weight: 900; }
.soft-tag svg { width: 16px; height: 16px; flex: none; }
/* Classroom wish list: soft, optional */
.wish { padding-top: 10px; }
.wish-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 22px; background: var(--cream); max-width: 820px; margin: 0 auto; }
.wish-art { width: 100%; height: auto; }
.wish-card h2 { font-size: 26px; margin: 6px 0 8px; }
.wish-card p { margin: 0; font-size: 14px; letter-spacing: .05em; line-height: 1.45; }
.wish-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px !important; }
.wish-go .fine { font-size: 11.5px; color: var(--brown); }
@media (max-width: 560px) { .wish-card { grid-template-columns: 1fr; gap: 10px; padding: 16px; text-align: center; } .wish-art { width: 120px; margin: 0 auto; } .wish-go { justify-content: center; } .wish-card .eyebrow { justify-content: center; } }
.facts .fact.pop { grid-column: 1 / -1; background: var(--marian); }
.facts .fact.pop b { font-size: 28px; }
@media (max-width: 640px) { .facts .fact.pop b { font-size: 21px; } }
/* Week grid with four class days on phones */
@media (max-width: 640px) {
  .week[style*="--cols:4"] { grid-template-columns: 38px repeat(4, minmax(0, 1fr)); }
  .week[style*="--cols:4"] .dh { font-size: 15px; padding: 7px 2px; }
  .week[style*="--cols:4"] .dh small { display: none; }
  .week[style*="--cols:4"] .th { font-size: 11px; padding: 6px 1px; }
  .week[style*="--cols:4"] .slot { padding: 6px 5px; min-width: 0; }
  .week[style*="--cols:4"] .slot .t { font-size: 14px; }
  .week[style*="--cols:4"] .slot .left { font-size: 9px; letter-spacing: .03em; }
  .week[style*="--cols:4"] .slot .seats i { width: 7px; height: 7px; }
}
