/* G.S.I Kids Castle — "Chalk and board"
   Slate boards for headlines, the class table, the doubt box and the footer;
   paper for reading. Chalk yellow / pink / blue appear on slate only. */

:root {
  --slate: #22302B;
  --slate-2: #2B3B35;      /* a lighter board, for panels on slate */
  --frame: #3B4843;        /* board frame and ledge */
  --paper: #F6F3EA;
  --paper-2: #ECE7DA;      /* deeper paper band */
  --ink: #1C1F1D;
  --ink-2: #474D49;        /* secondary text on paper (7.8:1) */
  --chalk: #F1EEE4;        /* chalk-white text on slate */
  --chalk-2: #C9CEC6;      /* secondary text on slate (8.6:1) */
  --yellow: #F4D35E;
  --pink: #F28FAD;
  --blue: #8EC5FC;
  --rule: rgba(28, 31, 29, .16);
  --chalk-rule: rgba(241, 238, 228, .32);
  --r: 6px;
  --shadow: 0 10px 24px -12px rgba(16, 22, 20, .45), 0 2px 6px rgba(16, 22, 20, .18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Lexend", "Lexend Fallback", system-ui, sans-serif;
  --chalkface: "Caveat Brush", "Comic Sans MS", cursive;
  --hdr: 76px;
}

@font-face { font-family: "Lexend Fallback"; src: local("Arial"); size-adjust: 108.5%; ascent-override: 92%; descent-override: 23%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2.5px; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 3.2vw + 1.1rem, 3.5rem); }
h2 { font-size: clamp(1.65rem, 1.9vw + 1rem, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
small { font-size: .82em; }
::selection { background: var(--yellow); color: var(--ink); }
input, textarea, select { caret-color: var(--slate); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.slate :focus-visible, .ledge :focus-visible, .board-menu :focus-visible, .foot :focus-visible, .split-slate :focus-visible { outline-color: var(--yellow); }
html { scrollbar-color: var(--frame) var(--paper-2); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
main { overflow-x: clip; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* chalk notes: Caveat Brush only for short labels */
.note { font-family: var(--chalkface); font-size: 1.32rem; line-height: 1.3; margin: 0; letter-spacing: .01em; }
.note-y { color: var(--yellow); } .note-p { color: var(--pink); } .note-b { color: var(--blue); }
.note-ink { color: var(--ink-2); }
.note a { color: inherit; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em; border-radius: var(--r);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: .5em 1em; font-size: .95rem; }
.btn-chalk { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.btn-chalk:hover { background: #F7DD7E; }
.btn-line { border-color: var(--chalk-rule); color: var(--chalk); background: transparent; }
.btn-line:hover { border-color: var(--chalk); background: rgba(241,238,228,.06); }
.btn-slate { background: var(--slate); color: var(--chalk); }
.btn-slate:hover { background: #2E3F39; }
.btn-ghost { border-color: rgba(28,31,29,.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }

/* ------------------------------------------------------------------ header: the board ledge */
.ledge { position: sticky; top: 0; z-index: 50; background: var(--slate); color: var(--chalk); }
.ledge-in { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; }
.brand { flex: none; display: block; padding: 4px 0; }
.brand img { width: 168px; height: auto; }
.mainnav { margin-left: auto; display: none; }
.mainnav ul { list-style: none; display: flex; gap: .35rem; }
.chalk-link {
  position: relative; display: block; padding: .55rem .6rem .7rem; text-decoration: none;
  font-family: var(--chalkface); font-size: 1.36rem; line-height: 1; color: var(--chalk); letter-spacing: .02em;
}
.chalk-link:hover { text-decoration: none; }
.squig { position: absolute; left: .45rem; right: .45rem; bottom: .2rem; width: calc(100% - .9rem); height: 9px; overflow: visible; }
.squig path { fill: none; stroke: var(--chalk); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; transition: stroke-dashoffset .45s var(--ease); }
.chalk-link:hover .squig path, .chalk-link:focus-visible .squig path { stroke-dashoffset: 0; }
.chalk-link[aria-current="page"] .squig path { stroke: var(--yellow); stroke-dashoffset: 0; }
.chalk-link[aria-current="page"] { color: var(--yellow); }
.ledge-act { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.ledge-call { display: none; align-items: center; gap: .45rem; color: var(--chalk); text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; min-height: 44px; }
.ledge-call:hover { color: var(--yellow); }
.ledge .btn-sm { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .4rem .9rem;
  background: transparent; color: var(--chalk); border: 2px solid var(--chalk-rule); border-radius: var(--r);
  font: 400 1.3rem/1 var(--chalkface); cursor: pointer;
}
.menu-btn:hover { border-color: var(--chalk); }
.ledge-tray { position: relative; height: 10px; background: var(--frame); box-shadow: inset 0 2px 0 rgba(0,0,0,.25); }
.stick { position: absolute; top: 2px; height: 5px; border-radius: 3px; }
.ledge-tray .s-y { right: 18%; width: 34px; background: var(--yellow); }
.ledge-tray .s-p { right: calc(18% + 46px); width: 22px; background: var(--pink); }
.ledge-tray .s-b { right: calc(18% - 34px); width: 16px; background: var(--blue); }
.duster { position: absolute; right: 7%; top: -5px; width: 44px; height: 11px; border-radius: 3px; background: #6A5A46; box-shadow: inset 0 -4px 0 #D9D4C7; }

@media (min-width: 768px) { .ledge-call { display: inline-flex; } .ledge .btn-sm { display: inline-flex; } }
@media (min-width: 1100px) {
  .mainnav { display: block; }
  .ledge-act { margin-left: .5rem; }
  .menu-btn { display: none; }
  .brand img { width: 186px; }
}

/* phone/tablet: a board panel that slides down */
.board-menu { position: fixed; inset: 0; z-index: 80; background: rgba(16, 22, 20, .55); }
.board-menu[hidden] { display: none; }
.board-menu-in {
  background: var(--slate); color: var(--chalk); padding: 14px 20px 28px;
  border-bottom: 12px solid var(--frame); box-shadow: var(--shadow); max-height: 100%; overflow-y: auto;
  transform: translateY(-100%); transition: transform .42s var(--ease);
}
.board-menu.open .board-menu-in { transform: none; }
.bm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bm-close { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; color: var(--chalk); border: 2px solid var(--chalk-rule); border-radius: var(--r); cursor: pointer; }
.bm-links { list-style: none; margin-bottom: 20px; }
.bm-links a { display: block; padding: .6rem 0; font-size: 1.45rem; font-weight: 600; text-decoration: none; border-bottom: 1.5px dashed var(--chalk-rule); }
.bm-links a[aria-current="page"] { color: var(--yellow); }
.bm-act { display: grid; gap: 10px; margin-bottom: 16px; }

/* ------------------------------------------------------------------ section grounds */
.sec { padding: clamp(56px, 7vw, 104px) 0; }
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.slate {
  background-color: var(--slate); color: var(--chalk);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.slate a:not(.btn) { color: var(--chalk); }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 60ch; }
.sec-head { max-width: 46rem; margin-bottom: 2.25rem; }
.sec-head p { color: var(--chalk-2); max-width: 60ch; }
.sec-head.ink p { color: var(--ink-2); }
.sec-hi { font-size: 1.15rem; color: var(--chalk-2); margin: -.2em 0 .8em; }
.sec-hi.ink { color: var(--ink-2); }
.src { font-size: .92rem; color: var(--ink-2); }
.h-sm { font-size: 1.15rem; margin-top: 1.6em; }
.h-gap { margin-top: 1.6em; }
.more { margin-top: 2rem; }

/* placeholders: dashed "to be shared by the school" */
.todo { border: 2px dashed rgba(28,31,29,.38); border-radius: var(--r); padding: 1rem 1.1rem; color: var(--ink-2); background: rgba(255,255,255,.35); max-width: 60ch; }
.todo-tag { display: inline-block; font-family: var(--chalkface); font-size: 1.15rem; line-height: 1.1; color: var(--ink); margin-right: .35em; }
.slate .todo { border-color: var(--chalk-rule); color: var(--chalk-2); background: transparent; }
.slate .todo-tag { color: var(--yellow); }

/* ------------------------------------------------------------------ the board (hero) */
.hero { background: var(--slate); padding: 18px 0 40px; }
@media (max-width: 575.98px) { .board { border-width: 7px 7px 16px; } .hero .container, .board-hero .container { --bs-gutter-x: 1.25rem; } }
.board {
  position: relative; background: var(--slate); color: var(--chalk);
  border: 12px solid var(--frame); border-bottom-width: 22px; border-radius: 8px;
  padding: clamp(22px, 4vw, 56px) clamp(18px, 4vw, 56px) clamp(30px, 4vw, 56px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 0 60px rgba(0,0,0,.28);
  background-image: radial-gradient(ellipse 60% 45% at 30% 35%, rgba(241,238,228,.05), transparent 70%);
}
.board-tray { position: absolute; left: 0; right: 0; bottom: -18px; height: 14px; pointer-events: none; }
.board-tray .stick { top: 4px; height: 6px; }
.board-tray .s-y { left: 14%; width: 40px; background: var(--yellow); }
.board-tray .s-b { left: calc(14% + 52px); width: 24px; background: var(--blue); }
.board-tray .s-p { left: calc(14% + 88px); width: 18px; background: var(--pink); }
.hero-h { margin: 0 0 .35em; max-width: 620px; }
.chalk-h1 { display: block; width: 100%; height: auto; overflow: visible; }
.chalk-h1 path { fill: var(--chalk); stroke: var(--chalk); stroke-width: 1.4; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .chalk-h1:not(.instant) path {
    fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: chalk-draw .55s var(--ease) forwards, chalk-fill .35s ease-out forwards;
    animation-delay: calc(var(--i) * 55ms + 150ms), calc(var(--i) * 55ms + 520ms);
  }
  .arrow-note .chalk-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: chalk-draw .7s var(--ease) 2.1s forwards; }
  .chalk-h1.instant ~ * .chalk-arrow path, .instant-arrow .chalk-arrow path { animation: none; stroke-dashoffset: 0; }
}
@keyframes chalk-draw { to { stroke-dashoffset: 0; } }
@keyframes chalk-fill { to { fill-opacity: 1; } }
.hero-hi { font-size: 1.2rem; color: var(--chalk-2); margin-bottom: .6em; }
.hero-lead { color: var(--chalk); max-width: 52ch; font-size: 1.08rem; }
.hero-act { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.4rem; }
.arrow-note { display: none; }
@media (min-width: 992px) {
  .hero-act { margin-top: 3.4rem; }
  .arrow-note { display: block; position: absolute; left: -6px; top: -3.2rem; transform: rotate(-4deg); }
  .chalk-arrow { position: absolute; left: 62px; top: 4px; width: 92px; height: 54px; overflow: visible; }
  .chalk-arrow path { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
}
.hero-rate { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: 0; }
.hero-rate a { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; color: var(--chalk); min-height: 44px; }
.hero-rate a:hover span { text-decoration: underline; }
.stars { display: inline-flex; gap: 1px; color: var(--yellow); }
.stars .st { width: 1rem; height: 1rem; fill: currentColor; stroke-width: 1.2; }
.paper .stars, .paper-2 .stars { color: var(--ink); }

/* taped photo */
.taped { position: relative; margin: 0 auto; max-width: 440px; }
.taped img { width: 100%; border-radius: 3px; box-shadow: var(--shadow); }
.tilt-l { transform: rotate(-1.6deg); } .tilt-r { transform: rotate(1.8deg); }
.tape { position: absolute; z-index: 2; width: 92px; height: 26px; background: rgba(236, 228, 205, .78); box-shadow: 0 1px 2px rgba(0,0,0,.15);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0); mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0); }
.tape.t1 { top: -11px; left: -18px; transform: rotate(-32deg); }
.tape.t2 { top: -11px; right: -18px; transform: rotate(30deg); }
.taped figcaption { margin-top: .7rem; text-align: center; font-size: 1.1rem; }
.paper .taped figcaption, .paper-2 .taped figcaption { color: var(--ink-2); }
.hero .taped { max-width: 400px; }
@media (min-width: 992px) { .hero .taped { margin-top: 1.4rem; } }
@media (max-width: 575.98px) { .tape.t1 { left: -6px; } .tape.t2 { right: -6px; } }

/* ------------------------------------------------------------------ register (short version) */
.register {
  margin: 0; background: #FBF9F3; border-radius: var(--r); box-shadow: 0 1px 0 var(--rule), 0 12px 26px -18px rgba(0,0,0,.35);
  padding: .4rem 1.25rem; position: relative;
}
.register > div { display: grid; grid-template-columns: 1fr; gap: .1rem 1.5rem; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
.register > div:last-child { border-bottom: 0; }
.register dt { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.register dd { margin: 0; font-size: 1.05rem; }
.register small { display: block; color: var(--ink-2); font-size: .85rem; margin-top: .15rem; }
.register .pending dd { color: var(--ink-2); }
@media (min-width: 576px) { .register > div { grid-template-columns: 11rem 1fr; } .register { padding: .4rem 1.75rem; } }

/* ------------------------------------------------------------------ chalk table */
.chalk-table-wrap { margin-top: .5rem; }
.chalk-table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.chalk-table th, .chalk-table td { text-align: left; padding: .9rem .9rem; border-bottom: 2px solid var(--chalk-rule); vertical-align: middle; }
.chalk-table thead th { font-family: var(--chalkface); font-weight: 400; font-size: 1.35rem; color: var(--yellow); border-bottom-width: 3px; padding-top: .3rem; }
.chalk-table tbody th { font-weight: 600; font-size: 1.12rem; white-space: nowrap; }
.chalk-table td { color: var(--chalk-2); }
.chalk-ok { display: inline-flex; align-items: center; gap: .45rem; color: var(--chalk); }
.chalk-ok .ic { color: var(--yellow); stroke-width: 2.6; }
.chalk-dash { display: inline-block; border: 2px dashed var(--chalk-rule); border-radius: var(--r); padding: .35rem .6rem; color: var(--chalk-2); font-size: .95rem; max-width: 34ch; }
.ask { display: inline-flex; align-items: center; min-height: 44px; color: var(--chalk); font-weight: 600; font-size: .95rem; white-space: nowrap; text-decoration-color: var(--blue); }
.ask:hover { color: var(--blue); }
.chalk-table tbody tr { transition: background-color .2s; }
.chalk-table tbody tr:hover { background: rgba(241,238,228,.04); }
.chalk-table-wrap .note { margin-top: 1.1rem; font-size: 1.22rem; }
@media (max-width: 767.98px) {
  .chalk-table thead { display: none; }
  .chalk-table, .chalk-table tbody, .chalk-table tr, .chalk-table th, .chalk-table td { display: block; width: 100%; }
  .chalk-table tr { padding: .9rem 0; border-bottom: 2px solid var(--chalk-rule); display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; }
  .chalk-table th, .chalk-table td { border: 0; padding: 0; }
  .chalk-table tbody th { grid-column: 1; font-size: 1.15rem; }
  .chalk-table td[data-l="Usual age"] { grid-column: 1; font-size: .95rem; }
  .chalk-table td[data-l="Usual age"]::before { content: "Usual age: "; }
  .chalk-table td[data-l="Here"] { grid-column: 1 / -1; margin-top: .3rem; }
  .chalk-table td:last-child:not([data-l]) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .ask-x { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ------------------------------------------------------------------ voices */
.voices-link { margin: 0; }
@media (min-width: 992px) { .voices-link { text-align: right; } }
.voices-link a { font-weight: 600; }
.voices { margin-top: 1rem; }
.voice { margin: 0; height: 100%; padding: 1.6rem 1.6rem 1.3rem; background: #FBF9F3; border-radius: var(--r); box-shadow: 0 1px 0 var(--rule), 0 14px 28px -20px rgba(0,0,0,.4); transform: rotate(-.6deg); }
.voice.v2 { transform: rotate(.7deg); }
.voice blockquote { margin: 0 0 1.1rem; }
.voice blockquote p { font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.voice blockquote p::before { content: "\201C"; } .voice blockquote p::after { content: "\201D"; }
.voice figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .95rem; }
.v-quiet { margin-top: 1.5rem; transform: none; background: transparent; box-shadow: none; padding: 1.2rem 0 0; border-top: 1px solid var(--rule); border-radius: 0; height: auto; }
.v-quiet blockquote p { font-size: 1.15rem; }

/* ------------------------------------------------------------------ doings (activities) */
.doings { list-style: none; margin: 1.2rem 0 1.4rem; }
.doings li { display: flex; gap: .9rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.doings li:last-child { border-bottom: 0; }
.doings .ic { width: 1.6rem; height: 1.6rem; margin-top: .05rem; color: var(--slate); }

/* ------------------------------------------------------------------ doubt box: folded chits */
.chits { list-style: none; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 768px) { .chits { grid-template-columns: 1fr 1fr; gap: 22px 26px; } }
@media (min-width: 1200px) { .chits { grid-template-columns: repeat(4, 1fr); } }
.chit { position: relative; background: var(--paper); color: var(--ink); border-radius: 2px; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.chit.c0 { transform: rotate(-1.2deg); } .chit.c1 { transform: rotate(.9deg); } .chit.c2 { transform: rotate(-.5deg); } .chit.c3 { transform: rotate(1.4deg); }
.chit:hover, .chit.open { transform: rotate(0); }
.chit-q { margin: 0; font-size: 1.05rem; }
.chit-q button {
  position: relative; display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: 600 1.06rem/1.35 var(--sans); color: var(--ink); padding: 1.15rem 2.6rem 1.15rem 1.15rem; min-height: 72px;
}
.fold { position: absolute; right: 0; top: 0; width: 26px; height: 26px; background: linear-gradient(225deg, var(--slate) 50%, var(--paper-2) 50%); box-shadow: -1px 1px 2px rgba(0,0,0,.18); transition: width .3s var(--ease), height .3s var(--ease); }
.chit.open .fold { width: 0; height: 0; }
.chit-q button::after { content: "+"; position: absolute; right: 1rem; bottom: .9rem; font: 400 1.5rem/1 var(--chalkface); color: var(--ink-2); }
.chit.open .chit-q button::after { content: "\2212"; }
.chit-a { padding: 0 1.15rem 1.15rem; color: var(--ink-2); font-size: .98rem; border-top: 1.5px dashed var(--rule); padding-top: .9rem; }
.chit-a p { margin: 0; }
.chit-tag { display: inline-block; margin-top: .6rem; font-family: var(--chalkface); font-size: 1.12rem; color: var(--ink); border-bottom: 2px dashed rgba(28,31,29,.35); }
@media (prefers-reduced-motion: no-preference) { .chit.open .chit-a { animation: unfold .35s var(--ease); transform-origin: top; } }
@keyframes unfold { from { opacity: 0; transform: scaleY(.6); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ enquiry form: a notebook name label */
.enq { position: relative; background: #FBF9F3; border: 2px solid var(--ink); border-radius: 14px; padding: 1.6rem 1.25rem 1.5rem; box-shadow: 0 16px 30px -22px rgba(0,0,0,.45); display: grid; grid-template-columns: 1fr; gap: 0 1.5rem; }
@media (min-width: 576px) { .enq { grid-template-columns: 1fr 1fr; padding: 2rem 2rem 1.75rem; } .fld-wide, .enq-h, .enq-label, .enq-sum, .enq-go, .enq-ok, .enq-fail, .enq > p { grid-column: 1 / -1; } }
.enq-label { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; font-family: var(--chalkface); font-size: 1.1rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding-bottom: .6rem; margin-bottom: 1rem; }
.enq-h { font-size: clamp(1.5rem, 1.2vw + 1rem, 2rem); }
.fld { margin-bottom: 1.05rem; }
.fld label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--ink-2); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: .6rem .2rem; font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid rgba(28,31,29,.45); border-radius: 0; transition: border-color .2s;
}
.fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231C1F1D' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .3rem center; padding-right: 1.6rem; cursor: pointer; }
.fld textarea { min-height: 88px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--slate); box-shadow: 0 2px 0 var(--slate); }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fld [aria-invalid="true"] { border-bottom-color: #A3261B; }
.hint { font-size: .85rem; color: var(--ink-2); margin: .3rem 0 0; }
.err { font-size: .9rem; color: #A3261B; font-weight: 600; margin: .3rem 0 0; }
.err:empty { display: none; }
.enq-sum { background: #FBE9E6; color: #7E1D14; border-radius: var(--r); padding: .75rem 1rem; font-weight: 600; }
.enq-go { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: .4rem; }
.enq-note { font-size: .88rem; color: var(--ink-2); margin: 0; }
.enq-ok, .enq-fail { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: var(--r); font-weight: 600; }
.enq-ok { background: #E6EFE3; color: #1E4A2B; }
.enq-fail { background: #FBE9E6; color: #7E1D14; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* visit card */
.visit { position: relative; background: var(--slate); color: var(--chalk); border-radius: 10px 10px 0 0; padding: 1.75rem 1.5rem; margin-bottom: 14px; }
.visit::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; background: var(--frame); box-shadow: inset 0 3px 0 rgba(0,0,0,.25); }
.visit-h { font-size: 1.5rem; }
.visit p { display: flex; gap: .7rem; align-items: flex-start; color: var(--chalk-2); }
.visit p .ic { margin-top: .25rem; color: var(--yellow); }
.visit-addr { color: var(--chalk) !important; font-size: 1.05rem; }
.visit-act { display: grid; gap: 10px; margin: 1.4rem 0 1rem; }
.visit .btn-slate { background: var(--yellow); color: var(--ink); }
.visit .btn-ghost { color: var(--chalk); border-color: var(--chalk-rule); }
.visit .btn-ghost:hover { border-color: var(--chalk); }
.visit-fine { font-size: .9rem; margin: 0; }

/* ------------------------------------------------------------------ inner page openers (each different) */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .9rem; margin: 0 0 1.4rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { color: inherit; display: inline-block; padding: .35rem 0; }
.slate .crumbs ol, .split-slate .crumbs ol { color: var(--chalk-2); }

/* About: the notebook name label */
.label-hero { padding: 26px 0 64px; }
.name-label { position: relative; background: #FBF9F3; border: 3px solid var(--ink); border-radius: 22px; padding: 1.5rem 1.5rem 1.2rem; box-shadow: 0 18px 30px -24px rgba(0,0,0,.5); max-width: 620px; }
.name-label::before { content: ""; position: absolute; inset: 7px; border: 1.5px solid rgba(28,31,29,.35); border-radius: 15px; pointer-events: none; }
.nl-title { font-size: clamp(2rem, 2.6vw + 1rem, 3.1rem); margin-bottom: .6em; }
.nl-fields { margin: 0; }
.nl-fields div { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .55rem 0; border-bottom: 1.5px solid rgba(28,31,29,.4); }
.nl-fields dt { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.nl-fields dd { margin: 0; font-family: var(--chalkface); font-size: 1.55rem; line-height: 1.3; color: var(--ink); }
@media (min-width: 576px) { .nl-fields div { grid-template-columns: 9rem 1fr; align-items: baseline; } .name-label { padding: 2rem 2.2rem 1.6rem; } }
.about-lead { margin-top: 1.6rem; }
.bio-quote { font-size: clamp(1.4rem, 1.2vw + 1rem, 1.9rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin-bottom: .3em; }
.director { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 576px) { .director { grid-template-columns: 9rem 1fr; align-items: start; } }
.dir-photo { aspect-ratio: 4 / 5; border: 2px dashed rgba(28,31,29,.38); border-radius: var(--r); display: grid; place-items: center; max-width: 9rem; background: rgba(255,255,255,.35); }
.facts { list-style: none; }
.facts li { display: flex; gap: .7rem; padding: .7rem 0; border-bottom: 1.5px solid var(--chalk-rule); }
.facts small { display: block; color: var(--chalk-2); font-size: .85rem; }
.facts.ok .ic { color: var(--yellow); stroke-width: 2.6; margin-top: .2rem; }
.facts.wait li { border-bottom-style: dashed; color: var(--chalk-2); }
.facts.wait li::before { content: ""; flex: none; width: 1.15em; height: 1.15em; margin-top: .25rem; border: 2px dashed var(--chalk-rule); border-radius: 3px; }
.board-h3 { font-family: var(--chalkface); font-weight: 400; font-size: 1.6rem; color: var(--yellow); letter-spacing: 0; }

/* Academics: the board is the header */
.board-hero { padding: 26px 0 56px; }
.board-tight { margin-top: .2rem; }
.board-hero h1 { color: var(--chalk); }
.board-lead { color: var(--chalk-2); font-size: 1.06rem; max-width: 50ch; }
.board-hero .chalk-table-wrap { margin-top: 1.6rem; }
.area { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.area:last-child { border-bottom: 0; }
.area h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); }
.area p { color: var(--ink-2); max-width: 52ch; font-size: 1.08rem; }
.area-img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; }

/* Admissions: the route strip */
.route-hero { padding: 26px 0 0; }
.route-strip { margin-top: 2rem; background: var(--slate); color: var(--chalk); padding: 1.6rem 0 1.8rem; border-bottom: 12px solid var(--frame); }
.route { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; counter-reset: r; }
@media (min-width: 992px) { .route { grid-template-columns: repeat(4, 1fr); } }
.route li { position: relative; display: flex; align-items: center; gap: .8rem; }
.rt-n { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 2.5px solid var(--yellow); border-radius: 50% 46% 52% 48%; font: 400 1.5rem/1 var(--chalkface); color: var(--yellow); }
.route li:nth-child(2) .rt-n { border-color: var(--pink); color: var(--pink); }
.route li:nth-child(3) .rt-n { border-color: var(--blue); color: var(--blue); }
.rt-t { font-weight: 600; font-size: 1.05rem; }
@media (min-width: 992px) {
  .route li:not(:last-child)::after { content: ""; position: absolute; right: 6%; top: 50%; width: 18%; height: 12px; margin-top: -6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cpath d='M2 7C16 3 30 9 52 6M46 1l8 5-8 5' fill='none' stroke='%23F1EEE4' stroke-opacity='.6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
}
.steps { list-style: none; counter-reset: s; margin: 1rem 0 2rem; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 1rem 3rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-weight: 600; font-size: .95rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: .2em; }
.steps p { color: var(--ink-2); margin: 0; }
.checklist { background: #FBF9F3; border-radius: 10px; padding: 1.6rem 1.4rem; box-shadow: 0 1px 0 var(--rule), 0 16px 30px -22px rgba(0,0,0,.4); }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin-bottom: .6rem; }
.cl-head h2 { margin: 0; font-size: clamp(1.45rem, 1vw + 1rem, 1.9rem); }
.cl-note { color: var(--ink-2); }
.cl-list { list-style: none; }
.cl-list li { border-bottom: 1px dashed var(--rule); }
.cl-list label { display: flex; align-items: flex-start; gap: .85rem; padding: .7rem 0; cursor: pointer; min-height: 44px; }
.cl-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; width: 1.4rem; height: 1.4rem; margin-top: .1rem; border: 2px solid var(--ink); border-radius: 4px; display: grid; place-items: center; transition: background-color .15s; }
.cl-list input:checked + .box { background: var(--slate); border-color: var(--slate); }
.cl-list input:checked + .box::after { content: ""; width: .45rem; height: .8rem; border: solid var(--yellow); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.cl-list input:focus-visible + .box { outline: 3px solid var(--ink); outline-offset: 2px; }
.cl-list input:checked ~ span:last-child { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cl-list small { color: var(--ink-2); }
.cl-print-only { display: none; }

/* Campus life: a pinboard */
.pin-hero { padding: 26px 0 64px; }
.pin-hero h1 { color: var(--chalk); }
.pins { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: auto auto; gap: 18px; align-items: start; padding-top: 14px; }
.pins .taped { max-width: none; margin: 0; }
.pins .taped:nth-child(1) { grid-row: 1 / span 2; }
.pins .taped:nth-child(3) { margin-left: -12%; margin-top: -6%; }
.pins-cap { margin-top: 1rem; text-align: right; font-size: 1.15rem; }
.expect { list-style: none; display: grid; gap: 10px; margin-top: 1rem; }
.expect li { border: 2px dashed rgba(28,31,29,.38); border-radius: var(--r); padding: .7rem 1rem; color: var(--ink-2); background: rgba(255,255,255,.35); }
.gallery { list-style: none; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 576px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery li { aspect-ratio: 3 / 2; }
.g-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-btn:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); width: 100%; color: var(--chalk); }
.lightbox::backdrop { background: rgba(16, 22, 20, .88); }
.lb-in { position: relative; background: var(--slate); border: 10px solid var(--frame); border-radius: 8px; padding: 12px 12px 8px; }
.lb-img { width: 100%; max-height: 74vh; object-fit: contain; }
.lb-cap { margin: .7rem 3.5rem .2rem 0; color: var(--chalk-2); font-size: .95rem; }
.lb-prev, .lb-next, .lb-close { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; }
.lb-prev { left: -6px; top: 45%; } .lb-next { right: -6px; top: 45%; }
.lb-close { right: 8px; bottom: 6px; background: transparent; color: var(--chalk); border: 2px solid var(--chalk-rule); width: 44px; height: 44px; }
.notices { list-style: none; display: grid; gap: 18px; }
@media (min-width: 768px) { .notices { grid-template-columns: repeat(3, 1fr); } }
.notices li { border: 2px dashed var(--chalk-rule); border-radius: var(--r); padding: 1rem 1.2rem 1.1rem; }
.notices h3 { margin: .3rem 0 .3rem; }
.notices p { color: var(--chalk-2); margin: 0; }

/* Contact: split slate / map */
.split-hero { background: var(--paper-2); }
.split-slate { background: var(--slate); color: var(--chalk); }
.split-in { padding: 26px clamp(18px, 5vw, 64px) 48px; max-width: 680px; margin-left: auto; }
.split-in h1 { color: var(--chalk); }
.big-phone { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(2rem, 3vw + 1rem, 3.2rem); font-weight: 600; letter-spacing: -.02em; color: var(--yellow); text-decoration: none; margin: .4rem 0 .4rem; min-height: 48px; }
.big-phone .ic { width: .9em; height: .9em; }
.big-phone:hover span { text-decoration: underline; text-decoration-thickness: 3px; }
.split-addr { display: flex; gap: .7rem; color: var(--chalk); margin: 0; }
.split-addr .ic { margin-top: .3rem; color: var(--yellow); }
.split-map { min-height: 380px; }
.map { position: relative; height: 100%; min-height: 380px; background: var(--paper-2); display: grid; place-items: center; padding: 28px 18px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card { position: relative; background: #FBF9F3; border: 2px solid var(--ink); border-radius: 14px; padding: 1.5rem; max-width: 420px; box-shadow: 0 16px 30px -22px rgba(0,0,0,.45); }
.map-name { font-weight: 600; font-size: 1.2rem; margin-bottom: .3rem; }
.map-code { color: var(--ink-2); font-size: .92rem; }
.map-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 .6rem; }
.map.loaded .map-card { display: none; }
.hours { width: 100%; border-collapse: collapse; margin-top: .6rem; }
.hours th, .hours td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.hours th { font-weight: 400; }
.hours tr.today { background: var(--slate); color: var(--chalk); }
.hours tr.today th { font-weight: 600; }
.hours tr.today td::after { content: "  today"; font-family: var(--chalkface); color: var(--yellow); font-size: 1.1rem; }

.plain { min-height: 60vh; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--slate); color: var(--chalk); padding: 64px 0 28px; border-top: 14px solid var(--frame); }
.foot img { width: 210px; margin-bottom: 1rem; }
.foot-addr { color: var(--chalk-2); max-width: 36ch; }
.foot-h { font-family: var(--chalkface); font-weight: 400; font-size: 1.45rem; color: var(--yellow); letter-spacing: 0; margin-bottom: .6rem; }
.foot-list { list-style: none; }
.foot-list a { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem 0; min-height: 40px; text-decoration: none; color: var(--chalk); }
.foot-list a:hover { text-decoration: underline; }
.foot-list .ic { color: var(--blue); }
.foot-fine { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1.5px dashed var(--chalk-rule); font-size: .88rem; color: var(--chalk-2); }
.foot-fine p { margin: 0 0 .4rem; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; }
  .board-menu-in { transition: none; }
}

/* ------------------------------------------------------------------ print: the documents checklist */
@media print {
  body.print-docs * { visibility: hidden; }
  body.print-docs .checklist, body.print-docs .checklist * { visibility: visible; }
  body.print-docs .checklist { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; padding: 0; background: #fff; }
  body.print-docs .print-btn { display: none; }
  body.print-docs .cl-print-only { display: block; margin-top: 1rem; font-size: 10pt; }
  body.print-docs .box { border: 1.5pt solid #000; }
  .ledge, .foot, .board-menu, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}

.contact-photo { margin-top: 2.4rem; max-width: 340px; }
