@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');
:root{--ink:#142b31;--pine:#103d3a;--mint:#bde9ce;--muted:#49616a;--paper:#f3f8f6;--line:#d6e4de;--white:#fff;--sans:"DM Sans",system-ui,sans-serif;--serif:"Instrument Serif",Georgia,serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:1rem/1.55 var(--sans);color:var(--ink);background:var(--paper)}a{color:inherit}button,input,select{font:inherit}button,select{cursor:pointer}:focus-visible{outline:3px solid #388f72;outline-offset:3px}.wrap{width:min(1120px,calc(100% - 48px));margin-inline:auto}.mast{background:var(--pine);color:#fff;border-bottom:1px solid #ffffff22}.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:700;font-size:1.1rem}.mark{color:var(--mint);font-size:1.6rem}.nav nav{display:flex;gap:24px;font-size:.9rem}.nav nav a{text-decoration:none;color:#d7ece5}.nav nav a:hover{text-decoration:underline}
h1,h2{font-family:var(--serif);font-weight:400;margin:0;line-height:1.02}h1{font-size:clamp(3.7rem,7.6vw,7.1rem);letter-spacing:-.04em}h2{font-size:clamp(2.65rem,5vw,4.15rem);letter-spacing:-.025em}.converter{background:white;color:var(--ink);padding:28px;border-radius:22px;box-shadow:0 20px 50px #061c1c40}.converter h2{font-size:2.1rem}.switch{margin:20px 0;display:flex;padding:4px;gap:4px;background:#eaf3ef;border-radius:12px}.switch button{flex:1;border:0;border-radius:9px;background:transparent;color:var(--ink);padding:9px 5px;font-weight:700;font-size:.875rem}.switch button[aria-pressed=true]{background:var(--pine);color:white}label{display:block;font-size:.875rem;font-weight:700;margin-bottom:6px}input,select{width:100%;min-height:46px;border:1px solid #a9c1b8;border-radius:9px;padding:9px 12px;background:white;color:var(--ink)}select{appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,#315c52 50%),linear-gradient(135deg,#315c52 50%,transparent 50%);background-position:calc(100% - 16px) 52%,calc(100% - 11px) 52%;background-size:5px 5px;background-repeat:no-repeat}.result{background:#e4f5eb;margin:16px 0 10px;padding:16px 20px;border-radius:12px;color:#16453a;min-height:125px}.result p{margin:0;font-size:.875rem}.result strong{font-family:var(--serif);font-weight:400;font-size:2.8rem;line-height:1.12;display:block;overflow-wrap:anywhere}.converter small{font-size:.875rem;color:var(--muted)}
.schools{padding-block:65px}.table-lede{max-width:710px;color:var(--muted);margin-top:12px}.toolbar{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px}.table-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:18px 0 8px;font-size:.875rem;color:var(--muted)}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:15px;background:white}table{width:100%;border-collapse:collapse;min-width:715px}th,td{padding:13px 15px;text-align:center;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}thead{background:var(--pine);color:white}th:first-child,td:first-child{text-align:left}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#eff8f2}tbody td:last-child{color:var(--pine);background:#eaf6ef;font-weight:700}.school-name{display:block;font-weight:700}.town{display:block;color:var(--muted);font-size:.875rem}.pill{display:inline-block;background:#e9efed;color:#214940;border-radius:20px;padding:3px 9px;font-size:.875rem;font-weight:700;white-space:nowrap}.pill.ip{background:#d7efec}.empty{text-align:center!important;padding:28px!important}details{margin-top:20px;border:1px solid var(--line);border-radius:12px;padding:14px 18px;background:#fff}summary{font-weight:700;cursor:pointer}details p:last-child{margin-bottom:4px}footer{background:var(--pine);color:white;padding:24px 0}footer .wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}footer span:last-child{color:#dbede6}
@media(max-width:770px){.schools{padding-block:42px}.toolbar{grid-template-columns:1fr 1fr}.toolbar>div:first-child{grid-column:1/-1}}
@media(max-width:420px){.wrap{width:calc(100% - 32px)}.nav nav{gap:12px}.brand{font-size:.95rem}.converter{padding:18px}.toolbar{grid-template-columns:1fr}.toolbar>div:first-child{grid-column:auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.mobile-year { display: none; }
@media (max-width: 770px) {
  .table-scroll { overflow: visible; border: 0; background: transparent; }
  table { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody { display: grid; gap: 12px; }
  tbody tr {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }
  tbody td { padding: 0; border: 0; }
  tbody td:first-child { grid-column: span 5; overflow-wrap: anywhere; }
  tbody td:nth-child(2) { grid-column: span 5; text-align: left; margin-bottom: 4px; }
  tbody td.cutoff { padding: 6px 1px; border-radius: 7px; background: var(--paper); }
  tbody td.cutoff:last-child { background: #e4f5eb; }
  .mobile-year { display: block; font-size: .875rem; font-weight: 500; color: var(--muted); }
  tbody td.empty { grid-column: 1 / -1; background: transparent; }
}

.rank { display: inline-block; margin-right: .5rem; padding: .05rem .45rem; border-radius: .35rem; background: #e4f5eb; color: var(--pine); font-size: .875rem; font-variant-numeric: tabular-nums; }

.region-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.region-buttons button { min-height: 44px; border-radius: 8px; padding: 6px 10px; background: #eef7f1; border: 1px solid #b7d6c8; color: var(--pine); font-size: .875rem; font-weight: 700; }
.region-buttons button[aria-pressed=true] { background: var(--pine); border-color: var(--pine); color: white; }
.map-panel { background: #e9f6f9; border-radius: 12px; padding: 8px; }
#region-map { display: block; width: 100%; height: auto; }
.map-region { cursor: pointer; }
.map-area { fill-rule: evenodd; stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; cursor: pointer; }
.map-area-west { --zone-color: #9acfa9; }
.map-area-north { --zone-color: #b6bde9; }
.map-area-north-east { --zone-color: #a9d8e9; }
.map-area-east { --zone-color: #f1cc86; }
.map-area-central { --zone-color: #efb6a8; }
.map-area { fill: var(--zone-color); }
.region-buttons button[class^="map-area-"] { background: var(--zone-color); color: var(--ink); border-color: #536d6370; }
.region-buttons button[class^="map-area-"][aria-pressed="true"] { border-color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); }
.region-buttons:has(button[class^="map-area-"][aria-pressed="true"]) button[aria-pressed="false"] { background: #d9dfe0; color: #374c52; border-color: #a8b5b5; }
.map-area.map-area-muted { fill: #d9dfe0; }
.map-region circle { stroke: #fff; stroke-width: 1.6; }
.map-west circle { fill: #397751; }
.map-north circle { fill: #6254a3; }
.map-north-east circle { fill: #007482; }
.map-east circle { fill: #a55b13; }
.map-central circle { fill: #a94d5c; }
.map-region circle.map-dot-ineligible { fill: #959fa3; }
#region-map.has-selection .map-region[aria-pressed=false] circle { opacity: .32; }
#region-map .map-region:is(:hover, :focus-visible, [aria-pressed=true]) circle { stroke: var(--pine); stroke-width: 2; }
#region-map text { text-anchor: middle; fill: var(--ink); font: 700 26px var(--sans); paint-order: stroke; stroke: #f4f9f7; stroke-width: 4px; stroke-linejoin: round; }
.map-credit { margin: 0 6px 6px; color: var(--muted); font-size: .875rem; }

.shortlist { margin-top: 12px; padding: clamp(8px, 2vw, 16px); background: #eaf5ef; border: 1px solid var(--line); border-radius: 15px; }
.shortlist h3 { margin: 0; font: 400 2rem/1.1 var(--serif); }
#shortlist-summary { margin: 4px 0 7px; color: var(--muted); }
#shortlist-results { margin: 0; padding: 0; list-style: none; counter-reset: pick; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 286px), 1fr)); gap: 8px; }
#shortlist-results li { background: white; border-radius: 8px; counter-increment: pick; }
#shortlist-results span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.45; }

.shortlist .region-buttons { margin: 7px 0; }
.hybrid-region-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 820px; }
.hybrid-region-picker .map-panel { box-sizing: border-box; width: 100%; max-width: 350px; justify-self: start; }
.hybrid-region-picker .map-credit { font-size: .7rem; }
@media (min-width: 850px) {
  .hybrid-region-picker { grid-template-columns: minmax(0, 1fr) minmax(280px, 350px); align-items: center; }
}


.schools { padding-block: clamp(16px, 2.8vw, 34px) 0; }
.schools-title { font-size: clamp(2.6rem, 5vw, 4rem); }
.shortlist-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.shortlist-heading h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); }
.shortlist-score { text-align: right; }
.shortlist-score label { margin: 0 0 2px; }
.shortlist-score select { max-width: 100%; width: auto; background-color: var(--pine); color: white; border: 0; border-radius: 9px; font-size: clamp(1.2rem, 3.2vw, 1.4rem); line-height: 1.1; font-weight: 700; text-align: right; background-image: linear-gradient(45deg,transparent 50%,white 50%),linear-gradient(135deg,white 50%,transparent 50%); }
.shortlist-score option { color: var(--ink); background: white; font: 500 1rem/1.4 system-ui, sans-serif; text-align: start; }
.pick-body { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; align-items: start; gap: 7px 8px; height: 100%; padding: 9px; overflow-wrap: anywhere; }
.pick-copy { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.pick-copy strong { line-height: 1.22; }
.pick-copy strong::before { color: var(--pine); content: counter(pick) '. '; }
.pick-meta { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; }
#shortlist-results .pick-meta span { font-size: .78rem; line-height: 1.25; }
#shortlist-results .pick-details { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
#shortlist-results .pick-rank { color: var(--pine); }
#shortlist-results .pick-programme { padding: 1px 5px; border-radius: 4px; background: #ffffffa8; color: var(--pine); font-weight: 650; white-space: nowrap; }
#shortlist-results .pick-average { white-space: nowrap; }
#shortlist-results .pick-average strong { color: var(--pine); font-variant-numeric: tabular-nums; }
.pick-crest { grid-column: 1; grid-row: 1; width: 36px; height: 36px; object-fit: contain; mix-blend-mode: multiply; border-radius: 8px; padding: 4px; }
@media (max-width: 520px) {
  .nav { min-height: 56px; gap: 5px; }
  .nav nav { gap: 10px; }
  .nav nav a { display: flex; align-items: center; min-height: 44px; font-size: .78rem; }
  .brand { gap: 4px; }
  .brand .mark { font-size: 1rem; }
  #shortlist-results { grid-template-columns: minmax(0, 1fr); }
}

.posting-choice { width: min(100%, 240px); margin-top: 10px; }
#shortlist-results .pick-cutoff { color: #fff; background: var(--pine); border: 1px solid var(--pine); border-radius: 6px; padding: 2px 6px; font-size: .95rem; font-weight: 800; text-align: right; white-space: nowrap; }

.school-identity { display: flex; align-items: center; gap: 10px; }
.table-crest { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }

.pick-body { container-type: inline-size; }
.pick-history { grid-column: 1 / -1; align-self: end; }
.pick-history-label { color: var(--muted); font-size: .75rem; font-weight: 700; }
.pick-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 3px 0 0;
  padding-top: 4px;
  border-top: 1px solid #142b3145;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.pick-timeline > div { padding: 2px 1px; line-height: 1.25; }
.pick-timeline > div + div { border-inline-start: 1px solid #142b3126; }
.pick-timeline dt { color: #354e46; font-size: .75rem; font-weight: 600; }
.pick-timeline dd { margin: 0; color: #102d25; font-size: .75rem; font-weight: 800; white-space: nowrap; }
@container (min-width: 244px) {
  .pick-timeline dd { font-size: .875rem; }
}

.crest-link { display: grid; place-items: center; font-size: .7rem; overflow-wrap: normal; color: var(--pine); }

.admission-label { margin: 0 0 3px; font-size: .875rem; font-weight: 700; }
.admission-toggle { width: min(100%, 246px); margin: 0 0 6px; }
.admission-toggle button { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.admission-toggle svg { display: block; width: 19px; height: 25px; fill: currentColor; }
.admission-toggle i { width: 1px; height: 22px; background: currentColor; opacity: .45; }
#shortlist-tscore { display: block; text-align: center; margin-top: 3px; color: var(--muted); font-size: .875rem; white-space: nowrap; }

.admission-toggle { gap: 6px; padding: 0; background: transparent; }
.admission-toggle button {
  --toggle-fill: #e3f4e9;
  --toggle-line: #a4cdb6;
  --toggle-ink: #1f5d44;
  border: 1px solid var(--toggle-line);
  background: var(--toggle-fill);
  color: var(--toggle-ink);
}
.admission-toggle button[data-admission="boys"] {
  --toggle-fill: #e5f0ff;
  --toggle-line: #abc6eb;
  --toggle-ink: #234f8c;
}
.admission-toggle button[data-admission="girls"] {
  --toggle-fill: #fae8f1;
  --toggle-line: #deb0c9;
  --toggle-ink: #8b3260;
}
.admission-toggle button[aria-pressed="true"] {
  border-color: var(--toggle-ink);
  background: var(--toggle-ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px #ffffff80;
}


.birth-cohort-guide { margin: 0 0 8px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #f6faf8; }
.birth-cohort-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 7px; font-size: .85rem; line-height: 1.35; }
.birth-cohort-summary a { color: var(--muted); font-size: .75rem; }
.birth-comparison {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 10px;
  align-items: baseline;
  margin: 7px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.3;
}
.birth-comparison strong { color: var(--pine); }
.birth-comparison span { white-space: nowrap; font-variant-numeric: tabular-nums; }
#birth-cohort-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
#birth-cohort-list li { min-width: 0; padding: 3px 0; text-align: center; line-height: 1.16; }
#birth-cohort-list li + li { border-inline-start: 1px solid #d3e0da; }
#birth-cohort-list strong { white-space: nowrap; }
#birth-cohort-list strong, #birth-cohort-list .cohort-zodiac { display: block; font-size: .72rem; }
#birth-cohort-list .cohort-icon { display: block; font-size: 1.4rem; }
.cohort-births { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.alternative-pathways { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.alternative-pathways h3 { font: 700 1rem/1.3 var(--sans); margin: 0; }
.alternative-pathways p { margin: 5px 0; }



#tscore-slider-control { margin-top: 6px; }
#tscore-slider { display: block; padding: 0; min-height: 44px; border: 0; background: transparent; accent-color: var(--pine); }
.tscore-dial { width: min(100%, 210px); margin: 7px auto 3px; }
.tscore-dial svg { display: block; width: 100%; height: auto; overflow: visible; }
.tscore-dial path { fill: none; stroke-width: 12; stroke-linecap: round; }
.dial-track { stroke: #bdd8c9; }
.dial-band { stroke: #388f72; }
.dial-needle { stroke: var(--pine); stroke-width: 3; stroke-linecap: round; }
.tscore-dial circle { fill: var(--pine); }
.dial-labels { display: flex; justify-content: space-between; padding-inline: 8px; font-size: .78rem; font-weight: 700; }


.zone-label { margin: 7px 0 0; font-size: .875rem; font-weight: 700; }
.shortlist .zone-label + .region-buttons { margin-top: 3px; }
.campus-note { display: block; color: var(--muted); font-size: .8rem; }

#shortlist-results .pick-proximity { flex-basis: 100%; color: #344252; }

#shortlist-results .pick-meta .pick-status { display: inline-block; padding: 1px 5px; border-radius: 4px; background: #e3e7eb; color: #273746; font-size: .75rem; font-weight: 700; white-space: nowrap; }

#shortlist-results > li:not(.pick-reach, .pick-backup) { background-color: #d2ecd5; border: 1px solid #86b68d; }
#shortlist-results .pick-reach { background-color: #f8e9cb; border: 1px solid #c9a86c; }
#shortlist-results .pick-backup { background-color: #dbe5f0; border: 1px solid #95a9bf; }
#shortlist-results .pick-reach .pick-status { background: #f4e3bd; color: #63420f; }
#shortlist-results .pick-backup .pick-status { background: #f9dce0; color: #8b2534; }


.pick-score-column { grid-column: 3; grid-row: 1; display: grid; justify-items: end; gap: 3px; }
#shortlist-results .pick-location { display: flex; align-items: center; gap: 4px; }
.pick-location .pick-transit-link { flex: 0 0 26px; }
#shortlist-results .pick-admission { display: inline-flex; flex-shrink: 0; }
.pick-admission-icon { width: 13px; height: 16px; }
.pick-girls-icon { fill: #8b3260; }
.pick-boys-icon { fill: #214f88; }

.pick-score-year { font-size: .65rem; font-weight: 650; white-space: nowrap; }

#shortlist-score { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
#shortlist-dial { width: 56px; margin: 4px auto 0; }
#shortlist-dial .dial-labels { padding-inline: 2px; font-size: .6rem; }
@media (max-width: 420px) {
  .shortlist-heading { grid-template-columns: minmax(0, 1fr); }
}

#shortlist-al-slider { display: block; width: 100%; min-height: 24px; margin: 3px 0 0; padding: 0; accent-color: var(--pine); }
.hybrid-region-picker .region-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.hybrid-region-picker .region-buttons button { min-width: 0; padding-inline: 4px; font-size: .8rem; white-space: nowrap; }
@media (max-width: 849px) {
  .hybrid-region-picker .region-buttons button { padding-inline: 2px; font-size: .7rem; }
}

#back-to-top { position: fixed; z-index: 5; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-height: 44px; padding: 8px 13px; border: 1px solid #fff; border-radius: 999px; background: var(--pine); color: white; font-size: .8rem; font-weight: 700; box-shadow: 0 2px 9px #102d2540; }

.shortlist-controls { display: contents; }
@media (max-width: 849px) {
  .shortlist-controls { display: grid; grid-template-columns: minmax(0, 1fr) clamp(112px, 30vw, 145px); gap: 8px; align-items: center; }
  .shortlist-heading, .hybrid-region-picker { display: contents; }
  .shortlist-heading h2, .region-picker-controls { grid-column: 1 / -1; }
  #shortlist-score { grid-column: 2; grid-row: 2; flex-direction: column; align-items: stretch; gap: 2px; }
  #shortlist-score label { font-size: .72rem; }
  #shortlist-score select { width: 100%; }
  #shortlist-tscore { font-size: .7rem; }
  .hybrid-region-picker .map-panel { grid-column: 1; grid-row: 2; max-width: 235px; justify-self: center; padding: 4px; }
  #region-map text { font-size: 33px; }
}
@media (min-width: 850px) {
  .shortlist-controls { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(195px, 290px) auto; gap: 8px clamp(12px, 2vw, 28px); align-items: center; }
  .shortlist-heading, .hybrid-region-picker { display: contents; }
  .shortlist-heading h2 { grid-column: 1 / -1; }
  .hybrid-region-picker .region-picker-controls { grid-column: 1; grid-row: 2; }
  .hybrid-region-picker .map-panel { grid-column: 2; grid-row: 2; }
  #shortlist-score { grid-column: 3; grid-row: 2; }
}

@media (min-width: 850px) and (max-width: 1050px) {
  .hybrid-region-picker .region-buttons button { padding-inline: 2px; font-size: .7rem; }
}

.brand img { display: block; width: clamp(98px, 18vw, 150px); height: auto; filter: brightness(0) saturate(100%) invert(91%) sepia(15%) saturate(337%) hue-rotate(94deg) brightness(101%) contrast(92%); }

.ad-banner { position: relative; left: 50%; transform: translateX(-50%); width: min(320px, 100vw); height: 50px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 12px; background: #fff; border: 1px solid #e2e7df; border-radius: 6px; color: #174d37; }
.ad-banner-logo { display: block; width: 46%; height: 100%; object-fit: contain; }
.ad-banner-copy { display: grid; justify-items: end; gap: 2px; line-height: 1.1; }
.ad-banner-copy span { color: #5b645e; font-size: .66rem; }
.ad-banner-copy strong { font-size: .75rem; white-space: nowrap; }
@media (min-width: 780px) {
  .ad-banner { width: 728px; height: 90px; padding: 6px 24px; margin-bottom: 18px; }
  .ad-banner-copy span { font-size: .75rem; }
  .ad-banner-copy strong { font-size: 1.05rem; }
}

.ad-banner[hidden] { display: none; }

@media (max-width: 520px) {
  .schools { padding-top: 14px; }
  .schools-title { font-size: clamp(1.85rem, 7.6vw, 2.4rem); line-height: 1.08; }
  .shortlist { margin-top: 8px; }
  .shortlist-controls { gap: 6px; }
  .shortlist-heading h2 { font-size: 1.55rem; }
  .region-picker-controls .admission-label { margin-top: 4px; }
  #shortlist-summary { font-size: .8rem; }
  #shortlist-al-slider { margin-top: 0; }
  #shortlist-tscore { margin-top: 0; }
  #shortlist-dial { margin-top: 2px; }
  .pick-body { grid-template-columns: 30px minmax(0, 1fr) auto; padding: 7px; gap: 5px 6px; }
  .pick-crest { width: 30px; height: 30px; padding: 3px; }
  .pick-copy strong { font-size: .94rem; overflow-wrap: normal; }
  #shortlist-results .pick-copy > span { font-size: .77rem; line-height: 1.3; }
  .pick-timeline dd { font-size: .75rem; }
}

.pick-transit-link { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; }
.pick-score-column .pick-cutoff { justify-self: center; }
.pick-transit-link:hover { background: #fff; }

.admission-toggle:has(button:not([data-admission=""])[aria-pressed="true"]) button[aria-pressed="false"] { --toggle-fill: #edf0f2; --toggle-line: #c2cbcf; --toggle-ink: #4f6268; }

body { background: #272a2c; }
.schools-title, .section-title, .school-history .toolbar label { color: #f2f4f4; }
.table-lede, .table-meta { color: #cbd2d3; }

#shortlist-results > li[class] {
  background-image: linear-gradient(145deg, #ffffff90, transparent 36%, #234e4510 78%, #234e4520);
  outline: 1px solid #708782;
  outline-offset: -1px;
  box-shadow: inset 0 1px 0 #fffe, inset 0 -2px 0 #234e4526,
              0 2px 0 #607d74, 0 4px 7px #173a3426;
}

#shortlist-results .pick-cutoff {
  background-image: linear-gradient(155deg, #ffffff26, transparent 65%);
  box-shadow: inset 0 1px 0 #ffffff45, 0 2px 0 #0a302d;
}

@media (max-width: 520px) {
  #shortlist-results { gap: 6px; }
  .pick-body { padding: 6px; row-gap: 4px; }
  .pick-history-label { line-height: 1.2; }
  .pick-timeline { padding-top: 3px; }
  .pick-timeline > div { padding-block: 1px; }
}

[title]:not([title=""]), [title]:not([title=""]) * { cursor: help; }

.tap-tooltip {
  position: fixed;
  z-index: 100;
  max-width: calc(100vw - 16px);
  padding: 6px 10px;
  border-radius: 6px;
  background: #18383b;
  color: #fff;
  font-size: .875rem;
  pointer-events: none;
}

.tap-tooltip:empty {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.affiliated-cutoff {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
.pick-score-column .affiliated-cutoff { grid-column: 1 / -1; }


.al-picker-trigger { display: none; }
@media (pointer: coarse) {
  .al-native-select { display: none; }
  .al-picker-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    min-height: 44px;
    padding: .4rem .75rem;
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: var(--pine);
    color: white;
    font: 700 1.15rem var(--sans);
  }
  .al-picker-trigger::after { content: '▾'; }
}
.al-dialog { width: min(88vw, 22rem); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.al-dialog::backdrop { background: #102d2570; }
.al-options {
  --row: 44px;
  --height: min(308px, 65dvh);
  box-sizing: border-box;
  position: relative;
  height: var(--height);
  padding-block: calc((var(--height) - var(--row)) / 2);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.al-options button {
  display: block;
  width: 100%;
  height: var(--row);
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.al-options button[aria-pressed="true"] { background: #d9e9e2; color: var(--pine); font-weight: 750; }

.admission-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; }
.region-picker-controls .admission-label { margin: 0; }
.admission-filter .admission-toggle { margin: 0; width: min(100%, 220px); }
.shortlist-notes, .school-history details { margin-top: 12px; padding: 9px 12px; font-size: .83rem; }
.shortlist-notes ul { padding-inline-start: 1.15rem; }
.shortlist-notes li + li { margin-top: 4px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.converter-section, .school-history { margin-block: clamp(22px, 3.5vw, 40px); }
.converter {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 12px 22px;
  margin-top: 8px;
  padding: clamp(12px, 2vw, 20px);
  border-radius: 14px;
  box-shadow: none;
}
.converter .switch { margin: 0 0 10px; }
.converter .result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(75px, 32%);
  gap: 2px 8px;
  align-content: center;
  min-height: 0;
  margin: 0;
  padding: 12px;
}
.converter .tscore-dial { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.converter .result strong { font-size: clamp(2rem, 4vw, 3rem); }
.converter .converter-note { grid-column: 1 / -1; font-size: .78rem; }
.school-history .table-lede { margin: 5px 0 12px; }
#history-more {
  display: block;
  margin: 10px auto 0;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #779c90;
  border-radius: 8px;
  background: var(--pine);
  color: white;
  font-weight: 700;
}
#history-more[hidden] { display: none; }

@media (max-width: 620px) {
  .converter { grid-template-columns: minmax(0, 1fr); }
  .converter .dial-labels { font-size: .72rem; }
  .school-history .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .school-history .toolbar > div:first-child { grid-column: 1 / -1; }
  .school-history .toolbar select { font-size: .8rem; padding-inline-start: 7px; }
  .school-history tbody { gap: 7px; }
  .school-history tbody tr { padding: 8px; }
  .school-history tbody td.cutoff { font-size: .82rem; }
  .school-history .affiliated-cutoff { font-size: .65rem; white-space: normal; }
  #back-to-top { width: 44px; padding: 0; font-size: 1.25rem; }
  .back-to-top-text { display: none; }
}
@media (max-width: 420px) {
  .nav { min-height: 52px; gap: 6px; }
  .nav nav { gap: 9px; font-size: .78rem; }
  .wrap { width: calc(100% - 24px); }
  .admission-filter { gap: 4px 7px; }
  .admission-filter .admission-toggle { width: min(100%, 204px); }
}
