:root{font-family:Arial,Helvetica,sans-serif;color:#203c36;background:#f5f7f3;font-size:16px}*{box-sizing:border-box}body{margin:0}header{border-bottom:1px solid #dce4dc;background:#fff;padding:22px max(5vw,20px);display:flex;justify-content:space-between;gap:20px;color:#53685e;font-size:.88rem}.brand{color:#235846;text-decoration:none;font-weight:800;letter-spacing:.1em}main{max-width:1220px;margin:auto;padding:50px 24px 24px}.intro{max-width:740px;margin-bottom:32px}.eyebrow{letter-spacing:.12em;font-size:.75rem;font-weight:bold;color:#526c57}h1{font-size:clamp(2.6rem,6vw,4.7rem);line-height:1.04;letter-spacing:-.055em;margin:15px 0 20px;font-weight:600}.intro>p:last-child{line-height:1.65;color:#53665e;font-size:1.1rem;max-width:620px}.filters{background:white;border:1px solid #d7e0d6;border-radius:15px;padding:24px}.fields{display:grid;grid-template-columns:.75fr 1.4fr 1fr 1.2fr 1fr;gap:14px}label{font-size:.8rem;font-weight:bold;display:block;color:#334c40}select,input,button{font:inherit}select,input{display:block;width:100%;padding:12px 10px;border:1px solid #b9c9be;border-radius:6px;margin-top:8px;background:#fff;color:#203c36;font-size:.9rem;min-height:45px}select:focus,input:focus,button:focus-visible,a:focus-visible{outline:3px solid #c4942d;outline-offset:3px}.location{border-top:1px solid #e5eae2;margin-top:24px;padding-top:20px;display:flex;gap:20px;align-items:end;justify-content:space-between}.postcode-row{display:flex;align-items:end;gap:10px}.postcode-row input{max-width:190px;text-transform:uppercase}button{border:0;background:#225840;color:white;padding:13px 18px;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:bold;min-height:45px}.secondary{background:#edf2eb;color:#345741}button:disabled{opacity:.65;cursor:wait}.hint{font-size:.8rem;color:#5a6e61;line-height:1.6}.filters>.hint{margin-bottom:0}.results-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:32px 0 8px}.results-bar h2{font-size:1.25rem;font-weight:600}.results-bar label{display:flex;align-items:center;gap:12px;white-space:nowrap}.results-bar select{width:auto;margin:0}#status{font-size:.9rem;line-height:1.5;color:#395c45;min-height:24px}.results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:#fff;border:1px solid #dce3d9;border-radius:12px;padding:24px;display:flex;flex-direction:column}.card-top{display:flex;gap:15px;justify-content:space-between;align-items:center}.district{font-size:.75rem;color:#63715f}.badge{font-size:.7rem;background:#eaf1e5;color:#365330;border-radius:4px;padding:6px 8px;white-space:nowrap}h3{font-size:1.3rem;line-height:1.3;margin:19px 0 7px}.meta{font-size:.85rem;color:#5c6c61;margin:0 0 15px;line-height:1.6}.needs{font-size:.88rem;line-height:1.65;margin:0 0 20px;color:#3e5548}.card-bottom{margin-top:auto;border-top:1px solid #e6ebe2;padding-top:18px;display:flex;justify-content:space-between;align-items:center;gap:12px}.distance strong{display:block;font-size:1.4rem;font-weight:600}.distance span{display:block;font-size:.75rem;margin-top:5px;color:#5c6c61}.distance .attribution{font-size:12px;font-weight:400;color:#5e5e5e;white-space:nowrap;margin-top:10px}.directions{font-size:.8rem;color:#225840;white-space:nowrap}.note{margin:30px 0;padding:20px;border-left:3px solid #b6c9aa;color:#5c6c61;font-size:.8rem;line-height:1.7}footer{border-top:1px solid #dce3d9;padding:22px 0;display:flex;flex-wrap:wrap;gap:25px;font-size:.8rem;color:#627160}a{color:#225840}.empty{grid-column:1/-1;padding:30px;background:#fff;border-radius:10px}.legal{max-width:760px;line-height:1.8}.legal h1{font-size:2.8rem;line-height:1.15}.legal h2{font-size:1.2rem;margin-top:30px}@media(max-width:1050px){.fields{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){main{padding:30px 16px}.fields{grid-template-columns:1fr}.filters{padding:18px}.results{grid-template-columns:1fr}.location,.postcode-row{display:flex;flex-direction:column;align-items:stretch}.postcode-row input{max-width:none}.location{gap:14px}.results-bar{align-items:start}.results-bar label{display:block}.results-bar select{margin-top:6px}.card{padding:20px}.card-bottom{align-items:start;flex-wrap:wrap}header>span{font-size:.75rem}.card-top{flex-wrap:wrap}}

.map-section{margin-top:26px;background:white;border:1px solid #d7e0d6;border-radius:15px;padding:20px}.map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.map-heading h2{font-size:1.15rem;margin:0}.map-heading button{min-height:38px;padding:10px 14px}.map-wrap{position:relative;margin-top:14px;border-radius:9px;overflow:hidden;background:#e9eee6}.map-wrap #school-map{height:540px;width:100%}.map-wrap #map-message{position:absolute;top:45%;left:15%;right:15%;text-align:center;background:#fff;padding:15px;border-radius:6px;color:#465b4c;margin:0;box-shadow:0 1px 8px #0001}.map-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:.75rem;color:#5c6c61;padding-top:15px}.map-legend span{display:flex;gap:7px;align-items:center}.map-legend i{width:11px;height:11px;border-radius:50%;display:inline-block}.legend-school{background:#225840}.legend-rp{background:#926024}.map-popup{max-width:280px;color:#203c36;padding:4px;font-family:Arial,sans-serif}.map-popup h3{font-size:1rem;margin:3px 0 8px}.map-popup p{font-size:.8rem;line-height:1.5;margin:0 0 10px}.map-popup button{font-size:.78rem;min-height:32px;padding:8px 12px;margin-bottom:12px}.card:target,.card.map-selected{outline:3px solid #b28a39;outline-offset:2px;scroll-margin-top:20px}@media(max-width:650px){.map-section{padding:16px}.map-wrap #school-map{height:440px}.map-heading{align-items:start}.map-heading h2{font-size:1rem}.map-heading button{font-size:.75rem}.map-legend{gap:12px}.map-wrap #map-message{left:7%;right:7%}}

.legend-mixed{background:#46578b}

/* Category colours, v3 */
.legend-rp{background:#c62828}.legend-independent{background:#000000}

/* Optional distance controls below the map, v4 */
.filter-actions{display:flex;justify-content:flex-end;margin-top:16px}.distance-panel{margin-top:24px;padding:24px;background:#fff;border:1px solid #d7e0d6;border-radius:15px}.distance-copy h2{font-size:1.15rem;margin:0;line-height:1.6}.distance-copy p{font-size:.9rem;line-height:1.65;color:#53665e;margin:8px 0 18px}.optional-label{display:inline-block;font-size:.7rem;font-weight:400;vertical-align:middle;color:#566a5b;background:#eef3eb;border-radius:4px;margin-left:8px;padding:1px 7px}.distance-panel .location{border:0;margin:0;padding:0;display:block}.distance-panel>.hint{margin-bottom:0}.distance-panel .postcode-row{justify-content:flex-start}.distance-panel form{max-width:600px}@media(max-width:650px){.distance-panel{padding:18px}.distance-copy h2{font-size:1rem}.filter-actions{justify-content:stretch}.filter-actions button{width:100%}}
