@import url("https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap");

.location-page{background:var(--psg-bg)}
.location-hero{position:relative;min-height:65svh;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000}
.location-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.location-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(31,26,23,.18) 0%, rgba(31,26,23,.38) 55%, rgba(31,26,23,.68) 100%),linear-gradient(90deg, rgba(179,91,46,.14), rgba(179,91,46,0) 38%, rgba(179,91,46,.12))}
.location-hero-copy{position:relative;z-index:1;width:min(100%, 1440px);padding:0 24px;text-align:center;color:var(--psg-white)}
.location-hero-title{margin:0;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:.14em;text-transform:uppercase;line-height:.95;text-shadow:0 4px 28px rgba(0,0,0,.32)}
.location-hero-title span{display:block}
.location-hero-title span:first-child{font-size:clamp(1.55rem,2.6vw,2.45rem)}
.location-hero-title span:last-child{font-size:clamp(2.8rem,6.2vw,5.2rem)}
.location-layout{display:grid;grid-template-columns:260px minmax(0,1fr) 32%;gap:26px;align-items:start;padding-top:28px}
.location-side-nav{padding-top:4px}
.location-side-nav .nav-kicker{margin:0 0 14px;color:var(--psg-accent);font:600 .82rem/1.2 "Inter",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.location-side-nav-group{margin-bottom:18px}
.location-side-nav-title,.location-side-nav a,.location-side-nav .coming-soon{display:block;padding:8px 0}
.location-side-nav-title{font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:1.6rem;letter-spacing:.04em;color:var(--psg-dark)}
.location-side-nav a,.location-side-nav .coming-soon{font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:1.42rem;color:var(--psg-ink);transition:color .18s ease, transform .18s ease}
.location-side-nav .sub-link,.location-side-nav .sub-label{padding-left:18px;font-size:1.18rem}
.location-side-nav a:hover{color:var(--psg-accent);transform:translateX(6px)}
.location-side-nav .coming-soon{color:#9b9187}
.location-side-nav .sub-label{display:block;padding-top:8px;color:#9b9187;font-family:"Inter",system-ui,sans-serif;font-size:.9rem;letter-spacing:.04em}
.location-main-column{min-width:0}
.location-grid-title{margin:0 0 18px;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:1.85rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--psg-dark)}
.school-square-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.school-square-card{display:flex;flex-direction:column;aspect-ratio:1 / 1;background:var(--psg-paper);border:1px solid var(--psg-line);color:var(--psg-ink);overflow:hidden;transition:transform .18s ease, border-color .18s ease}
.school-square-card:hover{transform:translateY(-2px);border-color:rgba(179,91,46,.45)}
.school-square-media{flex:0 0 50%;min-height:0}
.school-square-media img{width:100%;height:100%;object-fit:cover}
.school-square-body{flex:1 1 auto;padding:16px 18px 18px;display:flex;flex-direction:column;justify-content:flex-start}
.school-square-body h2{margin:0 0 8px;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:1.5rem;font-weight:500;line-height:1.05;letter-spacing:.03em;color:var(--psg-dark)}
.school-square-text{margin:0;color:var(--psg-muted);font-size:.98rem}
.school-square-text + .school-square-text{margin-top:4px}
.location-map-panel{position:sticky;top:24px}
.location-map-head{margin:0 0 12px}
.location-map-head .nav-kicker{margin:0 0 8px;color:var(--psg-accent);font:600 .82rem/1.2 "Inter",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.location-map-head h2{margin:0;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:1.7rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--psg-dark)}
.bath-location-map{height:620px;border:1px solid var(--psg-line);background:var(--psg-paper-2)}
.bath-location-map .leaflet-control-attribution{font-size:.68rem}
.bath-location-map .school-map-marker{display:block;width:14px;height:14px;background:var(--psg-dark);border:2px solid var(--psg-paper);box-shadow:0 0 0 1px rgba(0,0,0,.14)}
.bath-location-map .school-map-marker.boarding{background:var(--psg-accent)}
.bath-location-map .school-map-marker.area{background:#7a6d60}
.map-popup{min-width:180px}.map-popup-title{margin:0 0 4px;font:600 1rem/1.2 "Inter",sans-serif}.map-popup-meta{margin:0 0 8px;color:var(--psg-muted);font-size:.9rem}.map-popup-link{color:var(--psg-accent);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.82rem}
.compare-page{padding:30px 0 10px}.compare-hero,.compare-panel,.compare-side-card{background:var(--psg-paper);border:1px solid var(--psg-line)}.compare-hero{padding:28px;margin-bottom:22px}.compare-hero .eyebrow{display:block;margin:0 0 12px;color:var(--psg-accent);font:600 .82rem/1.2 "Inter",sans-serif;letter-spacing:.14em;text-transform:uppercase}.compare-hero h1{margin:0 0 12px;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:clamp(2rem,3.8vw,3.4rem);font-weight:500;letter-spacing:.08em;text-transform:uppercase;line-height:1;color:var(--psg-dark)}.compare-hero p{margin:0 0 16px;color:var(--psg-muted);max-width:72ch}.compare-actions{display:flex;gap:12px;flex-wrap:wrap}.compare-link-button,.compare-inline-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;border:1px solid var(--psg-line);background:transparent;color:var(--psg-ink);font:600 .84rem/1.2 "Inter",sans-serif;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}.compare-link-button:hover,.compare-inline-button:hover{color:var(--psg-accent);border-color:rgba(179,91,46,.45)}.compare-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px}.compare-main{display:grid;gap:22px}.compare-panel,.compare-side-card{padding:24px}.compare-panel h2,.compare-side-card h3{margin:0 0 10px;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:.08em;text-transform:uppercase;line-height:1.02;color:var(--psg-dark)}.compare-panel > p,.compare-side-card p,.compare-help-note{color:var(--psg-muted)}.compare-chooser{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.compare-option{display:block;padding:14px 14px 12px;border:1px solid var(--psg-line);background:#fbf7f0;cursor:pointer}.compare-option:hover{border-color:rgba(179,91,46,.45)}.compare-option input{margin-right:8px}.compare-option.is-disabled{opacity:.5;cursor:not-allowed}.compare-option-title{display:block;margin-top:4px;font:600 1rem/1.25 "Inter",sans-serif;color:var(--psg-dark)}.compare-option-meta{display:block;margin-top:4px;color:var(--psg-muted);font-size:.9rem}.compare-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:18px;flex-wrap:wrap}.compare-status{margin:0;color:var(--psg-muted)}.compare-toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}.compare-pill-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.compare-pill{display:inline-flex;align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--psg-line);background:#fbf7f0;color:var(--psg-ink)}.compare-pill button{border:none;background:none;padding:0;color:var(--psg-accent);font-size:1.1rem;cursor:pointer}.compare-panel-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.compare-panel-heading h2{margin-bottom:6px}.compare-panel-lead,.compare-table-note{margin:0;color:var(--psg-muted)}.compare-metric-toggle{display:inline-flex;border:1px solid var(--psg-line)}.compare-metric-button{border:none;background:transparent;padding:11px 14px;font:600 .82rem/1.2 "Inter",sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--psg-ink);cursor:pointer}.compare-metric-button + .compare-metric-button{border-left:1px solid var(--psg-line)}.compare-metric-button.is-active{background:var(--psg-accent);color:var(--psg-white)}.compare-table-wrap{margin-top:18px;overflow:auto}.compare-table{width:100%;border-collapse:collapse;background:transparent}.compare-table th,.compare-table td{padding:13px 14px;border-bottom:1px solid var(--psg-line);text-align:left;vertical-align:top}.compare-table th{background:rgba(179,91,46,.07);font:600 .78rem/1.2 "Inter",sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--psg-dark)}.compare-table td:first-child a{color:var(--psg-accent);font-weight:700}.compare-cell-note{display:block;margin-top:4px;color:var(--psg-muted);font-size:.8rem}.compare-na{color:#a39990}.compare-mini-list{margin:0;padding-left:18px;color:var(--psg-muted)}.compare-mini-list li+li{margin-top:8px}
@media (max-width:1180px){.location-layout{grid-template-columns:240px minmax(0,1fr)}.location-map-panel{grid-column:1 / -1;position:static}.bath-location-map{height:420px}}
@media (max-width:900px){.location-hero{min-height:50svh}.location-layout{grid-template-columns:1fr}.school-square-grid{grid-template-columns:1fr}.school-square-card{aspect-ratio:auto}.bath-location-map{height:360px}.compare-layout{grid-template-columns:1fr}.compare-chooser{grid-template-columns:1fr}}
@media (max-width:640px){.location-hero-copy{padding-inline:18px}.location-hero-title span:first-child{font-size:1.35rem}.location-hero-title span:last-child{font-size:2.3rem}.school-square-media{flex-basis:46%}.compare-hero,.compare-panel,.compare-side-card{padding:20px}}

.location-hero-title.location-hero-title-single{
  font-size:clamp(3.4rem, 8vw, 6rem);
  letter-spacing:.16em;
  line-height:.92;
}
.location-hero-title.location-hero-title-single span:first-child,
.location-hero-title.location-hero-title-single span:last-child{
  font-size:inherit;
}
@media (max-width:640px){
  .location-hero-title.location-hero-title-single{
    font-size:clamp(2.4rem, 12vw, 3.6rem);
    letter-spacing:.14em;
  }
}


/* Mobile refinements for location, compare and Bath-specific pages */
@media (max-width: 900px){
  .location-page .page-shell{padding-top:18px}
  .location-hero{min-height:42svh}
  .location-layout{grid-template-columns:1fr;gap:22px;padding-top:20px}

  .location-side-nav{
    background:var(--psg-paper);
    border:1px solid var(--psg-line);
    padding:18px 18px 8px;
  }
  .location-side-nav-group{margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--psg-line)}
  .location-side-nav-group:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}
  .location-side-nav .nav-kicker{margin-bottom:10px}
  .location-side-nav-title{font-size:1.38rem}
  .location-side-nav a,.location-side-nav .coming-soon{font-size:1.18rem}
  .location-side-nav .sub-link,.location-side-nav .sub-label{padding-left:12px;font-size:1rem}

  .location-grid-title{font-size:1.56rem;margin-bottom:14px}
  .school-square-grid{grid-template-columns:1fr;gap:16px}
  .school-square-card{display:grid;grid-template-columns:42% 1fr;aspect-ratio:auto;min-height:210px}
  .school-square-media{flex:auto;min-height:100%}
  .school-square-body{padding:14px 15px 15px}
  .school-square-body h2{font-size:1.34rem}
  .school-square-text{font-size:.95rem}

  .location-map-panel{position:static}
  .location-map-head h2{font-size:1.44rem}
  .bath-location-map{height:340px}

  .compare-page{padding:22px 0 0}
  .compare-hero,.compare-panel,.compare-side-card{padding:20px}
  .compare-hero h1{font-size:clamp(1.92rem,9vw,2.7rem)}
  .compare-actions,.compare-toolbar-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .compare-link-button,.compare-inline-button{width:100%}
  .compare-panel-heading{align-items:stretch}
  .compare-metric-toggle{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .compare-metric-button{width:100%;padding:12px 10px}
  .compare-table-wrap{margin-inline:-18px;padding-inline:18px}
  .compare-table{min-width:680px}
}

@media (max-width: 640px){
  .location-hero{min-height:38svh}
  .location-hero-copy{padding-inline:16px}
  .location-hero-title.location-hero-title-single{font-size:clamp(2.5rem,15vw,3.8rem);letter-spacing:.14em}
  .location-side-nav{padding:16px 16px 6px}
  .location-side-nav-title{font-size:1.28rem}
  .location-side-nav a,.location-side-nav .coming-soon{font-size:1.08rem}
  .location-side-nav .sub-link,.location-side-nav .sub-label{font-size:.95rem}
  .school-square-card{grid-template-columns:1fr;min-height:0}
  .school-square-media{aspect-ratio:16/9;min-height:0}
  .school-square-body{padding:14px}
  .bath-location-map{height:300px}
  .compare-hero,.compare-panel,.compare-side-card{padding:18px 16px}
  .compare-chooser{gap:10px}
  .compare-option{padding:12px 12px 10px}
  .compare-option-title{font-size:.96rem}
  .compare-option-meta{font-size:.86rem}
  .compare-panel h2,.compare-side-card h3{font-size:1.48rem}
}


/* School profile pages */
.school-profile-page{background:var(--psg-bg)}
.school-profile-hero{
  position:relative;
  min-height:50svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:#000;
}
.school-profile-hero img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.school-profile-hero::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(31,26,23,.10) 0%, rgba(31,26,23,.34) 52%, rgba(31,26,23,.72) 100%),
    linear-gradient(90deg, rgba(179,91,46,.18), rgba(179,91,46,0) 40%, rgba(179,91,46,.08));
}
.school-profile-hero-copy{
  position:relative; z-index:1;
  width:min(100%, 1440px);
  margin:0 auto;
  padding:0 24px 40px;
  color:var(--psg-white);
  text-align:center;
}
.school-profile-title{
  margin:0;
  font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;
  font-size:clamp(2.7rem, 6vw, 5rem);
  font-weight:500;
  letter-spacing:.12em;
  line-height:.92;
  text-transform:uppercase;
  text-shadow:0 6px 28px rgba(0,0,0,.28);
}
.school-profile-title span{display:block}
.school-profile-subhead{
  margin:16px auto 0;
  max-width:46ch;
  font-size:1.12rem;
  line-height:1.45;
  color:rgba(250,247,242,.93);
}

.school-profile-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr) 32%;
  gap:26px;
  align-items:start;
  padding-top:28px;
}
.school-profile-side{
  padding-top:4px;
}
.school-profile-side .nav-kicker{
  margin:0 0 14px;
  color:var(--psg-accent);
  font:600 .82rem/1.2 "Inter",sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.school-profile-side-card{
  background:var(--psg-paper);
  border:1px solid var(--psg-line);
  padding:18px 18px 14px;
  margin-bottom:18px;
}
.school-profile-side-card h2{
  margin:0 0 14px;
  font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;
  font-size:1.55rem;
  font-weight:500;
  letter-spacing:.04em;
  color:var(--psg-dark);
}
.school-glance-list{
  list-style:none; margin:0; padding:0;
}
.school-glance-list li{
  position:relative;
  padding:0 0 0 20px;
  margin:0 0 12px;
  color:var(--psg-ink);
  font-size:1rem;
  line-height:1.38;
}
.school-glance-list li::before{
  content:"•";
  position:absolute;
  left:0;
  color:var(--psg-accent);
}
.school-glance-list li strong{
  font-weight:600;
  color:var(--psg-dark);
}
.compare-school-links{
  list-style:none; margin:0; padding:0;
}
.compare-school-links li + li{margin-top:8px}
.compare-school-links a{
  display:block;
  font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;
  font-size:1.32rem;
  line-height:1.12;
  color:var(--psg-ink);
  transition:color .18s ease, transform .18s ease;
}
.compare-school-links a:hover{
  color:var(--psg-accent);
  transform:translateX(6px);
}
.compare-school-links small{
  display:block;
  margin-top:2px;
  color:var(--psg-muted);
  font-size:.76rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-family:"Inter",system-ui,sans-serif;
}

.school-profile-main{min-width:0}
.school-detail-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
}
.school-detail-card{
  background:var(--psg-paper);
  border:1px solid var(--psg-line);
  padding:20px;
  min-height:330px;
  display:flex;
  flex-direction:column;
}
.school-detail-card h2{
  margin:0 0 14px;
  font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;
  font-size:1.55rem;
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.02;
  color:var(--psg-dark);
}
.school-detail-card p{margin:0 0 14px; color:var(--psg-ink)}
.school-detail-card p:last-child{margin-bottom:0}
.tile-kpis{
  display:grid;
  gap:12px;
}
.tile-kpi{
  padding:12px 14px;
  background:rgba(179,91,46,.06);
  border:1px solid rgba(179,91,46,.15);
}
.tile-kpi-label{
  display:block;
  font:600 .78rem/1.2 "Inter",sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--psg-muted);
  margin-bottom:6px;
}
.tile-kpi-value{
  display:block;
  font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;
  font-size:2.1rem;
  font-weight:500;
  line-height:.95;
  color:var(--psg-dark);
}
.tile-list{
  margin:0; padding-left:18px; color:var(--psg-ink);
}
.tile-list li+li{margin-top:8px}
.metric-list{
  display:grid; gap:10px; margin-top:2px;
}
.metric-row{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px;
  padding-bottom:8px; border-bottom:1px solid var(--psg-line);
}
.metric-row:last-child{border-bottom:none; padding-bottom:0}
.metric-name{color:var(--psg-dark); font-weight:500}
.metric-value{color:var(--psg-accent); font-weight:700}
.inline-chips{
  display:flex; flex-wrap:wrap; gap:10px;
}
.inline-chip{
  padding:8px 12px;
  background:rgba(41,36,33,.05);
  border:1px solid rgba(41,36,33,.08);
  color:var(--psg-ink);
  font-size:.95rem;
}
.fee-profile-list{
  list-style:none; margin:0; padding:0;
}
.fee-profile-list li + li{margin-top:10px}
.fee-profile-label{
  display:block;
  color:var(--psg-muted);
  font-size:.76rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:3px;
}
.fee-profile-value{
  font-size:1.02rem;
  color:var(--psg-dark);
}
.school-card-coming{
  margin-top:auto;
  color:var(--psg-muted);
}
.school-card-copy ul{margin:0; padding-left:18px}
.school-card-copy li + li{margin-top:8px}
.subjects-details{
  margin-top:0;
}
.subjects-details summary{
  cursor:pointer;
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  color:var(--psg-accent);
  font:600 .88rem/1.2 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.subjects-details summary::-webkit-details-marker{display:none}
.subjects-details summary::after{
  content:"+";
  font-size:1rem;
  line-height:1;
}
.subjects-details[open] summary::after{content:"–"}
.subjects-details .metric-list{margin-top:12px}

.school-profile-map{
  position:sticky; top:24px;
}
.school-profile-map .location-map-head{margin:0 0 12px}
.school-profile-map .location-map-head .nav-kicker{
  margin:0 0 8px;
  color:var(--psg-accent);
  font:600 .82rem/1.2 "Inter",sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.school-profile-map .location-map-head h2{
  margin:0;
  font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;
  font-size:1.7rem;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--psg-dark);
}
.school-page-map{
  height:620px;
  border:1px solid var(--psg-line);
  background:var(--psg-paper-2);
}
.school-page-map .leaflet-control-attribution{font-size:.68rem}
.school-page-map .school-map-marker{
  display:block; width:14px; height:14px;
  background:var(--psg-accent);
  border:2px solid var(--psg-paper);
  box-shadow:0 0 0 1px rgba(0,0,0,.14);
}
.map-caption{
  margin:12px 0 0;
  color:var(--psg-muted);
  font-size:.92rem;
}
.school-page-map .leaflet-popup-content-wrapper{
  border-radius:0;
}
.school-page-map .leaflet-popup-content{
  margin:14px 14px 12px;
}

@media (max-width:1180px){
  .school-profile-layout{grid-template-columns:240px minmax(0,1fr)}
  .school-profile-map{grid-column:1 / -1; position:static}
  .school-page-map{height:420px}
}

@media (max-width:900px){
  .school-profile-hero{min-height:42svh}
  .school-profile-hero-copy{padding:0 18px 28px}
  .school-profile-layout{grid-template-columns:1fr; gap:22px; padding-top:20px}
  .school-profile-side-card{margin-bottom:16px}
  .school-detail-grid{grid-template-columns:1fr}
  .school-detail-card{min-height:0}
  .school-page-map{height:360px}
}

@media (max-width:640px){
  .school-profile-hero{min-height:38svh}
  .school-profile-title{font-size:clamp(2.35rem,11vw,3.8rem); letter-spacing:.10em}
  .school-profile-subhead{font-size:1rem; max-width:28ch}
  .school-profile-side-card{padding:16px}
  .school-profile-side-card h2{font-size:1.4rem}
  .compare-school-links a{font-size:1.18rem}
  .school-detail-card{padding:18px 16px}
  .school-detail-card h2{font-size:1.36rem}
  .tile-kpi-value{font-size:1.8rem}
  .school-page-map{height:300px}
}


/* ===== School pages second pass ===== */
.school-profile-page .page-shell{padding-top:28px}
.school-profile-page .site-header{position:relative;z-index:3}
.school-profile-page .school-profile-hero{position:relative;min-height:56svh;display:flex;align-items:flex-end;overflow:hidden;background:#000}
.school-profile-page .school-profile-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.school-profile-page .school-profile-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(31,26,23,.10) 0%, rgba(31,26,23,.28) 40%, rgba(31,26,23,.72) 100%),linear-gradient(90deg, rgba(179,91,46,.16), rgba(179,91,46,0) 42%, rgba(179,91,46,.10))}
.school-profile-page .school-profile-hero-copy{position:relative;z-index:1;width:min(100%,1440px);margin:0 auto;padding:0 24px 36px;color:var(--psg-white);text-align:left}
.school-profile-page .school-profile-title{margin:0;max-width:12ch;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:clamp(3rem,6.2vw,5rem);font-weight:500;line-height:.9;letter-spacing:.12em;text-transform:uppercase;text-shadow:0 6px 28px rgba(0,0,0,.25)}
.school-profile-page .school-profile-subhead{margin:14px 0 0;max-width:42ch;color:rgba(250,247,242,.94);font-size:1.08rem;line-height:1.45}
.school-profile-page .school-profile-layout{display:grid;grid-template-columns:260px minmax(0,1fr) 32%;gap:26px;align-items:start;padding-top:28px}
.school-profile-page .school-side-section + .school-side-section{margin-top:26px}
.school-profile-page .school-side-column .nav-kicker,.school-profile-page .school-map-panel .nav-kicker{margin:0 0 14px;color:var(--psg-accent);font:600 .82rem/1.2 "Inter",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.school-profile-page .school-glance-table{border-top:1px solid var(--psg-line)}
.school-profile-page .school-glance-row{padding:10px 0 11px;border-bottom:1px solid var(--psg-line)}
.school-profile-page .school-glance-label{display:block;color:var(--psg-muted);font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;margin-bottom:3px}
.school-profile-page .school-glance-value{display:block;color:var(--psg-dark);font-size:1rem;line-height:1.36}
.school-profile-page .school-compare-links{list-style:none;margin:0;padding:0;border-top:1px solid var(--psg-line)}
.school-profile-page .school-compare-links li{border-bottom:1px solid var(--psg-line)}
.school-profile-page .school-compare-links a{display:block;padding:12px 0;font-family:"EB Garamond",ui-serif,Georgia,serif;font-size:1.45rem;line-height:1.08;letter-spacing:.03em;color:var(--psg-ink);transition:color .18s ease,transform .18s ease}
.school-profile-page .school-compare-links a:hover,.school-profile-page .school-compare-links a:focus-visible{color:var(--psg-accent);transform:translateX(6px)}
.school-profile-page .school-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.school-profile-page .school-feature-tile{background:var(--psg-paper);border:1px solid var(--psg-line);padding:22px;aspect-ratio:1/1;min-height:410px;display:flex;flex-direction:column;overflow:hidden}
.school-profile-page .school-feature-tile.tile-expandable.is-expanded{aspect-ratio:auto;min-height:410px}
.school-profile-page .school-feature-tile h2{margin:0 0 14px;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:1.52rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;line-height:1.02;color:var(--psg-dark)}
.school-profile-page .school-feature-body{display:flex;flex-direction:column;gap:12px;flex:1}
.school-profile-page .school-feature-body p{margin:0;color:var(--psg-ink)}
.school-profile-page .school-feature-body .school-card-copy ul,.school-profile-page .school-feature-body .tile-list{margin:0;padding-left:18px}
.school-profile-page .school-feature-body .school-card-copy li + li,.school-profile-page .school-feature-body .tile-list li + li{margin-top:8px}
.school-profile-page .tile-note{color:var(--psg-muted);font-size:.95rem}
.school-profile-page .tile-coming-soon{margin-top:auto}
.school-profile-page .tile-kpis{display:grid;gap:12px}
.school-profile-page .tile-kpi{padding:12px 14px;background:rgba(179,91,46,.06);border:1px solid rgba(179,91,46,.14)}
.school-profile-page .tile-kpi-label{display:block;margin-bottom:6px;font:600 .76rem/1.2 "Inter",sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--psg-muted)}
.school-profile-page .tile-kpi-value{display:block;font-family:"EB Garamond",ui-serif,Georgia,serif;font-size:2rem;font-weight:500;line-height:.92;color:var(--psg-dark)}
.school-profile-page .metric-list{display:grid;gap:10px}
.school-profile-page .metric-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--psg-line)}
.school-profile-page .metric-row:last-child{padding-bottom:0;border-bottom:none}
.school-profile-page .metric-name{color:var(--psg-dark);font-weight:500}
.school-profile-page .metric-value{color:var(--psg-accent);font-weight:700}
.school-profile-page .subjects-details{margin-top:auto}
.school-profile-page .subjects-details summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:8px;color:var(--psg-accent);font:600 .82rem/1.2 "Inter",sans-serif;letter-spacing:.1em;text-transform:uppercase}
.school-profile-page .subjects-details summary::-webkit-details-marker{display:none}
.school-profile-page .subjects-details summary::after{content:"+";font-size:1rem;line-height:1}
.school-profile-page .subjects-details[open] summary::after{content:"–"}
.school-profile-page .subjects-details .metric-list{margin-top:12px}
.school-profile-page .inline-chips{display:flex;flex-wrap:wrap;gap:10px}
.school-profile-page .inline-chip{padding:8px 10px;background:rgba(41,36,33,.05);border:1px solid rgba(41,36,33,.08);color:var(--psg-ink);font-size:.95rem}
.school-profile-page .fee-switch{display:inline-flex;border:1px solid var(--psg-line);margin-top:4px}
.school-profile-page .fee-switch button{border:none;background:transparent;color:var(--psg-ink);padding:10px 12px;font:600 .76rem/1.2 "Inter",sans-serif;letter-spacing:.12em;text-transform:uppercase;cursor:pointer}
.school-profile-page .fee-switch button + button{border-left:1px solid var(--psg-line)}
.school-profile-page .fee-switch button.is-active{background:var(--psg-accent);color:var(--psg-white)}
.school-profile-page .fee-pane{display:none;margin-top:12px}
.school-profile-page .fee-pane.is-active{display:block}
.school-profile-page .fee-year-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
.school-profile-page .fee-year-column{display:grid;gap:8px}
.school-profile-page .fee-year-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(41,36,33,.08);padding-bottom:7px}
.school-profile-page .fee-year-row:last-child{border-bottom:none;padding-bottom:0}
.school-profile-page .fee-year{color:var(--psg-muted);font-size:.8rem;letter-spacing:.06em;text-transform:uppercase}
.school-profile-page .fee-amount{color:var(--psg-dark);font-weight:600;font-size:.93rem;text-align:right}
.school-profile-page .school-map-panel{position:sticky;top:24px}
.school-profile-page .school-map-panel .location-map-head{margin:0 0 12px}
.school-profile-page .school-map-panel .location-map-head h2{margin:0;font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;font-size:1.7rem;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--psg-dark)}
.school-profile-page .school-page-map{height:640px}
.school-profile-page .map-caption{margin:12px 0 0;color:var(--psg-muted);font-size:.92rem}
@media (max-width:1180px){.school-profile-page .school-profile-layout{grid-template-columns:240px minmax(0,1fr)}.school-profile-page .school-map-panel{grid-column:1 / -1;position:static}.school-profile-page .school-page-map{height:420px}}
@media (max-width:900px){.school-profile-page .school-profile-hero{min-height:44svh}.school-profile-page .school-profile-hero-copy{padding:0 18px 28px}.school-profile-page .school-profile-title{max-width:unset;font-size:clamp(2.6rem,10vw,4rem)}.school-profile-page .school-profile-subhead{font-size:1rem;max-width:28ch}.school-profile-page .school-profile-layout{grid-template-columns:1fr;gap:22px;padding-top:20px}.school-profile-page .school-feature-grid{grid-template-columns:1fr}.school-profile-page .school-feature-tile{aspect-ratio:auto;min-height:0}.school-profile-page .school-page-map{height:360px}}
@media (max-width:640px){.school-profile-page .school-profile-hero{min-height:40svh}.school-profile-page .school-profile-title{letter-spacing:.10em}.school-profile-page .school-side-section + .school-side-section{margin-top:22px}.school-profile-page .school-compare-links a{font-size:1.24rem}.school-profile-page .school-feature-tile{padding:18px 16px}.school-profile-page .school-feature-tile h2{font-size:1.34rem}.school-profile-page .tile-kpi-value{font-size:1.75rem}.school-profile-page .fee-year-columns{grid-template-columns:1fr;gap:8px}.school-profile-page .school-page-map{height:300px}}



/* School profile page refinements and comparison mode */
.school-profile-page .school-profile-hero{
  min-height:52svh;
  width:100%;
}
.school-profile-page .school-profile-hero-copy{
  padding:32px 28px 40px;
}
.school-profile-page .school-profile-title{
  max-width:12ch;
  font-size:clamp(2.55rem, 5.2vw, 4.35rem);
  line-height:.94;
}
.school-profile-page .school-profile-subhead{
  max-width:48ch;
}
.school-profile-page .school-back-strip{
  background:var(--psg-paper);
  border-bottom:1px solid var(--psg-line);
}
.school-profile-page .school-back-link{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:12px 0 14px;
  color:var(--psg-ink);
  font:500 1rem/1.2 "EB Garamond", ui-serif, Georgia, serif;
  letter-spacing:.04em;
}
.school-profile-page .school-back-link:hover{
  color:var(--psg-accent);
  text-decoration:none;
}
.school-profile-page .school-profile-layout{
  grid-template-columns:236px minmax(0,1fr) 316px;
  gap:24px;
  align-items:start;
}
.school-profile-page .school-profile-main{min-width:0}
.school-profile-page .school-feature-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.school-profile-page .school-feature-tile{
  aspect-ratio:auto;
  min-height:0;
  overflow:visible;
}
.school-profile-page .school-feature-tile h2{
  font-size:1.42rem;
}
.school-profile-page .school-map-panel{
  position:sticky;
  top:24px;
  align-self:start;
}
.school-profile-page .school-map-panel .location-map-head{
  margin:0 0 10px;
}
.school-profile-page .school-map-panel .location-map-head h2{
  font-size:1.18rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.school-profile-page .school-page-map{
  height:540px;
}
.school-profile-page .map-caption{
  line-height:1.35;
}
.school-profile-page .fee-year-columns{
  grid-template-columns:1fr;
  gap:8px;
}
.school-profile-page .fee-year-column{
  display:contents;
}
.school-profile-page .school-compare-links a.is-active{
  color:var(--psg-accent);
  transform:translateX(6px);
}
.school-profile-page .school-compare-columns{
  display:none;
}
.school-profile-page.is-compare-mode .school-feature-grid{
  display:none;
}
.school-profile-page.is-compare-mode .school-compare-columns{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.school-profile-page .school-compare-column{
  min-width:0;
}
.school-profile-page .school-compare-column-head{
  position:sticky;
  top:24px;
  z-index:4;
  background:var(--psg-paper);
  border:1px solid var(--psg-line);
  padding:16px 18px 14px;
  margin-bottom:18px;
}
.school-profile-page .school-compare-column-kicker{
  margin:0 0 8px;
  color:var(--psg-accent);
  font:600 .78rem/1.2 "Inter",sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.school-profile-page .school-compare-column-head h2{
  margin:0;
  font-family:"EB Garamond", ui-serif, Georgia, serif;
  font-size:1.9rem;
  font-weight:500;
  letter-spacing:.04em;
  line-height:.96;
  color:var(--psg-dark);
}
.school-profile-page .school-compare-column-head p{
  margin:8px 0 0;
  color:var(--psg-ink);
  font-size:.98rem;
  line-height:1.45;
}
.school-profile-page .school-compare-column-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.school-profile-page .school-compare-head-link,
.school-profile-page .school-compare-clear{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--psg-line);
  background:var(--psg-paper);
  color:var(--psg-dark);
  font:600 .76rem/1.2 "Inter",sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
}
.school-profile-page .school-compare-head-link:hover,
.school-profile-page .school-compare-clear:hover{
  color:var(--psg-accent);
  text-decoration:none;
}
.school-profile-page .school-compare-column .school-feature-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
.school-profile-page .school-map-legend{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:10px 0 0;
  font-size:.86rem;
  color:var(--psg-muted);
}
.school-profile-page .school-map-legend-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.school-profile-page .school-map-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  display:inline-block;
}
.school-profile-page .school-map-dot--primary{background:var(--psg-accent)}
.school-profile-page .school-map-dot--secondary{background:var(--psg-dark)}
.school-profile-page .school-map-marker{
  display:block;
  width:16px;
  height:16px;
  border-radius:999px;
  background:var(--psg-accent);
  border:2px solid var(--psg-paper);
  box-shadow:0 0 0 1px rgba(41,36,33,.14);
}
.school-profile-page .school-map-marker--secondary{
  background:var(--psg-dark);
}
.school-profile-page .school-page-map .leaflet-popup-content-wrapper{
  border-radius:0;
}
.school-profile-page .school-page-map .leaflet-popup-content{
  margin:12px 14px;
}
.school-profile-page .school-page-map .map-popup-title{
  margin:0 0 4px;
  font-family:"EB Garamond",ui-serif,Georgia,serif;
  font-size:1.2rem;
}
.school-profile-page .school-page-map .map-popup-meta{
  margin:0 0 8px;
  color:var(--psg-muted);
  font-size:.92rem;
}
.school-profile-page .school-page-map .map-popup-link{
  color:var(--psg-accent);
  font-weight:600;
}
@media (max-width: 1360px){
  .school-profile-page .school-profile-layout{
    grid-template-columns:236px minmax(0,1fr);
  }
  .school-profile-page .school-map-panel{
    grid-column:1 / -1;
    position:static;
  }
  .school-profile-page .school-page-map{
    height:420px;
  }
}
@media (max-width: 1180px){
  .school-profile-page.is-compare-mode .school-compare-columns{
    grid-template-columns:1fr;
  }
}
@media (max-width: 900px){
  .school-profile-page .school-profile-title{
    max-width:unset;
    font-size:clamp(2.3rem, 10vw, 3.8rem);
  }
  .school-profile-page .school-profile-subhead{
    max-width:32ch;
    font-size:1rem;
  }
  .school-profile-page .school-profile-layout{
    grid-template-columns:1fr;
    gap:22px;
    padding-top:20px;
  }
  .school-profile-page .school-feature-grid,
  .school-profile-page.is-compare-mode .school-compare-columns{
    grid-template-columns:1fr;
  }
  .school-profile-page .school-page-map{
    height:360px;
  }
  .school-profile-page .school-compare-column-head{
    position:static;
  }
}
@media (max-width: 640px){
  .school-profile-page .school-back-link{
    padding:10px 0 12px;
    font-size:.96rem;
  }
  .school-profile-page .school-feature-tile{
    padding:18px 16px;
  }
  .school-profile-page .school-page-map{
    height:300px;
  }
}


/* --- March 2026 refinement patch: location tiles, school comparison alignment --- */
.location-page .school-square-card{
  aspect-ratio:1 / 1 !important;
  min-height:0;
  justify-content:center;
}
.location-page .school-square-media{
  display:none !important;
}
.location-page .school-square-body{
  padding:24px 22px;
  justify-content:center;
}
.location-page .school-square-body h2{
  margin:0 0 12px;
  font-size:1.62rem;
}
.location-page .school-square-text{
  font-size:1rem;
}
.location-page .school-square-text + .school-square-text{
  margin-top:6px;
}
.location-page .school-square-card:hover{
  transform:translateY(-2px);
}
@media (max-width: 900px){
  .location-page .school-square-card{
    aspect-ratio:1 / 1 !important;
    display:flex;
    min-height:0;
  }
  .location-page .school-square-body{
    padding:20px 18px;
  }
}
@media (max-width: 640px){
  .location-page .school-square-card{
    aspect-ratio:auto !important;
    min-height:230px;
  }
}

.school-profile-page .school-feature-tile,
.school-profile-page .school-compare-column-head{
  overflow-wrap:anywhere;
}
.school-profile-page .school-page-map{
  overflow:hidden;
}

.school-profile-page .school-compare-columns{
  display:none;
}
.school-profile-page.is-compare-mode .school-compare-columns{
  display:block;
}
.school-profile-page .school-compare-headers{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  align-items:start;
  margin-bottom:18px;
}
.school-profile-page .school-compare-column{
  min-width:0;
}
.school-profile-page .school-compare-paired{
  display:grid;
  gap:22px;
}
.school-profile-page .school-compare-row{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
  align-items:start;
}
.school-profile-page .school-compare-row .school-feature-tile{
  margin:0;
}
.school-profile-page .school-feature-tile--placeholder{
  visibility:hidden;
  pointer-events:none;
  min-height:0 !important;
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  aspect-ratio:auto !important;
}
.school-profile-page .school-feature-tile--placeholder::before{
  content:"";
  display:block;
  min-height:24px;
}
.school-profile-page .school-feature-tile .metric-value,
.school-profile-page .school-feature-tile .tile-kpi-value{
  white-space:nowrap;
}
.school-profile-page .school-feature-tile .fee-year-row{
  gap:16px;
}
.school-profile-page .school-map-panel{
  min-width:0;
}
.school-profile-page .school-page-map{
  width:100%;
}
.school-profile-page .map-caption{
  max-width:100%;
}
@media (max-width: 1180px){
  .school-profile-page .school-compare-headers,
  .school-profile-page .school-compare-row{
    grid-template-columns:1fr;
  }
}
@media (max-width: 900px){
  .school-profile-page .school-compare-headers,
  .school-profile-page .school-compare-row{
    grid-template-columns:1fr;
    gap:16px;
  }
}



/* --- March 2026 bursaries / subject mix / mobile profile polish --- */
.school-profile-page .subject-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  border:none;
  background:transparent;
  color:var(--psg-accent);
  padding:0;
  margin-top:auto;
  font:600 .82rem/1.2 "Inter",sans-serif;
  letter-spacing:.10em;
  text-transform:uppercase;
  cursor:pointer;
}
.school-profile-page .subject-toggle::after{
  content:"+";
  font-size:1rem;
  line-height:1;
}
.school-profile-page .subject-toggle--collapse{
  margin-top:12px;
}
.school-profile-page .subject-toggle--collapse::after{
  content:"–";
}
.school-profile-page .subject-extra[hidden]{
  display:none !important;
}
.school-profile-page .subject-extra{
  margin-top:12px;
}
@media (max-width: 640px){
  .school-profile-page .school-glance-table{
    border-top:none;
    display:grid;
    gap:10px;
  }
  .school-profile-page .school-glance-row{
    padding:12px 14px;
    border:1px solid var(--psg-line);
    background:var(--psg-paper);
  }
  .school-profile-page .school-glance-label{
    color:var(--psg-accent);
    margin-bottom:4px;
  }
  .school-profile-page .school-glance-value{
    font-family:"EB Garamond",ui-serif,Georgia,"Times New Roman",serif;
    font-size:1.36rem;
    line-height:1.02;
  }
}


/* --- April 2026 map / subject / fee alignment fixes --- */
.school-profile-page .subject-extra{
  margin-top:0;
}
.school-profile-page .subject-extra .metric-list{
  margin-top:0;
}
.school-profile-page .subject-extra .metric-row:first-child{
  border-top:1px solid var(--psg-line);
  padding-top:8px;
}
.school-profile-page .fee-switch-spacer{
  display:block;
  height:43px;
  margin-top:4px;
}
.school-profile-page .school-map-icon-wrap{
  background:transparent;
  border:none;
}
.school-profile-page .school-map-marker--primary{
  background:var(--psg-accent);
}


/* 2026-03-13 tweaks: location map colours, square text-only cards, data pages, and fee/subject fixes */
.location-side-nav a.is-current{
  color:var(--psg-accent);
  transform:translateX(6px);
}

.location-layout--no-map{
  grid-template-columns:260px minmax(0,1fr);
}

.location-page .school-square-grid{
  align-items:stretch;
}
.location-page .school-square-card{
  aspect-ratio:1 / 1;
  min-height:0;
}
.location-page .school-square-media{
  display:none !important;
}
.location-page .school-square-body{
  justify-content:flex-start;
  padding:22px;
}
.location-page .school-square-body h2{
  margin-bottom:12px;
}
.location-page .school-square-text{
  font-size:1.02rem;
}
.location-page .school-square-text + .school-square-text{
  margin-top:8px;
}
.location-page .school-square-card--allthrough{
  border-top:3px solid #b35b2e;
}
.location-page .school-square-card--junior{
  border-top:3px solid #6a5b46;
}
.location-page .school-square-card--senior{
  border-top:3px solid #2a2520;
}

.bath-location-map .school-map-marker{
  background:var(--psg-dark);
}
.bath-location-map .school-map-marker.allthrough{
  background:var(--psg-accent);
}
.bath-location-map .school-map-marker.junior{
  background:#9d7a44;
}
.bath-location-map .school-map-marker.senior{
  background:#2a2520;
}

.data-page-head{
  margin:0 0 22px;
}
.data-page-note{
  margin:0;
  color:var(--psg-muted);
  max-width:74ch;
}
.fees-switch{
  display:inline-flex;
  border:1px solid var(--psg-line);
  margin:0 0 18px;
}
.fees-switch button{
  border:none;
  background:transparent;
  padding:11px 16px;
  color:var(--psg-dark);
  font:600 .82rem/1.2 "Inter",sans-serif;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
}
.fees-switch button + button{
  border-left:1px solid var(--psg-line);
}
.fees-switch button.is-active{
  background:var(--psg-accent);
  color:var(--psg-white);
}
.data-table-wrap{
  overflow:auto;
}
.fees-matrix{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}
.fees-matrix th,
.fees-matrix td{
  border-bottom:1px solid var(--psg-line);
  padding:12px 12px;
  text-align:right;
  vertical-align:top;
  white-space:nowrap;
}
.fees-matrix thead th{
  position:sticky;
  top:0;
  background:rgba(179,91,46,.07);
  z-index:1;
  font:600 .78rem/1.2 "Inter",sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--psg-dark);
}
.fees-matrix thead th:first-child,
.fees-matrix tbody th{
  text-align:left;
}
.fees-matrix tbody th{
  color:var(--psg-muted);
  font:600 .8rem/1.2 "Inter",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:rgba(255,255,255,.45);
}
.fees-matrix .th-note{
  display:block;
  margin-top:2px;
  font-size:.68rem;
  letter-spacing:.12em;
}
.bursary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.bursary-square-card{
  aspect-ratio:1 / 1;
  background:var(--psg-paper);
  border:1px solid var(--psg-line);
  display:flex;
}
.bursary-square-card .school-square-body{
  width:100%;
  padding:22px;
}
.bursary-card-text{
  margin:0;
  color:var(--psg-ink);
  line-height:1.55;
  font-size:.96rem;
}

.school-profile-page .subject-extra{
  border-top:1px solid rgba(41,36,33,.12);
}
.school-profile-page .subject-extra .metric-list .metric-row:first-child{
  margin-top:0;
}
.school-profile-page .fee-switch-spacer{
  display:block;
  height:44px;
  margin-top:4px;
}
.school-profile-page .fee-pane.is-active{
  margin-top:12px;
}
.school-profile-page .fee-year-columns{
  grid-template-columns:1fr;
}

@media (max-width: 900px){
  .location-layout--no-map{
    grid-template-columns:1fr;
  }
  .bursary-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .location-page .school-square-card{
    aspect-ratio:auto;
    min-height:220px;
  }
  .location-page .school-square-body{
    padding:18px;
  }
  .fees-matrix{
    min-width:760px;
  }
}
