/* Vyas Convent School: "Think ahead" (chessboard and friendly pieces).
   Tokens pinned by the brief; Bootstrap 5.3.3 supplies only the grid. */
:root {
  --ground: #F6F3EC;
  --paper: #FCFAF5;
  --ink: #1B1D22;
  --ink-2: #4A4740;
  --walnut: #6B4226;
  --walnut-d: #4E2F1A;
  --maple: #E8CFA3;
  --maple-l: #F3E6CC;
  --blue: #2C5DA8;
  --blue-d: #224A88;
  --red: #C4383C;
  --red-d: #A82C30;
  --brass: #C9A13B;
  --face: #F6F3EC;
  --display: "Domine", Georgia, "Times New Roman", serif;
  --body: "Pontano Sans", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.1rem + 1vw, 1.6rem);
  --step-3: clamp(1.7rem, 1.25rem + 1.8vw, 2.3rem);
  --step-4: clamp(2.2rem, 1.4rem + 3.2vw, 3.6rem);
  --sec: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --checker: repeating-conic-gradient(var(--maple) 0 25%, var(--walnut) 0 50%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.18; margin: 0 0 .6em; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-d); text-decoration-thickness: 2px; }
::selection { background: var(--maple); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--ground); padding: .7rem 1rem; }
.skip:focus, .skip:hover { top: 1rem; color: var(--ground); }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.25rem;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 4px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); color: #fff; }
.btn-blue:disabled { background: #7C8FB0; cursor: progress; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ground); }
.btn-maple { background: var(--maple); color: var(--ink); }
.btn-maple:hover { background: var(--ground); color: var(--ink); }
.btn-ghost { border-color: var(--maple); color: var(--ground); }
.btn-ghost:hover { background: var(--maple); color: var(--ink); }

/* ---------- header: a row of board squares ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid #D9CDB6;
}
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-n { font: 700 1.15rem/1.1 var(--display); }
.brand-s { font-size: .8rem; color: var(--ink-2); margin-top: .15rem; }
.brand:hover { color: var(--ink); }
.board-nav { display: none; }
.board-nav ul { list-style: none; margin: 0; padding: 0; display: flex; border: 2px solid var(--walnut-d); }
.board-nav .sq a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-width: 88px; height: 68px; padding: 0 .6rem .55rem;
  font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease;
}
.board-nav .sq-l a { background: var(--maple); color: var(--ink); }
.board-nav .sq-d a { background: var(--walnut); color: var(--ground); }
.board-nav .sq-l a:hover { background: #F0DDB8; }
.board-nav .sq-d a:hover { background: #7C4F2E; }
.pc-mark { position: absolute; top: 6px; left: 50%; width: 22px; height: 26px; transform: translateX(-50%) translateY(6px); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.board-nav .sq-l .pc-mark { color: var(--blue); --face: var(--maple); }
.board-nav .sq-d .pc-mark { color: var(--maple); --face: var(--walnut); }
.board-nav a:hover .pc-mark { opacity: .55; transform: translateX(-50%); }
.board-nav a[aria-current="page"] .pc-mark { opacity: 1; transform: translateX(-50%); }
.board-nav a[aria-current="page"] span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.board-nav a:focus-visible { outline-offset: -5px; outline-color: var(--blue); }
.board-nav .sq-d a:focus-visible { outline-color: var(--maple); }
.head-call { display: none; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-call:hover { color: var(--blue); }

/* phone menu: a wooden chess box */
.box-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 48px; padding: .5rem .9rem .4rem;
  background: var(--walnut); color: var(--ground); border: 0; border-radius: 4px;
  font: 600 .95rem/1 var(--body); cursor: pointer;
}
.box-lid { position: absolute; left: 6px; right: 6px; top: 6px; height: 4px; background: var(--checker); background-size: 8px 8px; border-radius: 1px; transform-origin: 50% 0; transition: transform .25s ease; }
.box-label { margin-top: 6px; }
.box-btn[aria-expanded="true"] .box-lid { transform: rotateX(70deg); }
.chessbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(27, 29, 34, .55);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  perspective: 900px;
}
.chessbox[hidden] { display: none; }
.chessbox-lid {
  height: 64px; background: var(--walnut-d);
  transform-origin: 50% 0; animation: lid-open .42s cubic-bezier(.2,.8,.2,1) both;
  display: flex; align-items: center; justify-content: center;
}
.chessbox-lid span { width: 64px; height: 6px; border-radius: 3px; background: var(--brass); }
.chessbox-tray { background: var(--walnut); padding: 1rem 1rem 1.25rem; max-height: calc(100vh - 64px); overflow: auto; animation: tray-in .35s ease-out both; }
@keyframes lid-open { from { transform: rotateX(0); } to { transform: rotateX(-12deg); } }
@keyframes tray-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.bx-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--walnut-d); }
.bx-grid a { display: flex; align-items: flex-end; min-height: 84px; padding: .75rem; font: 700 1.1rem/1.2 var(--display); text-decoration: none; }
.bx-l a { background: var(--maple); color: var(--ink); }
.bx-d a { background: var(--walnut-d); color: var(--ground); }
.bx-grid a[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--blue); }
.bx-d a[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--maple); }
.bx-grid a:focus-visible { outline-offset: -6px; outline-color: var(--blue); }
.bx-d a:focus-visible { outline-color: var(--maple); }
.bx-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.bx-acts .btn-line { border-color: var(--maple); color: var(--ground); }
.bx-acts .btn-line:hover { background: var(--maple); color: var(--ink); }
.bx-close { width: 100%; min-height: 48px; background: transparent; color: var(--ground); border: 2px solid var(--maple); border-radius: 4px; font: 600 1rem var(--body); cursor: pointer; }
.bx-close:focus-visible, .bx-acts a:focus-visible { outline-color: var(--maple); }

@media (min-width: 768px) { .head-call { display: inline-flex; } }
@media (min-width: 1200px) {
  .board-nav { display: block; }
  .box-btn { display: none; }
  .head-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .head-call { width: 48px; height: 48px; justify-content: center; border-radius: 50%; background: var(--blue); color: #fff; }
  .head-call:hover { background: var(--blue-d); color: #fff; }
}
@media (min-width: 1400px) { .head-call span { position: static; width: auto; height: auto; clip: auto; overflow: visible; } .head-call { width: auto; height: 48px; padding: 0 1.1rem; border-radius: 4px; } }

/* ---------- hero: the board ---------- */
.hero { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(2rem, 1rem + 3vw, 3.5rem); overflow: hidden; }
.hero-place { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--walnut); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 3.9rem); margin-bottom: .35em; }
.h1-b { display: block; font-size: .56em; line-height: 1.25; margin-top: .35em; color: var(--walnut); }
.hero-hi { font-family: var(--body); font-size: 1.15rem; color: var(--ink-2); margin-bottom: 1rem; }
.hero-sub { max-width: 34rem; color: var(--ink-2); }
.hero-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.stage { position: relative; container-type: inline-size; aspect-ratio: 760 / 640; max-width: 760px; margin: 0 auto; }
.board-svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; display: block; }
.frame {
  position: absolute; left: 27%; width: 46%; bottom: 40%;
  aspect-ratio: 1; padding: 2.2cqw; background: var(--walnut);
  box-shadow: 0 1.6cqw 2.6cqw rgba(78, 47, 26, .28);
  z-index: 1;
}
.frame::before { content: ""; position: absolute; inset: 1cqw; border: .5cqw solid var(--maple); pointer-events: none; z-index: 1; }
.frame .ph { margin: 0; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hp-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hp { position: absolute; height: var(--h); aspect-ratio: 100 / 120; transform: translateX(-50%); }
.hp::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -3%; height: 12%; border-radius: 50%; background: rgba(40, 24, 12, .35); filter: blur(2px); z-index: -1; }
.pc-hero { width: 100%; height: 100%; display: block; }
.p-pawn, .p-knight, .p-bishop { color: var(--blue); }
.p-queen, .p-rook, .p-pawn2 { color: var(--red); }
.stage-cap { font-size: var(--step--1); color: var(--ink-2); text-align: center; margin: .6rem 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .hp { animation: settle .6s cubic-bezier(.2,.9,.3,1) both; }
  .p-pawn { animation-delay: .1s; } .p-queen { animation-delay: .2s; } .p-rook { animation-delay: .3s; }
  .p-bishop { animation-delay: .4s; } .p-pawn2 { animation-delay: .5s; }
  .p-knight { animation: hop 1.1s cubic-bezier(.3,.7,.3,1) .8s both; }
}
@keyframes settle { from { opacity: 0; transform: translateX(-50%) translateY(-18%); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes hop {
  0% { opacity: 0; transform: translateX(-50%) translate(-30%, 0); }
  15% { opacity: 1; transform: translateX(-50%) translate(-30%, 0); }
  55% { transform: translateX(-50%) translate(-15%, -55%); }
  100% { opacity: 1; transform: translateX(-50%); }
}

/* ---------- find strip ---------- */
.find { background: var(--walnut); color: var(--ground); }
.find-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: 1rem 0; }
.find-h { font-size: 1.1rem; margin: 0; color: var(--maple); }
.find-a { margin: 0; margin-right: auto; }
.find-a span { display: block; font-size: var(--step--1); color: var(--maple-l); }
.find-l { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: var(--ground); font-weight: 600; text-decoration: none; padding: 0 .2rem; }
.find-l:hover { color: var(--maple); text-decoration: underline; }
.find-l:focus-visible { outline-color: var(--maple); }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.h-sec { font-size: var(--step-3); }
.h-gap { margin-top: 2.2rem; }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 40rem; }
.small-note { font-size: var(--step--1); color: var(--ink-2); margin-top: 1rem; }
.ph { margin: 0; }
.ph img { border-radius: 6px; width: 100%; }
.ph figcaption { font-size: .8rem; color: var(--ink-2); margin-top: .45rem; }
.ph-sq img { aspect-ratio: 1; object-fit: cover; }

/* ---------- every piece matters ---------- */
.pieces { background: var(--paper); border-top: 1px solid #E4DACB; border-bottom: 1px solid #E4DACB; }
.mini { position: relative; width: min(100%, 300px); margin-top: 1.5rem; border: 4px solid var(--walnut-d); }
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.mc { aspect-ratio: 1; position: relative; }
.mc-l { background: var(--maple); }
.mc-d { background: var(--walnut); }
.mc.on::after { content: ""; position: absolute; inset: 32%; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--ground); animation: dot .25s ease-out both; }
@keyframes dot { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.mini-piece { position: absolute; left: 40%; top: 40%; width: 20%; height: 20%; display: flex; align-items: center; justify-content: center; }
.pc-mini { width: 80%; height: 92%; color: var(--blue); --face: var(--maple); }
.pt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 2px solid var(--walnut-d); margin-bottom: 1.5rem; }
.pt {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .7rem .3rem .6rem; min-height: 96px;
  border: 0; cursor: pointer; font: 600 .95rem/1.1 var(--body);
}
.pt:nth-child(odd) { background: var(--maple); color: var(--ink); }
.pt:nth-child(even) { background: var(--walnut); color: var(--ground); }
.pc-tab { width: 38px; height: 46px; }
.pt:nth-child(odd) .pc-tab { color: var(--walnut-d); --face: var(--maple); }
.pt:nth-child(even) .pc-tab { color: var(--maple); --face: var(--walnut); }
.pt[aria-selected="true"] { box-shadow: inset 0 0 0 4px var(--blue); }
.pt[aria-selected="true"] .pc-tab { color: var(--blue); }
.pt:nth-child(even)[aria-selected="true"] .pc-tab { color: #fff; }
.pt:nth-child(even)[aria-selected="true"] { box-shadow: inset 0 0 0 4px var(--maple); }
.pt:focus-visible { outline-offset: -6px; }
.pp-name { font-weight: 600; color: var(--walnut); margin-bottom: .25rem; }
.pp-name span { font-weight: 400; color: var(--ink-2); }
.pp-strength { font: 700 var(--step-3)/1.15 var(--display); margin-bottom: .6rem; }
.pp p { max-width: 38rem; }
.pp-ask { background: var(--ground); border-left: 1px solid var(--walnut); padding: .75rem 1rem; }
@media (min-width: 576px) { .pt-row { grid-template-columns: repeat(6, 1fr); } }

/* ---------- known / to be confirmed ---------- */
.known { margin: 1.4rem 0 0; display: grid; gap: 0; border-top: 1px solid #D9CDB6; }
.known > div { display: grid; grid-template-columns: 1.6rem 8.5rem 1fr; align-items: baseline; padding: .65rem 0; border-bottom: 1px solid #D9CDB6; }
.known > div::before { content: ""; width: .9rem; height: .9rem; align-self: center; }
.k-ok::before { background: var(--walnut); }
.k-tbc::before { border: 2px dashed var(--red); }
.known dt { font-weight: 600; }
.known dd { margin: 0; }
.k-tbc dd { color: var(--red-d); }
@media (max-width: 575.98px) { .known > div { grid-template-columns: 1.6rem 1fr; } .known dd { grid-column: 2; } }

/* ---------- placeholders ---------- */
.tbc { border: 2px dashed var(--red); background: var(--paper); padding: 1.1rem 1.2rem; margin-bottom: 1rem; position: relative; }
.tbc::after { content: ""; position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; background: var(--checker); background-size: 9px 9px; }
.tbc-tag { font-size: .8rem; font-weight: 600; color: var(--red-d); margin-bottom: .3rem; }
.tbc-title { font: 700 var(--step-1)/1.3 var(--display); margin-bottom: .3rem; }
.tbc-body { color: var(--ink-2); margin: 0; }

/* ---------- scoresheet (admission moves) ---------- */
.scoresheet {
  background: var(--paper);
  border: 1px solid #D9CDB6; border-top: 6px solid var(--walnut); padding: 1rem 1.25rem;
}
.moves { list-style: none; margin: 0; padding: 0; }
.moves li { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding: .7rem 0; }
.moves li + li { border-top: 1px solid #E0D4BF; }
.mv-n { font: 700 1.6rem/1.2 var(--display); color: var(--blue); }
.mv-t { font-size: var(--step-1); margin: .2rem 0 .3rem; }
.moves p { margin: 0; color: var(--ink-2); }
.next .btn { margin-top: .5rem; }

/* ---------- notices ---------- */
.notice { background: var(--paper); border: 1px solid #D9CDB6; padding: 1.3rem 1.4rem; height: 100%; }
.notice h3 { font-size: var(--step-1); }
.notice p:last-child { margin: 0; }
.notice-s { margin-top: 1rem; height: auto; }
.stamp { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--red-d); border: 1.5px solid var(--red); padding: .1rem .5rem; border-radius: 3px; margin-bottom: .7rem; }

/* ---------- board-square FAQ ---------- */
.faq { background: var(--paper); border-top: 1px solid #E4DACB; }
.fq-board { max-width: 980px; display: grid; grid-template-columns: repeat(2, 1fr); border: 4px solid var(--walnut-d); }
.fq { min-height: 0; }
.fq { background: var(--maple); color: var(--ink); --ring: var(--blue); --lnk: var(--blue-d); }
.fq:nth-child(4n+2), .fq:nth-child(4n+3) { background: var(--walnut); color: var(--ground); --ring: var(--maple); --lnk: var(--maple); }
@media (min-width: 768px) {
  .fq:nth-child(n) { background: var(--maple); color: var(--ink); --ring: var(--blue); --lnk: var(--blue-d); }
  .fq:nth-child(8n+2), .fq:nth-child(8n+4), .fq:nth-child(8n+5), .fq:nth-child(8n+7) { background: var(--walnut); color: var(--ground); --ring: var(--maple); --lnk: var(--maple); }
}
.fq-q { margin: 0; font-size: 1rem; }
.fq-q button {
  width: 100%; aspect-ratio: 1; min-height: 140px; display: flex; align-items: flex-end; text-align: left;
  padding: 1rem; background: transparent; color: inherit; border: 0; cursor: pointer;
  font: 700 clamp(.98rem, .9rem + .4vw, 1.15rem)/1.3 var(--display); position: relative;
}
.fq-q button::before { content: "+"; position: absolute; top: .55rem; right: .8rem; font: 400 1.6rem/1 var(--body); transition: transform .2s ease; }
.fq-q button[aria-expanded="true"]::before { transform: rotate(45deg); }
.fq-q button:hover { text-decoration: underline; text-underline-offset: .2em; }
.fq-q button:focus-visible { outline-color: var(--ring); outline-offset: -6px; }
.fq.open { grid-column: 1 / -1; }
.fq.open .fq-q button { aspect-ratio: auto; min-height: 0; padding-bottom: .4rem; }
.fq-a { padding: 0 1rem 1.2rem; max-width: 46rem; }
.fq-a p { margin: 0; }
.fq-a a { color: var(--lnk); }
.fq-a a:focus-visible { outline-color: var(--ring); }
@media (min-width: 768px) { .fq-board { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: no-preference) { .fq.open .fq-a { animation: tray-in .25s ease-out both; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--walnut-d); color: var(--ground); padding: var(--sec) 0; position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--checker); background-size: 28px 28px; }
.cta-band h2 { font-size: var(--step-4); color: var(--maple); }
.cta-band p { max-width: 34rem; }
.stock-note { font-size: var(--step--1); color: var(--maple-l); margin-top: 2rem; }

/* ---------- inner pages ---------- */
.page-top { padding: clamp(1.5rem, 1rem + 2vw, 3rem) 0 clamp(2rem, 1rem + 2vw, 3rem); border-bottom: 1px solid #E4DACB; }
.page-top h1 { margin-bottom: .4em; }
.page-top.center { text-align: center; border: 0; padding: var(--sec) 0; }
.page-top.center .lede { margin-left: auto; margin-right: auto; }
.center-acts { justify-content: center; }
.narrow { max-width: 760px; }
.crumbs ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: var(--step--1); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink-2); }
.pc-big { width: 92px; height: 110px; color: var(--blue); margin: 0 auto 1rem; display: block; }
.prose { max-width: 40rem; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6rem; }

.val-row { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 4px solid var(--walnut-d); }
.val-row li { padding: 1.3rem 1rem; }
.val-row li:nth-child(1), .val-row li:nth-child(4) { background: var(--maple); }
.val-row li:nth-child(2), .val-row li:nth-child(3) { background: var(--walnut); color: var(--ground); }
.val-row h3 { font-size: var(--step-1); margin-bottom: .2rem; }
.val-row p { margin: 0; }
.pc-val { width: 46px; height: 56px; margin-bottom: .6rem; color: var(--blue); --face: var(--maple); }
.val-row li:nth-child(2) .pc-val, .val-row li:nth-child(3) .pc-val { color: var(--maple); --face: var(--walnut); }
@media (min-width: 992px) {
  .val-row { grid-template-columns: repeat(4, 1fr); }
  .val-row li:nth-child(3) { background: var(--maple); color: var(--ink); }
  .val-row li:nth-child(4) { background: var(--walnut); color: var(--ground); }
  .val-row li:nth-child(3) .pc-val { color: var(--blue); --face: var(--maple); }
  .val-row li:nth-child(4) .pc-val { color: var(--maple); --face: var(--walnut); }
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 4px solid var(--walnut-d); margin-top: 1.5rem; }
.fact { padding: 1rem; min-height: 120px; }
.fact p { margin: 0; }
.fact-k { font-size: var(--step--1); font-weight: 600; margin-bottom: .3rem !important; }
.fact.ok:nth-child(odd) { background: var(--maple); }
.fact.ok:nth-child(even) { background: var(--walnut); color: var(--ground); }
.fact.ok:nth-child(even) a { color: var(--maple); }
.fact.ok:nth-child(odd) a { color: var(--blue-d); }
.fact.tbc-f { background: var(--paper); outline: 2px dashed var(--red); outline-offset: -8px; color: var(--red-d); }
.fact.tbc-f .fact-k { color: var(--ink); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.ranks { list-style: none; margin: 0; padding: 0; }
.rank { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid #D9CDB6; }
.rank-sq { width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.rank-sq.sq-l { background: var(--maple); }
.rank-sq.sq-d { background: var(--walnut); }
.pc-rank { width: 48px; height: 58px; color: var(--blue); --face: var(--maple); }
.sq-d .pc-rank { color: var(--maple); --face: var(--walnut); }
.rank h3 { font-size: var(--step-2); margin-bottom: .15rem; }
.rank-sub { font-size: var(--step--1); color: var(--walnut); font-weight: 600; margin-bottom: .4rem; }
.rank p:last-child { margin: 0; }

.ages { width: 100%; border-collapse: collapse; margin-bottom: .5rem; }
.ages caption { caption-side: bottom; text-align: left; font-size: var(--step--1); color: var(--ink-2); padding-top: .5rem; }
.ages th, .ages td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid #D9CDB6; }
.ages thead th { background: var(--walnut); color: var(--ground); }
.ages tbody tr:nth-child(odd) { background: var(--maple-l); }
.docs { padding-left: 0; list-style: none; margin: 0; }
.docs li { position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid #E4DACB; }
.docs li::before { content: ""; position: absolute; left: 0; top: .85rem; width: .8rem; height: .8rem; background: var(--checker); background-size: .4rem .4rem; }

.facil { list-style: none; padding: 0; margin: 1rem 0 0; }
.facil li { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid #D9CDB6; font-weight: 600; }
.fl-sq { width: .9rem; height: .9rem; border: 2px dashed var(--red); flex: none; }
.fl-tbc { margin-left: auto; font-weight: 400; font-size: var(--step--1); color: var(--red-d); }

.g-board { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 4px solid var(--walnut-d); }
.g-cell { aspect-ratio: 1; position: relative; overflow: hidden; }
.g-cell { background: var(--maple); }
.g-cell:nth-child(4n+2), .g-cell:nth-child(4n+3) { background: var(--walnut); }
@media (min-width: 768px) { .g-cell:nth-child(n) { background: var(--maple); } .g-cell:nth-child(even) { background: var(--walnut); } }
.g-btn { display: block; width: 100%; height: 100%; padding: 8%; border: 0; background: transparent; cursor: zoom-in; }
.g-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; transition: transform .25s ease; }
.g-btn:hover img { transform: scale(1.02); }
.g-btn:focus-visible { outline-offset: -6px; outline-color: var(--blue); }
.g-empty > div { position: absolute; inset: 8%; border: 2px dashed var(--red); background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: .8rem; }
.g-empty p { margin: 0; font-weight: 600; }
.g-empty .tbc-tag { font-weight: 600; }
@media (min-width: 768px) { .g-board { grid-template-columns: repeat(3, 1fr); } }
.lightbox { border: 0; padding: 0; max-width: min(92vw, 900px); background: var(--ink); color: var(--ground); border-radius: 6px; }
.lightbox::backdrop { background: rgba(27, 29, 34, .8); }
.lb-img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.lb-cap { padding: .8rem 1rem 0; margin: 0; font-size: var(--step--1); }
.lb-ctl { display: flex; gap: .5rem; padding: .8rem 1rem 1rem; }
.lb-ctl button { min-height: 44px; padding: 0 1rem; background: transparent; color: var(--ground); border: 2px solid var(--maple); border-radius: 4px; font: 600 .95rem var(--body); cursor: pointer; }
.lb-ctl button:hover { background: var(--maple); color: var(--ink); }
.lb-ctl button:focus-visible { outline-color: var(--maple); }
.lb-close { margin-left: auto; }

/* ---------- contact ---------- */
.addr-card { background: var(--paper); border: 1px solid #D9CDB6; border-top: 6px solid var(--walnut); padding: 1.5rem; }
.addr-card h2 { font-size: var(--step-2); }
.addr { font-size: var(--step-1); margin-bottom: .3rem; }
.addr-sm { color: var(--ink-2); font-size: var(--step--1); }
.addr-acts { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-direction: column; gap: .6rem; }
.addr-acts .btn { width: 100%; }
.addr-dl { margin: 0; }
.addr-dl div { padding: .6rem 0; border-top: 1px solid #E4DACB; }
.addr-dl dt { font-weight: 600; }
.addr-dl dd { margin: 0; color: var(--red-d); }
.map-card { position: relative; min-height: 380px; height: 100%; background: var(--checker); background-size: 64px 64px; border: 4px solid var(--walnut-d); display: flex; flex-direction: column; }
.map-card iframe { width: 100%; flex: 1; min-height: 380px; border: 0; }
.map-fallback { margin: auto; background: var(--paper); padding: 1.4rem; max-width: 26rem; width: calc(100% - 2rem); margin-top: 1.5rem; margin-bottom: 1.5rem; }
.map-t { font: 700 var(--step-1)/1.3 var(--display); }
.map-open { display: inline-block; margin-top: .9rem; }
.link-strong { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: var(--step-1); }

/* ---------- form ---------- */
.enq { background: var(--paper); border-top: 1px solid #E4DACB; }
.enquiry { background: #fff; border: 1px solid #D9CDB6; border-top: 6px solid var(--blue); padding: clamp(1.1rem, .8rem + 1.5vw, 2rem); }
.form-h { font-size: var(--step-2); }
.form-intro { color: var(--ink-2); font-size: var(--step--1); }
.fld label { display: block; font-weight: 600; margin-bottom: .3rem; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 48px; padding: .6rem .75rem; font: 400 1rem/1.4 var(--body); color: var(--ink);
  background: var(--paper); border: 1.5px solid #8C8270; border-radius: 4px;
}
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.fld [aria-invalid="true"] { border-color: var(--red); background: #FFF6F5; }
.err { color: var(--red-d); font-size: var(--step--1); margin: .3rem 0 0; font-weight: 600; }
.hint { color: var(--ink-2); font-size: .82rem; margin: .3rem 0 0; }
.form-summary { background: #FBE9E8; color: var(--red-d); font-weight: 600; padding: .7rem .9rem; border-radius: 4px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.form-result { margin: 0; font-weight: 600; }
.form-result.ok { color: #23622F; }
.form-result.bad { color: var(--red-d); }
.form-privacy { font-size: var(--step--1); color: var(--ink-2); margin: 1rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--walnut-d); color: var(--ground); padding: 0 0 6rem; margin-top: 0; }
.foot-edge { height: 14px; background: var(--checker); background-size: 28px 28px; margin-bottom: 3rem; }
.foot-logo { width: 280px; height: auto; margin-bottom: 1rem; }
.site-foot a { color: var(--maple); }
.site-foot a:hover { color: #fff; }
.site-foot a:focus-visible { outline-color: var(--maple); }
.foot-h { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .6rem; color: var(--maple); }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { padding: .2rem 0; }
.foot-list a { display: inline-block; padding: .25rem 0; }
.foot-small { font-size: var(--step--1); color: #EADFCB; }
.foot-addr { color: #EADFCB; }
.foot-base { border-top: 1px solid rgba(232, 207, 163, .3); margin-top: 2rem; padding-top: 1rem; font-size: var(--step--1); color: #EADFCB; }

/* ---------- phone dock ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--walnut-d); border-top: 3px solid var(--maple); padding-bottom: env(safe-area-inset-bottom); }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 60px; color: var(--ground); text-decoration: none; font-weight: 600; font-size: .85rem; }
.dock a:nth-child(3) { background: var(--blue); }
.dock a:focus-visible { outline-color: var(--maple); outline-offset: -4px; }
.dock .ic { width: 1.3rem; height: 1.3rem; }
.pc-dock { width: 20px; height: 24px; color: var(--ground); --face: var(--blue); display: block; }
@media (min-width: 992px) { .dock { display: none; } .site-foot { padding-bottom: 2rem; } }

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