/* The Excellent Kids Academy: star chart and merit badges.
   Ground #FAF8F3, ink #1E2235, star gold #E8B020, ribbon navy #24356B, rosette red #C73E3A, grid blue #CFE0F5. */
:root {
  --ground: #FAF8F3;
  --paper: #FFFFFF;
  --ink: #1E2235;
  --muted: #4A4F66;
  --gold: #E8B020;
  --gold-deep: #B98A0C;
  --gold-ink: #6E5100;
  --navy: #24356B;
  --navy-deep: #1A2750;
  --red: #C73E3A;
  --red-deep: #9E2C29;
  --grid: #CFE0F5;
  --grid-soft: #E6EFFA;
  --line: #D9DCE6;
  --display: "Abril Fatface", "Bodoni 72", Georgia, serif;
  --body: "Epilogue", "Segoe UI", system-ui, sans-serif;
  --r: 10px;
  --shadow: 0 10px 28px -14px rgba(30, 34, 53, .32), 0 2px 6px -2px rgba(30, 34, 53, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body); font-variant-numeric: lining-nums;
  overflow-x: clip;
}
::selection { background: var(--gold); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.skip:hover { color: #fff; }

/* ---------- icons, stars, rosettes ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; }
.st polygon, .cell-st polygon, .li-st polygon, .fact-st polygon, .wk-st polygon, .today-st polygon, .rib-st polygon {
  fill: var(--gold); stroke: var(--gold-deep); stroke-width: 1.4;
}
.ros-edge { fill: var(--navy); }
.ros-ring { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.ros-star { fill: var(--gold); stroke: var(--gold); stroke-width: 1; stroke-linejoin: round; }
.ros-tail { fill: var(--red); }
.ros-q { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.ros-dot { fill: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .7em 1.25em;
  border-radius: 999px; border: 2px solid transparent; font: 700 1rem/1.2 var(--body); text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -8px rgba(36, 53, 107, .7); }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(185, 138, 12, .8); }
.btn-gold:hover { background: #F2C23E; color: var(--ink); }
.btn-line { background: var(--paper); color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--grid-soft); color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.more { font-weight: 700; color: var(--navy); }

/* ---------- header and ribbon nav ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 243, .96); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.brand img { width: 214px; height: auto; }
.ribbons { margin-left: auto; }
.ribbons ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.rib {
  --cut: 10px;
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; min-height: 44px;
  background: var(--grid-soft); color: var(--ink); font-weight: 500; font-size: 1rem; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 50%, 100% 100%, 0 100%, var(--cut) 50%);
  transition: background-color .2s, color .2s;
}
.rib .rib-st { width: 0; height: 15px; opacity: 0; transition: width .25s var(--ease), opacity .2s; }
.rib:hover { background: var(--grid); color: var(--ink); }
.rib[aria-current="page"] { background: var(--navy); color: #fff; }
.rib[aria-current="page"] .rib-st { width: 15px; opacity: 1; }
.rib:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.head-call {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.head-call:hover { background: #F2C23E; color: var(--ink); }
.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; min-height: 48px;
  background: none; border: 0; color: var(--navy); font: 700 1rem var(--body); cursor: pointer;
}
.menu-ros { width: 40px; height: 38px; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-ros { transform: rotate(72deg); }
@media (max-width: 1199.98px) { .rib { padding: 9px 14px; } .head-call span { display: none; } }
@media (max-width: 991.98px) {
  :root { --head-h: 64px; }
  .ribbons, .head-call { display: none; }
  .menu-btn { display: inline-flex; }
  .brand img { width: 180px; }
}

/* ---------- phone menu: a rosette that unfolds ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(30, 34, 53, .45); }
.sheet-in {
  position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); overflow-y: auto; padding: 18px 20px 28px;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid-soft) 1px, transparent 1px), linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: 22px 22px;
  clip-path: circle(150% at calc(100% - 40px) 32px);
  animation: unfold .55s var(--ease) both;
}
@keyframes unfold { from { clip-path: circle(0 at calc(100% - 40px) 32px); } to { clip-path: circle(150% at calc(100% - 40px) 32px); } }
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-badge { display: flex; align-items: center; gap: 12px; }
.sheet-ros { width: 64px; height: 66px; flex: none; }
.sheet-name { margin: 0; font: 400 1.25rem/1.15 var(--display); color: var(--navy); }
.sheet-name span { display: block; font: 500 .9rem/1.4 var(--body); color: var(--muted); margin-top: 4px; }
.sheet-close { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 2px solid var(--navy); border-radius: 999px; background: var(--paper); color: var(--navy); font: 700 1rem var(--body); cursor: pointer; }
.tails { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 8px; }
.tail {
  --cut: 18px;
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px calc(var(--cut) + 16px) 10px 18px;
  background: var(--navy); color: #fff; font: 400 1.4rem/1.1 var(--display); text-decoration: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 50%, 100% 100%, 0 100%);
  transform-origin: top left; animation: drop .5s var(--ease) both;
}
.tails li:nth-child(even) .tail { background: var(--red-deep); }
.tails li:nth-child(1) .tail { animation-delay: .08s; } .tails li:nth-child(2) .tail { animation-delay: .12s; }
.tails li:nth-child(3) .tail { animation-delay: .16s; } .tails li:nth-child(4) .tail { animation-delay: .2s; }
.tails li:nth-child(5) .tail { animation-delay: .24s; } .tails li:nth-child(6) .tail { animation-delay: .28s; }
@keyframes drop { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.tail .rib-st { width: 18px; height: 18px; opacity: .35; }
.tail[aria-current="page"] .rib-st { opacity: 1; }
.tail:hover { color: #fff; filter: brightness(1.15); }
.tail:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sheet-acts { display: grid; gap: 10px; }
.sheet-acts .btn { justify-content: center; }
.sheet-note { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 88px); overflow-x: clip; }
.hero-h { font: 400 clamp(2.7rem, 5.4vw, 4.4rem)/1.02 var(--display); letter-spacing: -.01em; color: var(--ink); margin-bottom: .3em; }
.hero-hi { font: 500 1.25rem/1.4 var(--body); color: var(--red-deep); margin-bottom: 1em; }
.hero-lead { font-size: 1.12rem; max-width: 34em; color: var(--ink); }
.facts { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .ic, .fact-st { width: 20px; height: 20px; margin-top: 3px; color: var(--navy); flex: none; }
.open-txt b { color: var(--navy); }
.open-txt .is-open { color: #1E6B3A; font-weight: 700; }

/* the star chart */
.chart-wrap { position: relative; margin: 0; padding: 26px 0 0; }
.chart-sheet {
  position: relative; background-color: var(--paper); border-radius: 6px; padding: 18px 18px 14px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 18px 18px; background-position: -1px -1px;
  box-shadow: var(--shadow); border: 1px solid #DCE6F3;
}
.chart-wrap .chart-sheet { transform: rotate(-1.4deg); margin-right: 200px; }
.chart-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-title { font: 400 1.6rem/1.1 var(--display); color: var(--navy); margin: 0; background: var(--paper); padding: 0 6px 2px 0; }
.chart-today { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 3px 12px 3px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; }
.today-st { width: 16px; height: 16px; }
.chart-scroll { overflow-x: auto; position: relative; }
.chart { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.chart th, .chart td { text-align: center; padding: 0; }
.chart thead th { font-size: .85rem; font-weight: 700; color: var(--navy); padding: 4px 0; background: var(--paper); border-radius: 4px; }
.chart .win-h { width: 38%; text-align: left; padding-left: 6px; }
.chart tbody th { text-align: left; font-size: .9rem; font-weight: 500; line-height: 1.2; padding: 4px 6px; background: rgba(255, 255, 255, .92); border-radius: 4px; }
.chart td { background: rgba(255, 255, 255, .7); border: 1.5px solid var(--grid); border-radius: 6px; height: 44px; }
.chart .is-today { border-color: var(--navy); background: #F3F7FD; }
.chart thead .is-today { background: var(--navy); color: #fff; }
.cell { width: 100%; height: 100%; min-height: 40px; display: grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 5px; }
.cell .cell-st { width: 26px; height: 26px; opacity: 0; transform: scale(.3) rotate(-40deg); transition: opacity .2s, transform .45s var(--ease); }
.cell[aria-pressed="true"] .cell-st { opacity: 1; transform: none; }
.cell:hover { background: var(--grid-soft); }
.cell:focus-visible { outline: 3px solid var(--red); outline-offset: 0; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 10px 0 0; font-size: .9rem; }
.chart-count, .chart-hint { background: var(--paper); padding: 0 4px; }
.chart-count b { font: 400 1.35rem/1 var(--display); color: var(--red-deep); }
.chart-hint { color: var(--muted); }
.pinned {
  position: absolute; top: 0; right: 0; width: 200px; padding: 10px 10px 0; background: var(--paper);
  transform: rotate(4deg); box-shadow: var(--shadow); border-radius: 3px; z-index: 2;
}
.pinned-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.pin-ros { position: absolute; top: -26px; left: 50%; width: 52px; height: 54px; margin-left: -26px; filter: drop-shadow(0 3px 3px rgba(30, 34, 53, .25)); }
.pinned-rib {
  --cut: 12px;
  margin: 10px -18px 12px; padding: 7px 28px; background: var(--red); color: #fff; text-align: center;
  font: 400 1.1rem/1.1 var(--display);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 50%, 100% 100%, 0 100%, var(--cut) 50%);
}
.chart-cap { margin: 18px 0 0; font-size: .85rem; color: var(--muted); max-width: 40em; }
@media (max-width: 767.98px) {
  .chart-wrap { padding-top: 0; display: flex; flex-direction: column; }
  .pinned { position: relative; order: -1; align-self: flex-end; width: 168px; margin: 18px 10px -34px 0; }
  .pin-ros { width: 44px; height: 46px; top: -22px; margin-left: -22px; }
  .pinned-rib { font-size: 1rem; margin: 8px -14px 10px; padding: 6px 22px; }
  .chart-wrap .chart-sheet { margin-right: 0; padding: 14px 10px 12px; }
  .chart-wrap .chart-top { flex-direction: column; align-items: flex-start; padding-right: 150px; gap: 6px; }
  .chart .win-h { width: 34%; }
  .chart tbody th { font-size: .85rem; padding: 3px 4px; }
  .chart td { height: 38px; }
  .cell { min-height: 34px; }
  .cell .cell-st { width: 22px; height: 22px; }
  .chart-title { font-size: 1.35rem; }
  .cert > .sec-h, .cert > .form-h { padding-right: 52px; }
  .medal-rib { font-size: 1.05rem; padding: 5px 20px; white-space: nowrap; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(44px, 6vw, 80px) 0; }
.sec-h { font: 400 clamp(2rem, 3.6vw, 2.9rem)/1.08 var(--display); color: var(--ink); margin-bottom: .45em; }
.sec-lead { font-size: 1.08rem; max-width: 40em; color: var(--muted); }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 28px; }
.sec-row .sec-h { margin: 0; }
.sec-grid {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid-soft) 1px, transparent 1px), linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: 24px 24px; border-block: 1px solid var(--line);
}
.photo-note { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }

/* certificate panels */
.cert {
  position: relative; background: var(--paper); border: 2px solid var(--navy); border-radius: 4px;
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
  outline: 1px solid var(--navy); outline-offset: -10px;
}
.cert-seal { position: absolute; top: -22px; right: 26px; width: 64px; height: 66px; }
.sec-cert { padding-top: 0; }
.sign-cert { max-width: 860px; }
.sign-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.sign-list li, .seen li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.08rem; }
.li-st { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.cert-src { margin: 0; font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.seen { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; max-width: 46em; }
.seen-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: none; gap: 12px 32px; }

/* placeholder notes */
.tbc { margin: 0; padding: 16px 18px; border: 2px dashed #8E97B5; border-radius: var(--r); background: rgba(207, 224, 245, .28); color: var(--ink); font-size: 1rem; }
.tbc-k { display: block; font-weight: 700; color: var(--navy); margin-bottom: 2px; }

/* medals (classes on home) */
.medals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.medals::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--navy); border-radius: 2px; }
.medal { position: relative; padding-top: 0; text-align: center; }
.medal-a { display: block; text-decoration: none; color: var(--ink); }
.medal-a::before { content: ""; display: block; width: 26px; height: 34px; margin: 0 auto -4px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.medal-disc { display: block; width: min(200px, 100%); margin: 0 auto; aspect-ratio: 1; border-radius: 50%; padding: 7px; background: var(--gold); box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.medal-disc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--paper); }
.medal-a:hover .medal-disc { transform: rotate(-4deg) translateY(-3px); }
.medal-rib { --cut: 12px; display: inline-block; margin-top: -18px; position: relative; padding: 6px 26px; background: var(--navy); color: #fff; font: 400 1.3rem/1.2 var(--display); clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 50%, 100% 100%, 0 100%, var(--cut) 50%); }
.medal:nth-child(even) .medal-rib { background: var(--red-deep); }
.medal-line { margin: 12px 0 4px; font-size: 1rem; }
.medal-src { margin: 0; font-size: .85rem; color: var(--muted); }
@media (max-width: 991.98px) { .medals { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } .medals::before { display: none; } }

/* merit badges on a sash */
.sec-sash { overflow-x: clip; }
.sash { position: relative; margin: 28px 0 8px; padding: 34px 0; }
.sash::before { content: ""; position: absolute; inset: 0 -5%; background: var(--navy); transform: rotate(-2.2deg); box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 7px rgba(255, 255, 255, .25); }
.badges { position: relative; display: flex; justify-content: space-between; gap: 12px; }
.badge { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; cursor: pointer; color: #fff; font: 700 1rem/1.2 var(--body); }
.badge-face {
  width: clamp(76px, 9vw, 112px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  background: var(--gold); color: var(--navy-deep);
  box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--gold), 0 8px 16px -6px rgba(30, 34, 53, .45);
  outline: 2px dashed rgba(30, 34, 53, .55); outline-offset: -9px;
  transition: transform .35s var(--ease);
}
.badge-sample .badge-face { background: var(--grid); box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--grid), 0 8px 16px -6px rgba(30, 34, 53, .45); }
.badge-ic { width: 44%; height: 44%; stroke-width: 1.8; }
.badge-name { text-align: center; }
.badge:hover .badge-face { transform: translateY(-3px) rotate(-6deg); }
.badge[aria-selected="true"] .badge-face { transform: scale(1.08); background: var(--red); color: #fff; box-shadow: 0 0 0 4px var(--navy), 0 0 0 7px var(--red), 0 10px 18px -6px rgba(30, 34, 53, .5); outline-color: rgba(255, 255, 255, .7); }
.badge[aria-selected="true"] .badge-name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.badge:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
.badge-panels { max-width: 46em; margin-top: 30px; }
.badge-panel { padding: 4px 0 0 18px; border-left: 1px solid var(--line); }
.badge-panel:focus-visible { outline-offset: 6px; }
.badge-h { font: 400 1.9rem/1.1 var(--display); margin-bottom: .3em; }
.badge-src { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.badge-src-sign { background: #FBEFC7; color: var(--gold-ink); }
.badge-src-sample { background: var(--grid-soft); color: var(--navy); border: 1px dashed var(--navy); }
@media (max-width: 767.98px) {
  .badges { overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; padding: 10px 4px 6px; gap: 6px; }
  .badge { flex: 0 0 104px; scroll-snap-align: start; }
}

/* visit */
.today-line { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 1rem; }
.hours caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--muted); padding-top: 10px; }
.hours th, .hours td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours th { font-weight: 500; }
.hours tr.is-today { background: var(--navy); color: #fff; }
.hours tr.is-today th::after { content: " (today)"; font-weight: 400; }
.map-card { position: relative; min-height: 360px; height: 100%; border-radius: 6px; overflow: hidden; background-color: var(--paper); border: 2px solid var(--navy); box-shadow: var(--shadow);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.map-fallback { position: relative; padding: 28px; display: grid; gap: 16px; align-content: center; min-height: 360px; height: 100%; }
.map-addr { display: flex; gap: 12px; margin: 0; background: var(--paper); padding: 14px 16px; border-radius: 6px; font-size: 1.05rem; box-shadow: 0 1px 0 var(--line); }
.map-addr .ic { color: var(--red); width: 26px; height: 26px; margin-top: 2px; }
.map-fallback > .muted { background: var(--paper); justify-self: start; padding: 0 6px; margin: 0; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* rosette FAQ */
.rq-list { display: grid; gap: 10px; }
.rq { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.rq[open] { border-color: var(--navy); }
.rq summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 700; min-height: 56px; }
.rq summary::-webkit-details-marker { display: none; }
.rq-ros { width: 38px; height: 36px; flex: none; transition: transform .45s var(--ease); }
.rq[open] .rq-ros { transform: rotate(-72deg) scale(1.05); }
.rq[open] .rq-ros .ros-edge { fill: var(--red); }
.rq-q { flex: 1; }
.rq-plus { width: 20px; height: 20px; color: var(--navy); transition: transform .3s var(--ease); flex: none; }
.rq[open] .rq-plus { transform: rotate(45deg); }
.rq-a { padding: 0 18px 4px 64px; }
.rq summary:focus-visible { outline-offset: -3px; }

/* enquiry form on certificate paper */
.form-cert { padding-top: clamp(30px, 4vw, 48px); }
.form-h { font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--display); }
.form-intro { color: var(--muted); max-width: 36em; }
.field label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #8E97B5; border-radius: 8px; background: var(--paper);
  font: 400 1rem/1.4 var(--body); color: var(--ink); caret-color: var(--red);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--grid); border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: var(--red); background: #FFF6F5; }
.hint { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.err { margin: 4px 0 0; font-size: .9rem; color: var(--red-deep); font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.form-summary { margin-bottom: 16px; padding: 12px 16px; border-radius: 8px; background: #FFF1EF; border: 1.5px solid var(--red); color: var(--red-deep); font-weight: 700; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.form-note { margin: 0; font-size: 1rem; color: var(--muted); }
.form-result { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-weight: 500; }
.form-result.ok { background: #EAF6EE; border: 1.5px solid #2E7D4F; color: #1E5A37; }
.form-result.bad { background: #FFF1EF; border: 1.5px solid var(--red); color: var(--red-deep); }

/* ---------- inner pages ---------- */
.band { padding: clamp(36px, 6vw, 72px) 0 clamp(30px, 4vw, 48px); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -40px; top: 50%; width: 320px; height: 320px; margin-top: -160px; border-radius: 50%;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 20px 20px; opacity: .8; z-index: -1; }
.band-h { font: 400 clamp(2.6rem, 6vw, 4.4rem)/1.02 var(--display); margin-bottom: .2em; }
.band-hi { font: 500 1.15rem/1.4 var(--body); color: var(--red-deep); margin-bottom: .6em; }
.band-lead { font-size: 1.12rem; max-width: 38em; margin: 0; }
.crumbs ol { list-style: none; display: flex; gap: 8px; margin: 0 0 14px; padding: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.known { width: 100%; border-collapse: collapse; font-size: 1rem; }
.known caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: .88rem; color: var(--muted); }
.known th, .known td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.known thead th { font-size: .85rem; color: var(--navy); border-bottom: 2px solid var(--navy); }
.known tbody th { font-weight: 700; width: 30%; }
.known .src { color: var(--muted); font-size: .9rem; }
.cert-table { padding: clamp(16px, 3vw, 28px); }
.tilt-photo { margin: 0; background: var(--paper); padding: 12px 12px 10px; box-shadow: var(--shadow); transform: rotate(-2deg); border-radius: 3px; max-width: 460px; }
.tilt-photo.tilt-r { transform: rotate(2deg); margin-left: auto; }
.tilt-photo figcaption { font-size: .85rem; color: var(--muted); padding-top: 8px; }
.prose { max-width: 46em; }
.prose .sec-h { font-size: 1.8rem; margin-top: 1em; }

/* classes page */
.cls-list { display: grid; gap: 28px; margin-top: 24px; }
.cls { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.cls-medal { position: relative; width: 170px; }
.cls-ros { width: 170px; height: 175px; }
.cls-ros .ros-star { display: none; }
.cls-tag { position: absolute; left: 0; right: 0; top: 52px; text-align: center; font: 400 2.1rem/1 var(--display); color: var(--gold); }
.cls-h { font: 400 2.2rem/1 var(--display); margin-bottom: 6px; }
.cls-src { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--gold-ink); background: #FBEFC7; border-radius: 999px; padding: 2px 10px; }
.cls .tbc { margin: 10px 0 12px; }
@media (max-width: 767.98px) { .cls { grid-template-columns: 1fr; gap: 14px; } .cls-medal, .cls-ros { width: 120px; height: 124px; } .cls-tag { top: 36px; font-size: 1.5rem; } }
.week-sheet { max-width: 920px; }
.week th[scope="row"] { display: table-cell; }
.week th[scope="row"] .wk-ic { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; color: var(--navy); }
.wk-st { width: 24px; height: 24px; margin: auto; }
.day-btn { width: 100%; min-height: 40px; border: 0; border-radius: 4px; background: var(--paper); color: var(--navy); font: 700 .9rem var(--body); cursor: pointer; }
.day-btn:hover { background: var(--grid-soft); }
.day-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.week td.is-picked { border-color: var(--navy); background: #F3F7FD; }
.week-out { margin: 14px 0 0; background: var(--paper); padding: 10px 12px; border-radius: 6px; font-weight: 500; }
.week { min-width: 560px; }

/* admissions */
.steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
.step { position: relative; padding: 18px 18px 6px 74px; background: var(--paper); border-radius: var(--r); border: 1.5px solid var(--line); }
.step-n { position: absolute; left: 14px; top: 14px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font: 400 1.5rem/1 var(--display); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold); }
.step-h { font: 400 1.45rem/1.1 var(--display); margin-bottom: .25em; }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }
.docs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.docs li { display: flex; gap: 10px; align-items: center; background: var(--paper); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); }
.docs .ic { color: var(--navy); }
.ages th { width: 40%; }

/* school life */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery li:nth-child(odd) { transform: rotate(-1.5deg); } .gallery li:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.g-item { position: relative; display: block; width: 100%; padding: 8px 8px 22px; background: var(--paper); border: 0; box-shadow: var(--shadow); cursor: zoom-in; border-radius: 3px; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-zoom { position: absolute; right: 12px; bottom: 30px; width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); border-radius: 50%; color: var(--navy); }
@media (max-width: 991.98px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.notices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); padding: 18px; border-radius: var(--r); border: 1.5px solid var(--line); }
.notice-ros { width: 48px; height: 50px; flex: none; }
.notice-h { font: 400 1.35rem/1.1 var(--display); margin-bottom: .3em; }
.notice p { margin: 0; }
@media (max-width: 991.98px) { .notices { grid-template-columns: 1fr; } }
.lightbox { border: 0; padding: 12px; max-width: min(900px, 94vw); background: var(--paper); border-radius: 6px; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(30, 34, 53, .82); }
.lightbox img { max-height: 72vh; width: auto; margin: 0 auto; }
.lb-cap { margin: 10px 0; font-size: .92rem; color: var(--muted); }
.lb-nav { display: flex; gap: 10px; justify-content: flex-end; }
.lb-nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; border: 2px solid var(--navy); border-radius: 999px; background: var(--paper); color: var(--navy); font: 700 1rem var(--body); cursor: pointer; padding: 6px 12px; }

/* contact */
.reach { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.reach a { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.reach a:hover { border-color: var(--navy); color: var(--ink); }
.reach .ic { width: 26px; height: 26px; color: var(--navy); }
.reach b { display: block; font: 400 1.3rem/1.1 var(--display); color: var(--navy); }
.sec-thanks { min-height: 60vh; }
.thanks-cert { max-width: 720px; margin: 20px auto; text-align: center; }
.big-seal { position: static; width: 90px; height: 92px; margin: 0 auto 12px; display: block; }
.thanks-cert .btn-row { justify-content: center; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy-deep); color: #E3E8F4; padding: 56px 0 28px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--gold); }
.foot-logo { width: 214px; margin-bottom: 8px; }
.foot-note { font-size: .85rem; color: #B9C3DD; }
.foot-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.foot-line .ic { margin-top: 4px; color: var(--gold); }
.foot-h { font: 400 1.4rem/1.1 var(--display); color: #fff; margin-bottom: .6em; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.foot-links li { margin-bottom: 8px; }
.foot-small { font-size: .92rem; color: #C9D1E6; }
.foot-base { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .85rem; color: #B9C3DD; }
.site-foot .open-txt .is-open { color: #9FE0B6; }

/* phone action bar */
.act-bar { display: none; }
@media (max-width: 991.98px) {
  body { padding-bottom: 68px; }
  .act-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--navy); box-shadow: 0 -6px 18px -8px rgba(30, 34, 53, .4); padding-bottom: env(safe-area-inset-bottom); }
  .act-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; }
  .act-bar a + a { border-left: 1px solid rgba(255, 255, 255, .18); }
  .act-bar .ic { width: 22px; height: 22px; color: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
