/* Kids Kunj Play School & Online School: two wooden treehouses, one rope bridge.
   Tokens first. Plank wood is used for edges and grain; text that sits on wood uses the lighter plank. */
:root {
  --ground: #F8F5EC;
  --ink: #23301F;
  --ink-soft: #3D4C39;
  --wood: #B98655;
  --wood-l: #CFA36F;
  --wood-d: #7A5230;
  --leaf: #5BAA57;
  --leaf-d: #2F6B32;
  --sky: #BFE3F2;
  --rope: #D9C096;
  --sun: #FFC64A;
  --sun-d: #D39A12;
  --err: #A32018;
  --display: "Chelsea Market", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Quattrocento Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hindi: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
  --radius: 12px;
  --grain: repeating-linear-gradient(90deg, rgba(122, 82, 48, .07) 0 2px, transparent 2px 9px);
  --planks: repeating-linear-gradient(0deg, transparent 0 25px, rgba(122, 82, 48, .28) 25px 27px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; accent-color: var(--leaf-d); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.6;
  font-variant-numeric: lining-nums; font-synthesis: none; caret-color: var(--ink);
  scrollbar-color: var(--wood) var(--ground);
}
::selection { background: var(--sun); color: var(--ink); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--leaf-d); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.foot :focus-visible, .cta-band :focus-visible, .sheet :focus-visible { outline-color: var(--sun); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }
[lang="hi"] { font-family: var(--hindi); font-weight: 600; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 760px; }
.ic { flex: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 20px;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; border-radius: 10px 10px 14px 14px;
  border-bottom-width: 5px; transition: transform .15s ease-out, background-color .15s, color .15s; color: var(--ink);
}
.btn:hover { transform: translateY(-2px); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); border-color: var(--sun); border-bottom-color: var(--sun-d); }
.btn-sun:hover { background: #FFD36E; }
.btn-wood { background: var(--wood-d); border-color: var(--wood-d); border-bottom-color: #4F3320; color: #fff; }
.btn-wood:hover { background: #8B5E37; color: #fff; }
.btn-line { background: transparent; border-color: var(--ink); border-bottom-color: var(--ink); }
.btn-line:hover { background: rgba(255, 255, 255, .55); }
.btn-white { background: #fff; border-color: #fff; border-bottom-color: var(--rope); }
.btn-sm { min-height: 42px; padding: 7px 14px; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* ------------------------------------------------------------ header: planks hung on a rope */
.top { position: sticky; top: 0; z-index: 60; background: var(--ground); box-shadow: 0 2px 0 var(--rope); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; transition: padding .2s; }
.brand img { width: 206px; height: auto; transition: width .2s; }
.is-scrolled .top-row { padding-top: 6px; padding-bottom: 6px; }
.top-side { display: none; align-items: center; gap: 16px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; font: 700 1rem var(--body); cursor: pointer;
  background: var(--wood-l); color: var(--ink); border: 2px solid var(--wood-d); border-bottom-width: 5px; border-radius: 10px 10px 14px 14px;
}
.signs { display: none; position: relative; padding-bottom: 8px; }
.signs::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 6px;
  background: repeating-linear-gradient(115deg, var(--rope) 0 6px, #C2A574 6px 9px);
}
.sign-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: nowrap; justify-content: flex-start; }
.sign-list li { position: relative; padding-top: 14px; }
.sign-list li::before, .sign-list li::after { content: ""; position: absolute; top: 2px; width: 2px; height: 16px; background: var(--wood-d); }
.sign-list li::before { left: 22%; }
.sign-list li::after { right: 22%; }
.sign-list a {
  display: block; position: relative; padding: 8px 20px 7px; font: 400 1.05rem/1.2 var(--display); text-decoration: none; color: var(--ink);
  background: var(--grain), var(--wood-l); border-radius: 8px; border-bottom: 4px solid var(--wood);
  transform: rotate(calc((var(--k) - 2.5) * .7deg)); transform-origin: 50% -16px; transition: background-color .15s;
}
.sign-list a::before, .sign-list a::after { content: ""; position: absolute; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--wood-d); opacity: .7; }
.sign-list a::before { left: 7px; }
.sign-list a::after { right: 7px; }
.sign-list a:hover { background: #DDB887; animation: swing .9s ease-out; }
.sign-list a[aria-current="page"] { background: var(--sun); border-bottom-color: var(--sun-d); }
@keyframes swing { 0% { transform: rotate(0); } 25% { transform: rotate(3deg); } 55% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } 100% { transform: rotate(calc((var(--k) - 2.5) * .7deg)); } }

.open-note { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; padding: 5px 14px 5px 12px; background: rgba(255, 255, 255, .7); border: 2px solid var(--ink); border-radius: 999px; font-size: .95rem; line-height: 1.3; max-width: 100%; }
.open-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--wood-d); flex: none; }
.open-note[data-state="open"] .open-dot { background: var(--leaf-d); box-shadow: 0 0 0 4px rgba(47, 107, 50, .2); }
.open-txt { font-weight: 700; }
.open-src { font-size: .85rem; color: var(--ink-soft); }
.open-top { margin: 0; font-size: .9rem; }
.open-top .open-src { display: none; }

@media (min-width: 992px) {
  .top-side { display: flex; }
  .menu-btn { display: none; }
  .signs { display: block; }
  .top-row { padding-top: 8px; padding-bottom: 4px; }
  .is-scrolled .top-row { padding-top: 4px; padding-bottom: 0; }
  .is-scrolled .brand img { width: 168px; }
}

/* the phone sheet: a trapdoor that lowers, with a rope ladder of links */
.sheet { position: fixed; inset: 0; z-index: 200; perspective: 1400px; background: rgba(35, 48, 31, 0); transition: background-color .35s; overflow: hidden; }
.sheet.is-open { background: rgba(35, 48, 31, .55); }
.sheet-door {
  position: absolute; left: 0; right: 0; top: 0; bottom: 6%; background: var(--grain), var(--wood-l); border-bottom: 12px solid var(--wood-d);
  border-radius: 0 0 22px 22px; transform-origin: 50% 0; transform: rotateX(-92deg); transition: transform .4s cubic-bezier(.16, 1, .3, 1); overflow-y: auto;
}
.sheet.is-open .sheet-door { transform: rotateX(0); }
.ladder-rope { position: absolute; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(0deg, var(--rope) 0 7px, #B89B64 7px 11px); }
.ladder-l { left: 18px; } .ladder-r { right: 18px; }
.sheet-inner { position: relative; padding: 14px 40px 28px; min-height: 100%; }
.sheet-close { display: flex; align-items: center; gap: 8px; margin: 0 0 14px auto; min-height: 48px; padding: 8px 16px; font: 700 1rem var(--body); cursor: pointer; background: var(--ground); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; }
.rungs { list-style: none; margin: 0; padding: 0; }
.rungs li { margin: 0 -10px 12px; }
.rungs a {
  display: block; padding: 12px 18px; font: 400 1.5rem/1.2 var(--display); text-decoration: none; color: var(--ink); background: var(--grain), #E3BE8C;
  border-bottom: 5px solid var(--wood-d); border-radius: 8px; text-align: center; transform: rotate(calc((var(--k) - 2.5) * .5deg));
}
.rungs a:hover { background: var(--sun); }
.sheet-acts { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.sheet-acts .btn { flex: 1 1 140px; }
body.sheet-open { overflow: hidden; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; background: var(--sky); padding: 22px 0 54px; overflow: hidden; }
.hero-copy h1 { margin-bottom: .2em; }
.hi-line { font-family: var(--hindi); font-weight: 600; font-size: 1.3rem; margin: 0 0 .7em; color: var(--ink); }
.lead { font-size: 1.2rem; max-width: 52ch; }
.hero .open-note { margin-bottom: 4px; }
.hero .btn { padding-left: 12px; padding-right: 12px; gap: 7px; font-size: .97rem; }
.hero .actions { gap: 8px; margin-top: 18px; }
.rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 6px; text-decoration: none; color: var(--ink); }
.rating-sun { width: 54px; height: 54px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font: 400 1.25rem var(--display); border: 3px solid var(--ink); flex: none; }
.rating-txt { display: flex; flex-direction: column; font-size: .95rem; line-height: 1.35; }
.rating-txt strong { font-size: 1.02rem; }
.rating:hover .rating-txt strong { text-decoration: underline; text-decoration-thickness: 2px; }
.scene { position: relative; width: 100%; max-width: 780px; margin: 0 auto; overflow: hidden; }
.scene-in { position: relative; width: 100%; aspect-ratio: 1000 / 720; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-photo { position: absolute; left: 8.8%; top: 31.4%; width: 19.4%; height: 31.1%; object-fit: cover; border-radius: 4px 4px 0 0; z-index: 2; }
.scene .scene-svg:last-child { z-index: 3; }
.scene .scene-svg:first-child { z-index: 1; }
.plank { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.32s); }
@keyframes sway { 0%, 100% { transform: translateY(-1.5px) rotate(-1.6deg); } 50% { transform: translateY(2px) rotate(1.6deg); } }
.cap { font-size: .86rem; line-height: 1.4; color: var(--ink-soft); margin: 8px 0 0; }
.scene-cap { text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.grass { position: absolute; left: 0; bottom: 0; width: 100%; height: 22px; display: block; }
.grass-foot { top: -13px; bottom: auto; height: 28px; }

/* ------------------------------------------------------------ sections */
.sec { padding: 56px 0; position: relative; }
.sec-top { max-width: 62ch; margin-bottom: 30px; }
.lead-s { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.sample-tag { display: inline-block; margin: 6px 0 0; padding: 6px 14px; font-size: .95rem; font-weight: 700; background: #fff; border: 2px dashed var(--wood-d); border-radius: 8px; max-width: 100%; }
.note { font-size: .95rem; color: var(--ink-soft); }
.small-note { margin-top: 22px; font-weight: 700; }

/* houses: a cutaway treehouse */
.houses { background: var(--ground); }
.house { position: relative; max-width: 440px; margin: 0 auto; }
.house-ground { margin-top: 52px; }
.house-ground::before { content: ""; position: absolute; top: -34px; left: 50%; width: 36px; height: 26px; background: var(--sun); clip-path: polygon(0 0, 100% 50%, 0 100%); margin-left: 3px; z-index: 2; }
.house-ground::after { content: ""; position: absolute; top: -40px; left: 50%; width: 4px; height: 44px; background: var(--wood-d); margin-left: -1px; z-index: 1; }
.roof { height: 92px; margin: 0 -8px; background: repeating-linear-gradient(0deg, var(--wood-d) 0 14px, #6A4528 14px 17px); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.walls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: var(--grain), var(--wood-l); border: 6px solid var(--wood); border-top-width: 0; }
.room {
  appearance: none; cursor: pointer; text-align: center; min-height: 128px; padding: 18px 8px 12px; background: var(--sky); color: var(--ink);
  border: 5px solid var(--wood-d); border-radius: 46px 46px 6px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: background-color .2s, transform .15s;
}
.room:hover { background: #D5EEF9; }
.room[aria-selected="true"] { background: var(--sun); box-shadow: inset 0 -18px 0 rgba(255, 255, 255, .35); }
.room-name { font: 400 1.25rem/1.1 var(--display); }
.room-age { font-size: .9rem; line-height: 1.25; }
.trunk { width: 26%; height: 70px; margin: 0 auto; background: var(--grain), var(--wood); }
.room-panels { min-height: 120px; }
.room-h { font-size: 1.6rem; }
.room-usual { display: block; font: 700 .95rem var(--body); color: var(--ink-soft); margin-top: 4px; }
.planks-list { list-style: none; margin: 0 0 1em; padding: 0; }
.planks-list li { position: relative; padding: 4px 0 4px 34px; }
.planks-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 22px; height: 9px; border-radius: 2px; background: var(--wood); box-shadow: 0 3px 0 var(--wood-d); }
.room-pic { margin: 18px 0 0; }
.room-pic img { border: 8px solid #fff; box-shadow: 0 6px 14px rgba(35, 48, 31, .2); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.house-online { max-width: 340px; margin-top: 0; }
.roof-dashed { height: 70px; background: none; clip-path: none; margin: 0; position: relative; }
.roof-dashed::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' preserveAspectRatio='none'%3E%3Cpath d='M1 29L50 2L99 29' fill='none' stroke='%237A5230' stroke-width='3' stroke-dasharray='7 6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.online-wall { border: 3px dashed var(--wood-d); border-radius: 0 0 var(--radius) var(--radius); padding: 20px 20px 22px; margin-top: -3px; }
.online-wall p { font-size: 1rem; }

/* placeholders: dashed = to be filled in by the school (one meaning only) */
.tbc { border: 2px dashed var(--wood-d); background: rgba(207, 163, 111, .16); border-radius: var(--radius); padding: 16px 18px; }
.tbc-title { font-size: 1.15rem; margin: 0 0 .3em; }
.tbc p { font-size: 1rem; margin-bottom: .5em; }
.tbc-tag { font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--wood-d); margin: 0; }
.tbc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }

/* visit */
.visit { background: #F1ECDD; }
.window-pic { margin: 0; position: relative; }
.window-pic img { width: 100%; border: 12px solid var(--wood-d); border-radius: 10px 10px 0 0; }
.window-pic .cap { margin-top: 0; padding-top: 0; }
.window-pic .cap::before { content: ""; display: block; height: 18px; margin: 0 -10px 10px; background: var(--wood); border-bottom: 5px solid var(--wood-d); border-radius: 4px; }
.window-pic.tall img { aspect-ratio: 4 / 3; object-fit: cover; }
.facts { list-style: none; margin: 18px 0 0; padding: 0; }
.facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 16px; padding: 12px 0; border-bottom: 3px dotted var(--rope); }
.facts strong { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.facts.big { margin-bottom: 30px; }

/* the sample day, along the rope bridge */
.day { background: var(--sky); }
.bridge-day { list-style: none; margin: 34px 0 0; padding: 0; position: relative; display: grid; gap: 22px; }
.bridge-day::before { content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(0deg, var(--rope) 0 7px, #B89B64 7px 11px); border-radius: 4px; }
.stop { position: relative; padding-left: 78px; }
.stop-plank { position: absolute; left: 6px; top: 6px; width: 48px; height: 18px; background: var(--grain), var(--wood-l); border-bottom: 5px solid var(--wood-d); border-radius: 4px; }
.stop-h { font-size: 1.25rem; margin: 0 0 .15em; }
.stop p { font-size: 1rem; margin: 0; }
@media (min-width: 768px) {
  .bridge-day { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
  .bridge-day::before { display: none; }
  .stop { padding: 48px 0 0; }
  .stop::before { content: ""; position: absolute; top: 0; left: 0; right: -24px; height: 8px; background: repeating-linear-gradient(115deg, var(--rope) 0 6px, #B89B64 6px 9px); border-radius: 4px; }
  .stop:nth-child(3n)::before { right: 0; }
  .stop-plank { left: 0; top: 22px; width: 56px; }
  .stop::after { content: ""; position: absolute; left: 26px; top: 6px; width: 2px; height: 18px; background: var(--wood-d); }
}
@media (min-width: 992px) {
  .bridge-day { grid-template-columns: repeat(6, 1fr); gap: 0 20px; }
  .stop::before, .stop:nth-child(3n)::before { right: -20px; }
  .stop:last-child::before { right: 0; }
  .stop { padding-top: 54px; }
  .stop:nth-child(2), .stop:nth-child(5) { transform: translateY(10px); }
  .stop:nth-child(3), .stop:nth-child(4) { transform: translateY(18px); }
}

/* parents' words: tags hung from a rope */
.reviews { background: var(--ground); }
.tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; grid-template-columns: 1fr; }
.tag { position: relative; padding-top: 34px; }
.tag-rope { position: absolute; top: 0; left: 50%; width: 3px; height: 50px; background: var(--wood-d); }
.tag figure { margin: 0; padding: 34px 22px 18px; background: var(--grain), var(--wood-l); border-bottom: 6px solid var(--wood); border-radius: 10px; transform: rotate(calc((var(--t) - 1) * 1.6deg)); transform-origin: 50% -34px; }
.tag figure::before { content: ""; position: absolute; top: 44px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ground); border: 3px solid var(--wood-d); }
.tag blockquote { margin: 14px 0 12px; font-size: 1.15rem; line-height: 1.45; }
.tag blockquote p { margin: 0; }
.tag figcaption { font-weight: 700; font-size: .98rem; }
.tag figcaption span { display: block; font-weight: 400; font-size: .9rem; }
@media (min-width: 768px) { .tags { grid-template-columns: repeat(3, 1fr); gap: 28px; } .tag:nth-child(2) { margin-top: 28px; } .tag:nth-child(3) { margin-top: 10px; } }

/* rope-knot FAQ */
.folds { border-top: 5px solid var(--rope); }
.fold { border-bottom: 5px solid var(--rope); }
.fold summary { display: flex; align-items: center; gap: 14px; padding: 16px 4px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.12rem; min-height: 56px; }
.fold summary::-webkit-details-marker { display: none; }
.knot { flex: none; transition: transform .3s; }
.knot-open { display: none; }
.fold[open] .knot-closed { display: none; }
.fold[open] .knot-open { display: inline; }
.fold summary:hover .knot { transform: rotate(-8deg); }
.fold-a { padding: 0 4px 12px 52px; }
.fold-a p { margin: 0; }

/* call to action */
.cta-band { background-color: var(--wood-d); background-image: var(--grain); color: #fff; padding: 52px 0 46px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #F8EBDA; }
.cta-band .btn-line { color: #fff; border-color: #fff; }
.cta-band .btn-line:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.cta-band .btn-wood { background: #fff; color: var(--ink); border-color: #fff; border-bottom-color: var(--rope); }
.cta-band.small { padding: 40px 0 36px; }

/* ------------------------------------------------------------ inner pages */
.phead { position: relative; background: var(--sky); padding: 14px 0 52px; overflow: hidden; }
.crumb { font-size: .95rem; margin-bottom: 18px; }
.crumb a { color: var(--ink); }
.phead-sign { position: relative; display: inline-block; max-width: 100%; padding-top: 30px; }
.sign-rope { position: absolute; top: 0; width: 4px; height: 36px; background: var(--wood-d); }
.sign-rope:nth-of-type(1) { left: 18%; } .sign-rope:nth-of-type(2) { right: 18%; }
.sign-board { padding: 16px 30px 14px; background: var(--grain), var(--wood-l); border-bottom: 7px solid var(--wood); border-radius: 12px; transform: rotate(-.8deg); }
.sign-board h1 { margin: 0; }
.sign-board .hi-line { margin: 6px 0 0; }
.phead .lead { margin: 24px 0 0; }

.ages .table-wrap { overflow-x: auto; margin: 22px 0 8px; }
.agetable { border-collapse: collapse; width: 100%; max-width: 760px; background: #fff; }
.agetable th, .agetable td { text-align: left; padding: 12px 16px; border-bottom: 3px dotted var(--rope); }
.agetable thead th { background: var(--wood-l); font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.agetable tbody th { font-family: var(--display); font-weight: 400; }

.ladder { list-style: none; margin: 24px 0 18px; padding: 0 20px; position: relative; counter-reset: rung; }
.ladder::before, .ladder::after { content: ""; position: absolute; top: -10px; bottom: -10px; width: 8px; background: repeating-linear-gradient(0deg, var(--rope) 0 7px, #B89B64 7px 11px); border-radius: 4px; }
.ladder::before { left: 0; } .ladder::after { right: 0; }
.rung { position: relative; display: block; margin: 0 0 14px; padding: 16px 20px 14px; background: var(--grain), var(--wood-l); border-bottom: 6px solid var(--wood); border-radius: 8px; }
.rung::before { content: ""; position: absolute; top: 16px; left: -22px; width: 22px; height: 6px; background: var(--wood-d); }
.rung::after { content: ""; position: absolute; top: 16px; right: -22px; width: 22px; height: 6px; background: var(--wood-d); }
.rung-h { font-size: 1.3rem; margin: 0 0 .2em; }
.rung p { margin: 0; font-size: 1.02rem; }
.docs { margin-bottom: 32px; }

/* enquiry form */
.enquiry-box { background: #fff; border: 3px solid var(--wood); border-bottom-width: 8px; border-radius: 16px; padding: 24px 22px 22px; }
.enq-title { font-size: 1.6rem; }
.enq-intro { font-size: 1.02rem; color: var(--ink-soft); }
.field { margin-bottom: 4px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 1rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; font: 400 1.05rem var(--body); color: var(--ink); background: #fff;
  border: 2px solid #7D6A4C; border-radius: 10px; appearance: none;
}
.field select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%2323301F' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 42px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--err); background: #FFF5F3; }
.hint { font-size: .9rem; color: var(--ink-soft); margin: 4px 0 0; }
.err { font-size: .95rem; font-weight: 700; color: var(--err); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { padding: 10px 14px; margin-bottom: 14px; background: #FFF0EC; border: 2px solid var(--err); border-radius: 10px; font-weight: 700; color: var(--err); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
.form-foot .small { margin: 0; font-size: .92rem; color: var(--ink-soft); max-width: 36ch; }
.form-result { margin-top: 14px; font-weight: 700; }
.form-result.ok { padding: 12px 14px; background: #E6F4E3; border: 2px solid var(--leaf-d); border-radius: 10px; color: #1F4A22; }
.form-result.bad { padding: 12px 14px; background: #FFF0EC; border: 2px solid var(--err); border-radius: 10px; color: var(--err); }

/* school life: a clothesline */
.line { list-style: none; margin: 36px 0 0; padding: 40px 0 0; display: flex; flex-wrap: wrap; gap: 28px; position: relative; align-items: flex-start; }
.line::before { content: ""; position: absolute; left: -12px; right: -12px; top: 12px; height: 6px; background: repeating-linear-gradient(115deg, var(--rope) 0 6px, #B89B64 6px 9px); border-radius: 3px; }
.peg { position: relative; flex: 1 1 240px; max-width: 340px; transform: rotate(calc((var(--p) - 1) * 2.2deg)); transform-origin: 50% -30px; }
.g-btn { display: block; width: 100%; padding: 0; cursor: zoom-in; background: #fff; border: 10px solid #fff; border-bottom-width: 16px; box-shadow: 0 8px 16px rgba(35, 48, 31, .22); }
.g-btn img { width: 100%; }
.clip { position: absolute; top: -34px; left: 50%; width: 14px; height: 40px; margin-left: -7px; background: var(--wood-d); border-radius: 4px; box-shadow: 0 0 0 3px var(--ground); }
.life-b { background: #F1ECDD; }
.board { list-style: none; margin: 18px 0 0; padding: 22px 18px; background: var(--grain), var(--wood); border: 8px solid var(--wood-d); border-radius: 8px; display: grid; gap: 16px; }
.notice { position: relative; background: #FFFDF6; padding: 14px 16px 10px; border-radius: 3px; box-shadow: 0 3px 0 rgba(35, 48, 31, .25); transform: rotate(-.8deg); }
.notice:nth-child(2) { transform: rotate(.9deg); }
.notice::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--sun); border: 2px solid var(--sun-d); }
.notice h3 { font-size: 1.1rem; margin: 4px 0 .2em; }
.notice p { margin: 0; font-size: .95rem; }

/* contact */
.reach { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; gap: 12px; }
.plank-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; color: var(--ink); background: var(--grain), var(--wood-l); border-bottom: 6px solid var(--wood); border-radius: 10px; transition: transform .15s; }
.plank-link:hover { transform: translateY(-2px); color: var(--ink); background: #DDB887; }
.plank-link svg { width: 28px; height: 28px; }
.plank-link span { display: flex; flex-direction: column; line-height: 1.3; }
.plank-link strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.plus { font-size: .95rem; color: var(--ink-soft); }
.hours { border-collapse: collapse; width: 100%; max-width: 520px; margin-bottom: 8px; }
.hours caption { text-align: left; font-size: .9rem; color: var(--ink-soft); padding-bottom: 8px; caption-side: bottom; padding-top: 8px; }
.hours th, .hours td { text-align: left; padding: 9px 10px; border-bottom: 3px dotted var(--rope); }
.hours th { font-weight: 700; width: 8rem; }
.hours tr.today th, .hours tr.today td { background: rgba(255, 198, 74, .45); }
.hours tr.today th::after { content: " (today)"; font-weight: 400; }
.map-card { margin-top: 22px; border: 3px solid var(--wood); border-radius: 14px; padding: 18px; background: #fff; }
.map-addr { margin-bottom: 12px; }
.map-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.map-card iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: 8px; margin-top: 16px; }
.prose p { max-width: 68ch; }
.thanks { text-align: center; min-height: 52vh; display: grid; align-items: center; }
.thanks .actions { justify-content: center; }
.thanks .lead { margin-left: auto; margin-right: auto; }
.side-note { font-size: .95rem; color: var(--ink-soft); margin-top: 14px; }
.about-a .tbc-grid { margin-top: 12px; }

/* lightbox */
.lightbox { border: 0; padding: 14px; width: min(94vw, 900px); max-height: 92vh; background: var(--ground); border-radius: 16px; color: var(--ink); }
.lightbox::backdrop { background: rgba(35, 48, 31, .8); }
.lb-img { width: 100%; max-height: 64vh; object-fit: contain; background: #fff; }
.lb-cap { margin: 10px 0; font-size: .95rem; max-width: none; }
.lb-nav { display: flex; justify-content: space-between; gap: 10px; }
.lb-close, .lb-prev, .lb-next { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 16px; font: 700 1rem var(--body); cursor: pointer; background: var(--wood-l); color: var(--ink); border: 2px solid var(--wood-d); border-radius: 10px; }
.lb-close { margin: 0 0 10px auto; display: flex; }

/* ------------------------------------------------------------ footer and dock */
.foot { position: relative; margin-top: 0; background: var(--ink); color: #E9EFE4; padding: 64px 0 40px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--sun); }
.foot-logo { width: 248px; height: auto; margin-bottom: 14px; }
.foot-addr { margin-bottom: .4em; }
.foot-tel { font: 400 1.5rem var(--display); text-decoration: none; }
.foot-h { font: 400 1.2rem/1.2 var(--display); color: var(--sun); margin-bottom: .6em; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { padding: 3px 0; }
.foot-small { font-size: .95rem; margin-bottom: .6em; }
.dock { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: 72px; }
  .dock { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--wood-d); border-top: 4px solid var(--wood); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; border-radius: 8px; }
  .dock a:active { background: rgba(255, 255, 255, .15); }
  .hero .actions .btn-wood, .hero .actions .btn-line { display: none; }
  .hero { padding-top: 14px; }
  .scene { aspect-ratio: 1000 / 600; }
  .facts li { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .sec { padding: 44px 0; }
  .brand img { width: 176px; }
  .sign-board { padding: 12px 20px 10px; }
  .hero .open-src { display: none; }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .sheet-door { transform: none; opacity: 0; transition: opacity .2s !important; }
  .sheet.is-open .sheet-door { opacity: 1; }
}
