/* SchoolFinder by EdThingsApp — public directory. Fully self-hosted (CSP: style-src/font-src 'self', no third-party CDN). */

/* Inter (OFL) variable font — one file covers every weight this stylesheet
   uses (400 through 800, including the non-standard 500/550/650 accents,
   which only render exactly with a variable font, not static weight files).
   License: public/directory/fonts/LICENSE.txt. */
@font-face {
  font-family: "Inter";
  src: url("/public/directory/fonts/InterVariable.woff2") format("woff2-variations"),
       url("/public/directory/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #6d4aec;
  --brand-ink: #4c2fb8;
  --brand-wash: #f2eefe;
  --brand-wash-2: #e7dffd;
  --trust: #0d9488;
  --trust-wash: #e6f6f4;
  --warn: #b4530a;
  --warn-wash: #fdf1e6;

  --ink: #17151f;
  --ink-2: #4a4658;
  --ink-3: #77738a;
  --line: #e9e7f0;
  --line-2: #f1eff6;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f6f5fa;

  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 11px;
  --r-sm: 8px;
  --maxw: 1120px;

  --sh-sm: 0 1px 2px rgba(23, 21, 31, .05);
  --sh-md: 0 2px 6px rgba(23, 21, 31, .05), 0 12px 28px rgba(23, 21, 31, .07);
  --sh-lg: 0 8px 20px rgba(23, 21, 31, .08), 0 30px 60px rgba(23, 21, 31, .10);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.22; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.7rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-3); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.stack > * + * { margin-top: 14px; }
.center { text-align: center; }

/* ─── header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 251, 253, .82);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.06rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #9b7bff); color: #fff; font-size: .8rem; font-weight: 800;
}
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { color: var(--ink-2); font-weight: 550; font-size: .92rem; padding: 8px 10px; border-radius: var(--r-sm); }
.site-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.site-nav .cta-link {
  background: var(--brand); color: #fff; padding: 9px 15px; font-weight: 650;
}
.site-nav .cta-link:hover { background: var(--brand-ink); color: #fff; }
@media (max-width: 620px) {
  .site-nav a:not(.cta-link) { display: none; }
}

/* ─── breadcrumb ─────────────────────────────────────────────────────── */
.crumbs { font-size: .8rem; color: var(--ink-3); padding: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink-2); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ─── hero ───────────────────────────────────────────────────────────── */
.hero { padding: 30px 0 10px; }
.hero .eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--brand-wash); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.hero .lede { max-width: 66ch; color: var(--ink-2); font-size: 1.05rem; }
.hero .lede :is(p, ul) { color: var(--ink-2); }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.stat-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; box-shadow: var(--sh-sm); font-size: .9rem;
}
.stat-chip b { font-size: 1rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ─── directory search / typeahead ───────────────────────────────────── */
.finder-search { position: relative; max-width: 520px; margin: 20px 0 4px; }
.finder-search input {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  padding: 15px 18px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--sh-sm); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.finder-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 74, 236, .16); }
.finder-search input::placeholder { color: var(--ink-2); opacity: .8; }
.finder-results {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); overflow: hidden; padding: 4px;
}
.finder-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--r-sm); text-decoration: none; color: var(--ink);
}
.finder-item:hover, .finder-item.active { background: var(--brand-wash); }
.finder-item .fi-icon { font-size: 1.05rem; flex-shrink: 0; }
.finder-item .fi-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.finder-item .fi-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finder-item .fi-sub { font-size: .82rem; color: var(--ink-2); }
.finder-empty { padding: 14px 12px; font-size: .9rem; color: var(--ink-2); }

/* ─── buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 11px 18px; border-radius: var(--r-md); font-weight: 650; font-size: .94rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; border-color: #d8d4e6; box-shadow: var(--sh-sm); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px rgba(109, 74, 236, .28); }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 13px; font-size: .86rem; border-radius: var(--r-sm); }
.btn.block { width: 100%; }

/* ─── pills / badges ─────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 650; letter-spacing: .01em;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.pill.verified { background: var(--trust-wash); color: var(--trust); border-color: #bfe6e1; }
.pill.brand { background: var(--brand-wash); color: var(--brand-ink); border-color: var(--brand-wash-2); }
.pill.warm { background: var(--warn-wash); color: var(--warn); border-color: #f4dcc4; }
.pill.solid { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─── layout ─────────────────────────────────────────────────────────── */
.section { padding: 26px 0 44px; }
.split { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; }
.grid { display: grid; gap: 18px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.grid.cities { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ─── browse-by strip (facet pages) ─────────────────────────────────── */
.browse-by {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 18px 24px 0; margin: 0 auto;
}
.browse-by .browse-label { font-size: .84rem; font-weight: 600; color: var(--ink-3); margin-right: 4px; }
.browse-by .chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 550;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2);
}
.browse-by .chip:hover { border-color: #d3cdea; color: var(--ink); text-decoration: none; }
.browse-by .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.browse-by .chip .c { font-size: .76rem; opacity: .7; }

/* ─── filter bar ─────────────────────────────────────────────────────── */
.filter-panel {
  position: sticky; top: 84px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--sh-sm);
}
.filter-panel h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 8px;
}
.filter-panel h4:not(:first-child) { margin-top: 18px; }
.filter-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; margin: 0 -10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .92rem;
}
.filter-opt:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.filter-opt.active { background: var(--brand-wash); color: var(--brand-ink); font-weight: 650; }
.filter-opt .n { font-size: .82rem; color: var(--ink-3); }
.filter-mobile-toggle { display: none; }
@media (max-width: 820px) {
  .filter-panel { position: static; }
}

/* ─── school card ────────────────────────────────────────────────────── */
.school-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.school-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); border-color: #ddd8ec; }
.school-card .cover {
  position: relative; aspect-ratio: 16 / 8.5; background: var(--surface-2); overflow: hidden;
}
.school-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.school-card .cover .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-wash), #dcd2fb);
  color: var(--brand-ink); font-size: 2.4rem; font-weight: 800; opacity: .85;
}
.school-card .rank-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px;
  background: rgba(23, 21, 31, .78); color: #fff; font-weight: 800; font-size: .82rem;
  display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.school-card .cover .top-tags {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 6px;
}
.school-card .body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.school-card .head { display: flex; gap: 12px; align-items: flex-start; }
.school-card .logo {
  width: 46px; height: 46px; border-radius: 11px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); flex-shrink: 0; margin-top: -34px; position: relative; z-index: 2;
  box-shadow: var(--sh-sm);
}
.school-card h3 { margin: 0; font-size: 1.08rem; }
.school-card h3 a { color: var(--ink); }
.school-card h3 a:hover { color: var(--brand-ink); text-decoration: none; }
.school-card .loc { font-size: .82rem; color: var(--ink-3); }
.school-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.school-card .blurb { font-size: .9rem; color: var(--ink-2); margin: 0; }
.school-card .facil { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--ink-3); }
.school-card .facil span::before { content: "•"; margin-right: 5px; color: var(--brand); }
.school-card .foot {
  margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.school-card .fee { font-weight: 650; font-size: .9rem; }
.school-card .fee small { display: block; font-weight: 400; color: var(--ink-3); font-size: .74rem; }
.card-actions { display: flex; gap: 8px; }
.compare-check {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-2);
  cursor: pointer; user-select: none; padding: 6px 8px; border-radius: var(--r-sm);
}
.compare-check:hover { background: var(--surface-2); }
.compare-check input { accent-color: var(--brand); width: 15px; height: 15px; }

/* ─── compare tray ───────────────────────────────────────────────────── */
.compare-tray {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(140%);
  z-index: 50; background: var(--ink); color: #fff; border-radius: 14px;
  padding: 12px 14px 12px 18px; display: flex; align-items: center; gap: 16px;
  box-shadow: var(--sh-lg); max-width: calc(100vw - 32px); transition: transform .28s cubic-bezier(.2,.9,.3,1.2);
}
.compare-tray.show { transform: translateX(-50%) translateY(0); }
.compare-tray .names { font-size: .9rem; font-weight: 600; }
.compare-tray .names span { opacity: .6; margin: 0 8px; }
.compare-tray .btn { border: none; }
.compare-tray .clear { background: transparent; color: rgba(255,255,255,.6); font-size: 1.1rem; cursor: pointer; border: none; padding: 4px; }

/* ─── "for schools" band ─────────────────────────────────────────────── */
.for-schools {
  margin: 8px 0 40px; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(120deg, #2a1c66, #4c2fb8 55%, #6d4aec);
  color: #fff; padding: 34px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center;
  box-shadow: var(--sh-md);
}
.for-schools h2 { color: #fff; }
.for-schools p { color: rgba(255, 255, 255, .82); margin: 0; }
.for-schools ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.for-schools li { display: flex; gap: 9px; align-items: flex-start; font-size: .94rem; color: rgba(255,255,255,.9); }
.for-schools li::before { content: "✓"; color: #b9ffe9; font-weight: 800; }
.for-schools .cta-box { text-align: center; }
.for-schools .btn.primary { background: #fff; color: var(--brand-ink); border-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.for-schools .btn.primary:hover { background: #f2eefe; }
.for-schools .fineprint { color: rgba(255,255,255,.6); margin-top: 10px; }
@media (max-width: 760px) { .for-schools { grid-template-columns: 1fr; padding: 26px; } }

/* ─── profile page ──────────────────────────────────────────────────── */
.profile-cover {
  position: relative; height: clamp(160px, 26vw, 260px); border-radius: var(--r-xl); overflow: hidden;
  margin-top: 16px; background: linear-gradient(135deg, var(--brand-wash), #d7ccfa);
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; font-weight: 800; color: var(--brand-ink); opacity: .55; }

/* Logo overlaps the cover; the name/title sit fully BELOW it (no text overlap). */
.profile-head {
  display: grid; grid-template-columns: 108px 1fr; gap: 20px; align-items: center;
  margin: 14px 4px 4px;
}
.profile-head .logo-wrap {
  width: 108px; height: 108px; border-radius: 22px; background: #fff; padding: 8px;
  box-shadow: var(--sh-md); display: grid; place-items: center; margin-top: -56px; position: relative; z-index: 2;
}
.profile-head .logo-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.profile-head .logo-wrap .ph { font-size: 2.2rem; font-weight: 800; color: var(--brand-ink); }
.profile-head .titles { min-width: 0; }
.profile-head .title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile-head h1 { margin: 0 0 4px; }
.profile-head .loc { color: var(--ink-3); font-size: .95rem; }
@media (max-width: 560px) {
  .profile-head { grid-template-columns: 1fr; gap: 10px; }
  .profile-head .logo-wrap { width: 84px; height: 84px; margin-top: -46px; }
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 4px 4px; }
.profile-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 4px 0; }

/* rating badge */
.rating-badge {
  display: inline-flex; align-items: baseline; gap: 4px; font-weight: 700; font-size: .82rem;
  color: #92610a; background: #fff6e6; border: 1px solid #f2dcae; border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.rating-badge.lg { font-size: 1rem; padding: 5px 13px; }
.rating-badge small { font-weight: 500; color: #b98a3d; }
.school-card .head .rating-badge { align-self: flex-start; }

.profile-body { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; margin-top: 24px; }
@media (max-width: 940px) { .profile-body { grid-template-columns: 1fr; } }

/* clearly-separated "more schools" band — the school's own detail ends above it */
.more-schools {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: 40px 0 48px;
  margin-top: 48px;
}
.more-schools h2 { margin-bottom: 6px; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 28px;
}
.fact { border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 15px; background: var(--surface); }
.fact .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.fact .v { font-weight: 700; margin-top: 3px; font-size: .98rem; }
.fact .v a { font-weight: 700; }

.block { margin-bottom: 32px; }
.block > h2 { display: flex; align-items: center; gap: 9px; }
.prose { max-width: 68ch; color: var(--ink-2); }
.prose :is(h2, h3) { color: var(--ink); margin-top: 1.5em; }
.prose p { margin: 0 0 .9em; }

.facil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.facil-grid .item {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface); font-size: .92rem; font-weight: 550;
}
.facil-grid .item .dot {
  width: 26px; height: 26px; border-radius: 8px; background: var(--brand-wash);
  display: grid; place-items: center; color: var(--brand-ink); font-size: .85rem; flex-shrink: 0;
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery button {
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: none;
}
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.05); }

/* Reviews */
.review-summary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.review-summary .big { font-size: 1.5rem; font-weight: 800; color: #92610a; }
.review-list { display: grid; gap: 14px; margin-bottom: 18px; }
.review {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface);
}
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.review-stars { color: #e0a92b; letter-spacing: 1px; }
.review-title { font-weight: 650; margin-bottom: 2px; }
.review-body { margin: 4px 0 0; color: var(--ink-2); font-size: .93rem; }
.review-response {
  margin-top: 10px; padding: 10px 12px; background: var(--brand-wash); border-radius: var(--r-sm);
  font-size: .88rem; color: var(--ink-2);
}
.review-form-wrap { margin-top: 6px; }
.review-form summary { display: inline-block; list-style: none; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form form { display: grid; gap: 10px; margin-top: 12px; max-width: 460px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; font-size: 1.7rem; }
.star-input input { position: absolute; opacity: 0; width: 0; }
.star-input label { color: var(--line); cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: #e0a92b; }

/* Low-key "request removal" disclosure — deliberately understated, not a CTA */
.removal-disclosure {
  margin-top: 10px; padding: 10px 0 0; border-top: 1px dashed var(--line);
}
.removal-disclosure summary {
  cursor: pointer; font-size: .8rem; color: var(--ink-3); list-style: none;
}
.removal-disclosure summary::-webkit-details-marker { display: none; }
.removal-disclosure summary::before { content: "› "; }
.removal-disclosure[open] summary::before { content: "⌄ "; }
.removal-body { margin-top: 10px; }
.removal-body form { display: grid; gap: 10px; max-width: 420px; }

/* FAQ */
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; background: var(--surface);
}
.faq summary { font-weight: 600; cursor: pointer; font-size: .95rem; }
.faq summary::marker { color: var(--brand); }
.faq details[open] summary { margin-bottom: 6px; }
.faq details p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(10, 8, 20, .92);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--sh-lg); }
.lightbox .x { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; }

/* ─── sticky rail ────────────────────────────────────────────────────── */
.rail { position: sticky; top: 84px; display: grid; gap: 16px; }
.enquire-card, .claim-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--surface); box-shadow: var(--sh-sm);
}
.enquire-card h3 { margin: 0 0 4px; }
.enquire-card form, .claim-card form { display: grid; gap: 10px; margin-top: 12px; }
.field {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-md);
  font: inherit; background: var(--surface); color: var(--ink);
}
.field:focus { outline: 2px solid var(--brand-wash-2); border-color: var(--brand); }
textarea.field { resize: vertical; min-height: 64px; }
select.field {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a5f73'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .74rem; color: var(--ink-3); }
.form-done { display: flex; gap: 10px; align-items: flex-start; background: var(--trust-wash); color: var(--trust); padding: 12px 14px; border-radius: var(--r-md); font-size: .9rem; }

.claim-card {
  background: linear-gradient(160deg, #fbf9ff, #f1ebfe);
  border-color: var(--brand-wash-2);
}
.claim-card .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.claim-card h3 { margin: 6px 0 6px; }
.claim-card ul { margin: 8px 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.claim-card li { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-2); align-items: flex-start; }
.claim-card li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.social-proof {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2);
  padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-md); margin-top: 4px;
}

/* WhatsApp CTA */
.wa-btn { background: #1fa855 !important; border-color: #1fa855 !important; color: #fff !important; box-shadow: 0 6px 16px rgba(31, 168, 85, .28) !important; }
.wa-btn:hover { background: #178a45 !important; border-color: #178a45 !important; }
.wa-ico { font-weight: 700; }
.or-sep { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; color: var(--ink-3); font-size: .78rem; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or-sep.light { color: rgba(255,255,255,.7); }
.or-sep.light::before, .or-sep.light::after { background: rgba(255,255,255,.25); }

/* profile-completeness nudge on the claim card */
.completeness { margin: 8px 0 4px; }
.completeness .bar { height: 6px; border-radius: 999px; background: var(--brand-wash-2); overflow: hidden; margin-bottom: 5px; }
.completeness .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #9b7bff); border-radius: 999px; }

/* "Run this school?" link on unclaimed cards */
.manage-listing {
  display: inline-block; margin-top: 2px; font-size: .78rem; font-weight: 600;
  color: var(--brand-ink);
}
.manage-listing:hover { text-decoration: underline; }

/* ─── compare table ─────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--surface); }
.compare-table th, .compare-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare-table thead th { font-size: 1rem; background: var(--surface-2); }
.compare-table tbody th { width: 170px; color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.compare-table tbody tr:last-child :is(th, td) { border-bottom: none; }

/* picker */
.picker-card { max-width: 560px; margin: 8px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.picker-card label { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 600; margin-bottom: 14px; }
.picker-card select { margin-top: 6px; }

/* pager */
.pager { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 30px 0 6px; }
.pager .pg { font-size: .86rem; color: var(--ink-3); }

/* note / disclaimer */
.note {
  font-size: .84rem; color: var(--ink-2); background: var(--surface-2);
  border-left: 3px solid var(--brand-wash-2); padding: 12px 14px; border-radius: 0 var(--r-md) var(--r-md) 0; margin: 20px 0;
}

/* ─── footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; }
.footer-cta {
  background: linear-gradient(120deg, #211653, #4c2fb8); color: #fff; padding: 40px 0;
}
.footer-cta .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-cta h3 { color: #fff; font-size: 1.4rem; margin: 0 0 4px; }
.footer-cta p { color: rgba(255,255,255,.78); margin: 0; }
.footer-cta .btn { background: #fff; color: var(--brand-ink); border-color: #fff; }
.footer-links .wrap { padding: 30px 24px; display: flex; flex-wrap: wrap; gap: 18px 40px; color: var(--ink-3); font-size: .88rem; justify-content: space-between; }
.footer-links a { color: var(--ink-2); }
.footer-links .col { display: grid; gap: 6px; }
.footer-links .col b { color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

/* ─── misc ───────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.divider { height: 1px; background: var(--line); margin: 32px 0; border: 0; }
