/* Tiny Land — "Welcome to Tiny Land" isometric toy town.
   Ground #F6F7FB, ink #232946, tomato #E85A57, teal #1FA79A, lemon #FFE45C. Lilita One + Quicksand.
   Bootstrap 5.3.3 grid supplies container/row/col; everything else is here. */
/* metric-matched fallbacks so the font swap does not move the layout */
@font-face { font-family: "Lilita fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 400; size-adjust: 87.5%; ascent-override: 105.5%; descent-override: 25.1%; line-gap-override: 0%; }
@font-face { font-family: "Quicksand fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 105.7%; ascent-override: 94.6%; descent-override: 23.7%; line-gap-override: 0%; }
:root {
  --ground: #F6F7FB;
  --mat: #E6ECF6;
  --road: #CDD5E4;
  --ink: #232946;
  --ink-2: #4A5072;
  --white: #FFFFFF;
  --tomato: #E85A57;
  --tomato-deep: #C3403D;   /* white text 5.0:1 */
  --tomato-text: #A93532;   /* on ground 6.3:1 */
  --tomato-edge: #8E2C2A;
  --teal: #1FA79A;
  --teal-deep: #11756C;     /* white 5.6:1, on ground 5.2:1 */
  --teal-light: #D4F0EB;
  --lemon: #FFE45C;
  --lemon-light: #FFF7CC;
  --lemon-edge: #D9BC2F;
  --display: "Lilita One", "Lilita fallback", system-ui, sans-serif;
  --body: "Quicksand", "Quicksand fallback", system-ui, sans-serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --lift: 0 10px 24px -14px rgba(35, 41, 70, .45);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 72px;
  --tab-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 1.0625rem/1.65 var(--body);
  font-variant-numeric: lining-nums;
  padding-bottom: var(--tab-h);
  overflow-x: hidden;
  caret-color: var(--tomato-deep);
}
::selection { background: var(--lemon); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--tomato-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); margin-bottom: .35em; }
h3 { font-size: 1.35rem; margin-top: 1.4em; }
p, li, figcaption, dd, td { text-wrap: pretty; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 34em; }
.sec-lead { font-size: 1.1rem; max-width: 38em; color: var(--ink-2); }
.small-note { font-size: .92rem; color: var(--ink-2); max-width: 42em; }
.hi-line { font-size: 1.15rem; color: var(--teal-deep); font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
section { padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; }
.skip:focus { top: 12px; }
.skip:hover, .skip:focus { color: var(--white); }

/* ---------------------------------------------------------------- buttons: little toy blocks with a visible bottom face */
.btn {
  --b-face: var(--white); --b-edge: var(--ink); --b-text: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: .7em 1.25em; border-radius: 14px;
  background: var(--b-face); color: var(--b-text);
  border: 2px solid var(--b-edge); border-bottom-width: 6px;
  font: 700 1.02rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), border-bottom-width .15s var(--ease), background-color .15s;
}
.btn:hover { color: var(--b-text); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); border-bottom-width: 3px; }
.btn-go { --b-face: var(--tomato-deep); --b-edge: var(--tomato-edge); --b-text: var(--white); }
.btn-go:hover { --b-face: #B23936; }
.btn-plain:hover { --b-face: var(--lemon-light); }
.btn-sm { min-height: 44px; padding: .5em .95em; font-size: .95rem; }
.btn-icon { width: 48px; min-height: 48px; padding: 0; }
.btn[disabled] { opacity: .65; cursor: progress; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.25rem 0; }
.hero-actions.center { justify-content: center; }
.link { font-weight: 700; }

/* ---------------------------------------------------------------- placeholders: road-works signs */
.todo {
  display: block; max-width: 44em; margin: 1rem 0;
  padding: .85rem 1rem; border: 2px dashed var(--ink-2); border-radius: var(--r-m);
  background: var(--lemon-light); color: var(--ink); font-size: .98rem;
}
span.todo { display: inline-block; margin: 0; padding: .1rem .5rem; font-size: .9rem; border-radius: 8px; }
.todo-tag {
  display: inline-block; margin-right: .35em; padding: .1em .55em; border-radius: 6px;
  background: var(--ink); color: var(--lemon); font-family: var(--display); font-size: .88rem; letter-spacing: .02em;
}
.stock-note { margin-top: 2rem; font-size: .9rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 247, 251, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 2px solid var(--road);
}
.head-row { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.5rem; }
.brand-sub { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; position: relative;
}
.nav-ic { width: 28px; height: 28px; flex: none; transition: transform .2s var(--ease); }
.nav-link:hover { background: var(--mat); color: var(--ink); }
.nav-link:hover .nav-ic { transform: translateY(-2px); }
.nav-link[aria-current="page"] { background: var(--lemon); }
.head-call { display: none; }

@media (min-width: 992px) {
  .main-nav { display: block; }
  .brand-sub { display: none; }
}
.nav-link, .head-call { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .nav-link { padding: .4rem .45rem; font-size: .93rem; gap: .3rem; } .nav-ic { width: 24px; height: 24px; } }
@media (min-width: 1200px) {
  .head-call { display: inline-flex; }
  .nav-link { padding: .45rem .6rem; }
}
@media (min-width: 1400px) { .brand-sub { display: block; } }
@media (min-width: 1400px) { .main-nav ul { gap: .35rem; } }

/* ---------------------------------------------------------------- phone tab bar + sheet */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--white); border-top: 2px solid var(--road);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.tabbar ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: none;
  color: var(--ink); font: 700 .78rem/1.1 var(--body); text-decoration: none; cursor: pointer;
}
.tab .ic { width: 26px; height: 26px; }
.tab[aria-current="page"] { background: var(--lemon); }
.tab-call { background: var(--tomato-deep); color: var(--white); }
.tab-call:hover { color: var(--white); background: #B23936; }
body { --tab-h: 76px; }
@media (min-width: 992px) { .tabbar { display: none; } body { --tab-h: 0px; } }

.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(35, 41, 70, .45); opacity: 0; transition: opacity .25s; }
.sheet-scrim.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88vh; overflow: auto;
  background: var(--ground); border-radius: var(--r-l) var(--r-l) 0 0; padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.sheet.open { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.sheet-title { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.sheet-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-link {
  display: flex; align-items: center; gap: .6rem; min-height: 60px; padding: .5rem .75rem;
  background: var(--white); border: 2px solid var(--road); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700;
}
.sheet-link[aria-current="page"] { border-color: var(--ink); background: var(--lemon); }
.sheet-actions { display: grid; gap: 10px; margin-top: 1rem; }
body.sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-scrim { transition: none; } }

/* ---------------------------------------------------------------- hero + town */
.hero { padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.hero h1 { margin-bottom: .6rem; }
.h1-big { display: block; font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem); line-height: 1; color: var(--ink); }
.h1-small { display: block; margin-top: .7rem; font-family: var(--body); font-weight: 700; font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); line-height: 1.35; color: var(--teal-deep); }
.hero-rating a { font-weight: 700; }
.open-sign {
  display: inline-flex; align-items: center; gap: .55rem; margin: .25rem 0 0; padding: .45rem .85rem;
  border-radius: 999px; background: var(--white); border: 2px solid var(--road); font-weight: 700; font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.open-sign .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); flex: none; }
.open-sign.is-open .dot { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-light); }
.open-sign.is-closed .dot { background: var(--tomato); }

.town-wrap { position: relative; width: 100%; max-width: 760px; margin: 0 auto; }
.town { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.town .sign text { font-family: var(--display); font-size: 21px; fill: var(--ink); }
.town .bld { cursor: pointer; outline: none; }
.town .bld-in { transition: transform .25s var(--ease); }
.town .bld:hover .bld-in, .town .bld:focus-visible .bld-in { transform: translateY(-7px); }
.town .bld:hover .sign-board, .town .bld:focus-visible .sign-board { fill: var(--white); }
.town .bld:focus-visible .sign-board { stroke: var(--tomato-deep); stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
  .town .bld-in { animation: drop .7s var(--ease) both; animation-delay: var(--d, 0ms); }
  @keyframes drop { from { transform: translateY(-34px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.billboard {
  position: absolute; z-index: 2; border: 6px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--white);
  box-shadow: var(--lift);
}
.billboard img { width: 100%; height: 100%; object-fit: cover; }
.town-caption { text-align: center; font-size: .85rem; color: var(--ink-2); margin: .25rem 0 0; }
@media (max-width: 575.98px) { .town .sign text { font-size: 24px; } }

/* street of places under the hero */
.street { padding: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem); }
.street-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.street-list a {
  display: flex; align-items: center; gap: .7rem; height: 100%; padding: .8rem .9rem; border-radius: var(--r-m);
  background: var(--white); border: 2px solid var(--road); border-bottom-width: 5px; color: var(--ink); text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s;
}
.street-list a:hover { transform: translateY(-2px); border-color: var(--ink); color: var(--ink); }
.street-list .nav-ic { width: 40px; height: 40px; }
.street-list span { display: flex; flex-direction: column; font-size: .9rem; line-height: 1.3; color: var(--ink-2); }
.street-list strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--ink); }
.street-list li:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .street-list { grid-template-columns: repeat(5, 1fr); } .street-list li:last-child { grid-column: auto; } }

/* ---------------------------------------------------------------- stages (two lots) */
.stages { background: var(--white); }
.lots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lot {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 1.25rem;
  border-radius: var(--r-l); text-decoration: none; color: var(--white); position: relative; overflow: hidden;
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .22); transition: transform .25s var(--ease);
}
.lot:hover { transform: translateY(-4px); color: var(--white); }
.lot::before { /* little rooftop: a lemon triangle peeking from the top corner */
  content: ""; position: absolute; right: 18px; top: 18px; width: 54px; height: 54px; background: var(--lemon);
  clip-path: polygon(50% 0, 100% 50%, 100% 100%, 0 100%, 0 50%);
}
.lot-teal { background: var(--teal-deep); }
.lot-tomato { background: var(--tomato-deep); }
.lot-tag { font-weight: 700; font-size: .9rem; opacity: .95; }
.lot-name { font-family: var(--display); font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); line-height: 1.05; margin: .15rem 0 .35rem; }
.lot-age { font-weight: 700; font-size: .95rem; }
@media (max-width: 400px) { .lots { grid-template-columns: 1fr; } .lot { min-height: 170px; } }

/* ---------------------------------------------------------------- day route */
.day { background: var(--mat); }
.route { position: relative; margin-top: 2rem; --n: 7; --i: 0; }
.route-stops { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.stop-btn {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 56px; padding: .4rem .5rem;
  background: none; border: 0; color: var(--ink); font: 700 1rem/1.25 var(--body); text-align: left; cursor: pointer; border-radius: 14px;
}
.stop-dot {
  width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--white); border: 4px solid var(--ink);
  transition: transform .25s var(--ease), background-color .2s;
}
.stop-lemon .stop-dot { border-color: var(--lemon-edge); }
.stop-teal .stop-dot { border-color: var(--teal); }
.stop-tomato .stop-dot { border-color: var(--tomato); }
.stop-btn[aria-pressed="true"] .stop-dot { background: var(--lemon); transform: scale(1.12); border-color: var(--ink); }
.stop-btn[aria-pressed="true"] .stop-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .25em; text-decoration-color: var(--tomato); }
.stop-time { font-weight: 700; color: var(--teal-deep); font-variant-numeric: tabular-nums; font-size: .9rem; }
.stop-btn:hover .stop-dot { transform: scale(1.08); }
.route-road { position: absolute; z-index: 0; background: var(--road); border-radius: 999px; }
.route-bus {
  position: absolute; width: 46px; height: 30px; border-radius: 8px 12px 6px 6px; background: var(--lemon);
  border: 3px solid var(--ink); z-index: 2; transition: top .6s var(--ease), left .6s var(--ease);
}
.route-bus::before { content: ""; position: absolute; left: 6px; right: 10px; top: 4px; height: 9px; border-radius: 3px; background: var(--ink); }
.route-bus::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: -9px; height: 10px;
  background: radial-gradient(circle at 7px 5px, var(--ink) 5px, transparent 5.5px), radial-gradient(circle at calc(100% - 7px) 5px, var(--ink) 5px, transparent 5.5px); }
.route-panel { margin-top: 1.25rem; }
.stop-panel { background: var(--white); border-radius: var(--r-m); padding: 1.1rem 1.25rem; max-width: 40em; box-shadow: var(--lift); }
.stop-panel p { margin: 0; }
.stop-h { font-family: var(--display); font-size: 1.4rem; margin-bottom: .25rem !important; }
@media (prefers-reduced-motion: reduce) { .route-bus, .stop-dot { transition: none; } }

/* phones: vertical road on the left */
@media (max-width: 767.98px) {
  .route-stops li { padding-left: 4px; }
  .route-road { left: 22px; top: 24px; width: 14px; height: calc(var(--n) * 56px - 48px); }
  .route-stops { padding-left: 0; }
  .route-bus { left: 52px; top: calc(var(--i) * 56px + 13px); width: 38px; height: 26px; display: none; }
}
/* tablet and up: horizontal road, stops in a row */
@media (min-width: 768px) {
  .route-stops { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; }
  .stop-btn { flex-direction: column; text-align: center; gap: .45rem; padding-top: 52px; }
  .route-road { left: calc(100% / 14); right: calc(100% / 14); top: 70px; height: 16px; }
  .route-bus { top: -50px; left: calc(var(--i) * (100% / 6) - 23px); }
  .stop-dot { position: relative; z-index: 2; }
  .route-panel { display: flex; justify-content: center; }
}

/* ---------------------------------------------------------------- parents */
.parents .rating-sign {
  display: inline-grid; justify-items: start; gap: .2rem; margin: .5rem 0 2rem; padding: 1.2rem 1.4rem;
  background: var(--ink); color: var(--white); border-radius: var(--r-l);
}
.rating-big { display: flex; align-items: baseline; gap: .5rem; margin: 0; }
.rating-num { font-family: var(--display); font-size: 3.6rem; line-height: 1; color: var(--lemon); }
.rating-out { font-weight: 700; }
.stars { display: inline-flex; gap: 3px; color: var(--lemon); }
.rating-meta { margin: 0; font-size: .95rem; }
.rating-sign .link { color: var(--lemon); }
.rating-sign .link:hover { color: var(--white); }
.reviews { display: grid; gap: 18px; }
@media (min-width: 992px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; padding: 1.4rem 1.4rem 1.2rem; background: var(--white); border-radius: var(--r-l); border: 2px solid var(--road); position: relative; }
.review::after { /* speech-bubble tail */
  content: ""; position: absolute; left: 34px; bottom: -14px; width: 26px; height: 14px; background: var(--white);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.review blockquote { margin: 0 0 .75rem; }
.review blockquote p { font-size: 1.15rem; font-weight: 700; line-height: 1.45; margin: 0; }
.review figcaption { font-size: .92rem; color: var(--ink-2); }
.parents-quiet { background: var(--mat); }

/* ---------------------------------------------------------------- ready tips */
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tip { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--white); border-radius: var(--r-m); border: 2px solid var(--road); cursor: pointer; }
.tip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tip-box { width: 30px; height: 30px; flex: none; border-radius: 8px; border: 3px solid var(--ink); display: grid; place-items: center; color: transparent; background: var(--white); }
.tip-box .ic { width: 20px; height: 20px; }
.tip input:checked + .tip-box { background: var(--teal); border-color: var(--teal-deep); color: var(--white); }
.tip input:focus-visible + .tip-box { outline: 3px solid var(--tomato-deep); outline-offset: 3px; }
.tip-text strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.tip:has(input:checked) { border-color: var(--teal); }
.ready-photo { margin: 1.5rem 0 0; border-radius: var(--r-l); overflow: hidden; }

/* ---------------------------------------------------------------- visit */
.visit { padding-top: 0; }
.visit-card { background: var(--ink); color: var(--white); border-radius: var(--r-l); padding: clamp(1.5rem, 1rem + 3vw, 3rem); }
.visit-card h2 { color: var(--white); }
.visit-addr { font-size: 1.2rem; font-weight: 700; color: var(--lemon); }
.visit-card .btn-plain { --b-face: var(--white); --b-edge: #0f1330; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 2px dashed rgba(255, 255, 255, .25); }
.facts dt { font-weight: 700; color: #C9CEE4; }
.facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- inner page head */
.page-head { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(2.5rem, 2rem + 2vw, 4rem); background: var(--white); border-bottom: 2px solid var(--road); }
.page-head h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.2rem); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .92rem; font-weight: 700; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-2); }
.ph-photo { margin: 0; border-radius: var(--r-l); overflow: hidden; border: 6px solid var(--ink); }
.ph-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.center-head { text-align: center; min-height: 55vh; display: grid; place-items: center; }
.prose-col { max-width: 40em; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.5em; }

/* about: record table */
.table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 2px solid var(--road); background: var(--white); }
.record-table, .age-table, .hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.record-table th, .record-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--road); vertical-align: top; }
.record-table thead th { font-family: var(--display); font-weight: 400; font-size: 1.05rem; background: var(--mat); }
.record-table tbody th { font-weight: 700; white-space: nowrap; }
.record-table td:last-child { color: var(--teal-deep); font-weight: 700; white-space: nowrap; }
.story { background: var(--mat); }

/* classes */
.class-row + .class-row { margin-top: clamp(2.5rem, 2rem + 3vw, 5rem); }
.class-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); }
.class-plate { display: inline-block; margin: 0 0 .5rem; padding: .25rem .8rem; border-radius: 8px; font-family: var(--display); color: var(--white); }
.plate-teal { background: var(--teal-deep); }
.plate-tomato { background: var(--tomato-deep); }
.mini-facts { margin: 1rem 0 1.25rem; display: grid; gap: 8px; max-width: 34em; }
.mini-facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-bottom: .5rem; border-bottom: 2px dashed var(--road); }
.mini-facts dt { font-weight: 700; }
.mini-facts dd { margin: 0; }
.learn { background: var(--mat); }
.learn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.learn-list li { display: grid; gap: .1rem; padding: .9rem 0; border-bottom: 2px dashed var(--road); }
.learn-list strong { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.learn-photo { margin: 0; border-radius: var(--r-l); overflow: hidden; }
.learn-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* admissions: road with numbered stops */
.road-steps { list-style: none; margin: 1.5rem 0; padding: 0; position: relative; display: grid; gap: 1.5rem; }
.road-steps::before { content: ""; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 14px; background: var(--road); border-radius: 999px; }
.road-step { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; position: relative; }
.road-num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lemon);
  border: 4px solid var(--ink); font-family: var(--display); font-size: 1.7rem; position: relative; z-index: 1;
}
.road-step h3 { margin: .55rem 0 .25rem; }
.road-step p { margin: 0; max-width: 36em; }
@media (min-width: 992px) {
  .road-steps { grid-template-columns: repeat(4, 1fr); }
  .road-steps::before { left: 32px; right: 32px; top: 25px; bottom: auto; width: auto; height: 14px; }
  .road-step { grid-template-columns: 1fr; }
}
.docs-age { background: var(--mat); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs li { display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; background: var(--white); border-radius: var(--r-m); font-weight: 700; }
.docs .ic { color: var(--teal-deep); }
.age-table { background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.age-table th, .age-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--road); }
.age-table thead th { background: var(--ink); color: var(--white); font-family: var(--display); font-weight: 400; }

.faq-list { display: grid; gap: 10px; }
.faq { background: var(--white); border: 2px solid var(--road); border-radius: var(--r-m); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { width: 26px; height: 26px; flex: none; position: relative; border-radius: 50%; background: var(--lemon); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 7px; right: 7px; top: 11.5px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.faq-plus::after { transform: rotate(90deg); }
.faq[open] .faq-plus::after { transform: rotate(0); }
.faq[open] { border-color: var(--ink); }
.faq-a { padding: 0 1.1rem 1rem; }
.faq-a p { margin: 0; }

/* forms */
.form-card { background: var(--white); border-radius: var(--r-l); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); border: 2px solid var(--road); }
.form-wide { max-width: 860px; margin: 0 auto; }
.form-title { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.form-intro { color: var(--ink-2); }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.opt { font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .7rem .85rem; border: 2px solid #9AA6C0; border-radius: 12px;
  background: var(--ground); color: var(--ink); font: 500 1.02rem/1.4 var(--body);
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--ink); background: var(--white); }
.field [aria-invalid="true"] { border-color: #B3261E; background: #FFF4F3; }
.hint { font-size: .88rem; color: var(--ink-2); margin: .3rem 0 0; }
.err { font-size: .92rem; color: #A3201A; font-weight: 700; margin: .3rem 0 0; }
.form-summary { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: 12px; background: #FFF4F3; border: 2px solid #B3261E; color: #7E1610; font-weight: 700; }
.form-summary ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: #7E1610; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.form-note { margin: 0; font-size: .92rem; color: var(--ink-2); flex: 1 1 16rem; }
.form-ok, .form-fail { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: 12px; font-weight: 700; }
.form-ok { background: var(--teal-light); color: #0B4F48; }
.form-fail { background: #FFF4F3; color: #7E1610; border: 2px solid #B3261E; }
.hp { position: absolute; left: -9999px; }

/* school life */
.act-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.act { padding: .8rem 1.2rem 1.1rem; border-radius: 14px; font-family: var(--display); font-size: 1.25rem; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .2); }
.act-lemon { background: var(--lemon); color: var(--ink); }
.act-teal { background: var(--teal-deep); color: var(--white); }
.act-tomato { background: var(--tomato-deep); color: var(--white); }
.facilities { background: var(--mat); }
.ask-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.ask-list li::marker { color: var(--tomato); }
.g-grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-grid li:first-child { grid-row: span 2; }
@media (min-width: 992px) { .g-grid { grid-template-columns: repeat(3, 1fr); } }
.g-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; cursor: zoom-in; background: var(--mat); }
.g-btn img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; transition: transform .4s var(--ease); }
.g-btn:hover img { transform: scale(1.03); }
.g-zoom { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--ink); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1000px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(20, 24, 44, .86); }
.lb-inner { background: var(--ink); border-radius: var(--r-l); padding: 12px; }
.lb-img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 14px; }
.lb-cap { color: var(--white); margin: .75rem .25rem; font-size: .95rem; }
.lb-ctrl { display: flex; gap: 10px; justify-content: flex-end; }

/* contact */
.addr-card { font-style: normal; background: var(--white); border-radius: var(--r-l); border: 2px solid var(--road); padding: 1.25rem 1.4rem; }
.addr-card p { margin: 0 0 .35rem; }
.addr-name { font-family: var(--display); font-size: 1.35rem; }
.addr-phone a { font-family: var(--display); font-size: 1.6rem; color: var(--tomato-text); text-decoration: none; }
.mt-h { margin-top: 2rem; font-size: 1.8rem; }
.hours { margin-top: 1rem; background: var(--white); border-radius: var(--r-m); overflow: hidden; }
.hours caption { caption-side: bottom; text-align: left; padding-top: .6rem; font-size: .9rem; color: var(--ink-2); }
.hours th, .hours td { padding: .65rem 1rem; text-align: left; border-bottom: 1px solid var(--road); }
.hours tr.today { background: var(--lemon); }
.hours tr.today th::after { content: " (today)"; font-weight: 500; }
.map-block { position: relative; min-height: 420px; height: 100%; border-radius: var(--r-l); overflow: hidden; background: var(--mat); border: 2px solid var(--road); }
.map-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.map-title { font-family: var(--display); font-size: 1.6rem; margin-bottom: .25rem; }
.contact-form { background: var(--mat); }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--ink); color: #E3E6F2; padding: 3.5rem 0 2rem; }
.site-foot a { color: var(--white); }
.site-foot a:hover { color: var(--lemon); }
.site-foot :focus-visible { outline-color: var(--lemon); }
.foot-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; margin-bottom: 1rem; }
.foot-brand img { width: 56px; height: 56px; flex: none; }
.foot-addr, .foot-hi, .foot-hours { margin: 0 0 .4rem; }
.foot-phone { font-family: var(--display); font-size: 1.5rem; text-decoration: none; }
.foot-h { font-family: var(--display); color: var(--lemon); font-size: 1.15rem; margin-bottom: .5rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-list a { display: inline-block; padding: .2rem 0; }
.foot-notes { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; color: #C9CEE4; }
.foot-notes p { margin-bottom: .4rem; }

/* scrollbars and print */
html { scrollbar-color: #9AA6C0 var(--ground); }
@media print { .site-head, .tabbar, .sheet, .site-foot, .hero-actions { display: none !important; } body { padding: 0; } }

/* phones: keep the first screen to headline, actions and the top of the town */
@media (max-width: 575.98px) {
  .hero { padding-top: 1.1rem; }
  .h1-big { font-size: 2.55rem; }
  .h1-small { margin-top: .45rem; font-size: .98rem; }
  .hero .lead { font-size: 1.05rem; margin-bottom: .5rem; }
  .hero .hi-line { font-size: 1.02rem; margin-bottom: .6rem; }
  .hero .hero-actions { margin: .9rem 0 .6rem; gap: 8px; }
  .hero .hero-actions .btn { flex: 1 1 auto; min-height: 48px; padding: .55em .8em; font-size: .97rem; }
  .hero-rating { margin-bottom: 0; }
  .open-sign { font-size: .9rem; min-height: 3.4em; }
}
.open-src { white-space: nowrap; font-weight: 500; color: var(--ink-2); font-size: .82rem; }
.open-src::before { content: ""; display: inline-block; width: 2px; height: 1em; margin-right: .5rem; vertical-align: -.15em; background: var(--road); }
@media (max-width: 767.98px) {
  .street-list a { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .street-list .nav-ic { width: 34px; height: 34px; }
  .street-list li:last-child a { flex-direction: row; align-items: center; }
}
.ph-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-l); background: var(--mat); }
.ph-art .nav-ic { width: 62%; height: auto; }
.map-art { width: 132px; margin-bottom: 1rem; }
.map-art .nav-ic { width: 132px; height: 132px; }
@media (max-width: 991.98px) { .ph-art { display: none; } }
