/* JMD Play School & Day Care: "Block by block".
   Wooden building blocks: beech paper ground, beech shelves, blocks painted red/blue/green/yellow,
   depth by a flat darker underside plane (never blur), carved inset frames on letter blocks.
   Painted block = verified fact; bare dashed block = to be confirmed. */

:root {
  --ground: #FBF6EE;
  --paper: #FFFDF8;
  --ink: #2A241D;
  --ink-2: #5C5246;
  --beech: #E2B77A;
  --beech-side: #B8874A;
  --beech-pale: #F3E2C4;
  --red: #D9443A;
  --red-side: #A5302A;
  --red-deep: #BF3A30;
  --red-text: #B8322A;
  --blue: #2F6FC1;
  --blue-side: #22528F;
  --blue-text: #2558A0;
  --green: #3E9A5B;
  --green-side: #2C6E41;
  --green-deep: #2C7344;
  --yellow: #F2C230;
  --yellow-side: #C99A12;
  --walnut: #2A241D;
  --unit: 56px;
  --r-blk: 10px;
  --r-frame: 6px;
  --side: 6px;
  --f-display: "Rowdies", "Trebuchet MS", sans-serif;
  --f-body: "Kanit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: clip;
}
@media (min-width: 992px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--yellow); color: var(--ink); }
input, select, textarea { caret-color: var(--red-deep); }
html { scrollbar-color: var(--beech-side) var(--ground); }
a { color: var(--blue-text); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.narrow { max-width: 62ch; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.12em; color: var(--ink-2); max-width: 60ch; }
[lang="hi"] { font-family: "Kanit", "Nirmala UI", "Mangal", sans-serif; }

/* ---------- paint ---------- */
.paint-red { --c: var(--red); --cs: var(--red-side); --ct: #fff; --cd: var(--red-deep); }
.paint-blue { --c: var(--blue); --cs: var(--blue-side); --ct: #fff; --cd: var(--blue); }
.paint-green { --c: var(--green); --cs: var(--green-side); --ct: #fff; --cd: var(--green-deep); }
.paint-yellow { --c: var(--yellow); --cs: var(--yellow-side); --ct: var(--ink); --cd: var(--yellow); }
.paint-beech { --c: var(--beech); --cs: var(--beech-side); --ct: var(--ink); --cd: var(--beech); }

/* ---------- skip, buttons ---------- */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.skip:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .6em 1.15em;
  border-radius: 12px; border: 2px solid transparent; border-bottom-width: var(--side);
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), border-bottom-width .15s var(--ease), background-color .15s;
}
.btn:active { transform: translateY(4px); border-bottom-width: 2px; }
.btn-red { background: var(--red-deep); color: #fff; border-color: var(--red-deep); border-bottom-color: var(--red-side); }
.btn-red:hover { background: #A9322A; color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); border-bottom-color: var(--beech-side); }
.btn-line:hover { background: var(--beech-pale); color: var(--ink); }
.btn-lg { font-size: 1.08rem; padding: .7em 1.3em; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.text-link { font-weight: 600; }
.more { margin-top: 1.25rem; }

/* ---------- header and shelf nav ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: 2px solid var(--beech); }
.head-row { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { flex: none; display: block; }
.brand img { width: 196px; height: auto; }
.shelf-nav { margin-left: auto; display: none; }
.shelf-nav ul { list-style: none; margin: 0; padding: 0 10px 0; display: flex; align-items: flex-end; gap: 6px; position: relative; }
.shelf-nav ul::after { /* the beech shelf the blocks stand on */
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 8px; border-radius: 3px;
  background: var(--beech); border-bottom: 3px solid var(--beech-side);
}
.nb {
  display: block; position: relative; padding: .5em .85em .45em; border-radius: 8px 8px 6px 6px;
  background: var(--paper); color: var(--ink); text-decoration: none; font: 500 .98rem/1.1 var(--f-body);
  border: 2px solid var(--ink); border-bottom: var(--side) solid var(--beech-side);
  transition: transform .2s var(--ease), background-color .2s;
}
.nb:hover { transform: translateY(-3px); color: var(--ink); background: var(--beech-pale); }
.nb[aria-current="page"] { background: var(--cd); color: var(--ct); border-color: var(--cs); transform: translateY(-6px); }
.nb.paint-yellow[aria-current="page"], .nb.paint-beech[aria-current="page"] { color: var(--ink); }
.head-call { display: none; align-items: center; gap: .4em; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-call:hover { color: var(--red-text); }
.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: .45em; min-height: 46px; padding: .4em .95em;
  border-radius: 10px; background: var(--blue); color: #fff; border: 0; border-bottom: var(--side) solid var(--blue-side);
  font: 600 1rem var(--f-body); cursor: pointer;
}
@media (min-width: 1100px) {
  .shelf-nav { display: block; }
  .menu-btn { display: none; }
  .head-call { display: inline-flex; margin-left: .5rem; }
}

/* ---------- toy-box lid (phone menu) ---------- */
.lid-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(42, 36, 29, .55); }
.lid {
  position: fixed; z-index: 70; left: 0; right: 0; top: 0; max-height: 100dvh; overflow-y: auto;
  background: var(--walnut); color: #fff; padding: 0 20px 24px; border-radius: 0 0 22px 22px;
  border-bottom: 10px solid var(--beech); transform-origin: top center;
  animation: lid-open .42s var(--ease) both;
}
@keyframes lid-open { from { transform: perspective(900px) rotateX(-70deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lid-hinge { height: 12px; margin: 0 -20px 6px; background: repeating-linear-gradient(90deg, var(--beech) 0 46px, var(--beech-side) 46px 50px); }
.lid-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 14px; }
.lid-title { font: 700 1.25rem var(--f-display); }
.lid-close { display: inline-flex; align-items: center; gap: .4em; min-height: 46px; padding: .3em .9em; border-radius: 10px; background: var(--paper); color: var(--ink); border: 0; border-bottom: 5px solid var(--beech-side); font: 600 1rem var(--f-body); cursor: pointer; }
.lid-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lid-a {
  display: flex; align-items: center; min-height: var(--unit); padding: .5em .9em; border-radius: var(--r-blk);
  background: var(--cd); color: var(--ct); text-decoration: none; font: 700 1.1rem var(--f-display);
  border-bottom: var(--side) solid var(--cs);
}
.lid-a[aria-current="page"] { outline: 3px solid #fff; outline-offset: 2px; }
.lid-a:hover { color: var(--ct); filter: brightness(1.05); }
.lid-acts { display: grid; gap: 10px; margin-top: 18px; }
.lid-acts .btn { justify-content: center; }
.lid-acts .btn-line { background: var(--paper); }
.lid-note { margin: 16px 0 0; font-size: .92rem; color: #E9DFD0; }
body.lid-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow-x: clip; }
.hero-text h1 { max-width: 13ch; }
.mini-tower { display: flex; gap: 6px; margin-bottom: 14px; }
.mini-tower .tb { --s: 46px; }
.mini-tower .tb::after { inset: 6px; border-width: 2px; }
.mini-tower .tb:nth-child(1) { transform: rotate(-5deg); }
.mini-tower .tb:nth-child(2) { transform: translateY(-4px) rotate(4deg); }
@media (min-width: 992px) { .mini-tower { display: none; } }
@media (max-width: 991.98px) { .hero-art .tower { display: none; } .hero-art { grid-template-columns: 1fr; } }
.hero-hi { font-size: 1.2rem; font-weight: 500; color: var(--red-text); margin-bottom: .6em; }
.hero-lead { font-size: 1.15em; max-width: 50ch; }
.status { display: flex; align-items: center; gap: .55em; margin: .4rem 0 0; font-weight: 500; }
.status .ic { color: var(--green-deep); }
.status-src { color: var(--ink-2); font-weight: 400; font-size: .88em; }
.status[data-open="false"] .ic { color: var(--red-text); }
.status-txt:empty { display: none; }

.hero-art { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 14px; padding-bottom: 6px; }
.tower { display: flex; flex-direction: column; gap: 0; align-items: center; padding-bottom: 2px; }
.tb {
  --s: clamp(64px, 9vw, 104px);
  width: var(--s); height: var(--s); display: grid; place-items: center; position: relative;
  background: var(--cd); color: var(--ct); border-radius: var(--r-blk); border-bottom: var(--side) solid var(--cs);
  font: 700 calc(var(--s) * .56)/1 var(--f-display);
}
.tb::after { /* the carved inset frame every alphabet block has */
  content: ""; position: absolute; inset: 9px; border: 3px solid currentColor; border-radius: 6px; opacity: .45;
}
.tb-j { transform: rotate(-6deg) translateX(-4px); }
.tb-m { transform: rotate(4deg) translateX(5px); }
.tb-d { transform: rotate(-2deg); }
@media (prefers-reduced-motion: no-preference) {
  .tower .tb { animation: drop .7s var(--ease) both; }
  .tower .tb-d { animation-delay: .05s; }
  .tower .tb-m { animation-delay: .35s; }
  .tower .tb-j { animation-delay: .65s; }
  @keyframes drop { 0% { translate: 0 -120vh; } 70% { translate: 0 6px; } 100% { translate: 0 0; } }
}
.frame {
  margin: 0; position: relative; background: var(--beech); padding: 14px; border-radius: var(--r-frame);
  border-bottom: 10px solid var(--beech-side);
}
.frame img { border-radius: 2px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--beech-pale); }
.credit { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(42, 36, 29, .25); font-size: .8rem; color: var(--ink); }
.frame .credit { border-top-color: rgba(42, 36, 29, .35); }

.abc { margin-top: clamp(24px, 4vw, 40px); background: var(--beech); border-bottom: 8px solid var(--beech-side); padding: 10px 0 0; overflow: hidden; }
.abc-run { display: flex; gap: 6px; justify-content: center; width: max-content; margin: 0 auto; padding: 0 12px; }
.ab {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 6px;
  background: var(--cd); color: var(--ct); border-bottom: 4px solid var(--cs); font: 700 1.1rem/1 var(--f-display);
}
.ab:nth-child(3n) { transform: translateY(-3px) rotate(-3deg); }
.ab:nth-child(4n+1) { transform: rotate(2deg); }
@media (max-width: 991.98px) {
  .hero-art { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
  .tb { --s: 58px; }
  .hero-art { gap: 10px; }
  .frame { padding: 10px; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(48px, 6.5vw, 88px) 0; }
.sec-paper { background: var(--paper); border-top: 2px solid var(--beech-pale); border-bottom: 2px solid var(--beech-pale); }
.facts { padding: clamp(32px, 5vw, 56px) 0 0; }
.fact-shelf { list-style: none; margin: 0; padding: 18px 18px 0; display: grid; gap: 12px; background: var(--beech-pale); border-radius: 14px 14px 0 0; border-bottom: 14px solid var(--beech); position: relative; }
.fact-shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -20px; height: 6px; background: var(--beech-side); border-radius: 0 0 6px 6px; }
@media (min-width: 768px) { .fact-shelf { grid-template-columns: repeat(3, 1fr); } }
.fact { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: start; padding: 16px 18px 14px; background: var(--cd); color: var(--ct); border-bottom: var(--side) solid var(--cs); border-radius: var(--r-blk); }
.fact .ic { grid-row: span 3; width: 30px; height: 30px; margin-top: 2px; }
.fact-k { font-size: .9rem; }
.fact-v { font: 700 1.15rem/1.25 var(--f-display); }
.fact-s { font-size: .82rem; margin-top: 4px; opacity: .95; }
.fact.paint-yellow .fact-s, .fact.paint-yellow .fact-k { color: var(--ink); }

/* blocks: painted = known, dashed = to be confirmed */
.blk { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: .7em 1em .6em; border-radius: var(--r-blk); }
.blk-known { background: var(--cd); color: var(--ct); border-bottom: var(--side) solid var(--cs); }
.blk-known.paint-green { background: var(--green-deep); }
.blk-t { font-weight: 600; line-height: 1.3; }
.blk-s { font-size: .8rem; opacity: .92; }
.blk-tbc { background: transparent; color: var(--ink); border: 2px dashed var(--ink-2); }
.blk-tbc .blk-s { color: var(--ink-2); font-weight: 500; }
.legend { display: grid; gap: .45rem; font-size: .9rem; color: var(--ink-2); margin-top: 1.25rem; }
.legend > span { display: flex; align-items: center; gap: .6rem; }
.lg { width: 22px; height: 18px; border-radius: 4px; flex: none; }
.lg-known { background: var(--blue); border-bottom: 4px solid var(--blue-side); }
.lg-tbc { border: 2px dashed var(--ink-2); }

.stack-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.stack-tab {
  min-height: var(--unit); padding: .4em 1.2em; border-radius: var(--r-blk); cursor: pointer;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-bottom: var(--side) solid var(--beech-side);
  font: 700 1.15rem var(--f-display); transition: transform .2s var(--ease);
}
.stack-tab[aria-selected="true"] { background: var(--cd); color: var(--ct); border-color: var(--cs); transform: translateY(-4px); }
.stack-floor { position: relative; padding: 18px 18px 0; background: var(--beech-pale); border-radius: 14px 14px 0 0; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; }
.floor-plank { height: 16px; margin: 0 -18px; background: var(--beech); border-bottom: 6px solid var(--beech-side); border-radius: 0 0 6px 6px; }
.stack { margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 6px; width: min(100%, 520px); }
.stack .blk:nth-child(odd) { margin-right: 18px; }
.stack .blk:nth-child(even) { margin-left: 18px; }
.stack .blk-tbc { background: rgba(255, 253, 248, .7); }
@media (prefers-reduced-motion: no-preference) {
  .stack-panel:not([hidden]) .blk { animation: stack-in .45s var(--ease) both; }
  .stack-panel:not([hidden]) .blk:nth-last-child(1) { animation-delay: 0s; }
  .stack-panel:not([hidden]) .blk:nth-last-child(2) { animation-delay: .06s; }
  .stack-panel:not([hidden]) .blk:nth-last-child(3) { animation-delay: .12s; }
  .stack-panel:not([hidden]) .blk:nth-last-child(4) { animation-delay: .18s; }
  .stack-panel:not([hidden]) .blk:nth-last-child(5) { animation-delay: .24s; }
  .stack-panel:not([hidden]) .blk:nth-last-child(6) { animation-delay: .3s; }
  @keyframes stack-in { from { translate: 0 -40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
}

/* toy shelf (banner activities) */
.src-note { font-size: .9rem; color: var(--ink-2); border-left: 1px solid var(--beech-side); padding-left: .8rem; }
.toy-shelf { list-style: none; margin: 1.5rem 0 0; padding: 20px 16px 0; display: grid; grid-template-columns: 1fr; gap: 30px 12px; background: var(--beech-pale); border-radius: 14px; }
@media (min-width: 576px) { .toy-shelf { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
  .toy-shelf { grid-template-columns: repeat(6, 1fr); }
  .toy { grid-column: span 2; }
  .toy-3, .toy-4 { grid-column: span 3; }
}
.toy {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center;
  padding: 14px 16px 12px; margin-bottom: 14px; border-radius: var(--r-blk);
  background: var(--cd); color: var(--ct); border-bottom: var(--side) solid var(--cs);
}
.toy:nth-child(odd) { transform: rotate(-.6deg); }
.toy::after { /* the plank each block stands on */
  content: ""; position: absolute; left: -14px; right: -14px; bottom: -20px; height: 8px; background: var(--beech); border-bottom: 4px solid var(--beech-side); transform: rotate(0); z-index: -1;
}
.toy:nth-child(odd)::after { transform: rotate(.6deg); }
.toy-ic { width: 40px; height: 40px; grid-row: span 2; }
.toy-name { font: 700 1.1rem/1.2 var(--f-display); align-self: end; }
.toy-desc { font-size: .9rem; line-height: 1.35; align-self: start; }
.toy-shelf { position: relative; z-index: 0; }
.shelf-photos { margin-top: 2.25rem; }
.framed { margin: 0; background: var(--beech); padding: 8px; border-radius: var(--r-frame); border-bottom: 6px solid var(--beech-side); }
.framed img { width: 100%; border-radius: 2px; aspect-ratio: 4 / 5; object-fit: cover; }
.framed-wide { margin-top: 1.5rem; }
.framed-wide img { aspect-ratio: 3 / 2; }
.sec .row .framed + h3 { margin-top: 1rem; }

/* sample day rail */
.sample-tag { display: inline-block; font-size: .92rem; font-weight: 500; padding: .45em .8em; border: 2px dashed var(--ink-2); border-radius: 8px; }
.day-wrap { margin-top: 1.5rem; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day-rail { list-style: none; margin: 0; padding: 0 0 14px; display: flex; gap: 4px; min-width: 1240px; border-bottom: 10px solid var(--beech); position: relative; }
.day-rail li { flex: var(--w) 1 0%; min-width: 0; display: flex; }
.day-blk {
  flex: 1; min-width: 0; min-height: 112px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 2px; text-align: left;
  padding: 8px 8px 6px; border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer;
  border: 2px solid var(--ink); border-bottom: var(--side) solid var(--beech-side); font: inherit; overflow: hidden;
  transition: transform .2s var(--ease), background-color .2s;
}
.day-blk:hover { transform: translateY(-3px); }
.day-blk[aria-pressed="true"] { background: var(--cd); color: var(--ct); border-color: var(--cs); transform: translateY(-8px); }
.day-blk.paint-yellow[aria-pressed="true"], .day-blk.paint-beech[aria-pressed="true"] { color: var(--ink); }
.day-t { font: 700 .82rem var(--f-display); }
.day-n { font-size: .78rem; line-height: 1.2; }
.day-blk.day-narrow { padding: 6px 2px; align-items: center; }
.day-narrow .day-t { font-size: .78rem; }
.day-narrow .day-n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767.98px) {
  .day-rail, .day-ruler { min-width: 1040px; }
  .day-blk { min-height: 104px; }
  .day-t { font-size: .74rem; }
  .day-n { font-size: .74rem; }
  .day-narrow .day-t { font-size: .68rem; letter-spacing: -.02em; }
}
.sorter-inline { margin: 8px 0 4px; padding: 14px 16px; background: var(--blue); color: #fff; border-radius: var(--r-blk); border-bottom: var(--side) solid var(--blue-side); }
.sorter-inline .ans-q { font-size: 1.1rem; color: #fff; }
@media (max-width: 991.98px) { .sorter-body { display: none; } .sorter-box { position: static; } }
.day-ruler { position: relative; height: 1.6em; min-width: 1240px; font-size: .8rem; color: var(--ink-2); margin-top: 6px; }
.day-ruler span { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); white-space: nowrap; }
.day-ruler span:first-child { transform: none; }
.day-ruler span:last-child { transform: translateX(-100%); }
.day-detail { margin-top: 1.25rem; min-height: 120px; }
.swipe-hint { font-size: .85rem; color: var(--ink-2); margin: .75rem 0 0; }
@media (min-width: 1400px) { .swipe-hint { display: none; } }
.day-d { max-width: 60ch; padding: 16px 20px; background: var(--paper); border: 2px solid var(--ink); border-bottom: var(--side) solid var(--beech-side); border-radius: var(--r-blk); }
.day-d h3 { margin-bottom: .25em; }
.day-d p:last-child { margin: 0; }
.day-time { font-weight: 600; color: var(--blue-text); margin: 0 0 .2em; }

/* shape-sorter FAQ */
.pegs { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 10px; }
.peg {
  width: 100%; display: flex; align-items: center; gap: .9rem; text-align: left; cursor: pointer;
  padding: 10px 14px; min-height: var(--unit); border-radius: var(--r-blk); background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-bottom: var(--side) solid var(--beech-side); font: 500 1.02rem/1.3 var(--f-body);
  transition: transform .2s var(--ease);
}
.peg:hover { transform: translateX(4px); }
.peg-shape { width: 36px; height: 36px; flex: none; fill: var(--c); stroke: var(--cs); stroke-width: 2; }
.peg[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sorter-box { position: sticky; top: 110px; border-radius: 16px; background: var(--blue); border-bottom: 12px solid var(--blue-side); padding: 18px; color: #fff; }
.sorter-lid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 12px; background: var(--blue-side); border-radius: 10px; }
.slot { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: rgba(0, 0, 0, .22); }
.slot-shape { width: 70%; height: 70%; fill: #173B66; stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.slot.is-filled .slot-shape { fill: var(--c); stroke: var(--cs); }
@media (prefers-reduced-motion: no-preference) {
  .slot.is-filled .slot-shape { animation: plop .5s var(--ease); }
  @keyframes plop { from { transform: translateY(-36px) scale(1.15); } to { transform: none; } }
}
.sorter-body { margin-top: 16px; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 18px 20px; min-height: 170px; }
.ans-empty { color: var(--ink-2); margin: 0; }
.ans-q { font-size: 1.25rem; margin-bottom: .4em; }
.ans p:last-child { margin: 0; }

/* admission steps (build leaflet) */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.step { display: grid; grid-template-columns: var(--unit) 1fr; gap: 14px; align-items: start; }
.step-blk {
  width: var(--unit); height: var(--unit); display: grid; place-items: center; border-radius: var(--r-blk);
  background: var(--cd); color: var(--ct); border-bottom: var(--side) solid var(--cs); font: 700 1.6rem var(--f-display);
}
.step h3 { margin: .2em 0 .2em; }
.step p { margin: 0; color: var(--ink-2); }
.exploded { position: relative; height: 150px; margin-bottom: 1rem; }
.ex { position: absolute; width: 70px; height: 70px; display: grid; place-items: center; border-radius: var(--r-blk); background: var(--cd); color: var(--ct); border-bottom: var(--side) solid var(--cs); font: 700 1.8rem var(--f-display); }
.ex-1 { left: 10%; bottom: 0; }
.ex-2 { left: 26%; bottom: 40px; transform: rotate(-8deg); }
.ex-3 { left: 42%; bottom: 76px; transform: rotate(6deg); }
.ex-4 { left: 58%; bottom: 20px; transform: rotate(-4deg); }
.checklist { background: var(--paper); border: 2px solid var(--ink); border-bottom: var(--side) solid var(--beech-side); border-radius: var(--r-blk); padding: 20px 22px; }
.checklist h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs label { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; }
.docs input { width: 22px; height: 22px; accent-color: var(--green-deep); flex: none; }
.docs input:checked + span { text-decoration: line-through; color: var(--ink-2); }

/* enquiry board */
.board { position: relative; background: var(--beech); border-radius: 14px; border-bottom: 12px solid var(--beech-side); padding: 30px clamp(16px, 3vw, 32px) 26px; }
.board-pegs { position: absolute; top: -14px; left: 24px; display: flex; gap: 8px; }
.board-pegs span { width: 26px; height: 26px; border-radius: 6px; background: var(--c); border-bottom: 4px solid var(--cs); }
.board-h { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.board-intro { color: var(--ink); max-width: 58ch; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .6em .8em; border-radius: 10px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); font: 400 1rem/1.4 var(--f-body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6B5F50; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--red-text); background: #FFF4F2; }
.hint { font-size: .86rem; margin: 5px 0 0; color: var(--ink); }
.err { font-size: .9rem; font-weight: 600; margin: 6px 0 0; color: #8E2019; }
.hp { position: absolute; left: -9999px; }
.form-summary { background: #FFF4F2; border: 2px solid #8E2019; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-weight: 600; color: #8E2019; }
.form-summary ul { margin: 6px 0 0; padding-left: 1.2em; }
.form-summary a { color: #8E2019; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 18px; }
.form-foot p { margin: 0; flex: 1 1 220px; color: var(--ink); }
.form-foot a { color: var(--ink); }
.form-ok, .form-fail { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.form-ok { display: flex; gap: .5rem; align-items: center; background: #EAF6EE; border: 2px solid var(--green-deep); color: #1E5230; }
.form-ok[hidden], .form-fail[hidden] { display: none; }
.form-fail { background: #FFF4F2; border: 2px solid #8E2019; color: #8E2019; }
.form-fail a { color: #8E2019; }

/* visit */
.reach { list-style: none; margin: 1rem 0 1.25rem; padding: 0; display: grid; gap: 14px; }
.reach li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; }
.reach .ic { width: 26px; height: 26px; color: var(--blue); margin-top: 3px; }
.reach strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; }
.map-card { background: var(--paper); border: 2px solid var(--ink); border-bottom: var(--side) solid var(--beech-side); border-radius: var(--r-blk); overflow: hidden; margin-bottom: 1.5rem; }
.map-fallback { padding: 20px 22px; }
.map-addr { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.map-addr .ic { width: 26px; height: 26px; color: var(--red-text); }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; }
.hours { width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem; font-variant-numeric: tabular-nums; }
.hours caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--ink-2); padding-top: 8px; }
.hours th, .hours td { text-align: left; padding: .45em .6em; border-bottom: 1px solid var(--beech); font-weight: 400; }
.hours tr.is-today { background: var(--beech-pale); }
.hours tr.is-today th { font-weight: 600; }

.tbc { border: 2px dashed var(--ink-2); border-radius: var(--r-blk); padding: 12px 16px; margin: 0 0 12px; background: transparent; color: var(--ink); }
.tbc-k { font-weight: 600; display: block; color: var(--ink); }
.note-stack { display: grid; gap: 4px; }

/* inner page band */
.band { padding: clamp(40px, 6vw, 80px) 0 clamp(34px, 5vw, 64px); border-bottom: 10px solid var(--cs); background: var(--cd); color: var(--ct); }
.band-red { --cd: var(--red-deep); --cs: var(--red-side); --ct: #fff; }
.band-blue { --cd: var(--blue); --cs: var(--blue-side); --ct: #fff; }
.band-green { --cd: var(--green-deep); --cs: var(--green-side); --ct: #fff; }
.band-yellow { --cd: var(--yellow); --cs: var(--yellow-side); --ct: var(--ink); }
.band-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.band h1 { max-width: 18ch; }
.band-hi { font-size: 1.15rem; font-weight: 500; margin-bottom: .5em; }
.band-lead { font-size: 1.12em; max-width: 58ch; margin: 0; }
.band-stack { display: none; flex-direction: column; align-items: center; }
.bs { width: 64px; height: 64px; border-radius: var(--r-blk); background: var(--c); border-bottom: var(--side) solid var(--cs); box-shadow: 0 0 0 3px var(--ct); }
.bs + .bs { margin-top: 4px; }
.bs:nth-child(1) { transform: rotate(-7deg) translateX(-6px); }
.bs:nth-child(2) { transform: rotate(5deg) translateX(6px); }
@media (min-width: 768px) { .band-stack { display: flex; } }

.ledger { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 8px; }
.guide { width: 100%; border-collapse: collapse; background: var(--paper); font-variant-numeric: tabular-nums; }
.guide caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--ink-2); padding-top: 8px; }
.guide th, .guide td { text-align: left; padding: .65em .75em; border-bottom: 2px solid var(--beech); }
.guide thead th { font-family: var(--f-display); font-weight: 400; background: var(--beech); }
.tbc-cell { color: var(--ink); font-weight: 500; }
.tbc-cell::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px dashed var(--ink-2); border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.5em; }

/* gallery + lightbox */
.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.g-btn { display: block; width: 100%; padding: 8px; border: 0; border-bottom: 6px solid var(--beech-side); background: var(--beech); border-radius: var(--r-frame); cursor: zoom-in; }
.g-btn img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; transition: transform .3s var(--ease); }
.g-btn:hover img { transform: scale(1.03); }
.g-1 .g-btn { transform: rotate(1deg); }
.g-2 .g-btn { transform: rotate(-1deg); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); width: 100%; }
.lightbox::backdrop { background: rgba(42, 36, 29, .85); }
.lightbox figure { margin: 0; background: var(--beech); padding: 12px; border-radius: var(--r-frame); border-bottom: 10px solid var(--beech-side); }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: var(--ink); }
.lightbox figcaption { font-size: .88rem; margin-top: 8px; color: var(--ink); }
.lb-ctrl { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.lb-ctrl button { display: inline-flex; align-items: center; gap: .4em; min-height: 48px; min-width: 48px; justify-content: center; padding: .3em .9em; border-radius: 10px; border: 0; border-bottom: 5px solid var(--beech-side); background: var(--paper); color: var(--ink); font: 600 1rem var(--f-body); cursor: pointer; }

/* 404 */
.nf { text-align: left; }
.nf-tower { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.nf-tower .tb { --s: 76px; }
.nf-tower .tb:nth-child(2) { transform: rotate(14deg) translateY(10px); }

/* ---------- footer ---------- */
.site-foot { background: var(--walnut); color: #F1E9DC; padding: 0 0 110px; margin-top: 0; }
@media (min-width: 992px) { .site-foot { padding-bottom: 40px; } }
.foot-blocks { display: flex; height: 14px; }
.fb { flex: 1; background: var(--c); }
.site-foot .container { padding-top: 48px; }
.foot-logo { width: 200px; height: auto; margin-bottom: 8px; }
.foot-h { font-size: 1.3rem; color: #fff; margin-bottom: .7em; }
.foot-line { display: grid; grid-template-columns: auto 1fr; gap: .6rem; margin: 0 0 .7em; }
.foot-line .ic { margin-top: 4px; color: var(--yellow); }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--yellow); }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.foot-links li { margin-bottom: .45em; }
.foot-small { font-size: .92rem; color: #E3D8C6; }
.foot-base { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; color: #D9CDB9; }

/* phone action bar */
.act-bar { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; border-radius: 14px; background: var(--walnut); border-bottom: 6px solid #000; }
.act-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.act-bar a:nth-child(1) { background: var(--red-deep); }
.act-bar a:nth-child(2) { background: var(--green-deep); }
.act-bar a:nth-child(3) { background: var(--blue); }
@media (min-width: 992px) { .act-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .act-bar, .site-foot, .lid, .abc { display: none !important; }
}
