@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("fonts/figtree-latin-var.woff2") format("woff2"); }

:root {
  /* OpenSeat Schools brand (Nov 2026 board): chalkboard green, school-bus yellow, warm cream, Figtree.
     Layout: left-aligned single column on a 72rem frame. Schools are rows, not cards.
     The grade-by-grade seat strip is the signature element. A yellow square only ever means an open seat.
     The only other yellow is the hand-drawn underline under the tagline and the focus ring. */
  --ink: #17322B;
  --ink-deep: #0E221C;
  --ink-soft: #4B5F57;
  --paper: #FFFFFF;
  --cream: #FAF8F2;
  --cream-line: #E9E3D4;
  --wash: var(--cream);
  --line: #D9DDD4;
  --line-strong: #708579;
  --seat: #F5B700;
  --seat-edge: #A87D00;
  --seat-pale: #FFF1C2;
  --off: #E4DFD2;
  --link: #0B5D49;
  --on-ink: #D5E0DA;
  /* v1.5: pale green for confirmed facts, grey for the Sponsored label (never yellow) */
  --ok-bg: #EEF5EC;
  --ok-line: #CFE2CB;
  --pill: #5F6561;
  --font-display: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13.2C52 7.4 128 3.9 196.6 6.6C199.3 6.7 199.6 10.3 197 10.5C132 9.3 58 11.6 4.6 16.9C1.6 17.2 0.6 13.5 3 13.2Z' fill='%23F5B700'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
::selection { background: var(--seat-pale); color: var(--ink); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.15rem, 5.4vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--seat); }
strong { font-weight: 700; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 68ch; }
.small { font-size: var(--step--1); color: var(--ink-soft); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 10; background: var(--ink); color: #fff; padding: 0.5em 1em; }
.skip:focus { left: 8px; top: 8px; }
.block { margin-top: 48px; }
.block-tight { margin-top: 14px; }

/* header: logo | divider | four links. On phones: logo | search | menu */
.site-header { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 0; border-radius: 6px; }
.brand .logo { display: block; height: 46px; width: auto; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 34px; padding-left: 28px; border-left: 2px solid var(--line-strong); }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 6px 0; border-bottom: 2.5px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--ink); }
nav.main a.nav-schools { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.head-tools { display: none; margin-left: auto; align-items: center; gap: 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--ink); cursor: pointer; list-style: none; }
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--cream); }
.menu[open] > summary { background: var(--cream); }
.menu-panel { position: absolute; z-index: 40; top: 100%; left: 0; right: 0; display: grid; padding: 8px 20px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14, 34, 28, 0.12); }
.menu-panel a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.menu-panel a:last-child { border-bottom: 0; }
@media (max-width: 820px) {
  nav.main { display: none; }
  .head-tools { display: flex; }
  .head-row { padding-top: 12px; padding-bottom: 10px; }
  .brand .logo { height: 40px; }
}

/* headings on inner pages */
.crumbs { font-size: var(--step--1); color: var(--ink-soft); padding: 18px 0 2px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 10px; color: var(--ink-soft); }
.crumbs [aria-current] { color: var(--ink); }
.crumbs a { color: var(--ink-soft); }
.page-head { padding: 10px 0 22px; }
.page-head h1 { max-width: 22ch; }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 52ch; }
.hero { padding: 52px 0 30px; }
.hero h1 { max-width: 15ch; font-size: clamp(2.5rem, 7vw, 4.2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; }
.eyebrow { margin: 0 0 18px; font-weight: 800; font-size: 0.8rem; line-height: 1.7; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.swoosh { white-space: nowrap; padding-bottom: 0.42em; background: var(--swoosh) no-repeat left bottom / 100% 0.55em; }
/* panels and grids */
.panel { background: var(--cream); border: 1px solid var(--cream-line); border-radius: 18px; padding: 24px; }
.panel > :last-child { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
.narrow { max-width: 40rem; }
.band { border-top: 3px solid var(--ink); padding-top: 24px; }
.notice { background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7em 1.2em; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn.quiet { background: #fff; color: var(--ink); }
.btn.quiet:hover { background: var(--cream); }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.chip { display: inline-block; padding: 5px 13px; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 700; background: #fff; }
.chip:hover { border-color: var(--ink); }
.chip.quiet { border-style: dashed; }

/* forms */
.finder { background: var(--cream); border: 1px solid var(--cream-line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; }
.fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: var(--step--1); margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="search"], select {
  width: 100%; min-height: 48px; padding: 0.55em 0.75em;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
}
input::placeholder { color: #66796F; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; border: 0; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; font-size: var(--step--1); }
input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.count { margin: 0; font-weight: 700; font-size: var(--step--1); min-height: 1.4em; }

/* school rows (v1.5: cream bars with the squares, Seats confirmed, Tuition and See school) */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto 9rem 10.5rem auto; align-items: center; gap: 8px 0; padding: 14px 18px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.row:hover { border-color: var(--line-strong); }
.row:hover .row-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.row > .strip { margin: 0 18px; }
.row-col { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-left: 1px solid var(--line); line-height: 1.3; }
.row-k { font-size: 0.8rem; color: var(--ink-soft); }
.row-v { font-weight: 700; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.row-go { padding-left: 16px; border-left: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 980px) {
  .row { grid-template-columns: minmax(0, 1fr) 1fr; gap: 10px 0; }
  .row-main { grid-column: 1 / -1; }
  .row > .strip { grid-column: 1 / -1; margin: 0; }
  .row-col { padding: 0 12px 0 0; border-left: 0; }
  .row-go { display: none; }
}
.row-name { display: block; font-family: var(--font-display); font-weight: 750; font-size: 1.22rem; line-height: 1.15; letter-spacing: -0.01em; }
.row-meta { display: block; font-size: var(--step--1); color: var(--ink-soft); margin-top: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.tag { font-size: 0.8rem; line-height: 1.55; padding: 0 10px; border: 1px solid var(--cream-line); border-radius: 999px; color: var(--ink-soft); background: var(--cream); }
.results { margin-top: 18px; }
.list-h { margin: 34px 0 4px; }

/* seat strip: one rounded square per grade, PreK to 12.
   Yellow = open seats, striped = a few, dark outline = waitlist or full (the board's "no seat"),
   dashed = offered but not confirmed yet, filled grey = grade not offered. */
.strip { --cell: 14px; display: inline-grid; grid-template-columns: repeat(14, var(--cell)); gap: 3px; }
.s { display: inline-block; width: var(--cell, 14px); height: var(--cell, 14px); border-radius: 26%; background: #fff; border: 1.5px dashed var(--line-strong); }
.s.off { background: var(--off); border: 1.5px solid var(--off); }
.s.open { background: var(--seat); border: 1.5px solid var(--seat-edge); }
.s.few { background: repeating-linear-gradient(135deg, var(--seat) 0 3px, var(--seat-pale) 3px 6px); border: 1.5px solid var(--seat-edge); }
.s.wait { background: #fff; border: 1.5px solid var(--ink); }
/* the big strip on school pages shrinks to fit its box, up to 32px squares */
.seatmap { margin: 6px 0 14px; }
.seatmap .strip, .strip-labels { display: grid; grid-template-columns: repeat(14, minmax(0, 32px)); gap: 5px; }
.seatmap .s { width: 100%; height: auto; aspect-ratio: 1 / 1; border-width: 2px; }
.seatmap .s.few { background: repeating-linear-gradient(135deg, var(--seat) 0 4px, var(--seat-pale) 4px 8px); }
.strip-labels { margin-top: 6px; font-size: 0.74rem; font-weight: 700; line-height: 1; text-align: center; color: var(--ink-soft); }
@media (max-width: 480px) {
  .panel { padding: 20px 18px; }
  .seatmap .strip, .strip-labels { gap: 4px; }
  .strip-labels { font-size: 0.7rem; }
}
.legend-box { display: flex; align-items: baseline; gap: 6px 14px; margin: 14px 0 0; padding: 10px 14px; background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; }
.legend-h { font-weight: 800; font-size: 0.86rem; }
.legend { flex: 1; min-width: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; font-size: 0.86rem; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend .s { --cell: 15px; }
.status { margin: 0 0 4px; max-width: 60ch; }
/* v1.2: each offered grade on a school page links to a seat alert, or to "Ask about a seat" when it's open */
.seatmap a.s { cursor: pointer; }
.seatmap a.s:hover { box-shadow: 0 0 0 2px var(--ink-soft); }
.seat-now { margin: 6px 0 0; max-width: 60ch; }
.from-school { margin: 10px 0 0; padding: 10px 14px; max-width: 60ch; background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; font-size: var(--step--1); }
.from-school { background: #fff; }

/* facts and receipt */
dl.facts { display: grid; grid-template-columns: minmax(8.5rem, max-content) 1fr; gap: 10px 20px; margin: 0; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }
@media (max-width: 520px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; } }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-fields .field:nth-child(n+3) { grid-column: 1 / -1; }
@media (max-width: 420px) { .calc-fields { grid-template-columns: 1fr; } }
.receipt { margin: 14px 0 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--cream-line); border-radius: 14px; font-variant-numeric: tabular-nums; }
.receipt .line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dotted var(--line-strong); }
.receipt .line.total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; letter-spacing: -0.01em; }
.receipt p { margin: 6px 0 4px; }
.calc-empty { color: var(--ink-soft); }

/* lists and tables */
.ticks { padding-left: 1.2em; }
.ticks li { margin-bottom: 0.45em; }
/* v1.6: ways to pay and the 2027–28 funding note (school page, calculator), election section (guide) */
.ways { margin: 10px 0 4px; font-size: 0.95rem; }
.side-facts dd { white-space: nowrap; }
.fund-note { margin-top: 10px; padding-top: 10px; border-top: 1px dotted var(--line-strong); }
.panel.news { border-left: 6px solid var(--seat); margin-bottom: 20px; }
.steps { padding-left: 1.4em; max-width: 68ch; }
.steps li { margin-bottom: 0.9em; padding-left: 0.2em; }
.steps.compact li { margin-bottom: 0.4em; }
.table-wrap { overflow-x: auto; }
table.dates { border-collapse: collapse; width: 100%; max-width: 52rem; font-size: var(--step--1); }
table.dates th, table.dates td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
table.dates td:first-child { font-weight: 700; width: 34%; }
.sources ul { padding-left: 1.2em; }

/* city lists */
.counties { columns: 3 17rem; column-gap: 32px; }
.county { break-inside: avoid; margin-bottom: 22px; }
.county h3 { margin-bottom: 6px; }
.city-list { list-style: none; margin: 0; padding: 0; }
.city-list li { padding: 3px 0; }

.source { margin-top: 28px; font-size: var(--step--1); color: var(--ink-soft); max-width: 72ch; }

/* footer: the one dark-green block, like the board's app tile and callout */
footer.site { margin-top: 80px; padding: 44px 0 52px; background: var(--ink); color: var(--on-ink); font-size: var(--step--1); }
footer.site a { color: #FFFFFF; }
footer.site strong { color: #FFFFFF; }
footer.site :focus-visible { outline-color: #FFFFFF; }
.foot { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.foot p { max-width: 62ch; }
.foot-logo { display: block; height: 44px; width: auto; margin: 0 0 22px; }
.foot-links { display: grid; gap: 7px; align-content: start; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

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

/* ================================================================ v1.5 school pages
   Desktop: name, chips and the page's sections on the left; a sticky side panel on the right.
   Phone: the side panel becomes a "Next fall seats" bar under the chips, and an action bar sits at the bottom. */
.claim-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 8px 0 22px; padding: 16px 20px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 16px; }
.claim-bar p { margin: 0; }
.claim-h { font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.claim-bar .small { margin-top: 2px; }
.school { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; grid-template-areas: "label side" "head side" "gallery side" "body side"; column-gap: 36px; align-items: start; margin-top: 10px; }
.sc-label { grid-area: label; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 12px; font-size: var(--step--1); }
.sc-head { grid-area: head; }
.sc-head h1 { margin-bottom: 6px; max-width: 24ch; }
.sc-sub { font-size: 1.12rem; margin: 0; }
.sc-gallery { grid-area: gallery; }
.sc-side { grid-area: side; grid-row: 1 / span 4; position: sticky; top: 16px; padding: 20px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 18px; }
.sc-body { grid-area: body; }
.sc-body > section { margin-top: 20px; }
.sc-sec h2 { font-size: 1.55rem; margin-bottom: 4px; }
.sc-sec > .small:first-of-type { margin-bottom: 12px; }
.pill { display: inline-block; margin: 0; padding: 3px 12px; background: var(--pill); color: #fff; border-radius: 8px; font-weight: 700; font-size: 0.86rem; line-height: 1.5; }

.chips-info { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; }
.chips-info li { max-width: 15rem; padding: 6px 12px; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 10px; font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.chips-info li.todo { background: #fff; border: 1.5px dashed var(--line-strong); color: var(--ink-soft); font-weight: 600; }

.side-h { font-size: 1.1rem; margin: 0 0 10px; }
.side-when { margin: 8px 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.side-facts { display: grid; gap: 6px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--cream-line); font-size: 0.92rem; }
.side-facts div { display: flex; justify-content: space-between; gap: 12px; }
.side-facts dt { color: var(--ink-soft); }
.side-facts dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.side-actions { display: grid; gap: 10px; margin-top: 16px; }
.side-actions .btn { width: 100%; }
.side-link { text-align: center; font-weight: 700; padding: 4px 0; }
.side-contact { list-style: none; display: grid; gap: 9px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--cream-line); font-size: 0.92rem; }
.side-contact li, .contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.side-contact .i, .contact-list .i { flex: none; margin-top: 2px; color: var(--ink); }
.side-contact a { overflow-wrap: anywhere; }

/* Open seats: a labeled row of grade squares for next fall and for this year */
.grows { display: grid; gap: 16px; margin: 16px 0 12px; }
.grow { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); align-items: start; gap: 6px 10px; }
.grow-h { margin: 8px 0 0; font-weight: 800; line-height: 1.2; }
.grow-h span { display: block; font-weight: 600; font-size: 0.8rem; color: var(--ink-soft); }
.ggrid { display: grid; grid-template-columns: repeat(14, minmax(0, 40px)); gap: 6px; }
.gc { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--ink-soft); text-decoration: none; font-size: 0.74rem; font-weight: 700; line-height: 1; border-radius: 8px; }
.gc .s { width: 100%; height: auto; aspect-ratio: 1 / 1; border-width: 2px; }
.gc .s.few { background: repeating-linear-gradient(135deg, var(--seat) 0 4px, var(--seat-pale) 4px 8px); }
a.gc:hover .s { box-shadow: 0 0 0 2px var(--ink-soft); }
a.gc:hover .gl { color: var(--ink); }
.status { margin-top: 6px; }

/* Tuition and TEFA: tuition − TEFA = family pays */
.eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 14px 0; }
.eq-box { display: flex; flex-direction: column; justify-content: center; min-height: 4.6rem; padding: 10px 12px; text-align: center; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px; }
.eq-box label, .eq-l { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); }
.eq-box strong { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.eq-box input[type="text"] { min-height: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; text-align: center; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.eq-in { border-style: dashed; }
.eq-in:focus-within { border-style: solid; border-color: var(--ink); box-shadow: 0 0 0 3px var(--seat); }
.eq-in input:focus-visible { outline: 0; box-shadow: none; }
.eq-out { border: 2px solid var(--ink); }
.eq-op { font-size: 1.8rem; font-weight: 800; line-height: 1; }
@media (max-width: 520px) {
  .eq { grid-template-columns: 1fr; gap: 4px; }
  .eq-op { text-align: center; }
  .eq-box { min-height: 0; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .eq-box input[type="text"] { text-align: right; width: 9rem; }
}

table.glance { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
table.glance th, table.glance td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cream-line); }
table.glance tr:last-child th, table.glance tr:last-child td { border-bottom: 0; }
table.glance th { width: 36%; font-weight: 700; }
@media (max-width: 520px) { table.glance th, table.glance td { display: block; width: auto; border: 0; } table.glance th { padding-bottom: 0; } table.glance td { padding-top: 2px; border-bottom: 1px solid var(--cream-line); } }

.loc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; margin-top: 12px; }
.loc.no-map { grid-template-columns: 1fr; }
.map { position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 16 / 10; overflow: hidden; background: #EFEDE5; border: 1px solid var(--cream-line); border-radius: 14px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-on .map-btn, .map.is-on .map-note { display: none; }
.map-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0.5em 1.1em; background: #fff; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.map-note { margin: 0; font-size: 0.8rem; color: var(--ink-soft); }
.contact-list { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.contact-list a { overflow-wrap: anywhere; }
@media (max-width: 640px) { .loc { grid-template-columns: 1fr; } }

/* sponsored page: gallery, From the school, open houses, how to apply */
.gallery { margin: 18px 0 0; }
.g-frame { position: relative; }
.g-track { list-style: none; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 2.15 / 1; margin: 0; padding: 0; }
.g-item { min-height: 0; overflow: hidden; background: var(--cream); border-radius: 12px; }
.g-item:first-child { grid-row: span 2; }
.g-item:nth-child(n+6) { display: none; }
.g-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.g-n2 { grid-template-columns: 2fr 1fr; }
.g-n2 .g-item:nth-child(2) { grid-row: span 2; }
.g-n3 { grid-template-columns: 2fr 1fr; }
.g-n4 .g-item:nth-child(4) { grid-column: span 2; }
.g-btn { display: none; }
.g-dots { display: none; }
.g-under { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 10px; }
.g-logo { display: flex; align-items: center; padding: 10px 16px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 12px; }
.g-logo img { display: block; max-height: 56px; max-width: 240px; width: auto; height: auto; }
.g-all { margin-left: auto; }
.g-all summary { cursor: pointer; color: var(--link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.g-all[open] { flex-basis: 100%; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 8px; margin-top: 10px; }
.g-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 10px; }

.from-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.from-grid.no-video { grid-template-columns: 1fr; }
.from-grid .prose p:last-child, .from-grid .prose ul:last-child { margin-bottom: 0; }
.from-grid h3 { font-size: 1.05rem; margin: 14px 0 6px; }
.video { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(14, 34, 28, 0) 45%, rgba(14, 34, 28, 0.8)); }
.video .play { position: absolute; z-index: 1; left: 50%; top: 44%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(14, 34, 28, 0.88); }
.video .play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video .vcap { position: absolute; z-index: 1; left: 14px; bottom: 10px; font-weight: 700; }
.video:hover .play { background: var(--ink-deep); }
@media (max-width: 640px) { .from-grid { grid-template-columns: 1fr; } }

.events { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 12px; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-content: start; padding: 12px 14px; background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; }
.events .i { grid-row: span 3; margin-top: 2px; }
.ev-date { font-weight: 800; }
.ev-t { font-size: 0.92rem; }
.ev-rsvp { font-weight: 700; font-size: 0.92rem; }

.apply-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 14px; margin: 18px 0; padding: 0; counter-reset: step; }
.apply-steps li { position: relative; padding-top: 46px; text-align: center; font-size: 0.9rem; line-height: 1.4; counter-increment: step; }
.apply-steps li::before { content: counter(step); position: absolute; top: 0; left: 50%; display: grid; place-items: center; width: 36px; height: 36px; transform: translateX(-50%); border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.apply-steps li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: calc(50% + 24px); right: calc(-50% + 10px); height: 2px; background: var(--line-strong); }
.apply-steps strong { display: block; margin-bottom: 2px; }
@media (max-width: 640px) {
  .apply-steps { grid-template-columns: 1fr; gap: 12px; }
  .apply-steps li { padding: 4px 0 0 50px; min-height: 36px; text-align: left; }
  .apply-steps li::before { left: 0; transform: none; }
  .apply-steps li::after { display: none; }
}
.deadline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 14px; background: #fff; border: 1px solid var(--cream-line); border-radius: 12px; }
.dl-date { display: inline-flex; align-items: center; gap: 8px; }
.dl-date .i { flex: none; }
.about-sp p { margin: 0; }

/* phone action bar */
.actionbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(14, 34, 28, 0.08); }
.actionbar .btn { flex: 1.2; }
.actionbar .btn.quiet { flex: 1; }
.ab-link { flex: 1; text-align: center; font-weight: 700; }
@media (min-width: 900px) {
  .actionbar { display: none; }
}
@media (max-width: 899px) {
  body:has(.actionbar) { padding-bottom: 76px; }
}
@media (max-width: 899px) {
  .school { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "gallery" "head" "side" "body"; }
  .sc-side { grid-area: side; position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 18px; padding: 16px 18px; }
  .side-extra, .side-apply { display: none; }
  .side-actions { margin-top: 0; min-width: 12rem; }
  .is-sponsored .sc-label { margin-top: 0; }
  .is-sponsored .sc-head { margin-top: 14px; }
  .gallery { margin-top: 0; }
  .g-track { display: flex; gap: 0; aspect-ratio: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 14px; }
  .g-track::-webkit-scrollbar { display: none; }
  .g-item, .g-item:nth-child(n+6) { display: block; flex: 0 0 100%; aspect-ratio: 16 / 10; border-radius: 0; scroll-snap-align: start; }
  .gallery.js .g-btn { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.92); border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(14, 34, 28, 0.2); }
  .g-prev { left: 10px; }
  .g-next { right: 10px; }
  .gallery.js .g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
  .g-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
  .g-dots span.on { background: var(--ink-soft); }
  .g-all { display: none; }
  .g-logo { flex: 1; justify-content: center; }
}
@media (max-width: 600px) {
  .grow { grid-template-columns: 1fr; }
  .ggrid { grid-template-columns: repeat(7, minmax(0, 44px)); gap: 10px 8px; }
  .chips-info li { max-width: none; }
  .sc-side { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .side-actions { display: flex; align-items: center; gap: 16px; min-width: 0; }
  .side-actions .btn { flex: 1; width: auto; }
  .side-link { white-space: nowrap; }
}

/* Sponsored block above a list (city, special-needs, online and all-schools pages; home search) */
.spon-block { margin: 18px 0 28px; padding: 16px 18px 18px; background: var(--cream); border: 1px solid var(--cream-line); border-radius: 20px; }
.spon-block .pill { margin-bottom: 12px; }
.spon-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 16px; margin: 0; padding: 0; }
.spon-card { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; height: 100%; padding: 14px; background: #fff; border: 1px solid var(--cream-line); border-radius: 16px; color: var(--ink); text-decoration: none; }
.spon-card.no-img { grid-template-columns: 1fr; }
.spon-card:hover { border-color: var(--line-strong); }
.spon-card:hover .spon-name { text-decoration: underline; text-underline-offset: 3px; }
.spon-img { display: block; width: 100%; height: 100%; min-height: 8.5rem; object-fit: cover; border-radius: 10px; }
.spon-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spon-name { font-weight: 800; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 4px; }
.spon-meta { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.35; }
.spon-body .strip { margin: 8px 0 2px; }
.spon-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.mini { display: inline-block; padding: 5px 10px; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 10px; font-size: 0.78rem; font-weight: 700; line-height: 1.3; text-align: center; }
.btn.sm { min-height: 40px; margin-left: auto; padding: 0.35em 1em; font-size: 0.95rem; }
.spon-results .spon-block { margin-top: 18px; }
@media (max-width: 560px) {
  .spon-card { grid-template-columns: 1fr; }
  .spon-img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}
