/* IASI redesign concept — shared styles */
:root {
  --ink: #1f2a2e;
  --ink-soft: #4a575b;
  --muted: #6d7a7d;
  --paper: #fbfaf7;
  --sand: #f2eee6;
  --line: #e2ddd2;
  --sage: #5c7a6e;
  --sage-deep: #3f5a50;
  --sage-tint: #e6ede9;
  --clay: #b0714f;
  --clay-tint: #f5e8df;
  --radius: 10px;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: .75em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; color: #fff; }

/* Concept banner (remove for production) */
.concept-banner { background: var(--ink); color: #e9ece9; font-size: .85rem; text-align: center; padding: 8px 16px; }
.concept-note { border-left: 3px solid var(--clay); background: var(--clay-tint); padding: 12px 16px; font-size: .9rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em; display: block; }
.brand-text span { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: var(--sand); }
.nav a[aria-current="page"] { color: var(--sage-deep); background: var(--sage-tint); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font-weight: 600; font-size: .95rem; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; cursor: pointer; font-family: var(--sans); }
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--sage-deep); color: var(--sage-deep); background: transparent; }
.btn-ghost:hover { background: var(--sage-deep); color: #fff; }
.nav .btn-primary { color: #fff; padding: 9px 18px; }
.nav .btn-primary:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Sections */
section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.bg-sand { background: var(--sand); }
.bg-sage { background: var(--sage-deep); color: #eef3f0; }
.bg-sage h2, .bg-sage h3 { color: #fff; }
.bg-sage .eyebrow { color: #e8c3ad; }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-art { width: 100%; max-width: 380px; justify-self: center; }
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--sand), var(--paper)); }
.page-hero .lede { max-width: 60ch; }

/* Pathway cards */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card p { color: var(--ink-soft); }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .card-link::after { content: " →"; }
.card-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-tint); display: grid; place-items: center; margin-bottom: 18px; color: var(--sage-deep); }
.card-icon svg { width: 22px; height: 22px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Stats / facts */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: #fff; padding: 24px; }
.fact strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--sage-deep); line-height: 1.1; }
.fact span { font-size: .9rem; color: var(--muted); }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .6em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--sage); border-bottom: 2.5px solid var(--sage); transform: rotate(-45deg); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 28px 64px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--sage-tint); color: var(--sage-deep); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: grid; place-items: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.steps h3 { margin-bottom: .25em; padding-top: 8px; }
.steps p { color: var(--ink-soft); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--sand); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Forms */
.search-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 16px; align-items: end; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px var(--sage-tint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--sage); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Quote / callout */
.callout { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
blockquote { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; color: var(--ink); }

/* Tags */
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sage-tint); color: var(--sage-deep); margin: 0 6px 6px 0; }
.tag.clay { background: var(--clay-tint); color: #8a4f31; }

.empty-state { text-align: center; padding: 48px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: #fff; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lede { margin: 0 auto; }
.cta-band .btn-row { justify-content: center; }
.bg-sage .btn-primary { background: #fff; color: var(--sage-deep); }
.bg-sage .btn-primary:hover { background: var(--clay-tint); color: var(--ink); }
.bg-sage .btn-ghost { border-color: #cfdcd5; color: #fff; }
.bg-sage .btn-ghost:hover { background: #fff; color: var(--sage-deep); }

/* Footer */
.site-footer { background: var(--ink); color: #c9d1cf; padding: 64px 0 32px; font-size: .92rem; }
.site-footer a { color: #e9ece9; text-decoration: none; }
.site-footer a:hover { color: #e8c3ad; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #3a4649; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #93a09d; font-size: .85rem; }
address { font-style: normal; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 260px; order: -1; }
  .paths, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-panel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) { .brand-text span { display: none; } }
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-art { max-width: 190px; }
  .paths, .grid-3, .grid-4, .footer-grid, .form-grid, .search-panel { grid-template-columns: 1fr; }
  .brand-text span { display: none; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== v2: two-row header, dropdowns, section layout ===== */
.site-header { position: sticky; top: 0; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.header-actions { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.header-actions a.util { color: var(--ink-soft); text-decoration: none; }
.header-actions a.util:hover { color: var(--ink); }
.header-actions .btn { padding: 9px 18px; }
.mainnav { border-top: 1px solid var(--line); }
.mainnav > .container > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.mainnav li { position: relative; }
.mainnav a.top { display: block; padding: 12px 12px; color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.mainnav a.top:hover { color: var(--ink); }
.mainnav a.top.active { color: var(--sage-deep); border-bottom-color: var(--sage-deep); }
.mainnav .has-sub > a.top::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.submenu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(31,42,46,.10); display: none; z-index: 60; }
.submenu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.submenu a:hover, .submenu a:focus { background: var(--sand); }
.mainnav li:hover > .submenu, .mainnav li:focus-within > .submenu { display: block; }
.mainnav li:last-child .submenu { left: auto; right: 0; }

.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

.with-sidebar { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 80px; align-items: start; }
.sidenav { position: sticky; top: 140px; }
.sidenav h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sidenav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.sidenav a { display: block; padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.sidenav a:hover { color: var(--ink); }
.sidenav a[aria-current="page"] { border-left-color: var(--sage-deep); color: var(--sage-deep); font-weight: 600; }
.sidenav details { display: none; }

.prose { max-width: 720px; }
.prose > h2 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose h4 { font-size: 1rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--sage); }
.prose table { margin: 0 0 1.5em; }
.prose .table-wrap { margin-bottom: 1.5em; }
.prose .table-wrap table { margin: 0; }
.prose .steps { padding-left: 0; }
.prose .steps li { margin-bottom: 0; }
.prose .callout { margin: 1.5em 0; }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .btn { margin: 4px 8px 4px 0; }
.prose .btn-primary { color: #fff; }
.prose p:has(> .btn) { margin-top: 1.2em; }
.note { background: var(--sage-tint); border-radius: var(--radius); padding: 20px 24px; margin: 1.5em 0; }
.note.warn { background: var(--clay-tint); }
.note > :last-child { margin-bottom: 0; }
.note h3, .note h4 { margin-top: 0; }
.todo { background: #fff4c7; color: #6b5510; border-radius: 4px; padding: 0 5px; font-size: .92em; }
.prose .grid-2 { gap: 20px; margin-bottom: 1.5em; }
.prose .card h3 { margin-top: 0; }
.price { font-family: var(--serif); font-size: 1.5rem; color: var(--sage-deep); margin: .2em 0 .6em; }
.price small { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.program-list { columns: 2; column-gap: 32px; }
.program-list li { break-inside: avoid; }
.print-btn { background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink-soft); }
.print-btn:hover { border-color: var(--sage); color: var(--ink); }

.menu-toggle { display: none; }
@media (max-width: 1100px) {
  .mainnav a.top { padding: 12px 9px; font-size: .88rem; }
}
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .header-actions a.util { display: none; }
  .mainnav { display: none; border-top: 1px solid var(--line); max-height: calc(100vh - 110px); overflow-y: auto; }
  .mainnav.open { display: block; }
  .mainnav > .container > ul { flex-direction: column; padding: 8px 0 16px; }
  .mainnav a.top { border-bottom: 0; padding: 12px 4px; font-size: 1rem; }
  .mainnav a.top.active { color: var(--sage-deep); }
  .mainnav .has-sub > a.top::after { display: none; }
  .submenu { display: block; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 0 0 8px 8px; margin-left: 4px; min-width: 0; }
  .with-sidebar { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .sidenav { position: static; }
  .sidenav > h2, .sidenav > ul { display: none; }
  .sidenav details { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px 16px; }
  .sidenav details summary { font-size: .95rem; }
  .sidenav details ul { margin-top: 10px; }
  .program-list { columns: 1; }
}
@media (max-width: 600px) {
  .header-actions .btn { padding: 8px 14px; font-size: .85rem; }
}

@media print {
  .concept-banner, .site-header, .site-footer, .sidenav, .print-btn, .skip, .btn { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .page-hero { background: none; padding: 0 0 12pt; }
  .with-sidebar { display: block; padding: 0; }
  .prose { max-width: none; }
  .todo { background: none; }
  a { color: inherit; text-decoration: none; }
}
/* v2 fixes */
.mainnav a.top { padding: 12px 10px; font-size: .9rem; }
@media (max-width: 1280px) { .mainnav a.top { padding: 12px 7px; font-size: .84rem; } }
.search-panel.verify { grid-template-columns: 1fr 1fr 1fr auto; }
@media (max-width: 980px) { .with-sidebar { grid-template-columns: minmax(0, 1fr); } .search-panel.verify { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .search-panel.verify { grid-template-columns: 1fr; } }
.mainnav > .container > ul { justify-content: space-between; margin: 0 -8px; }
.mainnav a.top { padding: 12px 8px; font-size: .87rem; }
@media (max-width: 1280px) { .mainnav a.top { padding: 12px 5px; font-size: .8rem; } }
@media (max-width: 980px) { .mainnav > .container > ul { margin: 0; } }
.prose .steps h3 { margin-top: 0; }
.prose .steps li { padding-bottom: 22px; }
.steps h3 a { text-decoration: none; }
.steps h3 a:hover { text-decoration: underline; }

/* ===== School maps ===== */
.map-figure { margin: 1.2em 0 1.5em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.map-figure + .map-figure { margin-top: -0.5em; }
.map-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.school-map { width: 100%; height: auto; display: block; }
.school-map .region { fill: #ebe7df; stroke: #fff; stroke-width: 1; }
.school-map .region.hl { fill: #f2d9c9; }
.school-map .region.hl-soft { fill: #efdfd3; }
.school-map .region.active { fill: #e3b89c; }
.school-map .inset-box { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 4 4; }
.school-map .pin-label { font: 600 15px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.school-map .region-label { font-weight: 600; fill: #8a4526; }
.school-map .pin { cursor: pointer; outline: none; }
.school-map .pin .dot { transition: stroke-width .15s; }
.school-map .pin.active .dot, .school-map .pin:focus .dot { stroke: var(--ink); stroke-width: 3; }
.school-map .pin.active .pin-label, .school-map .pin:focus .pin-label { text-decoration: underline; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .88rem; color: var(--ink-soft); margin: 4px 0 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.map-legend i.sq { border-radius: 3px; background: #f2d9c9; }
.school-key { list-style: none; padding: 0 !important; margin: 0 0 1.4em; }
.school-key li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; }
.school-key li.active { background: var(--sand); }
.school-key .num { font: 600 .85rem var(--sans); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; }
.school-key .num.blue { background: #1b6f9e; }
.school-key .num.clay { background: #c0622f; }
.school-key small { color: var(--muted); display: block; }
.school-key ul { margin: 4px 0 0; padding-left: 1.1em; }
.school-key ul li { display: list-item; padding: 0; margin: 0; }
@media (max-width: 600px) { .school-map .pin-label { font-size: 30px; stroke-width: 7px; } .school-map .pin .dot { r: 11px; } .map-figure { padding: 8px; } }
/* Logo */
.brand-mark { width: 58px; height: 58px; object-fit: contain; }
.site-footer .brand-mark { background: #fff; border-radius: 50%; padding: 2px; width: 60px; height: 60px; }
@media (max-width: 600px) { .brand-mark { width: 44px; height: 44px; } }

/* ===== Program list rows + info card ===== */
.school-key li { grid-template-columns: 34px 1fr auto; align-items: center; }
.school-key li[data-group-ids] { align-items: start; }
.school-row small { color: var(--muted); display: block; font-size: .88rem; }
.school-open { all: unset; cursor: pointer; color: var(--ink); line-height: 1.4; border-radius: 4px; }
.school-open:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.school-open:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.ext-link { font-size: .85rem; font-weight: 600; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--sage-deep); background: #fff; }
.ext-link:hover { border-color: var(--sage); color: var(--sage-deep); }
.ext-icon { width: 11px; height: 11px; display: inline-block; }
.branches > strong { display: block; margin-bottom: 4px; }
.branch { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; }
.branch.active { background: var(--sand); }
.school-key li[data-group-ids] > .branches { min-width: 0; }
.school-key li[data-group-ids] { grid-template-columns: 34px 1fr; }

.school-card { position: absolute; z-index: 80; width: 340px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 48px rgba(31,42,46,.18); padding: 22px 22px 14px; }
.school-card[hidden], .sc-backdrop[hidden] { display: none; }
.sc-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.sc-close:hover { background: var(--sand); color: var(--ink); }
.sc-count { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.sc-school + .sc-school { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.sc-type { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-soft); margin: 0 30px 8px 0; }
.sc-type .num { font: 600 .75rem var(--sans); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.sc-type .num.blue { background: #1b6f9e; } .sc-type .num.clay { background: #c0622f; }
.school-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.sc-short { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--sage-deep); background: var(--sage-tint); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.sc-about { font-size: .92rem; color: var(--ink-soft); margin: 0 0 10px; }
.school-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; margin: 0 0 14px; }
.school-card dt { color: var(--muted); }
.school-card dd { margin: 0; }
.sc-visit { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; color: #fff !important; }
.sc-visit .ext-icon { width: 12px; height: 12px; }
.sc-muted { color: var(--muted); font-size: .9rem; }
.sc-foot { font-size: .78rem; color: var(--muted); margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.sc-backdrop { position: fixed; inset: 0; background: rgba(31,42,46,.35); z-index: 79; }
.school-card.sheet { position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none; max-height: 75vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 26px 20px 18px; }
.school-card.sheet .sc-visit { display: flex; justify-content: center; }
@media (max-width: 600px) {
  .school-key li { grid-template-columns: 30px 1fr; }
  .school-key li > .ext-link { grid-column: 2; justify-self: start; }
  .branch { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.school-card section.sc-school { padding: 0; }
.school-card section.sc-school + section.sc-school { padding-top: 16px; }

/* Hero photo in the pill-shaped frame */
.hero-photo { width: 100%; max-width: 330px; justify-self: center; aspect-ratio: 267 / 400; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
@media (max-width: 960px) { .hero-photo { max-width: 260px; order: -1; } }
@media (max-width: 600px) { .hero-photo { max-width: 200px; } }
