:root {
  --ps-coral: #ff6b8a;
  --ps-coral-dark: #e84d6f;
  --ps-sky: #6bcbff;
  --ps-sky-dark: #3aa8f0;
  --ps-mint: #5eead4;
  --ps-sun: #ffe066;
  --ps-ink: #0f172a;
  --ps-ink-muted: #64748b;
  --ps-border: #e2e8f0;
  --ps-surface: #ffffff;
  --ps-bg: #f8fafc;
  --ps-radius: 14px;
  --ps-radius-sm: 10px;
  --ps-radius-lg: 20px;
  --ps-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --ps-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --ps-font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --ps-font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --panel-sidebar: #1e293b;
  --panel-sidebar-hover: #334155;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--ps-font-body);
  color: var(--ps-ink);
  background: var(--ps-surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ps-coral-dark); }
h1, h2, h3, .section-title { font-family: var(--ps-font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 5; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px max(16px, calc((100% - 1120px) / 2));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--ps-shadow-sm);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ps-coral-dark); font-family: var(--ps-font-display); font-weight: 700; font-size: 1.25rem; }
.brand-logo { display: block; height: 56px; width: auto; max-width: min(320px, 46vw); object-fit: contain; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ps-ink); font-weight: 700; padding: 0.45rem 0.8rem; border-radius: 999px; }
.site-nav a:hover { background: #fff0f3; color: var(--ps-coral-dark); }
.btn-login { border: 2px solid var(--ps-sky); color: var(--ps-sky-dark) !important; background: #fff; }
.btn-login:hover { background: #eef9ff !important; color: var(--ps-sky-dark) !important; }
.btn-enquiry, .btn-cta {
  background: linear-gradient(135deg, var(--ps-coral), var(--ps-coral-dark)) !important;
  color: #fff !important;
  border: 0;
  box-shadow: 0 8px 20px rgba(255, 107, 138, 0.35);
}
.nav-toggle { display: none; font: inherit; font-weight: 800; color: #2a2a72; background: #fff; border: 1px solid #e7e5f4; border-radius: 999px; padding: 8px 14px; min-height: 44px; }

.hero {
  width: auto;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  background: linear-gradient(135deg, #fff0f3 0%, #e8f7ff 50%, #fff8e8 100%);
  border-radius: 0 0 28px 28px;
  padding: 48px max(18px, calc((100% - 1120px) / 2)) 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 203, 255, 0.35), transparent 70%);
  top: -70px; right: -40px; pointer-events: none;
}
.hero-copy, .search-card { position: relative; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin: 14px 0 10px; color: var(--ps-ink); }
.lead, .lede { color: var(--ps-ink-muted); font-size: 1.08rem; }
.pill-row, .card-tags, .profile-badges, .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.feature-pill { display: inline-flex; align-items: center; padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 800; font-size: 0.82rem; }
.feature-pill.pink { background: #ffe8ee; color: #b4234a; }
.feature-pill.blue { background: #e8f6ff; color: #0369a1; }
.feature-pill.green { background: #e6fff8; color: #047857; }
.search-card, .auth-card, .enquiry-card, .band-card, .card-form {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--ps-radius-lg);
  padding: 20px;
  box-shadow: var(--ps-shadow);
}
.search-grid, .form-grid, .stat-grid, .city-grid, .card-grid { display: grid; gap: 14px; }
.search-grid, .form-grid { grid-template-columns: 1fr 1fr; }
.mode-switch { display: flex; gap: 14px; margin-bottom: 12px; font-weight: 800; }
label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 700; }
input, select, textarea {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: var(--ps-radius-sm);
  border: 1px solid var(--ps-border); background: #fff; color: var(--ps-ink); width: 100%;
}
input[type="radio"], input[type="checkbox"] {
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: #3b5bdb;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #bae6fd; border-color: var(--ps-sky); }
button, .btn { font: inherit; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ps-coral), var(--ps-coral-dark));
  color: #fff; text-decoration: none; border: 0; border-radius: 999px;
  padding: 0.7rem 1.2rem; font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 107, 138, 0.28);
}
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.88rem; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ps-ink); border: 1px solid var(--ps-border); box-shadow: none; }
.btn-wa { background: #25d366; color: #fff; box-shadow: none; }
.section, .page-head, .listing-layout, .profile, .page-narrow, .auth-wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.section-head.center { justify-content: center; }
.section-title { color: var(--ps-coral-dark); margin: 0 0 16px; position: relative; display: inline-block; }
.section-title::after {
  content: ""; display: block; width: 48px; height: 4px; margin-top: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--ps-coral), var(--ps-sky));
}
.section-head.center .section-title::after, .page-head .section-title::after { margin-left: auto; margin-right: auto; }
.city-grid { grid-template-columns: repeat(4, 1fr); }
.city-tile {
  background: #fff; color: var(--ps-ink); border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius); padding: 18px; text-decoration: none;
  min-height: 108px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--ps-shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.city-tile:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow); }
.city-tile strong { color: var(--ps-coral-dark); font-family: var(--ps-font-display); font-size: 1.25rem; }
.city-tile span, .card-kicker, .muted, .fine, .result-count { color: var(--ps-ink-muted); }
.card-grid { grid-template-columns: repeat(2, 1fr); }
.school-card, .job-list a, .people li, .program-list li {
  background: #fff; border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--ps-radius); box-shadow: var(--ps-shadow-sm);
}
.school-card { padding: 16px; display: grid; gap: 10px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.school-card:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow); }
.card-identity { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.card-identity h2, .card-identity h3 { margin: 0; font-size: 1.3rem; color: var(--ps-ink); }
.avatar { width: 56px; height: 56px; border-radius: 16px; background: #ffe8ee; color: #b4234a; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-tags span, .profile-badges span, .chip { border-radius: 999px; padding: 4px 10px; background: #f8fafc; border: 1px solid var(--ps-border); font-size: 0.8rem; font-weight: 800; color: var(--ps-ink); text-decoration: none; }
.tag-verified { background: #e6fff8 !important; color: #047857 !important; border-color: transparent !important; }
.tag-open { background: #fff8db !important; color: #92400e !important; border-color: transparent !important; }
.chip.is-on { background: #fff0f3; color: var(--ps-coral-dark); border-color: #ffd0dc; }
.card-actions, .action-row, .footer-base { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card-meta { display: flex; gap: 12px; color: var(--ps-ink-muted); font-weight: 700; }
.band { width: min(1120px, calc(100% - 32px)); margin: 8px auto 20px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.band-card { background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 50%, #fce7f3 100%); }
.steps { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.job-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.job-list a { display: grid; text-decoration: none; color: inherit; padding: 14px 16px; }
.job-list a:hover { box-shadow: var(--ps-shadow); }
.site-footer { width: auto; margin: 28px 0 0; padding: 28px max(16px, calc((100% - 1120px) / 2)) 40px; border-top: 1px solid var(--ps-border); background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.footer-grid strong { font-family: var(--ps-font-display); color: var(--ps-coral-dark); }
.footer-grid a, .footer-base a { display: block; text-decoration: none; color: var(--ps-ink); font-weight: 700; }
.footer-base { border-top: 1px solid var(--ps-border); margin-top: 18px; padding-top: 12px; color: var(--ps-ink-muted); }
.page-head { padding-top: 18px; }
.page-head h1, .profile h1, .page-narrow h1, .auth-card h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ps-ink-muted); font-weight: 700; }
.crumbs a { color: var(--ps-ink-muted); text-decoration: none; }
.listing-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding-bottom: 40px; }
.filters, .stack-form { display: grid; gap: 12px; align-content: start; }
.filters { background: #fff; border: 1px solid var(--ps-border); border-radius: var(--ps-radius); padding: 14px; box-shadow: var(--ps-shadow-sm); }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
.pager { display: flex; gap: 8px; margin-top: 16px; }
.pager a { text-decoration: none; padding: 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--ps-border); font-weight: 800; color: var(--ps-ink); }
.pager a.is-on { background: linear-gradient(135deg, var(--ps-coral), var(--ps-coral-dark)); color: #fff; border-color: transparent; }
.profile-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 22px; align-items: start; }
.enquiry-card { position: sticky; top: 86px; background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 55%, #fce7f3 100%); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: #fff; border-radius: var(--ps-radius-sm); padding: 10px 12px; border: 1px solid var(--ps-border); }
.facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ps-ink-muted); font-weight: 800; }
.facts dd { margin: 0; font-weight: 800; }
.gallery, .photo-admin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img, .photo-admin img, .thumb { border-radius: var(--ps-radius); width: 100%; height: 140px; object-fit: cover; }
.map { width: 100%; height: 280px; border: 0; border-radius: var(--ps-radius); }
.people, .program-list, .amenity-list, .city-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.people li, .program-list li { padding: 12px; }
.amenity-list { grid-template-columns: 1fr 1fr; }
.amenity-list li { background: #fff0f3; color: #b4234a; border-radius: 999px; padding: 8px 12px; font-weight: 800; }
.hp { position: absolute; left: -9999px; }
.flash-wrap { width: min(1120px, calc(100% - 32px)); margin: 8px auto; }
.flash { padding: 12px 14px; border-radius: var(--ps-radius-sm); background: #f0fdf4; border-left: 6px solid #10b981; font-weight: 700; }
.flash-error { background: #fff1f2; border-left-color: var(--ps-coral); }
.auth-wrap { padding: 28px 0 56px; display: grid; justify-content: center; }
.auth-card { width: min(520px, 100%); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 800; color: var(--ps-coral); margin: 0; }
.app-body { background: var(--ps-bg); }
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { padding: 18px 14px; background: var(--panel-sidebar); color: #e2e8f0; display: flex; flex-direction: column; gap: 12px; }
.side .brand, .side a { color: #e2e8f0; text-decoration: none; }
.side nav { display: grid; gap: 4px; }
.side nav a { padding: 0.55rem 0.75rem; border-radius: 10px; font-weight: 800; }
.side nav a:hover { background: var(--panel-sidebar-hover); color: #fff; }
.side-kicker { margin: 0; color: #94a3b8; font-weight: 700; }
.side .btn-ghost { color: #fff; border-color: #475569; background: transparent; }
.app-main { padding: 22px; }
.stat-grid { grid-template-columns: repeat(3, 1fr); margin: 12px 0 20px; }
.stat-grid article { background: #fff; border-radius: var(--ps-radius); padding: 14px; border: 1px solid var(--ps-border); box-shadow: var(--ps-shadow-sm); }
.stat-grid span { color: var(--ps-ink-muted); font-weight: 800; font-size: 0.85rem; }
.stat-grid strong { display: block; font-size: 1.8rem; font-family: var(--ps-font-display); color: var(--ps-coral-dark); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--ps-radius); border: 1px solid var(--ps-border); }
.geo-block { margin: 8px 0 28px; }
.geo-block h2 { color: #2a2a72; }
.geo-add, .geo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.geo-add label, .geo-row { font-weight: 800; }
.geo-add input, .geo-add select, .geo-row input, .geo-row select { min-height: 44px; width: auto; min-width: 160px; }
.geo-row { align-items: center; }
.geo-row button, .geo-block .btn { min-height: 44px; }
.geo-areas { background: #fff; border-radius: 14px; padding: 8px 14px 14px; }
.geo-areas summary { min-height: 44px; display: flex; align-items: center; font-weight: 800; color: #2a2a72; cursor: pointer; }
@media (max-width: 800px) {
  .geo-add, .geo-row { display: grid; align-items: stretch; }
  .geo-add input, .geo-add select, .geo-row input, .geo-row select { width: 100%; }
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ps-border); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ps-ink-muted); }
.note, .empty { background: #fff8e8; padding: 12px 14px; border-radius: var(--ps-radius-sm); }
.split-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inline-form { display: inline; }
.inline-form button { background: none; border: 0; color: var(--ps-coral-dark); padding: 0; font-weight: 800; cursor: pointer; }
.narrow { max-width: 480px; }
.faq details { background: #fff; border: 1px solid var(--ps-border); border-radius: var(--ps-radius-sm); padding: 10px 12px; margin-top: 8px; }
.faq summary { font-weight: 800; cursor: pointer; }
blockquote { margin: 0 0 12px; background: #fff; padding: 12px 14px; border-radius: var(--ps-radius); border: 1px solid var(--ps-border); }
.card-copy { margin: 0; color: var(--ps-ink-muted); }
@media (max-width: 900px) {
  .hero, .band, .listing-layout, .profile-grid, .footer-grid, .city-grid, .split-forms, .app-shell { grid-template-columns: 1fr; }
  .card-grid, .search-grid, .form-grid, .facts, .amenity-list, .stat-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .site-header { position: sticky; }
  .enquiry-card { position: static; }
  .hero { padding: 28px 18px 32px; }
}
@media (max-width: 640px) {
  .card-grid, .city-grid, .search-grid, .form-grid, .facts, .amenity-list, .stat-grid, .gallery, .check-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}

/* Login gate — matches the preschool role card */
.gate {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
  background: linear-gradient(135deg, #fff0f5 0%, #e8f4ff 48%, #fff8e8 100%);
  font-family: var(--ps-font-body);
}
.gate-back { position: absolute; top: 22px; left: 50%; transform: translateX(-180px); color: var(--ps-ink); font-weight: 800; text-decoration: none; }
.gate-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 28px 26px 24px;
  text-align: center;
}
.gate-mark { width: 64px; height: 64px; margin: 0 auto 8px; display: block; border-radius: 18px; }
.gate-card h1 { margin: 6px 0 0; font-size: 1.7rem; }
.gate-q { margin: 4px 0 16px; color: var(--ps-ink-muted); font-weight: 700; }
.role-parent {
  display: grid;
  width: 100%;
  text-decoration: none;
  background: linear-gradient(180deg, #ff7b96, #ff5d84);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px 12px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(255, 93, 132, 0.35);
}
.role-parent small { font-weight: 700; font-size: 0.78rem; opacity: 0.95; }
.role-label { margin: 16px 0 8px; color: var(--ps-ink-muted); font-size: 0.85rem; font-weight: 800; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-btn {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 14px 8px;
  font-weight: 800;
  color: var(--ps-ink);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}
.role-btn:hover { border-color: #ffd0dc; background: #fff7f9; }
.gate-form { text-align: left; margin-top: 8px; display: grid; gap: 10px; }
.gate .flash-wrap { position: absolute; top: 64px; width: min(420px, calc(100% - 32px)); }
.role-submit { margin-top: 4px; cursor: pointer; }

/* Panel shell — dark sidebar, light canvas, pink logout */
.panel { margin: 0; background: #f4f7fb; color: var(--ps-ink); display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.panel-side { background: #1e293b; color: #e2e8f0; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; }
.panel-brand strong { display: block; color: #fff; font-family: var(--ps-font-display); font-size: 1.15rem; }
.panel-brand small { color: #94a3b8; font-weight: 700; }
.panel-logo { display: block; background: #fff; border-radius: 12px; padding: 6px 8px; }
.panel-logo img { display: block; height: 42px; width: auto; max-width: 100%; object-fit: contain; }
.settings-logo { display: block; height: 72px; width: auto; max-width: 100%; object-fit: contain; background: #f4f6fb; border-radius: 12px; padding: 8px; }
.quick-add {
  display: block; text-align: center; text-decoration: none; color: #fff !important; font-weight: 800;
  background: linear-gradient(180deg, #ff7b96, #ff4f7b); border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 8px 16px rgba(255, 79, 123, 0.35);
}
.panel-side nav { display: grid; gap: 4px; }
.panel-side nav a { color: #cbd5e1; text-decoration: none; font-weight: 800; padding: 0.55rem 0.7rem; border-radius: 10px; }
.panel-side nav a:hover, .panel-side nav a.is-on { background: #334155; color: #fff; }
.panel-side nav a.is-on { box-shadow: inset 3px 0 0 #ff6b8a; }
.panel-body { min-width: 0; }
.panel-top {
  background: #fff; border-bottom: 1px solid #e8eef5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 22px;
}
.panel-top h1 { margin: 0; font-size: 1.35rem; }
.panel-top p { margin: 2px 0 0; color: var(--ps-ink-muted); font-weight: 700; font-size: 0.85rem; }
.panel-user { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.logout-btn {
  background: linear-gradient(180deg, #ff7b96, #ff4f7b); color: #fff; border: 0; border-radius: 999px;
  padding: 8px 16px; font-weight: 800; cursor: pointer;
}
.panel-content { padding: 18px 22px 40px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04); }
.kpi small { display: block; color: var(--ps-ink-muted); font-weight: 800; }
.kpi strong { font-size: 1.45rem; font-family: var(--ps-font-display); }
.kpi-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; }
.kpi-ic.pink { background: #ffe8ee; color: #e11d48; }
.kpi-ic.green { background: #e6fff8; color: #047857; }
.kpi-ic.blue { background: #e8f6ff; color: #0369a1; }
.kpi-ic.sun { background: #fff8db; color: #92400e; }
.panel-card { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04); margin-bottom: 14px; }
.panel-card-head { display: flex; justify-content: space-between; align-items: center; }
.dash-profile { max-width: 880px; }
.dash-sec {
  background: #fff; border-radius: 16px; padding: 16px 16px 18px; margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.dash-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.05rem; }
.dash-sec h2 span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: #ff8a3d; color: #fff; font-size: 0.85rem;
}
.dash-sec .muted { margin: 0 0 10px; color: var(--ps-ink-muted); font-weight: 700; font-size: 0.9rem; }
.prog-row { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e5e7eb; }
.prog-row:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.sp-note { margin: 10px 0 0; color: #6b7280; font-weight: 700; }
.sp-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-links a { font-weight: 800; color: #2a2a72; }
.sp-main h3 { margin: 16px 0 6px; font-size: 1.05rem; color: #2a2a72; }

.plain-list { list-style: none; padding: 0; margin: 8px 0 0; }
.plain-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #eef2f7; font-weight: 700; }
.plain-list em { font-style: normal; color: #047857; font-size: 0.85rem; }

/* Public landing closer to the school homepage */
.ps-hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center;
  background: linear-gradient(135deg, #fff0f3 0%, #e7f6ff 55%, #fff8e8 100%);
  border-radius: 0 0 28px 28px;
  padding: 42px max(18px, calc((100% - 1120px) / 2)) 48px;
}
.ps-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 12px 0; }
.rainbow { display: inline-block; width: 42px; height: 22px; margin-right: 6px; vertical-align: middle;
  background: radial-gradient(circle at 50% 120%, transparent 46%, #ff6b8a 47% 54%, transparent 55%),
    radial-gradient(circle at 50% 130%, transparent 58%, #6bcbff 59% 66%, transparent 67%),
    radial-gradient(circle at 50% 140%, transparent 70%, #ffe066 71% 78%, transparent 79%);
}
.ps-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.ps-hero-art { position: relative; min-height: 280px; border-radius: 22px; overflow: hidden; box-shadow: var(--ps-shadow); }
.art-sky { position: absolute; inset: 0; background: linear-gradient(#b9ecff, #fff 55%, #d9ffe8); }
.art-arch {
  position: absolute; left: 12%; right: 12%; top: 18%; height: 62%;
  border: 14px solid #f472b6; border-bottom: 0; border-radius: 160px 160px 0 0;
  display: grid; place-items: center; font-family: var(--ps-font-display); font-weight: 700; color: #9d174d; text-align: center; background: rgba(255,255,255,.35);
}
.art-ball { position: absolute; width: 28px; height: 36px; border-radius: 50%; bottom: 18%; }
.art-ball.a { left: 18%; background: #fb7185; }
.art-ball.b { left: 46%; background: #38bdf8; }
.art-ball.c { right: 18%; background: #facc15; }
.search-wide { max-width: 760px; margin: 0 auto; }
.btn-send { background: linear-gradient(180deg, #38bdf8, #0284c7) !important; box-shadow: 0 8px 18px rgba(2, 132, 199, 0.28); width: 100%; }
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic a {
  min-height: 110px; border-radius: 16px; display: grid; place-items: center; text-decoration: none;
  color: #fff; font-family: var(--ps-font-display); font-size: 1.6rem; font-weight: 700;
}
.mosaic a small { display: block; font-family: var(--ps-font-body); font-size: 0.75rem; font-weight: 800; }
.mosaic a:nth-child(1) { background: linear-gradient(160deg, #fb7185, #f97316); }
.mosaic a:nth-child(2) { background: linear-gradient(160deg, #38bdf8, #22c55e); }
.mosaic a:nth-child(3) { background: linear-gradient(160deg, #a78bfa, #fb7185); }
.mosaic a:nth-child(4) { background: linear-gradient(160deg, #facc15, #fb7185); }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.check-list li { font-weight: 700; padding-left: 1.4rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 800; }
.news-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.news-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--ps-border); border-radius: 14px; padding: 12px; }
.news-list a { text-decoration: none; color: inherit; display: grid; }
.news-pin { width: 36px; height: 36px; border-radius: 10px; background: #fff7cc; flex: none; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.faq-accordion details { border-radius: 12px; }
.faq-accordion details[open] { background: #fff0f3; border-color: #ffd0dc; }
.faq-accordion summary { color: var(--ps-ink); }
.faq-accordion details[open] summary { color: var(--ps-coral-dark); }
@media (max-width: 900px) {
  .panel, .ps-hero, .about-split, .kpi-row, .quote-grid { grid-template-columns: 1fr; }
  .gate-back { left: 16px; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.pn-login {
  background: #ff8a3d !important; color: #fff !important; border-radius: 999px !important;
  padding: 0.45rem 1rem !important; font-weight: 800; min-height: 48px; display: inline-flex; align-items: center;
}
.pn-login:hover { background: #f97316 !important; color: #fff !important; }
.pn-hero {
  display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; gap: 8px;
  padding: 28px max(16px, calc((100% - 980px) / 2)) 10px; background: #fff;
}
.pn-hero h1 { text-align: center; font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 0 0 14px; color: #2a2a72; }
.pn-hero h1 span { color: #ff7a1a; }
.pn-kid svg { width: 110px; height: auto; }
.pn-search { max-width: 760px; margin: 0 auto; }
.pn-bar {
  display: flex; align-items: stretch; gap: 0; background: #fff; border: 2px solid #f0b429;
  border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(42, 42, 114, 0.06);
}
.pn-fields { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
.pn-fields select, .pn-name input, .pn-with-ico select {
  border: 0; border-radius: 0; min-height: 52px; box-shadow: none; background: #fff;
}
.pn-fields select + select { border-left: 1px solid #f3e2b0; }
.pn-find {
  border: 0; background: #ff8a3d; color: #fff; font-weight: 800; padding: 0 18px; cursor: pointer; min-width: 140px;
}
.pn-find:hover { background: #f97316; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 420px; margin: 0 auto 12px; }
.mode-switch label {
  min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 0 10px; border-radius: 999px; background: #f3f4f6; color: #2a2a72; white-space: nowrap;
}
.mode-switch label:has(input:checked) { background: #eef2ff; box-shadow: inset 0 0 0 2px #6d5efc; }
@media (max-width: 1100px) {
  .pn-kid { display: none; }
  .pn-hero { grid-template-columns: 1fr; }
}
.pn-name { flex: 1; }
.pn-name input { width: 100%; min-height: 52px; }
.pn-tagline { text-align: center; font-family: var(--ps-font-display); font-size: 1.7rem; font-weight: 700; margin: 16px 0 8px; }
.pn-tagline span:nth-child(1) { color: #ef5b2a; }
.pn-tagline span:nth-child(2) { color: #3cb371; }
.pn-tagline span:nth-child(3) { color: #e0a100; }
.pn-services {
  width: min(980px, calc(100% - 32px)); margin: 28px auto; background: #6d5efc; color: #fff;
  border-radius: 28px; padding: 28px 22px 32px; text-align: center;
}
.pn-services h2 { margin: 0 0 18px; font-size: 2rem; }
.pn-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pn-service-grid article { border: 1px dashed rgba(255,255,255,.7); border-radius: 16px; padding: 16px 12px; }
.pn-service-grid span { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 50%; background: #ffb703; color: #fff; font-weight: 800; }
.pn-service-grid h3 { margin: 0 0 6px; }
.pn-service-grid p { margin: 0; color: #efeaff; }
.pn-loved-title { color: #5b4bd6; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.loved-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loved-card {
  background: var(--tone, #e07a3d); color: #fff; text-decoration: none; border-radius: 28px;
  min-height: 210px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 16px;
}
.loved-photo {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff, #93c5fd 40%, #14532d); color: #fff; font-size: 2rem;
  font-family: var(--ps-font-display); border: 4px solid #fff;
}
.loved-card strong { font-size: 1.15rem; }
.loved-card small { opacity: .9; }
.pn-footer { background: #6a5ae8; color: #efeaff; margin: 28px 0 0; padding: 28px max(16px, calc((100% - 1100px) / 2)) 24px; }
.pn-footer a { color: #efeaff; text-decoration: none; font-weight: 700; }
.pn-footer .brand, .pn-footer strong { color: #fff; }
.pn-footer .brand-logo { height: 72px; max-width: 280px; background: #fff; border-radius: 14px; padding: 6px 10px; }
.pn-foot-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #5848dc; border-radius: 18px; padding: 14px 16px; margin-bottom: 22px;
}
.pn-foot-cta p { margin: 0; font-weight: 800; color: #fff; }
.pn-footer-top, .pn-footer-cols { display: grid; gap: 18px; }
.pn-footer-top { grid-template-columns: 1.3fr .8fr 1fr; margin-bottom: 22px; }
.pn-footer-cols { grid-template-columns: repeat(4, 1fr); }
.pn-footer-cols a, .pn-footer-top a:not(.brand) { display: block; font-size: 0.95rem; padding: 6px 0; }
.pn-register {
  display: inline-flex !important; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; background: #ffb703; color: #3b2f00 !important; border-radius: 999px;
  padding: 10px 16px !important; font-weight: 800; white-space: nowrap;
}
.site-nav .pn-register {
  background: #fff !important;
  color: #5b4bd6 !important;
  border: 1.5px solid #d9d6fe;
  box-shadow: none;
}
.pn-login { background: #6d5efc !important; }
.pn-login:hover { background: #5b4bd6 !important; }

body.public-site { background: #f7f8fc; }
.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 8px;
  padding: 28px 28px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 18%, #fff7d6 0 18%, transparent 19%),
    linear-gradient(180deg, #f3f7ff 0%, #fff 70%);
}
.home-kicker {
  display: inline-flex; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px;
  background: #eef2ff; color: #5b4bd6; font-weight: 800; font-size: 0.85rem;
}
.home-hero h1 { margin: 0 0 10px; color: #2a2a72; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
.home-hero h1 span { color: #ff7a1a; }
.home-lead { margin: 0 0 16px; max-width: 540px; color: #6b7280; font-weight: 700; }
.home-hero .pn-search { margin: 0; max-width: 640px; }
.home-hero .mode-switch { margin-left: 0; margin-right: 0; }
.home-block { width: min(1120px, calc(100% - 32px)); margin: 8px auto 18px; }
.home-or { text-align: center; color: #9ca3af; font-weight: 800; margin: 18px 0 10px; }
.home-areas { justify-content: center; }
.home-jobs { width: min(1120px, calc(100% - 32px)); margin: 0 auto 24px; color: #6b7280; font-weight: 700; }
.home-jobs a { color: #6d5efc; }
.home-hero .pn-bar { border-radius: 16px; border-color: #e7e5f4; }
.home-hero .pn-find { border-radius: 12px; margin: 6px; display: inline-flex; align-items: center; gap: 8px; }
.home-hero .pn-find svg { width: 18px; height: 18px; }
.pn-with-ico { display: flex; align-items: center; min-width: 0; }
.pn-with-ico select { min-width: 0; }
.pn-ico { color: #6d5efc; display: grid; place-items: center; padding-left: 10px; }
.pn-ico svg { width: 18px; height: 18px; }
.home-trust { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.home-trust li { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; min-width: 140px; align-items: start; }
.home-trust .trust-ico { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.home-trust .trust-ico svg { width: 16px; height: 16px; }
.trust-shield { background: #e0e7ff; color: #4f46e5; }
.trust-star { background: #fef3c7; color: #d97706; }
.trust-pin { background: #dcfce7; color: #059669; }
.home-trust strong { color: #2a2a72; font-size: 0.92rem; }
.home-trust span { color: #9ca3af; font-size: 0.78rem; font-weight: 700; }
.home-art img { width: min(100%, 420px); height: auto; display: block; margin-left: auto; }
.city-ico img { width: 40px; height: 40px; object-fit: contain; display: block; }
.home-sub { margin: 4px 0 0; color: #9ca3af; font-weight: 700; }
.title-ico { display: inline-flex; vertical-align: -4px; margin-right: 6px; }
.title-ico svg { width: 22px; height: 22px; }
.city-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.city-pick {
  display: flex; align-items: center; gap: 10px; min-height: 92px; padding: 14px;
  background: var(--wash, #fff); color: var(--ink, #2a2a72); text-decoration: none;
  border-radius: 18px; box-shadow: 0 8px 20px rgba(42, 42, 114, 0.05);
}
.city-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.city-ico svg { width: 40px; height: 40px; }
.city-copy { display: grid; }
.city-copy strong { font-size: 1.05rem; }
.city-copy small { font-weight: 700; opacity: 0.8; }
.city-go { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink, #2a2a72); }
.city-go svg { width: 16px; height: 16px; }
.home-areas svg { width: 14px; height: 14px; }
.home-school-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-school { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 10px 24px rgba(42, 42, 114, 0.06); display: grid; gap: 8px; }
.home-school-top { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.home-school-top strong { display: block; color: #2a2a72; font-size: 1.05rem; }
.home-school-pic { position: relative; width: 112px; height: 88px; border-radius: 16px; flex: none; overflow: hidden; background: #eef2ff; }
.home-school-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-school-badge {
  position: absolute; left: 6px; bottom: 6px; min-width: 28px; height: 22px; padding: 0 6px;
  border-radius: 8px; background: #fff; color: #5b4bd6; font-size: 0.72rem; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 2px 6px rgba(42, 42, 114, 0.12);
}
.home-school p { margin: 0; color: #6b7280; font-weight: 700; }
.home-school-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #2a2a72 !important; }
.home-stars { display: inline-flex; align-items: center; gap: 4px; color: #d97706 !important; }
.home-stars svg { width: 14px; height: 14px; }
.home-school-actions { display: flex; gap: 8px; }
.home-school-actions .btn { flex: 1; min-height: 44px; gap: 6px; }
.home-school-actions svg, .tag-verified svg { width: 14px; height: 14px; }
.tag-verified { display: inline-flex; align-items: center; gap: 4px; }
.home-services {
  width: min(1120px, calc(100% - 32px)); margin: 12px auto 18px; padding: 22px;
  display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 16px; align-items: center;
  background: #6d5efc; color: #fff; border-radius: 28px;
}
.home-services h2 { margin: 0 0 6px; }
.home-services-intro p { margin: 0; color: #efeaff; font-weight: 700; }
.home-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.home-service-grid article { background: #fff; color: #2a2a72; border-radius: 16px; padding: 14px; }
.home-service-grid span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #efeaff; color: #6d5efc; }
.home-service-grid span svg { width: 20px; height: 20px; }
.home-service-grid h3 { margin: 8px 0 4px; font-size: 1rem; }
.home-service-grid p { margin: 0; color: #6b7280; font-weight: 700; font-size: 0.9rem; }
.home-cta {
  width: min(1120px, calc(100% - 32px)); margin: 0 auto 18px; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #f3fff6; border-radius: 22px;
}
.home-cta-art { width: 92px; height: auto; flex: none; }
.home-cta h2 { margin: 0 0 4px; color: #2a2a72; font-size: 1.35rem; }
.home-cta p { margin: 0; color: #6b7280; font-weight: 700; }
.home-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 999px; background: #f5b400; color: #3b2f00; font-weight: 800; text-decoration: none; white-space: nowrap; }
.home-cta-btn svg { width: 18px; height: 18px; }
.foot-line { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; }
.foot-line svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.pn-footer { background: #2a2460; }
.pn-footer-top { grid-template-columns: 1.3fr 0.7fr 0.9fr auto; align-items: start; }
.footer-note { margin: 0; align-self: end; text-align: right; color: #ddd6fe; font-family: "Baloo 2", cursive; font-size: 1.4rem; line-height: 1.1; }
.footer-cities { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 16px; }
.footer-cities a { color: #ddd6fe; font-weight: 700; text-decoration: none; }
.seo-foot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 8px 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.seo-foot strong {
  display: block;
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #fff;
}
.seo-foot a {
  display: block;
  padding: 3px 0;
  color: #ddd6fe;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}
.seo-foot a:hover { color: #fff; }
.seo-foot .seo-more { margin-top: 6px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .seo-foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .seo-foot { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .home-hero, .home-services, .city-picks, .home-school-grid, .pn-footer-top { grid-template-columns: 1fr 1fr; }
  .home-hero { grid-template-columns: 1fr; }
  .home-art { display: flex; justify-content: center; }
  .home-art img { margin: 0 auto; width: min(280px, 80%); }
  .home-services-intro { grid-column: 1 / -1; }
  .footer-note { display: none; }
}
@media (max-width: 640px) {
  .home-hero { grid-template-columns: 1fr; padding: 18px 14px; margin-top: 8px; }
  .home-hero h1 { font-size: 1.7rem; }
  .home-school-grid, .home-service-grid, .pn-footer-top { grid-template-columns: 1fr; }
  .city-picks { grid-template-columns: 1fr 1fr; }
  .city-pick { min-height: 76px; padding: 10px; gap: 6px; }
  .city-ico { width: 32px; height: 32px; }
  .city-copy strong { font-size: 0.92rem; }
  .city-go { width: 22px; height: 22px; font-size: 1rem; }
  .home-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .home-cta-btn { width: 100%; }
  .home-trust { gap: 8px; }
  .home-trust li { min-width: 0; flex: 1; }
}
.site-header { overflow: visible; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-radius: 16px;
    padding: 8px;
    z-index: 60;
    box-shadow: 0 16px 40px rgba(42, 42, 114, 0.16);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; }
  .site-nav .pn-register, .site-nav .pn-login { justify-content: center; margin: 4px 0 0; white-space: normal; }
}
.pn-footer .footer-base { border-top-color: rgba(255,255,255,.25); color: #ddd6fe; }
.pn-footer .footer-base a { color: #fff; }
.mobile-tab, .mobile-dock { display: none; }
@media (max-width: 800px) {
  body.public-site { padding-bottom: 64px; }
  .pn-hero { grid-template-columns: 1fr; padding: 8px 16px 0; }
  .pn-kid { display: none; }
  .brand-logo { height: 44px; max-width: 58vw; }
  .pn-hero h1 { font-size: 1.55rem; line-height: 1.15; margin-bottom: 10px; }
  .pn-tagline { font-size: 1.25rem; margin: 12px 0 0; }
  .mode-switch label { font-size: 0.92rem; }
  .pn-bar, .pn-fields { display: grid; grid-template-columns: 1fr; }
  .pn-fields select + select { border-left: 0; border-top: 1px solid #f3e2b0; }
  .pn-find { min-height: 52px; background: #ff8a3d; color: #fff; width: 100%; }
  .pn-service-grid, .loved-row { grid-template-columns: 1fr 1fr; }
  .pn-footer-top, .pn-footer-cols { grid-template-columns: 1fr; }
  .pn-foot-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .pn-foot-cta .pn-register, .site-nav .pn-register { width: 100%; }
  .loved-card { min-height: 160px; }
  .loved-photo { width: 84px; height: 84px; }
  .mobile-tab {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 1px solid #e7e5f4; box-shadow: 0 -6px 18px rgba(42, 42, 114, 0.08);
  }
  .mobile-tab a { text-align: center; text-decoration: none; color: #2a2a72; font-weight: 800; font-size: 0.82rem; padding: 12px 4px 14px; min-height: 48px; }
  .mobile-dock {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: #fff; border-top: 1px solid #e7e5f4;
  }
  .mobile-dock a { text-align: center; text-decoration: none; font-weight: 800; padding: 14px 4px; min-height: 52px; color: #2a2a72; }
  .mobile-dock a:nth-child(2) { color: #128c7e; }
  body.public-site:has(.mobile-dock) .mobile-tab { display: none; }
  .filters { position: static; }
  .site-nav a, .pn-login { min-height: 44px; display: flex; align-items: center; }
  .card-actions .btn, .action-row .btn { min-height: 44px; }
}
@media (max-width: 560px) {
  .pn-service-grid, .pn-footer-cols { grid-template-columns: 1fr; }
  .loved-row { grid-template-columns: 1fr 1fr; }
  .loved-card { min-height: 0; height: auto; padding: 14px 8px 12px; border-radius: 20px; align-content: start; overflow: visible; }
  .loved-card .loved-photo { width: 56px; height: 56px; font-size: 1.25rem; border-width: 3px; }
  .loved-card strong { font-size: 0.95rem; line-height: 1.2; }
  .loved-card small { display: block; font-size: 0.75rem; }
}

body:has(.welcome-page) { background: #f4f6fb; }
body:has(.welcome-page) .flash-wrap { width: min(420px, calc(100% - 32px)); margin: 16px auto 0; }
.welcome-page {
  background: #f4f6fb;
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px 16px 24px;
}
.welcome-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(42, 42, 114, 0.08);
  padding: 36px 28px 28px;
  text-align: center;
  display: grid;
  gap: 14px;
}
.welcome-card h1 { margin: 0; color: #5c63b8; font-size: 1.9rem; }
.welcome-card .sub { margin: -6px 0 6px; color: #6b7280; font-weight: 700; }
.welcome-card input {
  width: 100%;
  background: #f3f4f6;
  border: 0;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 14px;
}
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 46px; }
.pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; color: #9ca3af;
  display: grid; place-items: center;
}
.welcome-extra { margin: -4px 0 0; text-align: left; }
.welcome-extra a { color: #5c63b8; font-weight: 700; text-decoration: none; }
.welcome-submit {
  width: 100%; min-height: 48px; border: 0; border-radius: 12px;
  background: #e36b4a; color: #fff; font-weight: 800; font-size: 1rem;
}
.welcome-submit:hover { background: #d45b3b; }
.welcome-foot, .welcome-parent { margin: 0; color: #4b5563; font-weight: 700; }
.welcome-foot a, .welcome-parent a { color: #4f46e5; }
.welcome-parent a { color: #e36b4a; }
.login-demo { margin: 14px 0 0; text-align: center; color: #9ca3af; font-size: 0.78rem; font-weight: 700; }
.login-foot { display: flex; justify-content: center; gap: 16px; padding: 8px 16px 20px; }
.login-foot a { color: #6b7280; font-weight: 800; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.register-page { align-content: start; justify-items: center; min-height: 0; padding-top: 20px; }
.register-card { width: min(440px, 100%); text-align: left; }
.register-card h1, .register-card .sub { text-align: center; }
.register-card h1 { color: #2a2a72; font-size: clamp(1.6rem, 4vw, 1.9rem); }
.reg-kicker { margin: 8px 0 0; color: #ff7a1a; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.register-card label { color: #2a2a72; font-weight: 800; }
.register-card input, .register-card select { background: #f3f4f6; border: 0; border-radius: 12px; min-height: 48px; }
.register-card select:disabled { color: #9ca3af; }
.register-card .pass-wrap input { width: 100%; }
.register-card .welcome-foot { text-align: center; }
@media (max-width: 800px) {
  .welcome-page { min-height: calc(100dvh - 148px); padding: 12px 16px 8px; }
  .welcome-card { padding: 28px 18px 22px; }
  .register-page { padding-bottom: 16px; }
}

.jobs-page, .job-page { width: min(980px, calc(100% - 32px)); margin: 0 auto 36px; }
.jobs-hero { text-align: center; padding: 28px 0 8px; }
.jobs-hero h1 { margin: 0; color: #2a2a72; font-size: clamp(2rem, 4vw, 3rem); }
.jobs-hero h1 span { color: #ff7a1a; }
.jobs-hero p { margin: 8px auto 0; max-width: 520px; color: #6b7280; font-weight: 700; }
.job-search { display: flex; gap: 8px; max-width: 640px; margin: 18px auto 12px; }
.job-search input { flex: 1; min-height: 52px; border: 2px solid #f0b429; border-radius: 14px; padding: 0 14px; background: #fff; }
.job-search button { min-height: 52px; min-width: 108px; border: 0; border-radius: 14px; background: #ff8a3d; color: #fff; font-weight: 800; }
.job-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.job-chips a { text-decoration: none; color: #2a2a72; background: #fff; border: 1px solid #e7e5f4; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.job-chips a small { color: #ff7a1a; font-weight: 800; }
.job-chips a.is-on { background: #6d5efc; color: #fff; border-color: transparent; }
.job-chips a.is-on small { color: #ffe7c2; }
.job-count { text-align: center; color: #6b7280; font-weight: 800; }
.job-board { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.job-card { display: grid; gap: 4px; background: #fff; border-radius: 18px; padding: 16px; text-decoration: none; color: inherit; box-shadow: 0 10px 28px rgba(42, 42, 114, 0.06); min-height: 180px; align-content: start; }
.job-card h2 { margin: 6px 0 0; color: #2a2a72; font-size: 1.35rem; }
.job-card p { margin: 0; font-weight: 800; }
.job-where, .job-pay { color: #6b7280 !important; font-weight: 700 !important; }
.job-pill { display: inline-flex; width: fit-content; background: #fff4ea; color: #c2410c; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 0.8rem; }
.job-go { margin-top: 8px; color: #fff; background: #ff8a3d; border-radius: 999px; padding: 8px 12px; font-weight: 800; width: fit-content; }
.job-empty { background: #fff; border-radius: 16px; padding: 18px; text-align: center; font-weight: 800; }
.job-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; padding-top: 22px; }
.job-page h1 { margin: 8px 0; color: #2a2a72; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.job-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.job-facts div { flex: 1 1 150px; }
.job-facts div { background: #fff; border-radius: 14px; padding: 10px 12px; }
.job-facts dt { font-size: 0.75rem; color: #6b7280; font-weight: 800; }
.job-facts dd { margin: 2px 0 0; font-weight: 800; color: #2a2a72; }
.job-apply { position: sticky; top: 84px; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 12px 32px rgba(42, 42, 114, 0.08); display: grid; gap: 10px; }
.job-apply h2 { margin: 0; color: #2a2a72; font-size: 1.3rem; }
.job-apply p { margin: 0; color: #6b7280; font-weight: 700; font-size: 0.9rem; }
.job-apply label { display: block; font-weight: 800; color: #2a2a72; }
.job-apply label span { color: #9ca3af; font-weight: 700; }
.job-apply input, .job-apply textarea { background: #f3f4f6; border: 0; border-radius: 12px; min-height: 48px; }
.job-apply textarea { min-height: 88px; padding: 10px 12px; }
.job-quick { display: flex; gap: 8px; }
.job-quick a { flex: 1; text-align: center; text-decoration: none; font-weight: 800; border-radius: 12px; padding: 10px 8px; background: #f4f6fb; color: #2a2a72; min-height: 44px; }
.job-school-link a { font-weight: 800; color: #6d5efc; }
#apply { scroll-margin-top: 88px; }
@media (max-width: 800px) {
  .job-board, .job-layout { grid-template-columns: 1fr; }
  .job-search { flex-direction: column; }
  .job-search button { width: 100%; }
  .job-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .job-chips a { flex: none; }
  .home-areas { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .job-apply { position: static; }
  .mobile-dock.job-dock { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
  .mobile-dock.job-dock a:last-child { background: #ff8a3d; color: #fff; }
}

.cities-page { width: min(980px, calc(100% - 32px)); margin: 0 auto 36px; }
.city-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.city-card { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 10px 28px rgba(42, 42, 114, 0.06); }
.city-card-main { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; min-height: 72px; }
.city-card-main .loved-photo { width: 72px; height: 72px; font-size: 1.7rem; }
.city-card-main strong { display: block; color: #2a2a72; font-size: 1.35rem; }
.city-meta { color: #6b7280; font-weight: 700; }
.city-areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.city-areas a { text-decoration: none; color: #2a2a72; background: #f4f6fb; border-radius: 999px; padding: 8px 12px; min-height: 40px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.city-areas a small { color: #ff7a1a; }
.city-more { margin: 28px 0 0; text-align: center; color: #2a2a72; }
.city-note { text-align: center; color: #6b7280; font-weight: 700; margin-top: 4px; }
@media (max-width: 800px) {
  .city-board { grid-template-columns: 1fr; }
  .city-card-main { grid-template-columns: 64px 1fr; }
  .city-card-main .job-go { grid-column: 1 / -1; justify-self: start; }
}

.home-block { padding-top: 8px; }
.home-or { text-align: center; margin: 18px 0 8px; color: #6b7280; font-weight: 800; }
.home-areas { margin-bottom: 8px; }
.home-schools .school-card { border-radius: 18px; }
.home-jobs { width: min(980px, calc(100% - 32px)); margin: 8px auto 28px; text-align: center; font-weight: 800; color: #2a2a72; }
.home-jobs a { color: #ff7a1a; }

.list-page { width: min(980px, calc(100% - 32px)); margin: 0 auto 36px; }
.list-hero { padding-top: 18px; }
.list-hero h1 span { color: #ff7a1a; }
.list-areas, .list-quick { justify-content: flex-start; margin: 10px 0; }
.list-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-bar form { display: flex; align-items: center; gap: 8px; }
.list-bar label { display: flex; align-items: center; gap: 8px; font-weight: 800; color: #2a2a72; }
.list-bar select { min-height: 44px; width: auto; border-radius: 12px; }
.more-filters { background: #fff; border-radius: 16px; padding: 4px 14px 12px; margin: 8px 0 16px; box-shadow: 0 8px 20px rgba(42, 42, 114, 0.05); }
.more-filters summary { font-weight: 800; color: #2a2a72; min-height: 48px; display: flex; align-items: center; cursor: pointer; }
.more-filters .filters { border: 0; box-shadow: none; padding: 0 0 8px; grid-template-columns: 1fr 1fr; }
.more-filters .welcome-submit { grid-column: 1 / -1; }
.list-cards { margin-top: 8px; }
.list-page .school-card { border-radius: 18px; box-shadow: 0 10px 28px rgba(42, 42, 114, 0.06); }
.list-page .card-actions .btn { flex: 1; min-height: 44px; }
.list-page .faq { margin-top: 22px; }

.school-extra { margin-top: 4px; }
.school-extra summary { font-weight: 800; color: #6d5efc; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.school-extra form, .school-extra label { margin-top: 8px; }
.school-related { width: min(1120px, calc(100% - 32px)); margin: 28px auto; }
.school-related h2, .sp-main h2 { color: #2a2a72; }
#enquire, #overview, #programs, #about, #reviews { scroll-margin-top: 88px; scroll-margin-bottom: 72px; }

.sp-page { background: #f7f8fc; }
.sp-hero { background: #2a2a72; color: #fff; padding: 18px 16px 36px; }
.sp-hero .crumbs { width: min(1120px, 100%); margin: 0 auto 12px; color: #c4b5fd; }
.sp-hero .crumbs a { color: #ddd6fe; }
.sp-board {
  width: min(1120px, 100%); margin: 0 auto; background: #fff; color: #2a2a72;
  border-radius: 18px; padding: 20px 20px 0; box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.sp-board h1 { margin: 6px 0 8px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.sp-tag, .sp-addr, .sp-time { margin: 0 0 8px; color: #4b5563; font-weight: 700; display: flex; gap: 8px; align-items: flex-start; }
.sp-addr svg, .sp-time svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.sp-time { color: #ff7a1a; }
.sp-acts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 14px -20px 0;
  border-top: 1px solid #eee;
}
.sp-acts a, .sp-acts button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 78px; background: #fff; border: 0; border-right: 1px solid #eee; color: #2a2a72;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.sp-acts a:last-child, .sp-acts button { border-right: 0; }
.sp-acts svg { width: 22px; height: 22px; color: #6d5efc; }
.sp-acts .is-wa, .sp-acts .is-wa svg { color: #128c7e; }
.sp-body { background: #f7f8fc; padding: 0 16px 36px; margin-top: -18px; }
.sp-tabs {
  width: min(1120px, 100%); margin: 0 auto; display: flex; gap: 22px; overflow-x: auto;
  padding: 8px 8px 0;
}
.sp-tabs a { color: #2a2a72; text-decoration: none; font-weight: 800; padding: 12px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.sp-tabs a:first-child { color: #ff7a1a; border-bottom-color: #ff7a1a; }
.sp-layout { width: min(1120px, 100%); margin: 18px auto 0; display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.sp-enquire { grid-column: 2; grid-row: 1; position: sticky; top: 84px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 36px rgba(42,42,114,0.12); }
.sp-main { grid-column: 1; grid-row: 1; min-width: 0; }
.sp-enquire-head { display: flex; justify-content: space-between; gap: 8px; background: #eef2ff; padding: 14px; }
.sp-enquire-head h2 { margin: 0; font-size: 1.2rem; color: #2a2a72; }
.sp-enquire-head p { margin: 4px 0 0; color: #6b7280; font-weight: 700; font-size: 0.85rem; }
.sp-enquire-head img { width: 72px; height: auto; }
.sp-enquire form { padding: 12px 14px 16px; }
.sp-enquire input, .sp-enquire textarea { background: #f3f4f6; border: 0; border-radius: 999px; min-height: 46px; }
.sp-enquire textarea { border-radius: 14px; }
.sp-enquire .welcome-submit { width: 100%; border-radius: 999px; }
.sp-main > section { background: transparent; }
.sp-main h2 { text-align: center; margin: 8px 0 16px; }
.sp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-facts article { background: #fff; border-radius: 16px; padding: 14px; }
.sp-facts article:first-child { grid-column: 1 / -1; }
.sp-facts small { display: block; color: #9ca3af; font-weight: 800; }
.sp-facts strong { color: #2a2a72; }
.sp-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-programs article { background: #fff; border-radius: 18px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.sp-programs img { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; background: #fff7ed; }
.sp-programs strong { display: block; color: #2a2a72; }
.sp-programs span, .sp-programs p { display: block; color: #6b7280; font-weight: 700; font-size: 0.88rem; margin: 2px 0 0; }
.sp-facilities ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.sp-facilities li { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 800; color: #2a2a72; font-size: 0.85rem; }
.sp-facilities svg { width: 64px; height: 64px; background: #fff; border-radius: 16px; padding: 8px; }
.sp-reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-reviews blockquote { background: #fff; border-radius: 16px; padding: 14px; margin: 0; }
.sp-reviews p { margin: 0 0 10px; }
.sp-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dbe4ff; color: #4338ca; font-size: 0.72rem; font-weight: 800; margin-right: 6px; }
@media (max-width: 980px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-enquire { position: static; grid-column: 1; grid-row: 1; }
  .sp-main { grid-column: 1; grid-row: 2; }
  .sp-facilities ul { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .sp-acts { display: none; }
  .sp-page .mobile-dock { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
  .sp-page .mobile-dock a:last-child { background: #ff8a3d; color: #fff; }
  .sp-programs, .sp-reviews, .sp-facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp-board { padding: 16px 14px 8px; }
  .sp-facilities ul { grid-template-columns: 1fr 1fr; }
  .sp-body { padding-bottom: 24px; }
}
.locate-pop {
  width: min(420px, calc(100% - 32px)); border: 0; border-radius: 22px; padding: 28px 22px 22px;
  box-shadow: 0 24px 60px rgba(42, 42, 114, 0.25); color: #2a2a72; text-align: center; position: relative;
}
.locate-pop::backdrop { background: rgba(28, 22, 56, 0.55); }
.locate-pop h2 { margin: 0 0 6px; font-size: 1.45rem; }
.locate-pop p { margin: 0 0 16px; color: #6b7280; font-weight: 700; }
.locate-pop form { display: grid; gap: 10px; }
.locate-pop select { min-height: 48px; border-radius: 999px; background: #f3f4f6; border: 0; text-align: left; }
.locate-pop .welcome-submit { min-height: 48px; }
.locate-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; background: #eef2ff; color: #6d5efc; }
.locate-mark svg { width: 26px; height: 26px; }
.locate-close {
  position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1; color: #9ca3af; cursor: pointer;
}
@media (max-width: 800px) {
  .more-filters .filters { grid-template-columns: 1fr; }
  .list-bar { align-items: stretch; }
  .list-bar form, .list-bar label, .list-bar select { width: 100%; }
}

.teachers-page { width: min(980px, calc(100% - 32px)); margin: 0 auto 36px; }
.teacher-board { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.teacher-card { display: grid; grid-template-columns: 64px 1fr; gap: 8px 12px; align-content: start; background: #fff; border-radius: 18px; padding: 16px; text-decoration: none; color: inherit; box-shadow: 0 10px 28px rgba(42, 42, 114, 0.06); min-height: 160px; }
.teacher-card .loved-photo { width: 64px; height: 64px; font-size: 1.5rem; }
.teacher-copy { min-width: 0; }
.teacher-copy h2 { margin: 4px 0 0; color: #2a2a72; font-size: 1.25rem; }
.teacher-copy p { margin: 2px 0 0; font-weight: 800; }
.teacher-bio { grid-column: 1 / -1; margin: 0; color: #6b7280; font-weight: 700; }
.teacher-card .job-go { grid-column: 1 / -1; }
@media (max-width: 800px) {
  .teacher-board { grid-template-columns: 1fr; }
}

.guide-list { display: grid; gap: 14px; }
.guide-list article { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 10px 28px rgba(42, 42, 114, 0.06); }
.guide-list h2 { margin: 0 0 6px; font-size: 1.2rem; }
.guide-article { width: min(760px, calc(100% - 32px)); margin: 0 auto 40px; }
.guide-article .body { white-space: pre-wrap; }
.home-or { font-size: 1.05rem; font-weight: 800; text-align: center; margin: 22px 0 10px; }
