/* Western Heights School. Shared styles for every page. */

/* Small utility classes (fx = flex, col = column, gap12 = 12px gap, and so on). */
.fx{display:flex}
.col{display:flex;flex-direction:column}
.grid{display:grid}
.ac{align-items:center}
.jc{justify-content:center}
.jb{justify-content:space-between}
.f1{flex:1}
.noshrink{flex-shrink:0}
.wrap{flex-wrap:wrap}
.fw5{font-weight:500}
.fw6{font-weight:600}
.fw7{font-weight:700}
.fw8{font-weight:800}
.fs11{font-size:11px}
.fs12{font-size:12px}
.fs13{font-size:13px}
.fs14{font-size:14px}
.fs15{font-size:15px}
.fs16{font-size:16px}
.fs20{font-size:20px}
.fs22{font-size:22px}
.upper{text-transform:uppercase}
.tc{text-align:center}
.nowrap{white-space:nowrap}
.gap8{gap:8px}
.gap10{gap:10px}
.gap12{gap:12px}
.gap16{gap:16px}
.gap24{gap:24px}
.m0{margin:0}
.mt8{margin-top:8px}
.mt12{margin-top:12px}
.mt16{margin-top:16px}
.mb8{margin-bottom:8px}
.mb12{margin-bottom:12px}
.mb16{margin-bottom:16px}
.posrel{position:relative}
.posabs{position:absolute}
.round{border-radius:50%}
.ohide{overflow:hidden}
.bbox{box-sizing:border-box}
.pointer{cursor:pointer}
.w100{width:100%}
.b0{border:none}

/* Shared rules for every Western Heights page. */
:root{--wh-max:1440px;--wh-gutter:clamp(16px,4vw,54px);--wh-edge:max(var(--wh-gutter),calc((100vw - var(--wh-max)) / 2))}

/* Side panels (newsletters, the day, the enrolment pack) stick beside the content on a wide
   screen. Once the columns stack on a phone they would pin over the text below, so let them scroll. */
@media (max-width:900px){[style*="sticky"]:not([data-header]){position:static !important}}

/* Big screens: keep content in a readable column instead of stretching to the edges.
   Page sections carry their side padding inline, so this overrides it once, here. */
@media (min-width:1560px){
  section[style*="4vw,54px"],footer[style*="4vw,54px"],header[data-header],[data-topbar]{
    padding-left:var(--wh-edge) !important;padding-right:var(--wh-edge) !important}
  [data-split]>:first-child{padding-left:var(--wh-edge) !important}
  [data-band]{max-width:var(--wh-max);margin-left:auto !important;margin-right:auto !important}
}
@media (min-width:2200px){:root{--wh-max:1600px}}

/* External-link arrow */
.wh-ext{position:absolute;top:22px;right:22px;width:18px;height:18px;color:currentColor;opacity:.55;transition:transform .25s ease,opacity .25s ease}
a:hover>.wh-ext{opacity:1;transform:translate(2px,-2px)}

/* Zone map */
.zm{display:grid;grid-template-columns:minmax(300px,380px) 1fr;gap:0;background:#fff;border:1px solid rgba(30,16,36,.12);border-radius:14px;overflow:hidden;min-height:520px}
.zm-panel{position:relative;display:flex;flex-direction:column;gap:12px;padding:26px 24px;border-right:1px solid rgba(30,16,36,.1)}
.zm-label{font:700 11px/1 'Source Sans 3',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#55207C}
.zm-search{display:flex;gap:8px}
.zm-input{flex:1;min-width:0;padding:14px 15px;font:400 16px 'Source Sans 3',sans-serif;color:#1E1024;background:#FBF7F0;border:1px solid rgba(30,16,36,.2);border-radius:8px;outline:none}
.zm-input:focus{border-color:#55207C;box-shadow:0 0 0 3px rgba(85,32,124,.15)}
.zm-go{font:700 15px 'Source Sans 3',sans-serif;color:#fff;background:#55207C;border:0;padding:0 20px;border-radius:8px;cursor:pointer}
.zm-go:hover{background:#35104F}
.zm-list{position:absolute;left:24px;right:24px;top:98px;z-index:1000;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid rgba(30,16,36,.14);border-radius:10px;box-shadow:0 18px 40px rgba(30,16,36,.18)}
.zm-opt{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:7px;cursor:pointer}
.zm-opt.is-active,.zm-opt:hover{background:#F1E9F6}
.zm-opt-a{font:600 15px/1.3 'Source Sans 3',sans-serif;color:#1E1024}
.zm-opt-b{font:400 13px/1.3 'Source Sans 3',sans-serif;color:#6a6072}
.zm-locate{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;font:600 14px 'Source Sans 3',sans-serif;color:#55207C;background:transparent;border:1px solid rgba(85,32,124,.3);padding:9px 14px;border-radius:99px;cursor:pointer}
.zm-locate:hover{background:#F1E9F6}
.zm-locate::before{content:"";width:9px;height:9px;border-radius:50%;border:2px solid currentColor}
.zm-result:empty{display:none}
.zm-result{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border-radius:10px;background:#FBF7F0;border-left:4px solid #A8710A;animation:zm-in .35s ease}
.zm-result strong{font:700 18px/1.25 'Bricolage Grotesque',sans-serif;color:#1E1024}
.zm-result p{margin:0;font:400 15px/1.55 'Source Sans 3',sans-serif;color:#4a4155}
.zm-in{background:#E9F2EC;border-left-color:#3F7A55}
.zm-out{background:#F6ECEC;border-left-color:#A33B3B}
.zm-next{font:700 14.5px 'Source Sans 3',sans-serif;color:#2F6141;text-decoration:none}
.zm-hint{margin:auto 0 0;font:400 13.5px/1.5 'Source Sans 3',sans-serif;color:#6a6072}
.zm-map{min-height:520px;background:#EDE7DC}
@keyframes zm-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.zm-crest img{width:44px;height:44px;border-radius:50%;box-shadow:0 0 0 3px #fff,0 6px 16px rgba(30,16,36,.35)}
.zm-pin span{position:absolute;left:3px;top:0;width:24px;height:24px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#A8710A;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(30,16,36,.35)}
.zm-pin-in span{background:#3F7A55}
.zm-pin-out span{background:#A33B3B}
.leaflet-container{font-family:'Source Sans 3',sans-serif}
.zm-tiles{filter:saturate(.55) brightness(1.03)}
@media (max-width:900px){
  .zm{grid-template-columns:1fr}
  .zm-panel{border-right:0;border-bottom:1px solid rgba(30,16,36,.1);padding:20px 18px}
  .zm-list{left:18px;right:18px;top:92px}
  .zm-map{min-height:min(70vh,440px)}
  .zm-hint{margin-top:0}
}

@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important}}

/* Header (top bar and menu) */
@media (max-width:1100px){[data-greet]{display:none !important}}
@media (max-width:1000px){[data-util2]{display:none !important}}
@media (max-width:900px){[data-hidesm]{display:none !important}}
[data-wordmark]{white-space:nowrap}
nav a{white-space:nowrap}
@media (max-width:1150px){[data-wordmark]{font-size:17px !important}[data-tagline]{font-size:9px !important}}

/* Footer */
@media (max-width:900px){[data-fstack]{grid-template-columns:1fr !important}}

/* Show/hide wrappers used by the scripts: no effect on layout. */
[data-if]{display:contents}
[data-if][hidden],[hidden]{display:none !important}

/* Smooth page changes in browsers that support it (Chrome, Edge, Safari 18.2+). */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){mix-blend-mode:normal}
::view-transition-old(root){animation:.42s linear both wh-keep}
::view-transition-new(root){animation:.42s cubic-bezier(.22,1,.36,1) both wh-in}
::view-transition-group(wh-top){animation-duration:.42s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
[data-header]{view-transition-name:wh-top}
@keyframes wh-keep{from,to{opacity:1}}
@keyframes wh-in{from{opacity:0;transform:translateY(14px)}}
@media (prefers-reduced-motion:reduce){@view-transition{navigation:none}}
