/* WhatSuburb v4.7.0 — map-first tabbed area page */
.area-tabs-shell{position:relative;margin:-2px 0 22px;border-bottom:1px solid #e7ebe8;background:#fff}
.area-tabs{display:flex;align-items:flex-end;gap:4px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:0 2px}
.area-tabs::-webkit-scrollbar{display:none}
.area-tab{appearance:none;border:0;border-bottom:3px solid transparent;background:transparent;color:#667085;white-space:nowrap;padding:13px 18px 11px;font:800 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;cursor:pointer;transition:.18s ease}
.area-tab:hover{color:#101828;background:#f8faf9}
.area-tab.active{color:#087a3c;border-bottom-color:#10a650}
.area-tab-more{margin-left:auto;color:#475467}.area-tab-more span{font-size:17px;margin-left:3px;vertical-align:-1px}
.area-tab-stage{margin-bottom:26px}.area-tab-panel{display:none}.area-tab-panel.active{display:block}
.area-tab-panel>.area-layout{margin-top:0}
.tab-intro{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin:3px 0 16px}.tab-intro h2{margin:3px 0 0}.tab-intro p{max-width:610px;margin:0;color:#667085;font-size:10px;line-height:1.5}
.tab-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.area-tab-panel .nearby-card{height:auto;min-height:180px}
.tab-placeholder{border:1px dashed #ced8d2;border-radius:14px;background:#fbfdfb;padding:20px}.tab-placeholder small{display:block;color:#0c9448;font-size:8px;font-weight:900;letter-spacing:1px}.tab-placeholder h3{margin:6px 0 5px}.tab-placeholder p{margin:0;color:#667085;font-size:10px;line-height:1.5}
.more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.more-link-card{border:1px solid #e3e8e5;border-radius:14px;padding:18px;background:#fff}.more-link-card b,.more-link-card span{display:block}.more-link-card b{font-size:13px}.more-link-card span{font-size:9px;color:#667085;margin-top:6px;line-height:1.45}
/* Once cards are rehomed, the old neighbourhood wrapper is only a staging container. */
.neighbourhood-section.ws-tabs-rehomed{display:none!important}
@media(max-width:800px){.area-tabs-shell{margin-top:-8px}.area-tab{padding:12px 14px 10px;font-size:11px}.area-tab-more{margin-left:0}.tab-intro{display:block}.tab-intro p{margin-top:7px}.tab-card-grid,.more-grid{grid-template-columns:1fr}.area-tab-stage{margin-bottom:18px}}

/* v4.7.2 — persistent school list + selected-school detail below it */
#nearbySchools .nearby-item-button.selected{background:#f3fbf6;border-radius:10px;box-shadow:inset 3px 0 0 #13a05a}
.school-detail-panel{margin:18px 0 28px;border:1px solid #dbe5df;border-radius:18px;background:#fff;padding:22px;scroll-margin-top:18px}
.school-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid #e9eeeb;padding-bottom:16px}
.school-detail-top h3{margin:5px 0 5px;font-size:26px;color:#10233d}
.school-detail-top p{margin:0;color:#667085}
.school-detail-close{border:0;background:#f3f6f4;width:36px;height:36px;border-radius:50%;font-size:22px;cursor:pointer;color:#344054}
.school-detail-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:18px 0}
.school-detail-grid>div{background:#f7faf8;border-radius:12px;padding:12px}
.school-detail-grid small{display:block;color:#667085;font-size:11px;margin-bottom:5px}
.school-detail-grid strong{display:block;font-size:13px;color:#10233d;overflow-wrap:anywhere}
.school-detail-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.school-detail-sections article{border:1px solid #e6ece8;border-radius:14px;padding:16px}
.school-detail-sections h4{margin:0 0 10px;color:#10233d;font-size:15px}
.school-detail-sections p{color:#596579;line-height:1.55;font-size:13px;margin:7px 0}
.school-detail-sections a{color:#078343;font-weight:700;text-decoration:none}
.school-data-note{background:#fbfcfb;border-radius:10px;padding:10px}
.school-detail-source{margin-top:14px;color:#8792a5;font-size:11px}
@media(max-width:900px){.school-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.school-detail-sections{grid-template-columns:1fr}}
@media(max-width:560px){.school-detail-panel{padding:16px;border-radius:14px}.school-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.school-detail-top h3{font-size:21px}}

/* v4.8.0 — database-backed school finder */
[data-nearby-card="schools"]{padding:18px;min-height:0}
[data-nearby-card="schools"] .nearby-list{margin-top:14px}
.school-filter-row{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.school-filter{border:1px solid #dce5e0;background:#fff;color:#344054;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:750;cursor:pointer}
.school-filter span{color:#7b8794;font-weight:650}
.school-filter.active{background:#10233d;border-color:#10233d;color:#fff}.school-filter.active span{color:#d9e4ef}
.school-results-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 0 8px;border-bottom:1px solid #edf1ef;color:#667085;font-size:10px}
.school-results-meta b{color:#10233d;font-size:11px}
.school-result-row{width:100%;border:0;background:transparent;text-align:left;cursor:pointer;align-items:center;padding:11px 2px!important}
.school-result-row:hover,.school-result-row.selected{background:#f6faf7;border-radius:9px;padding-left:8px!important;padding-right:8px!important}
.school-result-row b{font-size:11px}.school-result-row small{font-size:9px;line-height:1.4}
@media(max-width:600px){.school-filter-row{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.school-filter{flex:0 0 auto}.school-results-meta{align-items:flex-start;flex-direction:column;gap:2px}.school-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v4.8.3 — DfE admissions history */
.school-admissions-card{grid-column:span 2}.admissions-loading,.admissions-empty,.admissions-error{padding:12px;border-radius:10px;background:#f7faf8;color:#667085;font-size:12px}.admissions-error{background:#fff7f5;color:#9f3a2e}.admissions-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.admissions-head h4{margin:4px 0 0!important;font-size:17px!important}.admissions-history-count{white-space:nowrap;background:#eef7f1;color:#08783e;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:750}.admission-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.admission-metric{background:#f7faf8;border-radius:11px;padding:11px}.admission-metric strong{display:block;color:#10233d;font-size:20px;line-height:1.1}.admission-metric span{display:block;color:#667085;font-size:10px;margin-top:5px;line-height:1.3}.admissions-demand{display:flex;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border:1px solid #e3ebe6;border-radius:10px;font-size:11px;color:#4b596b}.admissions-demand b{color:#10233d}.admissions-note{font-size:10px!important;color:#7b8794!important}.admissions-history{margin-top:10px}.admissions-history summary{cursor:pointer;color:#08783e;font-size:11px;font-weight:750}.admissions-table-wrap{overflow-x:auto;margin-top:10px}.admissions-history table{width:100%;border-collapse:collapse;font-size:10px;white-space:nowrap}.admissions-history th,.admissions-history td{text-align:left;padding:7px 8px;border-bottom:1px solid #edf1ef}.admissions-history th{color:#667085;background:#f8faf9}.admissions-history td{color:#344054}
@media(max-width:900px){.school-admissions-card{grid-column:auto}.admission-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.admissions-demand{flex-direction:column;gap:3px}.admission-metric strong{font-size:18px}}


/* v4.9.0 — School Explorer: desktop side panel + map carousel + mobile drawer */
.school-explorer-grid{display:grid;grid-template-columns:1fr;gap:0;min-width:0}
.school-explorer-side,.school-map-tools,.school-map-carousel-shell,.school-mobile-details{display:none}
body.ws-schools-active .area-map-top{margin-bottom:18px}
body.ws-schools-active .area-map-top .layer-pills,body.ws-schools-active .map-filter-note{display:none}
body.ws-schools-active .school-explorer-grid{grid-template-columns:minmax(260px,31%) minmax(0,1fr);gap:12px;align-items:stretch}
body.ws-schools-active .school-explorer-side{display:block;border:1px solid #dfe7e2;border-radius:18px;background:#fff;min-height:500px;max-height:570px;overflow:auto;scrollbar-width:thin}
body.ws-schools-active .school-map-canvas{position:relative;min-width:0}
body.ws-schools-active .area-map-top #areaMap{height:570px;border-radius:18px}
.school-explorer-empty{padding:24px;color:#667085}.school-explorer-empty h3{margin:6px 0 8px;color:#10233d;font-size:20px}.school-explorer-empty p{margin:0;font-size:12px;line-height:1.55}
.school-map-tools{position:absolute;z-index:650;left:12px;right:12px;top:12px;align-items:center;gap:8px;pointer-events:none}
body.ws-schools-active .school-map-tools{display:flex}
.school-map-filters{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none;pointer-events:auto;padding:2px}.school-map-filters::-webkit-scrollbar{display:none}
.school-map-filter{border:1px solid rgba(16,35,61,.14);background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-radius:999px;padding:8px 11px;font-size:10px;font-weight:800;color:#344054;white-space:nowrap;box-shadow:0 2px 10px rgba(16,24,40,.08);cursor:pointer}.school-map-filter.active{background:#10233d;color:#fff;border-color:#10233d}
.school-more-select{appearance:none;border:1px solid rgba(16,35,61,.14);background:rgba(255,255,255,.96);border-radius:999px;padding:8px 28px 8px 11px;font:800 10px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#344054;box-shadow:0 2px 10px rgba(16,24,40,.08);cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,#667085 50%),linear-gradient(135deg,#667085 50%,transparent 50%);background-position:calc(100% - 13px) 12px,calc(100% - 9px) 12px;background-size:4px 4px,4px 4px;background-repeat:no-repeat}
.school-drawer-trigger{display:none;pointer-events:auto;border:0;background:#10233d;color:#fff;border-radius:999px;padding:9px 12px;font-size:10px;font-weight:850;box-shadow:0 3px 14px rgba(16,24,40,.18)}.school-drawer-trigger b{background:#fff;color:#10233d;border-radius:999px;padding:2px 6px;margin-left:3px}
.school-map-carousel-shell{position:absolute;z-index:640;left:12px;right:12px;bottom:12px;align-items:center;gap:6px;pointer-events:none}
body.ws-schools-active .school-map-carousel-shell{display:flex}
.school-map-carousel{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;pointer-events:auto;flex:1;padding:2px}.school-map-carousel::-webkit-scrollbar{display:none}
.school-map-card{flex:0 0 180px;scroll-snap-align:start;border:1px solid rgba(16,35,61,.12);background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-radius:12px;padding:10px 11px;text-align:left;box-shadow:0 4px 16px rgba(16,24,40,.12);cursor:pointer;min-height:74px}.school-map-card b,.school-map-card span,.school-map-card small{display:block}.school-map-card b{font-size:11px;color:#10233d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.school-map-card span{font-size:9px;color:#667085;margin:4px 0}.school-map-card small{font-size:10px;color:#08783e;font-weight:800}.school-map-card.selected{border:2px solid #10a650;background:#f3fbf6;padding:9px 10px}
.school-carousel-arrow{pointer-events:auto;width:31px;height:31px;border:1px solid #dfe7e2;background:#fff;border-radius:50%;font-size:22px;line-height:1;color:#344054;box-shadow:0 3px 12px rgba(16,24,40,.12);cursor:pointer}
.poi.poi-selected{outline:4px solid rgba(16,166,80,.22);box-shadow:0 0 0 2px #10a650,0 5px 16px rgba(16,24,40,.25);transform:rotate(-45deg) scale(1.18)!important}

/* compact school information panel */
.school-profile-compact{padding:18px}.school-profile-head{padding:0 0 14px;border-bottom:1px solid #edf1ef}.school-profile-head .area-kicker{font-size:8px}.school-profile-head h3{font-size:20px;line-height:1.18;margin:6px 0;color:#10233d}.school-profile-head p{font-size:11px;color:#667085;margin:0}.school-profile-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.school-profile-badges span{background:#f1f7f3;border-radius:999px;padding:5px 8px;font-size:9px;color:#365244;font-weight:750}.school-accordion{border-bottom:1px solid #e8eeea}.school-accordion>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:14px 1px;font-size:11px;font-weight:850;color:#10233d}.school-accordion>summary::-webkit-details-marker{display:none}.school-accordion>summary:after{content:'+';font-size:17px;color:#667085;font-weight:500}.school-accordion[open]>summary:after{content:'−'}.school-accordion-body{padding:0 1px 14px}.school-facts{display:grid;grid-template-columns:1fr 1.1fr;gap:0}.school-facts div{display:contents}.school-facts span,.school-facts b{padding:6px 0;border-bottom:1px dashed #eef2ef;font-size:10px}.school-facts span{color:#667085}.school-facts b{color:#344054;text-align:right;overflow-wrap:anywhere}.school-placeholder{font-size:10px;line-height:1.5;color:#667085;background:#f8faf9;border-radius:10px;padding:10px}.school-profile-source{font-size:8px;line-height:1.45;color:#98a2b3;margin-top:12px}
.school-profile-compact .admissions-head{display:block}.school-profile-compact .admissions-history-count{display:inline-block;margin-top:7px}.school-profile-compact .admission-metrics{grid-template-columns:1fr 1fr}.school-profile-compact .admission-metric strong{font-size:17px}.school-profile-compact .admissions-demand{display:block}.school-profile-compact .admissions-demand span{display:block;margin-top:4px}.school-profile-compact .admissions-table-wrap{max-width:100%}

/* Mobile drawer */
.school-mobile-drawer,.school-mobile-drawer-backdrop{display:none}
@media(max-width:800px){
  body.ws-schools-active .school-explorer-grid{display:block}
  body.ws-schools-active .school-explorer-side{display:none}
  body.ws-schools-active .area-map-top #areaMap{height:430px;border-radius:14px}
  body.ws-schools-active .school-map-tools{display:flex;align-items:flex-start;left:8px;right:8px;top:8px}
  .school-drawer-trigger{display:block;flex:0 0 auto}
  .school-map-filters{flex:1}
  .school-map-filter{padding:8px 10px}
  .school-more-select{padding-top:8px;padding-bottom:8px}
  body.ws-schools-active .school-map-carousel-shell{left:8px;right:8px;bottom:8px}
  .school-carousel-arrow{display:none}
  .school-map-card{flex-basis:150px;min-height:67px;padding:9px}.school-map-card.selected{padding:8px}
  .school-mobile-details{display:none}
  body.ws-schools-active .school-mobile-details.has-school{display:block;margin-top:10px;border:1px solid #dfe7e2;border-radius:14px;background:#fff}
  .school-profile-compact{padding:15px}.school-profile-head h3{font-size:18px}
  .school-mobile-drawer-backdrop.open{display:block;position:fixed;inset:0;background:rgba(16,24,40,.35);z-index:5000}
  .school-mobile-drawer{display:block;position:fixed;z-index:5001;left:0;top:0;bottom:0;width:min(86vw,340px);background:#fff;transform:translateX(-105%);transition:transform .24s ease;box-shadow:18px 0 45px rgba(16,24,40,.16);padding:18px 14px calc(18px + env(safe-area-inset-bottom));overflow:auto}
  .school-mobile-drawer.open{transform:translateX(0)}
  .school-drawer-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf1ef;padding-bottom:12px}.school-drawer-head h3{margin:3px 0 0;font-size:23px}.school-drawer-head button{border:0;background:#f3f6f4;width:34px;height:34px;border-radius:50%;font-size:22px;color:#344054}
  .school-drawer-filter{display:flex;gap:5px;overflow-x:auto;padding:12px 0;scrollbar-width:none}.school-drawer-filter::-webkit-scrollbar{display:none}
  .school-drawer-list{display:grid;gap:5px}.school-drawer-row{border:0;background:#fff;border-bottom:1px solid #edf1ef;text-align:left;padding:10px 5px;display:grid;grid-template-columns:1fr auto;gap:8px;cursor:pointer}.school-drawer-row b{font-size:11px;color:#10233d}.school-drawer-row small{display:block;color:#667085;font-size:9px;margin-top:4px}.school-drawer-row span{font-size:9px;color:#08783e;font-weight:800}.school-drawer-row.selected{background:#f3fbf6;border-radius:9px;border-bottom-color:transparent;padding-left:9px;padding-right:9px}
}
@media(max-width:520px){body.ws-schools-active .area-map-top #areaMap{height:390px}.school-map-card{flex-basis:142px}.school-map-filters .school-map-filter[data-school-filter="All"]{display:none}}

/* v4.9.1 — Full-bleed School Explorer. Use the browser viewport like a dedicated map application. */
@media(min-width:801px){
  body.ws-schools-active .area-page{max-width:none!important;width:100%!important;margin:0!important;padding:0 0 48px!important}
  body.ws-schools-active .area-page>.back,
  body.ws-schools-active .area-page>.area-head,
  body.ws-schools-active .area-map-top>.map-top-head,
  body.ws-schools-active .area-map-top>.map-filter-note{display:none!important}
  body.ws-schools-active .area-map-top{width:100vw;margin:0!important;position:relative;left:50%;margin-left:-50vw!important}
  body.ws-schools-active .school-explorer-grid{grid-template-columns:330px minmax(0,1fr)!important;gap:0!important;height:calc(100vh - 68px);min-height:650px;max-height:900px;background:#fff;border-top:1px solid #e3e9e6;border-bottom:1px solid #e3e9e6}
  body.ws-schools-active .school-explorer-side{display:block!important;height:100%!important;min-height:0!important;max-height:none!important;border:0!important;border-right:1px solid #dfe7e2!important;border-radius:0!important;overflow-y:auto;background:#fff}
  body.ws-schools-active .school-map-canvas{height:100%!important;min-height:0!important}
  body.ws-schools-active .area-map-top #areaMap{height:100%!important;min-height:0!important;border:0!important;border-radius:0!important}
  body.ws-schools-active .school-map-tools{left:16px;right:16px;top:14px}
  body.ws-schools-active .school-map-carousel-shell{left:16px;right:16px;bottom:16px}
  body.ws-schools-active .school-map-card{flex-basis:210px;min-height:80px;padding:11px 12px}
  body.ws-schools-active .school-map-card.selected{padding:10px 11px}
  body.ws-schools-active .school-map-card b{font-size:12px}
  body.ws-schools-active .school-map-card span{font-size:9.5px}
  body.ws-schools-active .school-map-card small{font-size:10.5px}
  body.ws-schools-active .school-profile-compact{padding:20px 18px 28px}
  body.ws-schools-active .school-profile-head h3{font-size:22px}
  body.ws-schools-active .school-accordion>summary{padding:16px 1px;font-size:12px}
  body.ws-schools-active .school-facts span,
  body.ws-schools-active .school-facts b{font-size:10.5px;padding:7px 0}
  body.ws-schools-active .area-tabs-shell,
  body.ws-schools-active .area-tab-stage,
  body.ws-schools-active .neighbourhood-section,
  body.ws-schools-active .area-page>section:not(.area-map-top):not(.area-tabs-shell):not(.area-tab-stage):not(.neighbourhood-section){max-width:1360px;margin-left:auto;margin-right:auto;padding-left:28px;padding-right:28px;box-sizing:border-box}
  body.ws-schools-active .area-tabs-shell{margin-top:18px}
}

/* very wide desktop: give the information panel a little more room without stealing the map */
@media(min-width:1500px){
  body.ws-schools-active .school-explorer-grid{grid-template-columns:350px minmax(0,1fr)!important}
}

/* mobile/tablet: keep the requested drawer + details-below-map UX, but make the map edge-to-edge and taller */
@media(max-width:800px){
  body.ws-schools-active .area-page{padding-top:0!important}
  body.ws-schools-active .area-page>.back,
  body.ws-schools-active .area-page>.area-head,
  body.ws-schools-active .area-map-top>.map-top-head,
  body.ws-schools-active .area-map-top>.map-filter-note{display:none!important}
  body.ws-schools-active .area-map-top{width:100vw;position:relative;left:50%;margin-left:-50vw!important;margin-top:0!important}
  body.ws-schools-active .school-map-canvas{width:100vw}
  body.ws-schools-active .area-map-top #areaMap{height:58vh!important;min-height:430px;max-height:640px;border-radius:0!important;border-left:0!important;border-right:0!important}
  body.ws-schools-active .school-mobile-details{margin:10px 14px 0!important}
  body.ws-schools-active .area-tabs-shell,
  body.ws-schools-active .area-tab-stage,
  body.ws-schools-active .neighbourhood-section{margin-left:14px;margin-right:14px}
}
@media(max-width:520px){
  body.ws-schools-active .area-map-top #areaMap{height:56vh!important;min-height:390px}
}


/* v4.9.2 — School Explorer UX refinements */
/* Keep school-type controls clear of Leaflet's +/- zoom buttons. */
@media(min-width:801px){
  body.ws-schools-active .school-map-tools{left:68px!important;right:16px!important;top:14px!important}
  /* Make room for the centre down-arrow below the school carousel. */
  body.ws-schools-active .school-map-carousel-shell{bottom:42px!important}
}

/* Only one accordion section is open at a time (JS), with a soft pink header strip. */
.school-profile-compact .school-accordion{border-bottom:0;margin:8px 0;border-radius:10px;overflow:hidden;background:#fff}
.school-profile-compact .school-accordion>summary{
  padding:13px 12px!important;
  background:#fff1f6;
  border:1px solid #f6dbe6;
  border-radius:10px;
  transition:background .16s ease,border-color .16s ease;
}
.school-profile-compact .school-accordion>summary:hover{background:#fde8f0;border-color:#efc7d7}
.school-profile-compact .school-accordion[open]>summary{background:#f9dce8;border-color:#e9b8cb;border-radius:10px 10px 0 0}
.school-profile-compact .school-accordion-body{padding:12px 12px 14px;border:1px solid #f2e1e8;border-top:0;border-radius:0 0 10px 10px;background:#fff}
.school-profile-compact .school-accordion>summary:after{color:#a34d73}

/* A persistent visual cue that the full tabs/list continue below the full-screen explorer. */
.school-explorer-grid{position:relative}
.school-explorer-down{
  display:none;position:absolute;z-index:760;left:50%;bottom:7px;transform:translateX(-50%);
  width:38px;height:38px;border:1px solid rgba(16,35,61,.16);border-radius:999px;
  background:rgba(255,255,255,.96);color:#10233d;box-shadow:0 5px 18px rgba(16,24,40,.18);
  font-size:22px;line-height:34px;text-align:center;cursor:pointer;backdrop-filter:blur(8px);
  animation:ws-down-bob 1.8s ease-in-out infinite;
}
body.ws-schools-active .school-explorer-down{display:block}
.school-explorer-down:hover{background:#fff1f6;border-color:#e9b8cb;color:#a34d73}
@keyframes ws-down-bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,5px)}}
@media(prefers-reduced-motion:reduce){.school-explorer-down{animation:none}}

@media(max-width:800px){
  body.ws-schools-active .school-map-tools{left:58px!important;right:8px!important;top:8px!important}
  body.ws-schools-active .school-map-carousel-shell{bottom:38px!important}
  .school-explorer-down{width:36px;height:36px;bottom:5px;font-size:21px;line-height:32px}
}


/* =========================================================
   WhatSuburb v4.9.3 — admissions clarity & help tooltips
   ========================================================= */
.school-profile-compact .allocation-block{margin-top:16px;padding-top:14px;border-top:1px solid #edf1ef}
.school-profile-compact .allocation-section-title{margin:14px 0 7px;font-size:10px;font-weight:800;color:#475467;text-transform:uppercase;letter-spacing:.04em}
.school-profile-compact .allocation-criteria,.school-profile-compact .allocation-outcomes{margin-top:10px}
.school-profile-compact .allocation-criterion,.school-profile-compact .allocation-outcome{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #edf1ef}
.school-profile-compact .allocation-criterion:last-child,.school-profile-compact .allocation-outcome:last-child{border-bottom:0}
.school-profile-compact .allocation-criterion>div:first-child{min-width:0}
.school-profile-compact .allocation-criterion b{display:block;font-size:10px;line-height:1.35;color:#344054}
.school-profile-compact .allocation-criterion>div:first-child span{display:block;margin-top:2px;font-size:9px;color:#98a2b3;text-transform:capitalize}
.school-profile-compact .allocation-criterion-value{flex:0 0 auto;display:flex;align-items:flex-end;gap:8px;text-align:right}
.school-profile-compact .allocation-criterion-value>strong,.school-profile-compact .allocation-outcome b{font-size:10px;color:#10233d}
.school-profile-compact .allocation-outcome span{font-size:10px;color:#667085}

/* Make history badges self-explanatory */
.school-profile-compact .admissions-history-count{display:inline-flex;align-items:center;gap:5px;margin-top:7px;padding:5px 8px;white-space:nowrap;background:#eef7f1;color:#08783e;border-radius:999px;font-size:10px;line-height:1.25;font-weight:750}

/* Metric value + contextual help */
.admission-metric-value{display:flex;align-items:flex-start;gap:4px;min-width:0}
.school-profile-compact .admission-metric-value>strong{margin:0}
.admission-help{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:17px;height:17px;margin-left:2px;border:0;border-radius:50%;background:#a9b2bd;color:#fff;font:800 11px/1 Arial,sans-serif;cursor:help;padding:0}
.admission-help:hover,.admission-help:focus-visible{background:#7f8b99;outline:none}
.admission-help::after{content:attr(data-help);position:absolute;z-index:2200;left:0;right:auto;bottom:calc(100% + 10px);transform:none;width:240px;max-width:min(240px,calc(100vw - 42px));padding:10px 11px;border:1px solid #d5dbe1;border-radius:9px;background:#fff;color:#475467;font-size:11px;line-height:1.5;font-weight:500;text-align:left;white-space:normal;box-shadow:0 7px 20px rgba(16,35,61,.14);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility .15s ease;box-sizing:border-box}
.admission-help::before{content:"";position:absolute;z-index:2201;left:5px;right:auto;bottom:calc(100% + 6px);transform:rotate(45deg);width:8px;height:8px;background:#fff;border-right:1px solid #d5dbe1;border-bottom:1px solid #d5dbe1;opacity:0;visibility:hidden;pointer-events:none}

.admission-help:hover::after,.admission-help:hover::before,.admission-help:focus::after,.admission-help:focus::before{opacity:1;visibility:visible}
/* Keep tooltip fully inside the School Explorer panel.
   Left-hand metrics open to the right; right-hand metrics open to the left. */
.school-profile-compact .admission-metric:nth-child(odd) .admission-help::after{
  left:0;
  right:auto;
  transform:none;
}
.school-profile-compact .admission-metric:nth-child(odd) .admission-help::before{
  left:5px;
  right:auto;
  transform:rotate(45deg);
}
.school-profile-compact .admission-metric:nth-child(even) .admission-help::after{
  left:auto;
  right:0;
  transform:none;
}
.school-profile-compact .admission-metric:nth-child(even) .admission-help::before{
  left:auto;
  right:5px;
  transform:rotate(45deg);
}

/* The profile panel must not clip the help bubble. */
.school-profile-compact .admissions-block,
.school-profile-compact .admission-metrics,
.school-profile-compact .admission-metric,
.school-profile-compact .school-accordion-body{
  overflow:visible;
}

/* Website-standard distance: miles first, metres underneath */
.admission-distance{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05}
.admission-distance .distance-main{display:block;font-size:17px;color:#10233d;font-weight:800}
.admission-distance .distance-secondary{display:block;margin-top:3px;font-size:9px;line-height:1.2;font-weight:600;color:#98a2b3}
.allocation-distance{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}
.allocation-distance .distance-main{color:#10233d;font-size:10px;font-weight:800}
.allocation-distance .distance-secondary{margin-top:2px;color:#98a2b3;font-size:8px;font-weight:500}
.admissions-history td small{font-size:8px;color:#98a2b3}

/* Supporting notes: subdued but still readable */
.school-data-note,.school-profile-compact .admissions-note{margin-top:10px!important;color:#8b95a3!important;font-size:9.5px!important;line-height:1.55!important;font-style:italic;font-weight:400}

@media(max-width:560px){
  .admission-help{width:18px;height:18px;font-size:11px}
  .admission-help::after{width:220px;max-width:calc(100vw - 42px);font-size:11px;line-height:1.5}
}

/* =========================================================
   v4.9.3 FINAL — Admissions tooltip accordion boundary fix
   ========================================================= */

.school-profile-compact .school-accordion{
  overflow:visible !important;
}

.school-profile-compact .school-accordion-body{
  position:relative;
  overflow:visible !important;
}

.school-profile-compact .admissions-block,
.school-profile-compact .admission-metrics,
.school-profile-compact .admission-metric,
.school-profile-compact .admission-metric-value{
  overflow:visible !important;
}

.school-profile-compact .admission-metric{
  position:relative;
  min-width:0;
}

/* Keep help bubble readable and inside the accordion content area */
.school-profile-compact .admission-help::after{
  width:220px;
  max-width:calc(100% - 4px);
  box-sizing:border-box;
  font-size:11px;
  line-height:1.5;
  padding:10px 11px;
}

/* Left metric: open to the right */
.school-profile-compact
.admission-metric:nth-child(odd)
.admission-help::after{
  left:0;
  right:auto;
  transform:none;
}

.school-profile-compact
.admission-metric:nth-child(odd)
.admission-help::before{
  left:5px;
  right:auto;
  transform:rotate(45deg);
}

/* Right metric: open to the left */
.school-profile-compact
.admission-metric:nth-child(even)
.admission-help::after{
  left:auto;
  right:0;
  transform:none;
}

.school-profile-compact
.admission-metric:nth-child(even)
.admission-help::before{
  left:auto;
  right:5px;
  transform:rotate(45deg);
}

/* Mobile: use the accordion width rather than the viewport */
@media(max-width:560px){
  .school-profile-compact .admission-help::after{
    width:210px;
    max-width:calc(100% - 4px);
    font-size:11px;
    line-height:1.5;
    padding:10px 11px;
  }
}


/* =========================================================
   v4.9.4 — FINAL TOOLTIP POSITIONING FIX
   Root cause: .admission-help itself was position:relative,
   so the pseudo-element was positioned against the ? button,
   not the admission metric / accordion content.
   ========================================================= */

/* Let the metric, rather than the ? button, be the positioning
   context for the tooltip. */
.school-profile-compact .admission-help{
  position:static !important;
}

/* The metric is now the tooltip positioning context. */
.school-profile-compact .admission-metric{
  position:relative !important;
  overflow:visible !important;
  min-width:0;
}

/* Keep the accordion and its contents from clipping the tooltip. */
.school-profile-compact .school-accordion,
.school-profile-compact .school-accordion-body,
.school-profile-compact .admissions-block,
.school-profile-compact .admission-metrics{
  overflow:visible !important;
}

/* Base tooltip */
.school-profile-compact .admission-help::after{
  bottom:calc(100% + 9px);
  width:220px;
  max-width:calc(100vw - 42px);
  box-sizing:border-box;
  padding:10px 11px;
  font-size:11px;
  line-height:1.5;
  font-weight:500;
  white-space:normal;
  text-align:left;
  transform:none !important;
}

/* Tooltip for left-hand cards:
   starts at the left edge of the card and expands right. */
.school-profile-compact
.admission-metric:nth-child(odd)
.admission-help::after{
  left:0 !important;
  right:auto !important;
}

/* Arrow for left-hand cards */
.school-profile-compact
.admission-metric:nth-child(odd)
.admission-help::before{
  left:5px !important;
  right:auto !important;
  transform:rotate(45deg) !important;
}

/* Tooltip for right-hand cards:
   ends at the right edge of the card and expands left. */
.school-profile-compact
.admission-metric:nth-child(even)
.admission-help::after{
  left:auto !important;
  right:0 !important;
}

/* Arrow for right-hand cards */
.school-profile-compact
.admission-metric:nth-child(even)
.admission-help::before{
  left:auto !important;
  right:5px !important;
  transform:rotate(45deg) !important;
}

/* Mobile — still readable, but never wider than the viewport. */
@media(max-width:560px){
  .school-profile-compact .admission-help::after{
    width:220px;
    max-width:calc(100vw - 42px);
    font-size:11px;
    line-height:1.5;
    padding:10px 11px;
  }
}


/* =========================================================
   v4.9.5 — Tooltip final behaviour
   - Tooltip stays inside the Admissions accordion content.
   - Mouse hover only: leaving the ? closes it immediately.
   - Focus from a mouse click no longer leaves the tooltip open.
   ========================================================= */

/* Remove the focus-based tooltip trigger from the earlier rules. */
.school-profile-compact .admission-help:focus::after,
.school-profile-compact .admission-help:focus::before{
  opacity:0 !important;
  visibility:hidden !important;
}

/* Mouse hover is the only trigger for pointer users. */
.school-profile-compact .admission-help:hover::after,
.school-profile-compact .admission-help:hover::before{
  opacity:1 !important;
  visibility:visible !important;
}

/* Use the accordion body as the hard visual boundary. */
.school-profile-compact .school-accordion-body{
  position:relative !important;
  overflow:visible !important;
}

/* Keep the popup anchored to the metric card, not the ? button. */
.school-profile-compact .admission-help{
  position:static !important;
}

.school-profile-compact .admission-metric{
  position:relative !important;
  overflow:visible !important;
}

/* Left column: popup starts at the card's left edge and opens right. */
.school-profile-compact
.admission-metric:nth-child(odd)
.admission-help::after{
  left:0 !important;
  right:auto !important;
  bottom:calc(100% + 9px) !important;
  transform:none !important;
  width:220px !important;
  max-width:220px !important;
  box-sizing:border-box !important;
}

/* Right column: popup ends at the card's right edge and opens left. */
.school-profile-compact
.admission-metric:nth-child(even)
.admission-help::after{
  left:auto !important;
  right:0 !important;
  bottom:calc(100% + 9px) !important;
  transform:none !important;
  width:220px !important;
  max-width:220px !important;
}

/* Keep the arrow attached to the ? position. */
.school-profile-compact
.admission-metric:nth-child(odd)
.admission-help::before{
  left:5px !important;
  right:auto !important;
  bottom:calc(100% + 6px) !important;
  transform:rotate(45deg) !important;
}

.school-profile-compact
.admission-metric:nth-child(even)
.admission-help::before{
  left:auto !important;
  right:5px !important;
  bottom:calc(100% + 6px) !important;
  transform:rotate(45deg) !important;
}

/* The popup must never be wider than the actual accordion content
   on small screens. */
@media(max-width:560px){
  .school-profile-compact
  .admission-help::after{
    width:min(220px,calc(100vw - 42px)) !important;
    max-width:min(220px,calc(100vw - 42px)) !important;
    font-size:11px !important;
    line-height:1.5 !important;
  }
}

/* School details external links */
.school-details-contact{margin-top:12px;font-size:10px;line-height:1.55;color:#475467}
.school-details-contact p{margin:6px 0}
.school-details-contact .school-external-link{color:#175cd3;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;cursor:pointer;overflow-wrap:anywhere}
.school-details-contact .school-external-link:hover{color:#1849a9}
.school-details-contact .school-external-link:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}

/* =========================================================
   Ofsted Parent View
   ========================================================= */

.parent-view-section{
  margin-top:28px;
  padding-top:26px;
  border-top:1px solid #e5e7eb;
}

.parent-view-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:22px;
}

.parent-view-head h3{
  margin:5px 0 5px;
  font-size:1.25rem;
}

.parent-view-head p{
  margin:0;
  color:#667085;
  font-size:.92rem;
}

.parent-view-history{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:210px;
  font-size:.78rem;
  color:#667085;
}

.parent-view-history select{
  width:100%;
  padding:9px 34px 9px 11px;
  border:1px solid #d0d5dd;
  border-radius:8px;
  background:#fff;
  font:inherit;
  color:#101828;
}

.parent-view-question{
  padding:20px 0;
  border-top:1px solid #eaecf0;
}

.parent-view-question:first-child{
  border-top:0;
  padding-top:0;
}



.parent-view-responses{
  display:flex;
  flex-direction:column;
  gap:9px;
}

.parent-view-response{
  display:grid;
  grid-template-columns:minmax(120px,170px) minmax(100px,1fr) 48px;
  align-items:center;
  gap:10px;
  font-size:.86rem;
}

.parent-view-response-label{
  color:#475467;
}

.parent-view-bar{
  position:relative;
  display:block;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#eef2f6;
}

.parent-view-bar-fill{
  display:block;
  height:100%;
  min-width:0;
  border-radius:inherit;
  background:#344054;
}

.parent-view-response-value{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

@media (max-width:700px){
  .parent-view-head{
    flex-direction:column;
    gap:14px;
  }

  .parent-view-history{
    width:100%;
  }

  .parent-view-response{
    grid-template-columns:105px minmax(70px,1fr) 42px;
    gap:8px;
    font-size:.8rem;
  }

  
}


/* =========================================================
   Parent View — final typography + chart styling
   ========================================================= */

/* Match school fact labels such as "Overall effectiveness" */
.parent-view-question h4{
  margin:0 0 10px;
  font-family:inherit;
  font-size:10px;
  line-height:1.45;
  font-weight:400;
  color:#667085;
}

/* Desktop School Explorer uses the same slightly larger size */
body.ws-schools-active .parent-view-question h4{
  font-size:10.5px;
}

/* Response labels */
.parent-view-response-label{
  font-family:inherit;
  font-size:10px;
  line-height:1.35;
  color:#667085;
}

body.ws-schools-active .parent-view-response-label{
  font-size:10.5px;
}

.parent-view-response-value{
  font-family:inherit;
  font-size:10px;
  font-weight:700;
  color:#344054;
  text-align:right;
  font-variant-numeric:tabular-nums;
}

body.ws-schools-active .parent-view-response-value{
  font-size:10.5px;
}

/* Parent View colour palette */
.parent-view-response:nth-child(1) .parent-view-bar-fill{
  background:#dd7d9d;
}

.parent-view-response:nth-child(2) .parent-view-bar-fill{
  background:#e6aa98;
}

.parent-view-response:nth-child(3) .parent-view-bar-fill{
  background:#6fa6b5;
}

.parent-view-response:nth-child(4) .parent-view-bar-fill{
  background:#c7dce3;
}

.parent-view-response:nth-child(5) .parent-view-bar-fill{
  background:#dfe3e6;
}

.parent-view-response:nth-child(6) .parent-view-bar-fill{
  background:#eceff1;
}

/* Mobile */
@media(max-width:700px){
  .parent-view-question h4{
    font-size:10px;
    line-height:1.45;
  }

  body.ws-schools-active .parent-view-question h4{
    font-size:10px;
  }

  .parent-view-response-label,
  body.ws-schools-active .parent-view-response-label,
  .parent-view-response-value,
  body.ws-schools-active .parent-view-response-value{
    font-size:10px;
  }
}

/* =========================================================
   Parent View — stacked percentage bars
   ========================================================= */

.parent-view-stacked-bar{
  display:flex;
  width:100%;
  height:18px;
  overflow:hidden;
  border-radius:4px;
  background:#eef2f4;
  margin-top:7px;
}

.parent-view-segment{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  height:100%;
  transition:opacity .15s ease;
}

.parent-view-segment:hover{
  opacity:.88;
}

.parent-view-segment span{
  font-size:9px;
  line-height:1;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
}

.parent-view-mini-legends{
  display:flex;
  flex-wrap:wrap;
  gap:5px 11px;
  margin-top:7px;
}

.parent-view-mini-legend{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:9px;
  color:#667085;
}

.parent-view-mini-legend i{
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  flex:0 0 7px;
}

/* Main response palette */

.parent-view-segment.pv-strongly-agree,
.parent-view-mini-legend i.pv-strongly-agree{
  background:#dd7d9d;
}

.parent-view-segment.pv-agree,
.parent-view-mini-legend i.pv-agree{
  background:#e6aa98;
}

.parent-view-segment.pv-disagree,
.parent-view-mini-legend i.pv-disagree{
  background:#6fa6b5;
}

.parent-view-segment.pv-strongly-disagree,
.parent-view-mini-legend i.pv-strongly-disagree{
  background:#c7dce3;
}

.parent-view-segment.pv-dont-know,
.parent-view-mini-legend i.pv-dont-know{
  background:#dfe3e6;
}

.parent-view-segment.pv-not-applicable,
.parent-view-mini-legend i.pv-not-applicable{
  background:#eceff1;
}

.parent-view-segment.pv-yes,
.parent-view-mini-legend i.pv-yes{
  background:#dd7d9d;
}

.parent-view-segment.pv-no,
.parent-view-mini-legend i.pv-no{
  background:#6fa6b5;
}

.parent-view-segment.pv-other,
.parent-view-mini-legend i.pv-other{
  background:#b8c1c8;
}

/* darker text for very pale segments */
.parent-view-segment.pv-strongly-disagree span,
.parent-view-segment.pv-dont-know span,
.parent-view-segment.pv-not-applicable span{
  color:#475467;
}

@media(max-width:700px){
  .parent-view-stacked-bar{
    height:16px;
  }

  .parent-view-segment span{
    font-size:8px;
  }

  .parent-view-mini-legend{
    font-size:8.5px;
  }
}


/* =========================================================
   v4.9.6 FINAL — School details typography
   ========================================================= */

/*
   Address / Telephone / Website:
   same visual typography as school fact labels such as Phase
*/
.school-facts a,
.school-facts address,
.school-facts .school-external-link{
  font-family:inherit;
  font-size:10px;
  font-weight:400;
  line-height:1.45;
  color:#667085;
}

body.ws-schools-active .school-facts a,
body.ws-schools-active .school-facts address,
body.ws-schools-active .school-facts .school-external-link{
  font-size:10.5px;
}

/* Links still identifiable, without changing type size */
.school-facts a{
  text-decoration:underline;
  text-underline-offset:2px;
}


/* =========================================================
   v4.9.6 FINAL — Parent View typography
   ========================================================= */

/* Match "Overall effectiveness" / Phase label sizing */
.parent-view-question h4{
  display:block;
  margin:0 0 9px;
  padding:0;
  font-family:inherit;
  font-size:10px !important;
  font-weight:400 !important;
  line-height:1.45;
  color:#667085;
}

body.ws-schools-active .parent-view-question h4{
  font-size:10.5px !important;
}


/* =========================================================
   v4.9.6 FINAL — Parent View stacked bars
   ========================================================= */

.parent-view-question{
  display:block;
  padding:16px 0;
  border-top:1px solid #eef2ef;
}

.parent-view-question:first-child{
  border-top:0;
}

.parent-view-stacked-bar{
  display:flex !important;
  flex-direction:row !important;
  align-items:stretch;
  width:100%;
  height:20px;
  padding:0;
  margin:0;
  overflow:hidden;
  border-radius:4px;
  background:#eef2f4;
}

.parent-view-segment{
  display:flex !important;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  height:20px;
  min-width:0;
  padding:0;
  margin:0;
  overflow:hidden;
  box-sizing:border-box;
}

.parent-view-segment span{
  display:block;
  padding:0 3px;
  margin:0;
  font-family:inherit;
  font-size:9px;
  line-height:20px;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
}


/* Colour palette */

.parent-view-segment.pv-strongly-agree,
.parent-view-mini-legend i.pv-strongly-agree{
  background:#dd7d9d;
}

.parent-view-segment.pv-agree,
.parent-view-mini-legend i.pv-agree{
  background:#e6aa98;
}

.parent-view-segment.pv-disagree,
.parent-view-mini-legend i.pv-disagree{
  background:#6fa6b5;
}

.parent-view-segment.pv-strongly-disagree,
.parent-view-mini-legend i.pv-strongly-disagree{
  background:#c7dce3;
}

.parent-view-segment.pv-dont-know,
.parent-view-mini-legend i.pv-dont-know{
  background:#dfe3e6;
}

.parent-view-segment.pv-not-applicable,
.parent-view-mini-legend i.pv-not-applicable{
  background:#eceff1;
}

.parent-view-segment.pv-yes,
.parent-view-mini-legend i.pv-yes{
  background:#dd7d9d;
}

.parent-view-segment.pv-no,
.parent-view-mini-legend i.pv-no{
  background:#6fa6b5;
}

.parent-view-segment.pv-other,
.parent-view-mini-legend i.pv-other{
  background:#b8c1c8;
}

.parent-view-segment.pv-strongly-disagree span,
.parent-view-segment.pv-dont-know span,
.parent-view-segment.pv-not-applicable span{
  color:#475467;
}


/* Mini legend below each chart */

.parent-view-mini-legends{
  display:flex !important;
  flex-wrap:wrap;
  gap:5px 11px;
  margin:7px 0 0;
}

.parent-view-mini-legend{
  display:inline-flex !important;
  align-items:center;
  gap:4px;
  font-family:inherit;
  font-size:9px;
  line-height:1.35;
  color:#667085;
}

.parent-view-mini-legend i{
  display:inline-block !important;
  width:7px;
  height:7px;
  min-width:7px;
  border-radius:50%;
}


/* Parent View header */
.parent-view-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:17px;
}

.parent-view-head h3{
  margin:5px 0 5px;
}

.parent-view-head p{
  margin:0;
  color:#667085;
}


/* Mobile */
@media(max-width:700px){

  .parent-view-head{
    display:block;
  }

  .parent-view-history{
    display:block;
    margin-top:12px;
  }

  .parent-view-question h4,
  body.ws-schools-active .parent-view-question h4{
    font-size:10px !important;
  }

  .parent-view-stacked-bar,
  .parent-view-segment{
    height:18px;
  }

  .parent-view-segment span{
    font-size:8px;
    line-height:18px;
  }

  .parent-view-mini-legend{
    font-size:8.5px;
  }

  .school-facts a,
  body.ws-schools-active .school-facts a,
  .school-facts address,
  body.ws-schools-active .school-facts address,
  .school-facts .school-external-link,
  body.ws-schools-active .school-facts .school-external-link{
    font-size:10px;
  }
}


/* =========================================================
   v4.9.7 — Parent View header layout fix
   ========================================================= */

.parent-view-head{
  display:block !important;
  margin-bottom:18px;
}

.parent-view-head > div{
  display:block;
  width:100%;
  min-width:0;
}

.parent-view-head .area-kicker{
  display:block;
  margin:0 0 5px;
  white-space:normal;
}

.parent-view-head h3{
  display:block;
  margin:0 0 5px;
  padding:0;
  width:100%;
  font-family:inherit;
}

.parent-view-head p{
  display:block;
  margin:0;
  width:100%;
  color:#667085;
  line-height:1.45;
}

.parent-view-history{
  display:block !important;
  width:100%;
  min-width:0 !important;
  margin-top:14px;
}

.parent-view-history > span{
  display:block;
  margin-bottom:5px;
  color:#667085;
}

.parent-view-history select{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}

/* Keep the Parent View heading readable in the narrow school panel */
.school-profile-compact .parent-view-head h3{
  font-size:16px;
  line-height:1.25;
}

.school-profile-compact .parent-view-head p{
  font-size:10.5px;
}

.school-profile-compact .parent-view-head .area-kicker{
  font-size:8px;
  line-height:1.35;
}


/* =========================================================
   v4.9.9 — Schools desktop two-column page layout
   Left: selected-school rail
   Right: map + tabs + school content
   ========================================================= */

@media (min-width:1101px){

  body.ws-schools-active .schools-layout-shell{
    position:relative;
    box-sizing:border-box;

    width:100vw;
    left:50%;
    margin-left:-50vw;

    padding-left:350px;

    background:#fff;
    border-top:1px solid #e3e9e6;
    border-bottom:1px solid #e3e9e6;
  }

  /* Remove previous full-viewport positioning from map section */
  body.ws-schools-active .schools-layout-shell .area-map-top{
    position:relative!important;
    left:auto!important;

    width:auto!important;
    max-width:none!important;

    margin:0!important;
    padding:0!important;
  }

  body.ws-schools-active .schools-layout-shell
  .area-map-top>.map-top-head,
  body.ws-schools-active .schools-layout-shell
  .area-map-top>.map-filter-note{
    display:none!important;
  }

  /*
   * The original explorer grid now only lays out the map.
   * The sidebar is taken out of normal flow and becomes
   * the permanent left rail.
   */
  body.ws-schools-active .schools-layout-shell
  .school-explorer-grid{
    display:block!important;

    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;

    margin:0!important;
    padding:0!important;
  }

  body.ws-schools-active .schools-layout-shell
  .school-explorer-side{
    display:block!important;
    position:absolute!important;

    top:0;
    bottom:0;
    left:0;

    width:350px!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;

    box-sizing:border-box;
    overflow:visible;

    background:#fff;

    border:0!important;
    border-right:1px solid #dfe6e2!important;
    border-radius:0!important;

    z-index:20;
  }

  body.ws-schools-active .schools-layout-shell
  .school-map-canvas{
    position:relative;
    width:100%;
    min-width:0;
  }

  /* Keep Leaflet map at its intended desktop size */
  body.ws-schools-active .schools-layout-shell
  .area-map-top #areaMap{
    width:100%!important;

    height:570px!important;
    min-height:570px!important;
    max-height:570px!important;

    margin:0!important;

    border:0!important;
    border-radius:0!important;
  }

  /*
   * Tabs and tab content naturally sit inside
   * the right-hand column because shell has
   * 350px left padding.
   */
  body.ws-schools-active .schools-layout-shell
  .area-tabs-shell{
    position:relative!important;
    left:auto!important;

    width:auto!important;
    max-width:none!important;

    margin:0!important;
    padding:18px 28px 0!important;

    box-sizing:border-box;
    background:#fff;
  }

  body.ws-schools-active .schools-layout-shell
  .area-tab-stage{
    position:relative!important;
    left:auto!important;

    width:auto!important;
    max-width:none!important;

    margin:0!important;
    padding:0 28px 32px!important;

    box-sizing:border-box;
    background:#fff;
  }

  body.ws-schools-active .schools-layout-shell
  .school-explorer-down,
  body.ws-schools-active .schools-layout-shell
  .school-mobile-details{
    display:none!important;
  }
}


/* =========================================================
   v4.9.10 — School Explorer as true left column
   ========================================================= */

@media (min-width:1101px){

  body.ws-schools-active .schools-layout-shell{
    display:grid;
    grid-template-columns:350px minmax(0,1fr);
    grid-template-rows:auto auto auto;
    padding-left:0!important;
    width:100vw;
    left:50%;
    margin-left:-50vw;
    position:relative;
    align-items:stretch;
  }

  /* Left rail spans map + tabs + school content */
  body.ws-schools-active .schools-layout-shell
  > .school-explorer-side{
    grid-column:1;
    grid-row:1 / 4;

    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    left:auto!important;

    width:auto!important;
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;

    box-sizing:border-box;
    overflow:visible;

    background:#fff;
    border:0!important;
    border-right:1px solid #dfe6e2!important;
    border-radius:0!important;

    z-index:5;
  }

  /* Map section */
  body.ws-schools-active .schools-layout-shell
  > .area-map-top{
    grid-column:2;
    grid-row:1;

    width:auto!important;
    left:auto!important;
    margin:0!important;
    padding:0!important;
  }

  body.ws-schools-active .schools-layout-shell
  .school-explorer-grid{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }

  body.ws-schools-active .schools-layout-shell
  .school-map-canvas{
    width:100%;
    min-width:0;
  }

  body.ws-schools-active .schools-layout-shell
  .area-map-top #areaMap{
    width:100%!important;
    height:570px!important;
    min-height:570px!important;
    max-height:570px!important;
    border:0!important;
    border-radius:0!important;
  }

  /* Tabs */
  body.ws-schools-active .schools-layout-shell
  > .area-tabs-shell{
    grid-column:2;
    grid-row:2;

    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:18px 28px 0!important;
    box-sizing:border-box;
  }

  /* Active tab content */
  body.ws-schools-active .schools-layout-shell
  > .area-tab-stage{
    grid-column:2;
    grid-row:3;

    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0 28px 32px!important;
    box-sizing:border-box;
  }

  body.ws-schools-active .schools-layout-shell
  .school-explorer-down,
  body.ws-schools-active .schools-layout-shell
  .school-mobile-details{
    display:none!important;
  }
}


/* v4.9.12 — mobile wider layout + 1px typography lift */
@media(max-width:800px){

  /* Use more of the phone width */
  .area-page{
    padding-left:9px!important;
    padding-right:9px!important;
  }

  body.ws-schools-active .school-mobile-details{
    margin-left:8px!important;
    margin-right:8px!important;
  }

  body.ws-schools-active .area-tabs-shell,
  body.ws-schools-active .area-tab-stage{
    padding-left:8px!important;
    padding-right:8px!important;
    box-sizing:border-box;
  }

  /* Main area tabs */
  .area-tab{
    font-size:12px!important;
  }

  .tab-intro p{
    font-size:11px!important;
  }

  .tab-placeholder small{
    font-size:9px!important;
  }

  .tab-placeholder p{
    font-size:11px!important;
  }

  .more-link-card b{
    font-size:14px!important;
  }

  .more-link-card span{
    font-size:10px!important;
  }

  /* School controls */
  .school-filter,
  .school-map-filter{
    font-size:11px!important;
  }

  .school-more-select{
    font-size:11px!important;
  }

  .school-drawer-trigger{
    font-size:11px!important;
  }

  .school-results-meta{
    font-size:11px!important;
  }

  .school-results-meta b{
    font-size:12px!important;
  }

  .school-result-row b{
    font-size:12px!important;
  }

  .school-result-row small{
    font-size:10px!important;
  }

  /* Cards over the map */
  .school-map-card b{
    font-size:12px!important;
  }

  .school-map-card span{
    font-size:10px!important;
  }

  .school-map-card small{
    font-size:11px!important;
  }

  /* Mobile school drawer */
  .school-drawer-row b{
    font-size:12px!important;
  }

  .school-drawer-row small,
  .school-drawer-row span{
    font-size:10px!important;
  }

  /* Selected school profile */
  .school-profile-head h3{
    font-size:19px!important;
  }

  .school-profile-head p{
    font-size:12px!important;
  }

  .school-profile-head .area-kicker{
    font-size:9px!important;
  }

  .school-profile-badges span{
    font-size:10px!important;
  }

  .school-accordion>summary{
    font-size:12px!important;
  }

  .school-facts span,
  .school-facts b,
  .school-facts a,
  .school-facts address,
  .school-facts .school-external-link{
    font-size:11px!important;
  }

  .school-placeholder{
    font-size:11px!important;
  }

  .school-profile-source{
    font-size:9px!important;
  }

  .school-details-contact{
    font-size:11px!important;
  }

  /* Admissions */
  .admissions-loading,
  .admissions-empty,
  .admissions-error{
    font-size:13px!important;
  }

  .admissions-head h4{
    font-size:18px!important;
  }

  .admissions-history-count{
    font-size:11px!important;
  }

  .admission-metric span{
    font-size:11px!important;
  }

  .admissions-demand{
    font-size:12px!important;
  }

  .admissions-note,
  .school-data-note{
    font-size:10.5px!important;
  }

  .admissions-history summary{
    font-size:12px!important;
  }

  .admissions-history table{
    font-size:11px!important;
  }

  .allocation-section-title{
    font-size:11px!important;
  }

  .school-profile-compact .allocation-criterion b,
  .school-profile-compact .allocation-criterion-value>strong,
  .school-profile-compact .allocation-outcome b,
  .school-profile-compact .allocation-outcome span{
    font-size:11px!important;
  }

  .school-profile-compact .allocation-criterion>div:first-child span{
    font-size:10px!important;
  }

  .allocation-distance .distance-main{
    font-size:11px!important;
  }

  .allocation-distance .distance-secondary,
  .admissions-history td small{
    font-size:9px!important;
  }
}

/* v4.9.13 — mobile full-width school details + stronger readability */
@media(max-width:800px){

  /* Pull the selected-school card much closer to screen edges */
  body.ws-schools-active .school-mobile-details,
  body.ws-schools-active .school-mobile-details.has-school{
    margin-left:4px!important;
    margin-right:4px!important;
    width:auto!important;
    box-sizing:border-box!important;
  }

  /* Reduce nested horizontal padding */
  body.ws-schools-active .school-profile-compact{
    padding:12px 10px 20px!important;
  }

  body.ws-schools-active .school-profile-compact .school-accordion-body{
    padding:10px 10px 12px!important;
  }

  body.ws-schools-active .school-profile-compact .school-accordion{
    margin-left:0!important;
    margin-right:0!important;
  }

  /* Selected school heading */
  body.ws-schools-active .school-profile-head .area-kicker{
    font-size:10px!important;
  }

  body.ws-schools-active .school-profile-head h3{
    font-size:20px!important;
    line-height:1.22!important;
  }

  body.ws-schools-active .school-profile-head p{
    font-size:13px!important;
  }

  body.ws-schools-active .school-profile-badges span{
    font-size:11px!important;
  }

  /* Accordion heading */
  body.ws-schools-active .school-accordion>summary{
    font-size:13px!important;
    padding-top:15px!important;
    padding-bottom:15px!important;
  }

  /* School details rows */
  body.ws-schools-active .school-facts span,
  body.ws-schools-active .school-facts b,
  body.ws-schools-active .school-facts a,
  body.ws-schools-active .school-facts address,
  body.ws-schools-active .school-facts .school-external-link{
    font-size:12px!important;
    line-height:1.4!important;
    padding-top:7px!important;
    padding-bottom:7px!important;
  }

  /* Other school detail text */
  body.ws-schools-active .school-placeholder,
  body.ws-schools-active .school-details-contact{
    font-size:12px!important;
  }

  body.ws-schools-active .school-profile-source{
    font-size:10px!important;
  }

  /* Admissions readability */
  body.ws-schools-active .admission-metric span{
    font-size:12px!important;
  }

  body.ws-schools-active .admissions-demand{
    font-size:13px!important;
  }

  body.ws-schools-active .admissions-note,
  body.ws-schools-active .school-data-note{
    font-size:11px!important;
  }

  body.ws-schools-active .allocation-section-title{
    font-size:12px!important;
  }

  body.ws-schools-active .school-profile-compact .allocation-criterion b,
  body.ws-schools-active .school-profile-compact .allocation-criterion-value>strong,
  body.ws-schools-active .school-profile-compact .allocation-outcome b,
  body.ws-schools-active .school-profile-compact .allocation-outcome span{
    font-size:12px!important;
  }

  body.ws-schools-active .school-profile-compact .allocation-criterion>div:first-child span{
    font-size:11px!important;
  }
}

/* v4.9.14 — final mobile readability increase */
@media(max-width:800px){

  body.ws-schools-active .school-profile-head .area-kicker{
    font-size:11px!important;
  }

  body.ws-schools-active .school-profile-head h3{
    font-size:21px!important;
    line-height:1.22!important;
  }

  body.ws-schools-active .school-profile-head p{
    font-size:14px!important;
    line-height:1.45!important;
  }

  body.ws-schools-active .school-profile-badges span{
    font-size:12px!important;
  }

  body.ws-schools-active .school-accordion>summary{
    font-size:15px!important;
  }

  body.ws-schools-active .school-facts span,
  body.ws-schools-active .school-facts b,
  body.ws-schools-active .school-facts a,
  body.ws-schools-active .school-facts address,
  body.ws-schools-active .school-facts .school-external-link{
    font-size:14px!important;
    line-height:1.4!important;
  }

  body.ws-schools-active .school-placeholder,
  body.ws-schools-active .school-details-contact{
    font-size:13px!important;
  }

  body.ws-schools-active .school-profile-source{
    font-size:11px!important;
  }

  body.ws-schools-active .admission-metric span{
    font-size:13px!important;
  }

  body.ws-schools-active .admissions-demand{
    font-size:14px!important;
  }

  body.ws-schools-active .admissions-note,
  body.ws-schools-active .school-data-note{
    font-size:12px!important;
  }

  body.ws-schools-active .allocation-section-title{
    font-size:13px!important;
  }

  body.ws-schools-active .school-profile-compact .allocation-criterion b,
  body.ws-schools-active .school-profile-compact .allocation-criterion-value>strong,
  body.ws-schools-active .school-profile-compact .allocation-outcome b,
  body.ws-schools-active .school-profile-compact .allocation-outcome span{
    font-size:13px!important;
  }

  body.ws-schools-active .school-profile-compact .allocation-criterion>div:first-child span{
    font-size:12px!important;
  }

  body.ws-schools-active .admissions-history table{
    font-size:12px!important;
  }

  body.ws-schools-active .admissions-history summary{
    font-size:13px!important;
  }
}

/* v4.9.14 — Ofsted Parent View mobile readability */
@media(max-width:800px){

  body.ws-schools-active .school-profile-compact .parent-view-head .area-kicker{
    font-size:10px!important;
    line-height:1.4!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head h3{
    font-size:18px!important;
    line-height:1.3!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head p{
    font-size:12px!important;
    line-height:1.5!important;
  }

  body.ws-schools-active .parent-view-history > span{
    font-size:11px!important;
  }

  body.ws-schools-active .parent-view-history select{
    font-size:12px!important;
  }

  body.ws-schools-active .parent-view-question h4{
    font-size:12px!important;
    line-height:1.4!important;
  }

  body.ws-schools-active .parent-view-stacked-bar,
  body.ws-schools-active .parent-view-segment{
    height:20px!important;
  }

  body.ws-schools-active .parent-view-segment span{
    font-size:10px!important;
    line-height:20px!important;
  }

  body.ws-schools-active .parent-view-mini-legend{
    font-size:10.5px!important;
    line-height:1.45!important;
  }

}

/* v4.9.14 — Ofsted Parent View mobile readability */
@media(max-width:800px){

  body.ws-schools-active .school-profile-compact .parent-view-head .area-kicker{
    font-size:10px!important;
    line-height:1.4!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head h3{
    font-size:18px!important;
    line-height:1.3!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head p{
    font-size:12px!important;
    line-height:1.5!important;
  }

  body.ws-schools-active .parent-view-history > span{
    font-size:11px!important;
  }

  body.ws-schools-active .parent-view-history select{
    font-size:12px!important;
  }

  body.ws-schools-active .parent-view-question h4{
    font-size:12px!important;
    line-height:1.4!important;
  }

  body.ws-schools-active .parent-view-stacked-bar,
  body.ws-schools-active .parent-view-segment{
    height:20px!important;
  }

  body.ws-schools-active .parent-view-segment span{
    font-size:10px!important;
    line-height:20px!important;
  }

  body.ws-schools-active .parent-view-mini-legend{
    font-size:10.5px!important;
    line-height:1.45!important;
  }

}

/* v4.9.16 — Ofsted Parent View larger mobile typography */
@media(max-width:800px){

  body.ws-schools-active .school-profile-compact .parent-view-head .area-kicker{
    font-size:11px!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head h3{
    font-size:19px!important;
    line-height:1.3!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head p{
    font-size:13px!important;
    line-height:1.5!important;
  }

  body.ws-schools-active .parent-view-history > span{
    font-size:12px!important;
  }

  body.ws-schools-active .parent-view-history select{
    font-size:13px!important;
  }

  body.ws-schools-active .parent-view-question h4{
    font-size:14px!important;
    line-height:1.45!important;
  }

  body.ws-schools-active .parent-view-stacked-bar,
  body.ws-schools-active .parent-view-segment{
    height:22px!important;
  }

  body.ws-schools-active .parent-view-segment span{
    font-size:12px!important;
    line-height:22px!important;
    font-weight:600!important;
  }

  body.ws-schools-active .parent-view-mini-legend{
    font-size:12px!important;
    line-height:1.5!important;
  }

}

/* v4.9.16 — Ofsted Parent View larger mobile typography */
@media(max-width:800px){

  body.ws-schools-active .school-profile-compact .parent-view-head .area-kicker{
    font-size:11px!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head h3{
    font-size:19px!important;
    line-height:1.3!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head p{
    font-size:13px!important;
    line-height:1.5!important;
  }

  body.ws-schools-active .parent-view-history > span{
    font-size:12px!important;
  }

  body.ws-schools-active .parent-view-history select{
    font-size:13px!important;
  }

  body.ws-schools-active .parent-view-question h4{
    font-size:14px!important;
    line-height:1.45!important;
  }

  body.ws-schools-active .parent-view-stacked-bar,
  body.ws-schools-active .parent-view-segment{
    height:22px!important;
  }

  body.ws-schools-active .parent-view-segment span{
    font-size:12px!important;
    line-height:22px!important;
    font-weight:600!important;
  }

  body.ws-schools-active .parent-view-mini-legend{
    font-size:12px!important;
    line-height:1.5!important;
  }

}

/* v4.9.16 — Ofsted Parent View larger mobile typography */
@media(max-width:800px){

  body.ws-schools-active .school-profile-compact .parent-view-head .area-kicker{
    font-size:11px!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head h3{
    font-size:19px!important;
    line-height:1.3!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head p{
    font-size:13px!important;
    line-height:1.5!important;
  }

  body.ws-schools-active .parent-view-history > span{
    font-size:12px!important;
  }

  body.ws-schools-active .parent-view-history select{
    font-size:13px!important;
  }

  body.ws-schools-active .parent-view-question h4{
    font-size:14px!important;
    line-height:1.45!important;
  }

  body.ws-schools-active .parent-view-stacked-bar,
  body.ws-schools-active .parent-view-segment{
    height:22px!important;
  }

  body.ws-schools-active .parent-view-segment span{
    font-size:12px!important;
    line-height:22px!important;
    font-weight:600!important;
  }

  body.ws-schools-active .parent-view-mini-legend{
    font-size:12px!important;
    line-height:1.5!important;
  }

}

/* v4.9.16 — Ofsted Parent View larger mobile typography */
@media(max-width:800px){

  body.ws-schools-active .school-profile-compact .parent-view-head .area-kicker{
    font-size:11px!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head h3{
    font-size:19px!important;
    line-height:1.3!important;
  }

  body.ws-schools-active .school-profile-compact .parent-view-head p{
    font-size:13px!important;
    line-height:1.5!important;
  }

  body.ws-schools-active .parent-view-history > span{
    font-size:12px!important;
  }

  body.ws-schools-active .parent-view-history select{
    font-size:13px!important;
  }

  body.ws-schools-active .parent-view-question h4{
    font-size:14px!important;
    line-height:1.45!important;
  }

  body.ws-schools-active .parent-view-stacked-bar,
  body.ws-schools-active .parent-view-segment{
    height:22px!important;
  }

  body.ws-schools-active .parent-view-segment span{
    font-size:12px!important;
    line-height:22px!important;
    font-weight:600!important;
  }

  body.ws-schools-active .parent-view-mini-legend{
    font-size:12px!important;
    line-height:1.5!important;
  }

}

/* v4.9.17 — mobile school list wider + larger typography */
@media(max-width:800px){

  body.ws-schools-active .school-results-meta{
    padding-left:2px!important;
    padding-right:2px!important;
    font-size:12px!important;
    line-height:1.4!important;
  }

  body.ws-schools-active .school-results-meta b{
    font-size:14px!important;
  }

  body.ws-schools-active .school-result-row{
    padding:12px 2px!important;
  }

  body.ws-schools-active .school-result-row:hover,
  body.ws-schools-active .school-result-row.selected{
    padding-left:8px!important;
    padding-right:8px!important;
  }

  body.ws-schools-active .school-result-row b{
    font-size:15px!important;
    line-height:1.28!important;
  }

  body.ws-schools-active .school-result-row small{
    font-size:11px!important;
    line-height:1.45!important;
  }

  body.ws-schools-active .school-result-row .school-distance,
  body.ws-schools-active .school-result-row [class*="distance"]{
    font-size:12px!important;
    font-weight:600!important;
  }

}

.school-subjects-scroll{max-height:280px;overflow:auto;border:1px solid #edf1ef;border-radius:8px}
.school-subjects-table{width:100%;border-collapse:collapse;font-size:10px}
.school-subjects-table th,.school-subjects-table td{text-align:left;padding:6px 8px;border-bottom:1px solid #eef2ef}
.school-subjects-table th{position:sticky;top:0;background:#f8faf9;color:#667085;font-weight:750}
.school-subjects-table td{color:#344054}

/* Desktop typography polish (pre-launch): school-profile accordion headings, filter pills, list names */
@media(min-width:801px){
  body.ws-schools-active .school-accordion>summary{font-size:14px}
  .school-filter{font-size:13px}
  .school-result-row b{font-size:12px}
}

/* School profile Share button (Phase 1) */
.school-share-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  margin-top:10px;
  padding:7px 13px;
  border:1px solid #dce5e0;
  background:#fff;
  color:#344054;
  border-radius:999px;
  font-size:11px;font-weight:750;line-height:1;
  cursor:pointer;
  white-space:nowrap;
  transition:background .16s ease,border-color .16s ease;
}
.school-share-btn:hover,.school-share-btn:focus-visible{border-color:#c6d2cb;background:#f7faf8;outline:none}
.school-share-btn:active{background:#eef2ef}
@media(max-width:800px){
  .school-share-btn{min-height:44px;padding:0 16px;font-size:12px}
}

/* School profile Save heart button (Phase 4D) */
.school-save-heart{
  display:inline-flex;align-items:center;justify-content:center;
  margin-top:10px;margin-right:6px;
  padding:7px 12px;
  border:1px solid #dce5e0;background:#fff;color:#344054;
  border-radius:999px;
  font-size:15px;line-height:1;cursor:pointer;white-space:nowrap;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.school-save-heart:hover,.school-save-heart:focus-visible{border-color:#c6d2cb;background:#f7faf8;outline:none}
.school-save-heart:active{background:#eef2ef}
.school-save-heart.saved{color:#e0245e;border-color:#f4c2d0;background:#fff5f7}
@media(max-width:800px){
  .school-save-heart{min-height:44px;padding:0 14px;font-size:16px}
}

/* Saved places drawer (Phase 4E) */
.saved-drawer,.saved-drawer-backdrop{display:none}
.saved-drawer-backdrop.open{display:block;position:fixed;inset:0;background:rgba(16,24,40,.35);z-index:6000}
.saved-drawer{display:block;position:fixed;z-index:6001;right:0;top:0;bottom:0;width:min(92vw,360px);background:#fff;transform:translateX(105%);transition:transform .24s ease;box-shadow:-18px 0 45px rgba(16,24,40,.16);padding:18px 16px calc(18px + env(safe-area-inset-bottom));overflow:auto}
.saved-drawer.open{transform:translateX(0)}
.saved-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:0 0 14px;border-bottom:1px solid #edf1ef;margin-bottom:12px}
.saved-drawer-head .area-kicker{font-size:8px}
.saved-drawer-head h3{font-size:18px;margin:4px 0 0;color:#10233d}
.saved-drawer-head button{border:none;background:transparent;font-size:22px;line-height:1;color:#667085;cursor:pointer;padding:4px 8px}
.saved-drawer-loc{margin-bottom:16px}
.saved-drawer-postcode{display:block;width:100%;text-align:left;border:none;background:#f1f7f3;color:#10233d;font-size:13px;font-weight:800;border-radius:8px;padding:9px 12px;cursor:pointer;margin-bottom:6px}
.saved-drawer-postcode span{color:#667085;font-weight:600;font-size:11px}
.saved-drawer-group-label{display:block;width:100%;text-align:left;border:none;background:transparent;color:#344054;font-size:11px;font-weight:800;cursor:pointer;padding:6px 12px 4px}
.saved-drawer-items{display:flex;flex-direction:column;gap:2px}
.saved-drawer-item{display:block;width:100%;text-align:left;border:none;background:transparent;color:#667085;font-size:12px;cursor:pointer;padding:5px 12px 5px 24px;border-radius:8px}
.saved-drawer-item:hover{background:#f7faf8;color:#344054}
.saved-drawer-empty{font-size:12px;color:#667085;padding:20px 12px;text-align:center}

/* Account control (Phase — avatar + dropdown) */
.account-wrap{position:relative}
#accountBtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #dce5e0;background:#fff;color:#344054;border-radius:999px;padding:7px 14px;font-size:12px;font-weight:750;line-height:1;cursor:pointer;white-space:nowrap;transition:background .16s ease,border-color .16s ease}
#accountBtn:hover,#accountBtn:focus-visible{border-color:#c6d2cb;background:#f7faf8;outline:none}
#accountBtn.account-avatar-btn{width:38px;height:38px;border-radius:50%;padding:0;overflow:hidden}
.account-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.account-avatar-ini{font-size:13px;font-weight:750;color:#344054}
.account-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:230px;background:#fff;border:1px solid #e8eeea;border-radius:12px;box-shadow:0 12px 32px rgba(16,24,40,.16);padding:8px;display:none;z-index:7000}
.account-menu.open{display:block}
.account-menu-head{display:flex;align-items:center;gap:10px;padding:6px 8px 10px;border-bottom:1px solid #f0f2f4;margin-bottom:4px}
.account-menu-head .account-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:#f1f7f3;flex:0 0 auto}
.account-menu-id{min-width:0;display:flex;flex-direction:column;gap:2px}
.account-menu-id b{font-size:13px;color:#10233d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu-id span{font-size:11px;color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-signout{display:block;width:100%;text-align:left;border:none;background:transparent;padding:8px 10px;border-radius:8px;font-size:12px;font-weight:750;color:#b42318;cursor:pointer}
.account-signout:hover{background:#fef3f2}
@media(max-width:800px){
  #accountBtn.account-avatar-btn{width:40px;height:40px}
}

/* Temporary header cleanup: hide top navigation (Explore / Compare / Guides / About) */
.site-nav{display:none}
