/* Schools Decoded: approachable, individually delineated results. */
#school-result{margin-top:24px}
.school-results-intro{max-width:820px;color:#435d5c;font-size:.94rem;line-height:1.55}
.school-filter-panel{display:flex;gap:14px;align-items:end;flex-wrap:wrap;background:#eaf2ef;border:1px solid #cbded5;border-radius:14px;padding:16px 18px;margin:18px 0}
.school-filter-panel label{display:block;font-weight:700;color:#173c37;margin-bottom:5px}
.school-filter-panel select{width:min(100%,320px);padding:11px 13px;border:1px solid #9db7ad;border-radius:9px;background:#fff;color:#152e2d;font:inherit}
.school-filter-count{margin:0 0 3px!important;font-size:.88rem;color:#45625a}
#school-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));align-items:start;gap:18px;margin:18px 0 22px}
.school-card{min-width:0;padding:19px 21px 17px;background:#fff;border:1px solid #cdded8;border-left:5px solid #27796a;border-radius:14px;box-shadow:0 3px 13px rgba(19,54,49,.09);line-height:1.45}
.school-card:focus-within{border-color:#267c68;box-shadow:0 0 0 3px rgba(39,121,106,.13)}
.seo-article .school-card h3{font-size:1.16rem;line-height:1.34;margin:0 0 9px}
.school-card__name{border:0;padding:0;background:none;color:#115d50;font:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.school-card__name:focus-visible{outline:3px solid #d1a448;outline-offset:3px;border-radius:3px}
.school-card__name:disabled{opacity:.6;cursor:wait}
.seo-article .school-card__address{margin:0 0 9px;color:#183a37;font-size:.97rem;overflow-wrap:anywhere}
.seo-article .school-card__meta{margin:0;color:#49635e;font-size:.87rem}
.school-card__pill{display:inline-block;color:#155f52;background:#e5f4ed;border-radius:99px;padding:3px 9px;margin-right:6px;font-weight:700}
.school-details{border-top:1px solid #d8e5df;margin-top:16px;padding-top:11px;overflow-wrap:anywhere}
.school-details[hidden]{display:none}
.seo-article .school-details h4{font-size:1.03rem;margin:16px 0 8px;color:#173f39;line-height:1.35}
.school-details__facts{margin:0;padding:0;display:grid;gap:2px}
.school-details__facts>div{padding:8px 0;border-bottom:1px solid #edf2f0}
.school-details__facts dt{font-size:.75rem;font-weight:700;color:#506c64;letter-spacing:.01em}
.school-details__facts dd{margin:2px 0 0;color:#1b3531;font-size:.92rem}
.school-details__links{display:flex;gap:8px 16px;flex-wrap:wrap;margin:14px 0;font-size:.87rem}
.school-details__links a{overflow-wrap:anywhere}
.school-details__history{background:#f4f8f6;padding:10px 13px;border:1px solid #dae6df;border-radius:10px;margin:15px 0;font-size:.87rem}
.school-details__history summary{cursor:pointer;font-weight:700}
.school-details__history p{line-height:1.55}
.seo-article .school-details__source{font-size:.8rem;line-height:1.5;color:#536b65;background:#f3f7f5;border-left:3px solid #8ca99b;padding:8px 11px;margin:12px 0}
.school-details__status{font-size:.87rem;color:#435d57}
.school-more{display:block;margin:7px auto 24px;padding:11px 18px;border:1px solid #155f52;border-radius:9px;background:white;color:#155f52;font:inherit;font-weight:700;cursor:pointer}
.school-more:hover{background:#e5f4ed}
@media(max-width:580px){.school-card{padding:16px 17px}#school-list{grid-template-columns:1fr;gap:13px}.school-filter-panel{padding:13px 14px}}


/* Postcode search map: only requested after a school lookup. */
.school-map-panel{border:1px solid #cbded5;border-radius:15px;background:#f8fbfa;padding:16px 18px;margin:22px 0}
.school-map__heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.seo-article .school-map__heading h3{font-size:1.17rem;margin:0;color:#183d35}
.school-map__toggle{background:white;color:#145c50;border:1px solid #97b6a8;border-radius:8px;padding:7px 13px;font:inherit;font-size:.89rem;cursor:pointer}
.seo-article .school-map__description{font-size:.86rem;line-height:1.5;color:#4d665e;margin:9px 0}
.seo-article .school-map__fineprint{font-size:.78rem;margin:8px 0 0}
.seo-article .school-map__status{font-size:.86rem;margin:10px 0;color:#244c45}
.school-map{height:clamp(310px,43vw,490px);min-height:310px;border-radius:11px;border:1px solid #d5e3de;overflow:hidden;background:#e2ece7;position:relative;z-index:0}
.school-map[hidden],.school-map__legend[hidden]{display:none}
.school-map .leaflet-popup-content p{font-size:.85rem;margin:5px 0 8px}
.school-map .leaflet-container{font-family:inherit}
.school-map__jump{border:1px solid #287568;background:#f4fbf7;color:#145748;border-radius:6px;font-size:.85rem;padding:6px 9px;cursor:pointer}
.seo-article .school-map__legend{display:flex;flex-wrap:wrap;gap:12px;margin:9px 0 0;font-size:.82rem;color:#3e5d54}
.school-map__legend span{display:inline-flex;align-items:center;gap:5px}
.school-map__legend span::before{content:"";display:inline-block;width:11px;height:11px;border:2px solid white;border-radius:50%;background:var(--school-pin);box-shadow:0 0 0 1px #adbfba}
.school-card__locate{background:transparent;border:0;padding:5px 0;margin-top:7px;text-decoration:underline;text-underline-offset:3px;color:#155f52;font:inherit;font-size:.82rem;cursor:pointer}
.school-card--target{outline:3px solid #ce9f42;outline-offset:2px}
@media(max-width:580px){.school-map-panel{padding:12px}.school-map{height:340px;min-height:340px}}
