/* The client uses a full-width photograph and a navy title at the lower reading edge. */
.academic-hero:has(>img) {
    display:block; position:relative; padding:0; margin:0; isolation:isolate;
    min-height:0; height:auto; background:#203348; overflow:hidden;
}
.academic-hero:has(>img)::after { display:none; }
.academic-hero:has(>img)>img {
    display:block; position:static; width:100%; max-width:none; max-height:none;
    height:clamp(390px,47vw,760px); object-fit:cover; object-position:50% var(--photo-y,35%);
}
.academic-hero:has(>img)>.wrap {
    position:relative; z-index:1; width:min(1240px,92%); margin:-52px auto 0; padding:0;
}
.academic-hero:has(>img) .academic-title {
    display:inline-block; width:auto; max-width:min(780px,95%); margin:0;
    padding:20px clamp(20px,3vw,46px); background:rgb(31 49 66 / .96);
    border:0; border-inline-start:4px solid #a52b43; color:white;
}
.academic-hero .academic-title h1 {font-size:clamp(36px,4.6vw,64px);line-height:1.12;overflow-wrap:break-word}
.academic-title .stage-range {display:block;margin-top:.35em;color:#fff;line-height:1.5}
.hero-early-years {--photo-y:35%}.hero-secondary-school,.hero-alumni {--photo-y:12%}
.hero-middle-school,.hero-assessment-results {--photo-y:20%}
.hero-admissions-overview,.hero-parent-hub,.hero-events,.hero-traditions-community {--photo-y:16%}
.hero-university-career-guidance,.hero-leadership-messages,.hero-leadership-service,.hero-news,.hero-careers-school {--photo-y:39%}
.hero-elementary,.hero-student-support-wellbeing{--photo-y:39%}
.hero-trips-experiences{--photo-y:55%}
.footgrid>div>a,.footbase a,.mainbar button,.collection-tabs button,.gallery-controls button,.vtools button {min-height:44px}
.footgrid a,.footbase a {display:inline-flex;align-items:center;min-width:44px}
.legacy img[src*="foundation-mark"]{width:min(320px,72vw);height:auto;max-width:100%}
.archive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:clamp(20px,3vw,42px);margin:28px 0}
.archive-grid article{min-width:0;border-top:2px solid #a52b43;padding-top:15px}
.archive-grid h3{font-size:clamp(22px,2.1vw,32px);margin-bottom:10px}
.archive-grid figure{margin:0 0 16px}.archive-grid figure img{display:block;width:100%;height:auto;max-height:380px;object-fit:contain;background:#f4f2ef}
.archive-grid figcaption,.message-year{font-size:.86rem;font-weight:600;margin-top:5px}
.restoration details{border-bottom:1px solid #ccd2d5;padding-block:10px}.restoration summary{cursor:pointer;min-height:44px;align-content:center;font-weight:700}
.language-map{width:100%;border-collapse:collapse;margin-block:24px;table-layout:fixed}.language-map :is(th,td){padding:clamp(6px,1.4vw,18px);border-bottom:1px solid #cdd0d2;text-align:start;overflow-wrap:anywhere}.language-map thead{background:#24394b;color:white}
.value-index{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.value-index li p{margin-top:8px;font:normal 1rem/1.5 Arial,Tahoma,sans-serif}
.school-directory[data-directory="news"] .listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.admissions-actions .wrap{display:grid;grid-template-columns:1fr 1fr}.admissions-actions a{display:flex;align-items:center;justify-content:center;min-height:66px}
@media(min-width:901px){
 .space-explorer{display:grid;grid-template-columns:minmax(210px,32%) 1fr;column-gap:32px;position:relative;align-content:start;min-height:450px}
 .space-explorer details{grid-column:1;align-self:start}
 .space-explorer details[open]>.split{position:absolute;inset-inline-start:calc(32% + 32px);inset-inline-end:0;top:0;display:block;margin:0}
 .space-explorer details[open]>.split img{display:block;width:100%;height:350px;object-fit:contain;background:#e8edef}
 .space-explorer details[open]>.split p{margin-block:10px}
}
@media(min-width:1024px) and (max-width:1160px){
 .mainbar .wrap{width:97%}.mainbar .bar{gap:7px}.mainbar .brand{gap:5px}.mainbar .brand strong{font-size:14px}.mainbar .brand img{width:25px}.mainbar .brand small{font-size:7px}
 .mainbar nav{display:flex;position:static;align-items:center;gap:3px;padding:0;max-height:none;overflow:visible;box-shadow:none}
 .mainbar nav>a,.mainbar nav .drop{font-size:12px;width:auto;padding:6px 3px;border:0;gap:4px}
 .mainbar nav .support{margin:0;padding-inline:9px}.mainbar nav .sub{position:absolute;inset-block-start:100%;width:max-content;max-width:310px;background:white;box-shadow:0 10px 24px #18263424;border-top:3px solid #7a1f2b}
 .mainbar .mobile{display:none}
}
@media(max-width:800px){
 .academic-hero:has(>img)>img{height:auto;max-height:68svh;object-fit:contain;background:#203348}
 .academic-hero:has(>img)>.wrap{width:100%;margin:0}
 .academic-hero:has(>img) .academic-title{display:block;max-width:none;padding:16px 5%}
 .academic-hero .academic-title h1{font-size:clamp(32px,6vw,46px)}
 .value-index{grid-template-columns:repeat(2,minmax(0,1fr))}.school-directory[data-directory="news"] .listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
 .mainbar .bar{gap:6px}.mainbar .brand{min-width:0;flex-shrink:1}.mainbar .brand span{min-width:0;white-space:normal}.mainbar .mobile{flex-shrink:0}
 .value-index,.admissions-actions .wrap,.school-directory[data-directory="news"] .listing-grid{grid-template-columns:1fr}
}

@media(min-width:801px) {
    .academic-hero:has(>img) > img[src$="/secondary-school.webp"] {object-position:50% 0%}
    .academic-hero:has(>img) > img[src$="/early-years.webp"] {object-position:50% 56%}
    .academic-hero:has(>img) > img[src$="/elementary.webp"] {height:66vw;object-position:50% 68%}
    .academic-hero:has(>img) > img[src$="/young-learners.webp"] {height:92vw;object-position:50% 38%}
    .academic-hero:has(>img) > img[src$="/middle-school.webp"] {height:53vw;object-position:50% 0%}
}

.news-feature figure{margin:0;min-width:0}.news-feature figure img{width:100%;height:auto;max-height:390px;object-fit:contain}.news-feature figcaption,.archive-caption{font-size:.82rem;line-height:1.45;color:#405263}
.news-feature figcaption{padding:6px 10px;background:#f2f1ee}
.value-index li:before{display:none}.value-index .dashicons,.illustrated .dashicons{display:block;color:#80263b;font-size:28px;width:32px;height:32px;margin-bottom:10px}
.academic-period{font-weight:700;color:#79253a;margin:12px 0}
.legacy-path .archive-grid{counter-reset:history}.legacy-path article{counter-increment:history}.legacy-path article:before{content:counter(history,decimal-leading-zero);display:block;color:#fff;font-size:.85rem;letter-spacing:.1em;margin-bottom:9px}

.story-body img{max-width:100%;height:auto}.story-body :is(h2,h3,figure){margin-block:1em .4em}
@media(min-width:801px){
 main .values-collage{display:grid;grid-template-columns:1.2fr 1fr 1fr;align-items:center;gap:clamp(8px,2vw,28px)}
 main .values-collage img{width:100%;height:auto;max-height:420px;object-fit:contain;background:transparent}
 main .values-collage img:nth-child(2){align-self:start;margin-top:25px}
 main .values-collage img:nth-child(3){align-self:end;margin-bottom:12px}
}

.academic-title .hero-deck{font:normal clamp(14px,1.4vw,19px)/1.5 Arial,Tahoma,sans-serif;max-width:50ch;margin-top:.5em}
@media(min-width:801px){
 .hero-apply-online.academic-hero:has(>img)>img{height:clamp(270px,28vw,440px);object-fit:contain;object-position:86% 50%;background:#203348}
 [dir=rtl] .hero-apply-online.academic-hero:has(>img)>img{object-position:14% 50%}
 .hero-apply-online.academic-hero:has(>img)>.wrap{position:absolute;inset:0;width:92%;margin:0 auto;display:flex;align-items:center}
 .hero-apply-online.academic-hero:has(>img) .academic-title{max-width:53%}
}

.utility a,.utility button,.footbase a,#navigation>a,#navigation .drop{min-width:44px;min-height:44px;justify-content:center}
.utility .wrap{align-items:center}
@media(max-width:365px){.utility .wrap{gap:6px;width:calc(100% - 12px);flex-wrap:wrap}}
