/* ============================================================
   UTU Education Centre — additions & overrides on top of site.css
   ============================================================ */

/* Proof metrics band */
.proof-band{background:var(--forest2);padding:52px 0;color:#fff}
.proof-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.proof-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;border-left:1px solid rgba(255,255,255,.12)}
.proof-item:first-child{border-left:0}
.proof-num{font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,6vw,58px);font-weight:500;letter-spacing:-.02em;color:var(--gold);line-height:1}
html[data-lang=en] .proof-num{font-family:Georgia,"Times New Roman",serif;font-weight:500}
.proof-item span{font-size:12.5px;letter-spacing:.04em;opacity:.85}
@media(max-width:900px){.proof-grid{grid-template-columns:repeat(2,1fr)}.proof-item{border-left:0}}
@media(max-width:620px){.proof-grid{grid-template-columns:repeat(2,1fr);gap:20px}}

/* Footer legal row */
.copyright{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid rgba(255,255,255,.1);margin-top:44px;padding-top:22px}
.copyright .legal a{opacity:.75}
.copyright .legal a:hover{opacity:1}

/* Shared editorial spacing guard */
.wrap > * + .section{padding-top:0}

/* ============================================================
   PROGRAMMES — board cards
   ============================================================ */
.board-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.board-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px 26px 24px;display:flex;flex-direction:column;transition:.25s;box-shadow:0 12px 32px rgba(14,45,39,.05)}
.board-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.board-card.deep{background:var(--forest2);border-color:transparent}
.board-card.deep,.board-card.deep p{color:#fff}
.board-tag{font-size:9px;letter-spacing:.22em;text-transform:uppercase;font-weight:700;color:var(--terra);margin:0 0 12px}
.board-card.deep .board-tag{color:var(--gold)}
.board-card h3{font-size:22px;line-height:1.22;margin:0;font-weight:600}
html[data-lang=en] .board-card h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.02em}
.board-card .board-desc{font-size:13.5px;line-height:1.7;margin:11px 0 16px;color:var(--muted)}
.board-card.deep .board-desc{color:rgba(255,255,255,.7)}
.board-stream{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.board-stream span{font-size:10.5px;border:1px solid var(--line);background:var(--paper);border-radius:100px;padding:4px 10px;color:var(--ink)}
.board-card.deep .board-stream span{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.15);color:#fff}
.board-more{margin-top:18px;display:inline-flex;gap:6px;font-size:12px;font-weight:700;color:var(--terra)}
.board-card.deep .board-more{color:var(--gold)}
@media(max-width:900px){.board-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.board-cards{grid-template-columns:1fr}}

/* ============================================================
   PROGRAMMES — subject explorer (data-driven from SUBJECT_DATA)
   ============================================================ */
.subj-wrap{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px;margin-top:6px}
.tabbar{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 24px}
.tabbtn{border:1px solid var(--line);background:#fff;color:var(--ink);padding:9px 16px;border-radius:100px;font-size:12.5px;font-weight:600;cursor:pointer;transition:.2s}
.tabbtn:hover{border-color:var(--forest);color:var(--forest)}
.tabbtn.on{background:var(--forest);border-color:var(--forest);color:#fff}
.subjpanel{display:none}
.subjpanel.on{display:block;animation:subjin .35s ease}
@keyframes subjin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.subjhint{font-size:12px;color:var(--muted);margin:0 0 16px}
.subj-chips{display:flex;flex-wrap:wrap;gap:9px}
.subjchip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--paper);border-radius:100px;padding:8px 15px;font-size:13px;cursor:pointer;transition:.18s;line-height:1}
.subjchip:hover{border-color:var(--forest);box-shadow:0 6px 16px rgba(14,45,39,.1);transform:translateY(-1px)}
.subjchip .subj-icon{font-size:15px}
@media(max-width:620px){.subj-wrap{padding:22px}.tabbar{gap:6px}.tabbtn{padding:8px 12px;font-size:11.5px}}

/* Subject detail modal */
.subjmodal{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(7,28,24,.62);backdrop-filter:blur(3px)}
.subjmodal.on{display:flex}
.subjmodal-box{background:#fff;border-radius:22px;max-width:660px;width:100%;max-height:88vh;overflow:auto;padding:30px}
.subjmodal-head{display:flex;gap:16px;align-items:flex-start}
.subjmodal-ic{flex-shrink:0;width:66px;height:66px;border-radius:18px;display:grid;place-items:center;font-size:30px}
.subjmodal-meta{min-width:0}
.subjmodal-board{font-size:9px;letter-spacing:.2em;text-transform:uppercase;font-weight:700;color:var(--terra);margin-bottom:6px}
.subjmodal-title{font-size:24px;margin:0 0 4px;font-weight:700;line-height:1.2}
html[data-lang=en] .subjmodal-title{font-family:Georgia,"Times New Roman",serif;font-weight:500}
.subjmodal-code{font-size:12px;color:var(--muted)}
.subjmodal-close{position:absolute;top:18px;right:18px;border:0;background:rgba(23,63,54,.08);width:38px;height:38px;border-radius:50%;font-size:16px;cursor:pointer;color:var(--forest)}
.subjmodal-sec h4{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--forest);margin:22px 0 10px}
.subjmodal-sec h4 + p{margin:0 0 10px}
.subj-overview{font-size:14px;line-height:1.75;color:#33413b}
.subj-topics{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:4px}
.subj-topics span{font-size:11.5px;border-radius:100px;background:var(--cream);border:1px solid rgba(23,63,54,.1);padding:5px 11px;color:var(--forest)}
.subj-papers{display:flex;flex-direction:column;gap:8px}
.subj-paper{display:flex;gap:12px;align-items:baseline;border-bottom:1px solid var(--line);padding:8px 0}
.subj-paper b{font-size:12.5px;flex:1}
.subj-paper span{font-size:11px;color:var(--muted);white-space:nowrap}
.subj-assess{font-size:12px;color:var(--muted);margin-top:10px}
.subjmodal-cta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
@media(max-width:620px){.subjmodal-box{padding:24px 20px}.subjmodal-title{font-size:20px}}

/* ============================================================
   PROGRAMMES — fees
   ============================================================ */
.fee-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:8px;align-items:stretch}
.fee-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px 26px;display:flex;flex-direction:column}
.fee-card.featured{background:var(--forest2);color:#fff;border-color:transparent}
.fee-card .fee-name{font-size:15px;font-weight:800;letter-spacing:.02em}
.fee-card .fee-desc{font-size:13px;line-height:1.65;color:var(--muted);margin:9px 0 18px}
.fee-card.featured .fee-desc{color:rgba(255,255,255,.7)}
.fee-price{font-family:Georgia,"Times New Roman",serif;font-size:34px;font-weight:600;letter-spacing:-.01em;color:var(--forest)}
.fee-card.featured .fee-price{color:var(--gold)}
.fee-price small{font-size:12px;color:var(--muted);font-family:var(--sans);font-weight:600;letter-spacing:0}
.fee-card.featured .fee-price small{color:rgba(255,255,255,.6)}
.fee-feats{list-style:none;margin:20px 0 22px;padding:0;display:flex;flex-direction:column;gap:9px;flex:1}
.fee-feats li{font-size:13px;color:#33413b;display:flex;gap:9px;line-height:1.5}
.fee-card.featured .fee-feats li{color:rgba(255,255,255,.86)}
.fee-feats li::before{content:"✓";color:var(--terra);font-weight:800}
.fee-card.featured .fee-feats li::before{color:var(--gold)}
.fee-note{font-size:12px;color:var(--muted);text-align:center;margin-top:22px}
@media(max-width:900px){.fee-cards{grid-template-columns:1fr;max-width:480px;margin-inline:auto}.fee-card.featured{order:-1}}
@media(max-width:620px){.fee-cards{max-width:100%}}

/* ============================================================
   SHARED — FAQ accordion, generic legal pages, misc
   ============================================================ */
.faqrows{max-width:860px;margin:6px auto 0}
.faqrow{border-bottom:1px solid var(--line)}
.faqrow:first-child{border-top:1px solid var(--line)}
.faqq{display:flex;justify-content:space-between;align-items:center;gap:18px;cursor:pointer;padding:19px 6px;font-size:15.5px;font-weight:600;line-height:1.4}
html[data-lang=en] .faqq{font-family:var(--sans)}
.faqicon{flex-shrink:0;width:26px;height:26px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:15px;color:var(--forest);transition:.2s}
.faqrow.open .faqicon{background:var(--forest);color:#fff;transform:rotate(45deg)}
.faqa{display:none;padding:0 6px 22px;color:var(--muted);font-size:14px;line-height:1.8;max-width:760px}
.faqrow.open .faqa{display:block;animation:subjin .3s ease}

/* Legal page prose */
.legal-wrap{max-width:820px;margin:0 auto;padding:70px 0 90px}
.legal-wrap h1{font-size:clamp(28px,5vw,40px);margin:0 0 8px}
.legal-wrap .updated{font-size:12px;color:var(--muted);margin-bottom:34px}
.legal-wrap h2{font-size:20px;margin:34px 0 12px}
.legal-wrap p,.legal-wrap li{font-size:14.5px;line-height:1.85;color:#33413b}
.legal-wrap ul{padding-left:22px;display:flex;flex-direction:column;gap:6px}
.legal-wrap .toc{border:1px solid var(--line);border-radius:16px;background:#fff;padding:20px 24px;margin:26px 0}
.legal-wrap .toc a{color:var(--terra)}

/* ============================================================
   CONTACT — enquiry area + info tiles
   ============================================================ */
.ct-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:26px;align-items:start;margin-top:8px}
/* 联系表单：聚焦时高亮更明显（原来只有一条很淡的底线） */
.ct-formcard .field input:focus,
.ct-formcard .field select:focus,
.ct-formcard .field textarea:focus{
  border-bottom-color:var(--terra);
  border-bottom-width:2px;
  background:rgba(198,96,61,.07);
  box-shadow:0 2px 0 var(--terra);
}
.ct-formcard .field input:focus::placeholder,
.ct-formcard .field textarea:focus::placeholder{color:rgba(23,63,54,.45)}
.ct-info{display:flex;flex-direction:column;gap:14px}
.ct-tile{display:flex;gap:16px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px}
.ct-tile .ic{flex-shrink:0;width:46px;height:46px;border-radius:14px;background:var(--cream);display:grid;place-items:center;font-size:20px}
.ct-tile b{display:block;font-size:13px;margin-bottom:4px}
.ct-tile p{margin:0;font-size:14px;line-height:1.6;color:#33413b}
.ct-tile a{color:var(--terra);font-weight:600}
.ct-formcard{background:#fff;border:1px solid var(--line);border-radius:24px;padding:32px}
.ct-formcard h3{font-size:24px;margin:0 0 6px}
html[data-lang=en] .ct-formcard h3{font-family:Georgia,"Times New Roman",serif;font-weight:500}
.ct-formcard .form-sub{font-size:13px;color:var(--muted);margin:0 0 22px}
@media(max-width:900px){.ct-grid{grid-template-columns:1fr}.ct-formcard{order:-1}}

/* Bilingual headings that need language-aware line-height/weight */
html[data-lang=en] .board-card h3,html[data-lang=en] .subjmodal-title,html[data-lang=en] .ct-formcard h3,html[data-lang=en] .fee-card h3{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.02em}

/* ============================================================
   TEAM — member cards + community band
   ============================================================ */
.member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.member-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;display:flex;flex-direction:column;transition:.25s;box-shadow:0 12px 32px rgba(14,45,39,.05)}
.member-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.member-top{display:flex;gap:16px;align-items:center;margin-bottom:16px}
.member-avatar{flex-shrink:0;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-family:Georgia,serif;font-size:19px;font-weight:600;color:#fff}
.member-name{font-size:19px;font-weight:700;line-height:1.2}
html[data-lang=en] .member-name{font-family:Georgia,"Times New Roman",serif;font-weight:500}
.member-role{font-size:11px;color:var(--terra);font-weight:700;letter-spacing:.05em;margin-top:5px;line-height:1.5}
.member-bio{font-size:13.5px;line-height:1.75;color:#33413b;margin:0}
.member-quote{font-size:12.5px;line-height:1.7;color:var(--muted);font-style:italic;border-left:2px solid var(--gold);padding-left:14px;margin:16px 0 0}
.member-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto;padding-top:18px}
.member-tags span{font-size:10.5px;border-radius:100px;background:var(--cream);border:1px solid rgba(23,63,54,.1);color:var(--forest);padding:4px 10px}
@media(max-width:900px){.member-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.member-grid{grid-template-columns:1fr}}

.school-band{background:var(--forest2);color:#fff;padding:78px 0 88px}
.school-band .kicker{color:var(--gold)}
.school-band .editorial-title{color:#fff}
.school-band .editorial-lead{color:rgba(255,255,255,.7)}
.school-grid{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 6px}
.school-chip{font-size:12px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);border-radius:100px;padding:8px 15px;color:#fff}
.school-chip.accent{border-color:rgba(223,183,109,.4);background:rgba(223,183,109,.12);color:var(--gold)}
.school-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:44px}
.school-stat{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:26px 22px;text-align:center}
.school-stat b{display:block;font-family:Georgia,"Times New Roman",serif;font-size:40px;font-weight:500;color:var(--gold);line-height:1}
.school-stat span{font-size:12px;margin-top:8px;display:block}
.res-list{list-style:none;margin:34px 0 0;padding:0;display:flex;flex-direction:column;gap:13px}
.res-list li{display:flex;gap:12px;font-size:14px;line-height:1.65;color:rgba(255,255,255,.85)}
.res-list li::before{content:"✓";color:var(--gold);font-weight:800}
@media(max-width:900px){.school-stats{grid-template-columns:1fr;max-width:420px;margin-inline:auto}}

/* Family/contact form success full-width within grid forms */
.family-form .success,.form-grid .success,.contact-form .success{grid-column:1/-1;text-align:left}

/* Robustness: content must never be hidden behind a scroll-reveal that may
   not fire. Blocks are visible immediately; reveal remains as decoration. */
.reveal,.reveal.in{opacity:1!important;transform:none!important}

/* Portal login entrypoint (points to /portal placeholder until backend phase) */
.portal-link{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:600;letter-spacing:.03em;opacity:.9;color:#fff;white-space:nowrap;padding:6px 2px}
.portal-link:hover{opacity:1;text-decoration:underline}
/* Keep portal access visible alongside the mobile menu. */
@media(max-width:900px){
  .site-nav .portal-link{display:inline-flex;justify-content:center;min-height:44px;padding:0 14px;border:1px solid #ffffff80;border-radius:24px;background:#ffffff14;opacity:1;font-size:12px;flex-shrink:0}
  .site-nav .portal-link:hover{background:#ffffff28;text-decoration:none}
  .site-nav .portal-link:focus-visible{outline:2px solid #edc982;outline-offset:3px}
  .site-nav .nav-tools{gap:8px;flex-shrink:0}
  .site-nav .hamburger{width:44px;min-height:44px;padding:0;flex-shrink:0}
}
@media(max-width:620px){
  .site-nav .nav-row{gap:10px}
  .site-nav .brand{gap:7px;min-width:0}
  .site-nav .brand-mark{flex-shrink:0;width:36px;height:40px}
  .site-nav .brand-name{font-size:11px;line-height:1.3;max-width:98px}
  .site-nav .brand-place{font-size:7px;letter-spacing:.08em}
  .site-nav .nav-tools{gap:5px}
  .site-nav .switch{padding:2px}
  .site-nav .switch button{min-height:36px;padding:4px 7px;font-size:10px}
  .site-nav .portal-link{padding:0 11px}
}
@media(max-width:360px){.site-nav .brand>span:last-child{display:none}}


/* ============================================================
   FORM STATUS (error) + footer newsletter
   ============================================================ */
.error,.form-error{display:none;grid-column:1/-1;text-align:left;margin-top:14px;color:#b5452c;font-size:12.5px;line-height:1.65}
.error.show,.form-error.show{display:block}
.family-form .error{margin-top:0;padding-top:14px}
.ct-formcard .error{margin-top:10px}

.nl-band{padding:30px 0 6px;border-top:1px solid rgba(255,255,255,.1);margin-top:6px}
.nl-band .nl-label{display:block;color:#e6bd74;font-size:10px;letter-spacing:.16em;text-transform:uppercase;margin-bottom:12px}
.nl{display:flex;gap:10px;max-width:460px;flex-wrap:wrap}
.nl input[type="email"]{flex:1 1 220px;min-width:0;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.22);border-radius:100px;padding:11px 18px;color:#fff;font-size:13px;outline:0}
.nl input[type="email"]:focus{border-color:var(--gold)}
.nl input::placeholder{color:rgba(255,255,255,.45)}
.nl button{border:0;border-radius:100px;padding:11px 20px;background:var(--terra);color:#fff;font-size:12px;font-weight:700;cursor:pointer;flex-shrink:0;transition:.2s}
.nl button:hover{background:#b44f31}
.nl button.busy{opacity:.6;cursor:wait}
.nl .success,.nl .error{flex-basis:100%;margin:10px 0 0;color:rgba(255,255,255,.9);font-size:12px}
.nl .success{color:#9fd3b3}
.nl .error{color:#ffb4a0}
@media(max-width:620px){.nl input[type="email"]{flex-basis:100%}}

/* Content-first inner pages; shared with the refreshed Teams directory. */
.page-hero{padding:34px 0 30px}.page-hero:after{pointer-events:none}
.page-hero h1,html[data-lang=en] .page-hero h1,.programmes-page .page-hero h1{font-size:clamp(28px,3vw,40px);line-height:1.24;margin:12px 0 14px;max-width:1000px;white-space:normal;letter-spacing:-.025em}
.page-hero h1 br{display:none}.page-hero h1 br:after{content:' '}
.page-hero p{max-width:850px;font-size:13px;line-height:1.8;margin:0}
.page-jumps{width:min(1180px,calc(100% - 44px));margin:23px auto 0;display:flex;gap:10px;flex-wrap:wrap;position:relative;z-index:1}
.page-jumps a{border:1px solid #ffffff35;border-radius:30px;padding:7px 16px;font-size:11px;color:#f0d6a2}.page-jumps a:hover{background:#ffffff12}
.page-hero+section{padding-top:38px}.page-hero+section .section-head{margin-bottom:25px}
.page-hero+section .editorial-title,.teams-page .editorial-title{font-size:clamp(26px,2.7vw,35px);line-height:1.3}
[id]{scroll-margin-top:30px}
.programme-media.language-photo{padding:0;min-height:340px}.programme-media.language-photo img{height:100%;object-fit:cover;object-position:45% center}
.teams-leadership .leadership-intro{margin-bottom:28px;gap:40px}.teams-leadership .leadership-intro p{font-size:13px;line-height:1.9}
.teams-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.teams-role-card{position:relative;padding:30px;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.teams-role-card:before{content:attr(data-index);position:absolute;right:22px;top:15px;font-family:Georgia,serif;font-size:45px;color:#173f3614}
.teams-role-card:first-child{background:var(--forest);color:white}.teams-role-card:first-child:before{color:#ffffff20}
.teams-role-card .leader-role{margin:0 35px 20px 0;position:relative;display:flex;flex-wrap:wrap;gap:6px}.teams-role-card .leader-role span{white-space:normal;font-size:10px}
.teams-role-card h2{font-size:23px;line-height:1.45;margin:0 0 18px;font-weight:500}.teams-role-card h2 br{display:none}
.teams-role-card .leader-degree{font-size:11px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:0 0 16px;background:none;color:inherit}
.teams-role-card p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.teams-role-card:first-child p{color:#dae3dc}.teams-role-card:first-child .leader-degree{border-color:#ffffff25}
.teams-page #teachers{background:var(--cream);padding:50px 0}.teams-page .member-card{box-shadow:none;border-radius:14px}.teams-page .faculty-band{min-height:420px}.teams-page .faculty-band h2{font-size:34px}
@media(max-width:620px){.page-hero{padding:27px 0 25px}.page-hero h1,html[data-lang=en] .page-hero h1,.programmes-page .page-hero h1{font-size:28px;line-height:1.28}.page-hero p{font-size:12px}.page-jumps{width:calc(100% - 30px);gap:7px;margin-top:18px}.page-jumps a{padding:6px 12px}.teams-role-grid{grid-template-columns:1fr}.teams-role-card{padding:25px}.teams-leadership .leadership-intro{gap:16px}.teams-role-card h2{font-size:22px}.page-hero+section{padding-top:30px}}
.page-hero{display:block;min-height:0;height:auto}.page-hero>.wrap{width:min(1180px,calc(100% - 44px));margin:0 auto}
.teams-role-card .leader-role{background:none;color:var(--forest)!important;padding:0;box-shadow:none;border-radius:0;letter-spacing:.05em;line-height:1.5}.teams-role-card:first-child .leader-role{color:var(--gold)!important}.teams-role-card .leader-degree{border-left:0}
.teams-role-card .leader-role .role-zh{display:none}html[data-lang=zh] .teams-role-card .leader-role .role-en{display:none}html[data-lang=zh] .teams-role-card .leader-role .role-zh{display:block}
.school-stat>span .zh,.school-stat>span .en{display:none}html[data-lang=zh] .school-stat>span .zh,html[data-lang=en] .school-stat>span .en{display:inline}
@media(max-width:620px){.page-hero>.wrap{width:calc(100% - 30px)}}
.team-person{font-size:20px;font-weight:600;margin:0 0 14px}.team-background{border-top:1px solid #ffffff25;margin-top:18px;padding-top:12px;font-size:12px}.team-background summary{cursor:pointer;color:var(--gold)}.team-background p{margin-top:12px}
@media(max-width:620px){.section-head,.teams-leadership .leadership-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.section-head>*{min-width:0}.section-head .editorial-lead{max-width:none}.teams-page .member-top{align-items:flex-start}.teams-page .member-name{overflow-wrap:anywhere}}
/* Portrait-led team profiles, with a shared editorial rhythm. */
.teams-page .teams-role-grid{gap:28px}
.teams-page .teams-role-card,.teams-page .teams-role-card:first-child{display:grid;grid-template-columns:42% 58%;padding:0;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;align-items:stretch}
.teams-page .teams-role-card:before{display:none}
.team-portrait{min-height:380px;background:#e8e3d8;overflow:hidden}.team-portrait img{height:100%;width:100%;object-fit:cover;object-position:center 25%}
.team-profile-copy{padding:28px 25px;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.teams-page .team-person{font-family:var(--serif);font-size:25px;line-height:1.35;margin-bottom:12px}
.teams-page .teams-role-card .leader-role,.teams-page .teams-role-card:first-child .leader-role{margin:0 0 18px;color:var(--terra)!important;font-weight:700}
.teams-page .teams-role-card h2{font-size:19px;line-height:1.45;margin-bottom:18px}
.teams-page .teams-role-card .leader-degree{border:0;background:var(--cream);padding:10px 12px;line-height:1.7;width:100%}
.teams-page .teams-role-card p,.teams-page .teams-role-card:first-child p{color:var(--muted);font-size:12px;line-height:1.85}
.teams-page .team-background{border-color:var(--line);width:100%;margin-top:18px}.teams-page .team-background summary{color:var(--forest)}
.teams-page .leadership-intro,.teams-page #teachers .section-head{grid-template-columns:1fr 1fr;gap:40px;align-items:start;margin-bottom:34px}
.teams-page .member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}
.teams-page .member-card{padding:28px 0;border:0;border-top:1px solid #173f3626;background:transparent;border-radius:0;box-shadow:none}
.teams-page .member-top{margin-bottom:16px;gap:18px}.teams-page .member-avatar{width:60px;height:60px;flex-shrink:0;border-radius:50%;font-size:21px}
.teams-page .member-name{font-family:var(--serif);font-size:27px;line-height:1.3}.teams-page .member-role{font-size:11px;margin-top:7px;line-height:1.7}
.teams-page .member-bio{font-size:13px;line-height:1.9}.teams-page .member-quote{font-size:12px;border-left:2px solid var(--gold);padding-left:14px}.teams-page .member-tags{gap:7px}.teams-page .member-tags span{background:#ffffff90;font-size:10px}
@media(min-width:901px) and (max-width:1150px){.teams-page .teams-role-card{grid-template-columns:1fr}.team-portrait{height:320px;min-height:0}.team-portrait img{object-position:center 24%}}
@media(max-width:900px){.teams-page .teams-role-grid{grid-template-columns:1fr}.team-portrait{min-height:350px}}
@media(max-width:620px){.teams-page .leadership-intro,.teams-page #teachers .section-head{grid-template-columns:1fr;gap:15px}.teams-page .teams-role-card,.teams-page .teams-role-card:first-child{grid-template-columns:1fr}.team-portrait{height:350px;min-height:0}.team-portrait img{object-position:center 25%}.team-profile-copy{padding:25px}.teams-page .member-grid{grid-template-columns:1fr}.teams-page .teams-role-grid{gap:22px}}
/* Compact team directory: founder, three leaders, then teaching team. */
.teams-page .teams-leadership{padding:28px 0 26px}
.teams-page .leadership-intro{margin-bottom:20px;gap:28px}
.teams-page .leadership-intro .editorial-title,.teams-page #teachers .editorial-title{font-size:26px;margin:10px 0 0;line-height:1.3}
.teams-page .leadership-intro .editorial-title br{display:none}
.teams-page .leadership-intro p{margin:0;font-size:12px;line-height:1.7}
.teams-page .teams-role-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.teams-page .teams-role-card{grid-template-columns:112px minmax(0,1fr);border-radius:10px}
.teams-page .teams-role-card:first-child{grid-column:1/-1;grid-template-columns:200px minmax(0,1fr)}
.teams-page .team-portrait{min-height:0;height:100%}
.teams-page .team-portrait img{object-position:center 22%;min-height:225px}
.teams-page .teams-role-card:first-child .team-portrait{height:250px}
.teams-page .team-profile-copy{padding:20px 18px}
.teams-page .teams-role-card:first-child .team-profile-copy{padding:23px 30px;display:block;columns:2;column-gap:38px}
.teams-page .team-person{font-size:24px;margin:0 0 8px}
.teams-page .teams-role-card .leader-role{margin-bottom:10px;line-height:1.5}
.teams-page .teams-role-card .leader-role span{font-size:9px;letter-spacing:.03em}
.teams-page .teams-role-card h2{font-size:16px;margin:0 0 12px;line-height:1.4}
.teams-page .teams-role-card:first-child h2{font-size:20px}
.teams-page .teams-role-card .leader-degree{font-size:10px;padding:8px 10px;margin-bottom:10px;line-height:1.6}
.teams-page .teams-role-card p{font-size:11px;line-height:1.75}
.teams-page .team-profile-copy>*{break-inside:avoid}
.teams-page .team-background{margin-top:12px;padding-top:10px;font-size:11px}
.teams-page #teachers{padding:26px 0 32px}
.teams-page #teachers .section-head{margin-bottom:20px;gap:30px}
.teams-page #teachers .editorial-lead{font-size:12px;line-height:1.75}
.teams-page .member-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.teams-page .member-card{padding:18px 16px;background:var(--paper);border:1px solid var(--line);border-radius:10px}
.teams-page .member-top{display:block;margin-bottom:12px}
.teams-page .member-avatar{width:42px;height:42px;font-size:15px;margin-bottom:12px}
.teams-page .member-name{font-size:22px}
.teams-page .member-role{font-size:10px;line-height:1.5;min-height:30px}
.teams-page .member-bio{font-size:11px;line-height:1.8;margin:0 0 12px}
.teams-page .member-quote{display:none}
.teams-page .member-tags{gap:5px}.teams-page .member-tags span{font-size:9px;padding:3px 6px}
@media(max-width:1100px){.teams-page .teams-role-card{grid-template-columns:1fr}.teams-page .teams-role-card .team-portrait{height:165px}.teams-page .teams-role-card .team-portrait img{min-height:0;object-position:center 24%}.teams-page .member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.teams-page .teams-role-grid{grid-template-columns:1fr;gap:12px}.teams-page .teams-role-card,.teams-page .teams-role-card:first-child{grid-template-columns:100px minmax(0,1fr)}.teams-page .teams-role-card .team-portrait,.teams-page .teams-role-card:first-child .team-portrait{height:100%}.teams-page .team-profile-copy,.teams-page .teams-role-card:first-child .team-profile-copy{padding:18px;columns:auto}.teams-page .team-person{font-size:21px}.teams-page .teams-role-card:first-child h2{font-size:17px}.teams-page .member-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.teams-page .member-card{padding:16px 13px}.teams-page .leadership-intro,.teams-page #teachers .section-head{grid-template-columns:1fr;gap:12px}.teams-page .leadership-intro .editorial-title,.teams-page #teachers .editorial-title{font-size:23px}.teams-page .teams-leadership{padding-bottom:20px}}
/* Reserved teacher portraits retain honest placeholders until photos are supplied. */
.teacher-photo-slot{height:145px;background:linear-gradient(140deg,#dce5dd,#f1eadd);border:1px solid #173f3612;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin-bottom:15px;color:#577466}
.teacher-photo-slot>span{font-family:Georgia,serif;font-size:34px;font-weight:400}.teacher-photo-slot small{font-size:9px;letter-spacing:.07em;color:#66756b}
.student-life-page .student-gallery{padding:32px 0 38px}.student-life-page .gallery-grid{grid-template-columns:1.15fr 1fr 1fr;grid-template-rows:340px;gap:16px}.student-life-page .gallery-main{grid-row:auto}.student-life-page .gallery-grid figure{border-radius:12px}.student-life-page .gallery-grid figcaption{left:20px;bottom:20px;font-size:16px}.student-life-page .gallery-grid img{transition:transform .4s}.student-life-page .gallery-grid figure:hover img{transform:scale(1.025)}
.student-life-page .life-growth{padding:40px 0}.student-life-page .section-head{margin-bottom:25px;gap:35px}.student-life-page .editorial-title{font-size:32px;line-height:1.3}.student-life-page .editorial-lead{font-size:13px}
.life-growth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.life-growth-grid article{border-top:1px solid var(--line);padding:22px 0}.life-number{font-family:Georgia,serif;color:var(--terra);font-size:25px}.life-growth-grid h3{font-size:20px;margin:12px 0}.life-growth-grid p,.life-story p{font-size:13px;line-height:1.85;color:var(--muted);margin:0}
.life-story{padding:48px 0}.life-story-grid{display:grid;grid-template-columns:1fr 1fr;gap:65px}.life-story h2{font-size:32px;line-height:1.35;margin:15px 0}.life-story .button{margin-top:24px}.life-rhythm{background:var(--forest);color:white;padding:12px 28px;border-radius:12px}.life-rhythm article{display:flex;gap:22px;padding:21px 0;border-bottom:1px solid #ffffff20}.life-rhythm article:last-child{border:0}.life-rhythm b{font-family:Georgia,serif;color:var(--gold);font-size:23px}.life-rhythm h3{font-size:16px;margin:0 0 7px}.life-rhythm p{color:#d2ddd6;font-size:12px}
@media(max-width:900px){.student-life-page .gallery-grid{grid-template-rows:280px}.life-story-grid{gap:30px}}
@media(max-width:620px){.teacher-photo-slot{height:155px}.student-life-page .gallery-grid{grid-template-columns:1fr 1fr;grid-template-rows:240px 200px;gap:10px}.student-life-page .gallery-main{grid-column:1/-1}.student-life-page .gallery-grid figcaption{font-size:13px;left:14px;bottom:14px}.life-growth-grid,.life-story-grid{grid-template-columns:1fr;gap:16px}.student-life-page .section-head{grid-template-columns:1fr;gap:12px}.student-life-page .editorial-title,.life-story h2{font-size:26px}.life-growth-grid article{padding:16px 0}.student-life-page .life-growth{padding:28px 0}.life-story{padding:32px 0}.life-rhythm{padding:10px 22px}}
.refreshed-pathways{grid-template-columns:1.12fr 1fr;gap:18px}.refreshed-pathways .curriculum-collage{display:flex;flex-direction:column;background:var(--forest2);min-height:0;grid-row:span 2}.refreshed-pathways .curriculum-collage:after{display:none}.curriculum-scenes{position:relative;width:100%;aspect-ratio:1;flex-shrink:0;overflow:hidden}.refreshed-pathways .curriculum-scenes img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:none!important}.curriculum-labels{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;pointer-events:none}.curriculum-labels span{align-self:start;justify-self:start;margin:14px;padding:5px 12px;background:#0d2d27e8;color:#fff;border:1px solid #ffffff50;border-radius:20px;font-size:12px;font-weight:700}.refreshed-pathways .curriculum-collage .home-path-v3-content{position:relative;left:auto;right:auto;bottom:auto;padding:23px 25px}.refreshed-pathways .curriculum-collage h3{font-size:23px}.refreshed-pathways>.home-path-v3-card:not(.curriculum-collage){min-height:300px}.refreshed-pathways>.home-path-v3-card:not(.curriculum-collage) img{object-position:center 40%}
@media(max-width:900px){.refreshed-pathways{grid-template-columns:1fr 1fr}.refreshed-pathways .curriculum-collage{grid-column:1/-1;grid-row:auto;display:grid;grid-template-columns:1fr 1fr;align-items:center}.refreshed-pathways>.home-path-v3-card:not(.curriculum-collage){min-height:330px}}
@media(max-width:620px){.refreshed-pathways{grid-template-columns:1fr}.refreshed-pathways .curriculum-collage{display:flex}.refreshed-pathways>.home-path-v3-card:not(.curriculum-collage){min-height:330px}.curriculum-labels span{margin:10px;font-size:10px;padding:4px 10px}}
/* Organic scene transitions: reuse the original imagery without hard gutters. */
.organic-scenes{background:#314b3e;isolation:isolate}
.scene-fragment{position:absolute;width:55%;height:55%;background-image:url('../../assets/utu-curricula-four-scenes.png');background-size:204% 204%;background-repeat:no-repeat}
.scene-igcse{left:0;top:0;background-position:left top;mask-image:linear-gradient(to right,#000 82%,transparent),linear-gradient(to bottom,#000 82%,transparent);mask-composite:intersect}
.scene-alevel{right:0;top:0;background-position:right top;mask-image:linear-gradient(to left,#000 82%,transparent),linear-gradient(to bottom,#000 82%,transparent);mask-composite:intersect}
.scene-ib{left:0;bottom:0;background-position:left bottom;mask-image:linear-gradient(to right,#000 82%,transparent),linear-gradient(to top,#000 82%,transparent);mask-composite:intersect}
.scene-ap{right:0;bottom:0;background-position:right bottom;mask-image:linear-gradient(to left,#000 82%,transparent),linear-gradient(to top,#000 82%,transparent);mask-composite:intersect}
.organic-scenes:after{content:'';position:absolute;inset:29%;border-radius:50%;background:radial-gradient(ellipse,#173f3660,transparent 70%);pointer-events:none}
.curriculum-labels.organic-labels{inset:auto;left:50%;top:50%;width:180px;height:90px;transform:translate(-50%,-50%) rotate(-7deg);z-index:2;gap:8px}
.curriculum-labels.organic-labels span{align-self:center;justify-self:center;margin:0;padding:7px 14px;font-size:12px;background:#173f36e8;border:1px solid #e8d9b98c;box-shadow:0 4px 16px #0d2d2730;backdrop-filter:blur(8px);transform:rotate(7deg)}
@media(max-width:620px){.curriculum-labels.organic-labels{width:152px;height:78px;gap:6px}.curriculum-labels.organic-labels span{font-size:10px;padding:6px 11px}}
/* Keep all four curriculum names clearly visible at the scene intersection. */
.curriculum-scenes .curriculum-labels.organic-labels{display:grid;position:absolute;inset:50% auto auto 50%;width:210px;height:96px;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;transform:translate(-50%,-50%);z-index:5;opacity:1;visibility:visible}
.curriculum-scenes .curriculum-labels.organic-labels span{display:flex;align-items:center;justify-content:center;align-self:stretch;justify-self:stretch;transform:none;padding:8px 12px;margin:0;font-size:14px;font-weight:700;color:#fff;background:#173f36f5;border:1px solid #dfb76d;border-radius:24px;box-shadow:0 3px 12px #0d2d2755}
@media(max-width:620px){.curriculum-scenes .curriculum-labels.organic-labels{width:174px;height:82px;gap:6px}.curriculum-scenes .curriculum-labels.organic-labels span{font-size:12px;padding:6px 10px}}
/* One centred four-part curriculum marker, aligned with the four scenes. */
.curriculum-scenes .curriculum-labels.organic-labels{width:164px;height:164px;gap:0;border-radius:50%;overflow:hidden;border:1px solid #f0ddad;box-shadow:0 6px 24px #102b2438;background:#e6d4ad;transform:translate(-50%,-50%);grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.curriculum-scenes .curriculum-labels.organic-labels span{border:0;border-radius:0;box-shadow:none;backdrop-filter:none;font-size:13px;font-weight:700;letter-spacing:.02em;padding:0;margin:0;background:#173f36f2;color:#fff;line-height:1.2}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(1){border-right:1px solid #ead9b08c;border-bottom:1px solid #ead9b08c;padding:8px 0 0 8px}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(2){border-bottom:1px solid #ead9b08c;background:#275246f2;padding:8px 8px 0 0}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(3){border-right:1px solid #ead9b08c;background:#275246f2;padding:0 0 8px 8px}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(4){padding:0 8px 8px 0}
@media(max-width:620px){.curriculum-scenes .curriculum-labels.organic-labels{width:132px;height:132px}.curriculum-scenes .curriculum-labels.organic-labels span{font-size:11px}}
/* Quiet typography follows the four scenes without covering their meeting point. */
.curriculum-scenes .curriculum-labels.organic-labels{width:46%;height:25%;gap:0;border:0;border-radius:0;overflow:visible;box-shadow:none;background:transparent;backdrop-filter:none;transform:translate(-50%,-50%)}
.curriculum-scenes .curriculum-labels.organic-labels span,.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(n){background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;padding:0;margin:0;color:#fff;font-family:Manrope,var(--sans);font-size:clamp(12px,1.25vw,17px);font-weight:700;letter-spacing:.06em;text-shadow:0 1px 3px #0d2d27,0 2px 12px #0d2d27b3;align-self:center;justify-self:center}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(1){transform:translate(-8px,-5px)}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(2){transform:translate(8px,-5px)}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(3){transform:translate(-8px,5px)}
.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(4){transform:translate(8px,5px)}
.organic-scenes:after{inset:28% 19%;background:radial-gradient(ellipse,#0d2d2755 0%,#0d2d2720 42%,transparent 72%);border-radius:50%;z-index:1}
@media(max-width:620px){.curriculum-scenes .curriculum-labels.organic-labels{width:48%;height:25%}.curriculum-scenes .curriculum-labels.organic-labels span:nth-child(n){font-size:12px}}
/* Let the integrated photograph stand on its own. */
.organic-scenes:after{display:none}
/* School community: a compact editorial directory. */
.school-network{padding:44px 0;background:var(--paper)}
.school-network-panel{display:grid;grid-template-columns:.85fr 1.35fr;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.school-network-intro{padding:36px;background:var(--forest);color:#fff;display:flex;flex-direction:column;align-items:flex-start}
.school-network-intro .kicker{color:var(--gold);font-size:10px}.school-network-intro h2{font-family:var(--serif);font-size:34px;font-weight:500;line-height:1.2;margin:20px 0}.school-network-intro p{color:#d3dfd7;font-size:12px;line-height:1.9;margin:0 0 24px;max-width:340px}
.school-network-link{display:flex;align-items:center;gap:22px;margin-top:auto;font-size:11px;color:var(--gold);border-bottom:1px solid #dfb76d66;padding-bottom:8px}
.school-network-directory{background:#fff;padding:26px 30px 20px;min-width:0}.school-directory-head{display:flex;justify-content:space-between;gap:14px;font-size:9px;letter-spacing:.1em;color:var(--muted);padding-bottom:15px;border-bottom:1px solid var(--line)}.school-location{white-space:nowrap;color:#8d998e}
.school-name-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;column-gap:24px}.school-name-list li{display:flex;align-items:center;gap:11px;min-height:67px;padding:13px 0;border-bottom:1px solid #173f3612;font-size:13px;font-weight:600;line-height:1.5}.school-list-mark{color:#ac8750;font-size:14px;flex-shrink:0}.school-directory-note{font-size:11px;color:var(--muted);padding-top:17px}
.school-support-strip{display:flex;align-items:center;gap:24px;padding:20px 0 0;font-size:11px}.school-support-title{color:var(--muted)}.school-support-strip>div{display:flex;gap:8px;flex-wrap:wrap}.school-support-strip>div>span{border:1px solid var(--line);border-radius:4px;padding:4px 11px;font-weight:600}.school-support-strip>a{margin-left:auto;color:var(--forest);text-decoration:underline;text-underline-offset:4px}
@media(max-width:900px){.school-network-panel{grid-template-columns:1fr}.school-network-intro{padding:28px}.school-network-intro h2{font-size:30px}.school-network-intro h2 br{display:none}.school-network-intro p{max-width:580px;margin-bottom:18px}.school-support-strip{flex-wrap:wrap}.school-support-strip>a{margin-left:0}}
@media(max-width:620px){.school-network{padding:30px 0}.school-network-intro{padding:25px}.school-network-intro h2{font-size:28px}.school-network-directory{padding:22px}.school-name-list{column-gap:16px}.school-name-list li{font-size:11px;min-height:70px;gap:7px}.school-location{display:none}.school-support-strip{gap:12px}.school-support-title{width:100%}}

/* Enquiry labels and entry hints have distinct visual hierarchy. */
.ct-formcard .field label{display:block;font-size:14px;font-weight:700;color:#173f36;margin-bottom:9px;line-height:1.5}
.ct-formcard .field input,.ct-formcard .field select,.ct-formcard .field textarea{box-sizing:border-box;width:100%;min-width:0;background:#fff;border:1px solid #b9c9be;color:#172f26;padding:13px 14px;font-size:16px;border-radius:8px;line-height:1.5}
.ct-formcard .field input::placeholder,.ct-formcard .field textarea::placeholder{color:#79867e;font-weight:400;opacity:1}
.ct-formcard .field :is(input,select,textarea):focus{outline:2px solid #406c53;outline-offset:2px;border-color:#406c53}
@media(max-width:768px){.ct-formcard{padding:24px 18px!important;min-width:0}.ct-formcard .form-grid{grid-template-columns:1fr!important;gap:20px}.ct-formcard .field.full{grid-column:auto}.ct-formcard .form-action button{width:100%;min-height:48px}.ct-grid{grid-template-columns:1fr!important}.map-embed iframe{max-width:100%}}

/* A compact, right-aligned navigation panel on phones and tablets. */
.mobile-menu-head,.mobile-menu-login{display:none}
@media(max-width:900px){
  .site-nav .nav-links.open{inset:88px 16px auto auto;width:min(310px,calc(100vw - 54px));max-height:calc(100dvh - 104px);overflow-y:auto;box-sizing:border-box;display:flex;gap:5px;align-items:stretch;padding:16px;background:#faf8f2;color:#173f36;border:1px solid #e1e5dc;border-radius:18px;box-shadow:0 18px 54px #092c2640;font-size:15px;letter-spacing:0;text-transform:none}
  .site-nav .mobile-menu-head{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px 12px;margin-bottom:4px;border-bottom:1px solid #173f3618;font-size:10px;font-weight:700;letter-spacing:.16em;color:#748277}
  .mobile-menu-head button{border:0;background:transparent;color:#173f36;font-size:27px;width:40px;height:40px;cursor:pointer;border-radius:50%}
  .site-nav .nav-links.open>a{padding:13px 14px;min-height:46px;box-sizing:border-box;border-radius:9px;opacity:1;line-height:1.4;font-size:14px;letter-spacing:0;display:block}
  .site-nav .nav-links.open>a:after{display:none}
  .site-nav .nav-links.open>a:hover,.site-nav .nav-links.open>a.active{background:#e6ede4;color:#173f36}
  .site-nav .nav-links.open>a.active{box-shadow:inset 3px 0 #aa8350}
  .site-nav .nav-links.open>a.mobile-menu-login{display:block;margin-top:10px;background:#173f36;color:#fff;text-align:center;border:1px solid #173f36}
  .site-nav .nav-links.open :is(a,button):focus-visible{outline:2px solid #aa8350;outline-offset:2px}
}
@media(max-width:620px){.site-nav .nav-links.open{top:84px;right:12px;max-height:calc(100dvh - 96px)}}

/* Refined mobile menu: a narrow, translucent editorial panel. */
@media(max-width:900px){
 .site-nav .nav-links.open{width:min(268px,calc(100vw - 72px));padding:12px 18px 18px;gap:0;background:rgba(248,248,241,.97);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid #ffffff80;border-radius:5px;box-shadow:0 14px 36px #092c262b}
 .site-nav .mobile-menu-head{padding:0 0 8px;margin:0 0 3px;font-size:9px;letter-spacing:.18em;border-bottom:1px solid #173f3620}
 .site-nav .mobile-menu-head button{width:36px;height:36px;font-size:23px}
 .site-nav .nav-links.open>a{position:relative;display:flex;align-items:center;min-height:45px;padding:12px 4px;font-size:13px;font-weight:500;border-radius:0;border-bottom:1px solid #173f3610;transition:background .15s,color .15s}
 .site-nav .nav-links.open>a:after{content:'↗';display:block;position:static;margin-left:auto;width:auto;height:auto;background:none;transform:none;color:#8c9a8e;font-size:13px}
 .site-nav .nav-links.open>a.active,.site-nav .nav-links.open>a:hover{box-shadow:none;background:transparent;color:#9a713c}
 .site-nav .nav-links.open>a.active:after{content:'•';color:#9a713c}
 .site-nav .nav-links.open>a.mobile-menu-login{display:flex;justify-content:space-between;align-items:center;text-align:left;margin-top:16px;padding:12px 14px;min-height:44px;border:0;border-radius:3px;background:#173f36;color:#fff;font-size:12px}
 .site-nav .nav-links.open>a.mobile-menu-login:after{content:'→';color:#e5c78d}
}

/* Anchor the menu to its single header toggle, with a gentle entrance. */
@keyframes mobile-menu-enter{
 from{opacity:0;transform:translateY(-10px) scale(.97)}
 to{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:900px){
 .site-nav .nav-links.open{background:rgba(244,245,235,.97);border-color:#dbe3d580;border-radius:10px;box-shadow:0 12px 32px #092c2630;transform-origin:top right;animation:mobile-menu-enter .24s cubic-bezier(.2,.7,.3,1) both}
 .site-nav .mobile-menu-head{min-height:30px;padding:3px 4px 10px;color:#788774}
 .site-nav .hamburger{border-radius:50%;transition:background .2s,color .2s}
 .site-nav .hamburger[aria-expanded="true"]{background:#ffffff18;color:#edc982}
}
@media(prefers-reduced-motion:reduce){.site-nav .nav-links.open{animation:none}.site-nav .hamburger{transition:none}}

/* Mobile profiles: portrait and identity together, biography at full width. */
@media(max-width:900px){
 .teams-page .teams-role-grid{grid-template-columns:1fr;gap:16px}
 .teams-page .teams-role-card,.teams-page .teams-role-card:first-child{display:grid;grid-template-columns:84px minmax(0,1fr);grid-template-rows:auto auto;gap:0 16px;padding:20px;align-items:start}
 .teams-page .team-profile-copy,.teams-page .teams-role-card:first-child .team-profile-copy{display:contents;columns:auto}
 .teams-page .teams-role-card .team-portrait,.teams-page .teams-role-card:first-child .team-portrait{grid-column:1;grid-row:1/3;width:84px;height:100px;min-height:0;border-radius:8px;overflow:hidden}
 .teams-page .teams-role-card .team-portrait img{width:100%;height:100%;min-height:0;object-fit:cover;object-position:center 22%}
 .teams-page .teams-role-card .team-person{grid-column:2;grid-row:1;font-size:24px;line-height:1.2;margin:10px 0 6px;overflow-wrap:break-word}
 .teams-page .teams-role-card .leader-role{grid-column:2;grid-row:2;margin:0;align-self:start}
 .teams-page .teams-role-card .leader-role span{font-size:10px;line-height:1.6;letter-spacing:.03em}
 .teams-page .teams-role-card h2,.teams-page .teams-role-card:first-child h2{grid-column:1/-1;font-size:18px;line-height:1.45;margin:18px 0 12px}
 .teams-page .teams-role-card .leader-degree{grid-column:1/-1;font-size:12px;line-height:1.6;margin:0 0 12px;box-sizing:border-box}
 .teams-page .teams-role-card p,.teams-page .teams-role-card:first-child p{grid-column:1/-1;font-size:13px;line-height:1.8;margin:0}
 .teams-page .team-background{grid-column:1/-1;margin-top:14px}
 .teams-page .team-background p{margin-top:10px}
}
@media(max-width:380px){.teams-page .member-grid{grid-template-columns:1fr}.teams-page .teams-role-card,.teams-page .teams-role-card:first-child{padding:16px;gap:0 12px}}

/* Equal-height contact columns, with the map filling the remaining space. */
@media(min-width:901px){.ct-grid{align-items:stretch}.ct-info{min-width:0}.ct-info .map-embed{flex:1;min-height:220px;display:flex}.ct-info .map-embed iframe{display:block;flex:1;width:100%;height:100%;min-height:220px}.ct-formcard{height:100%;box-sizing:border-box}}

@media(min-width:901px){.site-nav .nav-links>a.mobile-menu-login{display:none}}

/* Leadership portraits with a soft transition into readable profiles. */
.teams-page .teams-role-card.portrait-profile{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:560px;padding:260px 0 0;gap:0;overflow:hidden;background:#173f36;border:0;border-radius:16px;box-shadow:0 8px 24px #173f3612}
.teams-page .portrait-profile .team-portrait{position:absolute;inset:0;width:100%;height:100%;min-height:0;border-radius:0;z-index:-2}
.teams-page .portrait-profile .team-portrait img{width:100%;height:100%;min-height:0;object-fit:cover;object-position:center top}
.teams-page .portrait-profile .team-profile-copy{position:relative;display:block;columns:auto;padding:44px 24px 24px;color:#fff;background:linear-gradient(180deg,transparent 0%,rgba(18,48,41,.78) 24%,rgba(18,48,41,.97) 65%)}
.teams-page .portrait-profile .team-profile-copy:before{content:"";position:absolute;inset:0;z-index:-1;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);mask-image:linear-gradient(transparent,#000 55%);-webkit-mask-image:linear-gradient(transparent,#000 55%)}
.teams-page .portrait-profile .team-person{color:#fff;font-size:28px;line-height:1.15;margin:0 0 8px}
.teams-page .portrait-profile .leader-role{color:#ebcf9c;margin:0 0 15px}
.teams-page .portrait-profile .leader-role span{font-size:11px;letter-spacing:.025em}
.teams-page .portrait-profile h2{color:#fff;font-size:17px;line-height:1.45;margin:0 0 12px}
.teams-page .portrait-profile .leader-degree{background:transparent;border:0;border-top:1px solid #ffffff30;color:#e4e9df;padding:12px 0 0;font-size:11px;margin:0 0 10px}
.teams-page .portrait-profile p{color:#e0e7e2;font-size:12px;line-height:1.75;margin:0}
@media(max-width:900px){.teams-page .teams-role-card.portrait-profile{width:100%;max-width:480px;justify-self:center;min-height:560px;padding:280px 0 0}.teams-page .portrait-profile .team-profile-copy{padding:44px 24px 24px}.teams-page .portrait-profile .team-person{margin:0 0 8px;font-size:28px}.teams-page .portrait-profile h2{margin:0 0 12px}.teams-page .portrait-profile .leader-role{margin:0 0 15px}.teams-page .portrait-profile p{font-size:13px}}
.teams-page .portrait-profile .leader-role span{color:#ebcf9c}

/* Give the principal the lead, with a compact supporting portrait row. */
@media(min-width:901px){
 .teams-page .teams-role-card:first-child{grid-template-columns:32% minmax(0,1fr);min-height:330px;background:#edf0e8;border-radius:16px}
 .teams-page .teams-role-card:first-child .team-portrait{height:330px}
 .teams-page .teams-role-card:first-child .team-portrait img{object-position:center 22%}
 .teams-page .teams-role-card:first-child .team-profile-copy{columns:auto;padding:30px 36px;display:flex;flex-direction:column;justify-content:center}
 .teams-page .teams-role-card:first-child .team-person{font-size:32px;margin-bottom:8px}
 .teams-page .teams-role-card:first-child h2{font-size:24px;margin-bottom:14px}
 .teams-page .teams-role-card:first-child h2 br{display:none}
 .teams-page .teams-role-card:first-child .leader-degree{background:transparent;padding:0;font-size:12px;margin-bottom:10px}
 .teams-page .teams-role-card:first-child p{font-size:12px;max-width:640px}
 .teams-page .teams-role-card.portrait-profile{min-height:0;padding-top:180px}
 .teams-page .portrait-profile .team-profile-copy{padding:30px 20px 20px}
 .teams-page .portrait-profile .team-person{font-size:23px}
 .teams-page .portrait-profile .leader-role{margin-bottom:10px}
 .teams-page .portrait-profile h2{font-size:14px;margin-bottom:8px}
 .teams-page .portrait-profile h2 br{display:none}
 .teams-page .portrait-profile .leader-degree{font-size:10px;padding-top:8px;margin-bottom:8px}
 .teams-page .portrait-profile p{font-size:11px;line-height:1.65}
}
@media(max-width:900px){
 .teams-page .teams-role-card:first-child{background:#edf0e8;border-radius:16px;grid-template-columns:110px minmax(0,1fr);padding:24px}
 .teams-page .teams-role-card:first-child .team-portrait{width:110px;height:140px}
 .teams-page .teams-role-card:first-child .team-person{font-size:27px}
 .teams-page .teams-role-card.portrait-profile{min-height:0;padding-top:230px}
 .teams-page .portrait-profile .team-profile-copy{padding:35px 22px 22px}
}

/* Keep faces clear: a dedicated portrait area blends into the biography. */
.teams-page .portrait-profile .team-portrait{height:290px;bottom:auto}
.teams-page .portrait-profile .team-portrait img{object-fit:cover;object-position:center 18%}
.teams-page .portrait-profile .team-profile-copy{background:linear-gradient(180deg,rgba(18,48,41,0),rgba(18,48,41,.94) 32px,#123029 70px)}
@media(min-width:901px){
 .teams-page .teams-role-card.portrait-profile{padding-top:240px}
 .teams-page .portrait-profile .team-profile-copy{padding-top:38px}
}
@media(max-width:900px){
 .teams-page .portrait-profile .team-portrait{height:330px}
 .teams-page .teams-role-card.portrait-profile{padding-top:280px}
 .teams-page .portrait-profile .team-profile-copy{padding-top:38px}
}

/* Stronger principal feature card above the three supporting profiles. */
@media(min-width:901px){
 .teams-page .teams-role-card:first-child{grid-template-columns:43% minmax(0,1fr);min-height:465px}
 .teams-page .teams-role-card:first-child .team-portrait{height:465px}
 .teams-page .teams-role-card:first-child .team-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 15%}
 .teams-page .teams-role-card:first-child .team-profile-copy{padding:40px 52px}
 .teams-page .teams-role-card:first-child .team-person{font-size:39px;line-height:1.18;margin-bottom:14px}
 .teams-page .teams-role-card:first-child h2{font-size:26px;line-height:1.35;margin-bottom:18px}
 .teams-page .teams-role-card:first-child .leader-role span{font-size:12px}
 .teams-page .teams-role-card:first-child .leader-degree{font-size:13px;margin-bottom:16px}
 .teams-page .teams-role-card:first-child p{font-size:13px;line-height:1.85}
}

/* Proportionally tighten the leadership group without changing its hierarchy. */
@media(min-width:901px){
 .teams-page .teams-leadership>.wrap{width:min(1020px,calc(100% - 44px))}
 .teams-page .teams-role-card:first-child{min-height:400px}
 .teams-page .teams-role-card:first-child .team-portrait{height:400px}
 .teams-page .teams-role-card:first-child .team-profile-copy{padding:32px 42px}
 .teams-page .teams-role-card:first-child .team-person{font-size:34px;margin-bottom:11px}
 .teams-page .teams-role-card:first-child h2{font-size:23px;margin-bottom:15px}
 .teams-page .teams-role-card:first-child .leader-degree{font-size:12px;margin-bottom:13px}
 .teams-page .teams-role-card:first-child p{font-size:12px}
 .teams-page .teams-role-card.portrait-profile{padding-top:208px}
 .teams-page .portrait-profile .team-portrait{height:260px}
 .teams-page .portrait-profile .team-profile-copy{padding:34px 18px 18px}
 .teams-page .portrait-profile .team-person{font-size:21px}
 .teams-page .portrait-profile h2{font-size:13px}
 .teams-page .portrait-profile .leader-degree{font-size:9.5px}
 .teams-page .portrait-profile p{font-size:10px}
}

/* Final leadership composition: one substantial principal feature, then three smaller portraits. */
@media(min-width:901px){
 .teams-page .teams-leadership>.wrap{width:min(1080px,calc(100% - 44px))}
 .teams-page .teams-role-grid{gap:16px}
 .teams-page .teams-role-card:first-child{grid-template-columns:42% minmax(0,1fr);min-height:510px}
 .teams-page .teams-role-card:first-child .team-portrait{height:510px}
 .teams-page .teams-role-card:first-child .team-portrait img{object-position:center 15%}
 .teams-page .teams-role-card:first-child .team-profile-copy{padding:36px 48px}
 .teams-page .teams-role-card:first-child .team-person{font-size:38px}
 .teams-page .teams-role-card:first-child h2{font-size:25px}
 .teams-page .teams-role-card.portrait-profile{padding-top:195px}
 .teams-page .portrait-profile .team-portrait{height:245px}
 .teams-page .portrait-profile .team-person{font-size:22px}
 .teams-page .member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:621px) and (max-width:900px){.teams-page .member-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:621px) and (max-width:900px){
 .teams-page .teams-role-card:first-child{display:grid;grid-template-columns:40% minmax(0,1fr);min-height:390px;padding:0;gap:0;align-items:stretch}
 .teams-page .teams-role-card:first-child .team-portrait{grid-column:1;grid-row:1;width:100%;height:100%;min-height:390px;border-radius:0}
 .teams-page .teams-role-card:first-child .team-portrait img{object-position:center 18%}
 .teams-page .teams-role-card:first-child .team-profile-copy{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;padding:28px;columns:auto}
 .teams-page .teams-role-card:first-child .team-profile-copy>*{grid-column:auto;grid-row:auto}
 .teams-page .teams-role-card:first-child .team-person{font-size:28px}
 .teams-page .teams-role-card:first-child h2{margin:12px 0;font-size:20px}
 .teams-page .teams-role-card:first-child .leader-degree{margin-bottom:12px}
}
@media(max-width:620px){
 .teams-page .teams-role-card:first-child{display:block;padding:0;min-height:0}
 .teams-page .teams-role-card:first-child .team-portrait{display:block;width:100%;height:350px;min-height:0;border-radius:0}
 .teams-page .teams-role-card:first-child .team-portrait img{object-position:center 19%}
 .teams-page .teams-role-card:first-child .team-profile-copy{display:block;padding:24px;columns:auto}
 .teams-page .teams-role-card:first-child .team-person{font-size:29px;margin-bottom:9px}
 .teams-page .teams-role-card:first-child .leader-role{margin-bottom:12px}
 .teams-page .teams-role-card:first-child h2{font-size:20px;margin:0 0 12px}
 .teams-page .teams-role-card:first-child .leader-degree{font-size:12px;margin-bottom:10px}
 .teams-page .teams-role-card:first-child p{font-size:12px}
}

/* Team page: one visual system and three clear levels. */
.teams-page .teams-leadership{padding:42px 0 34px}
.teams-page .teams-leadership>.wrap,.teams-page #teachers>.wrap{width:min(1080px,calc(100% - 44px))}
.teams-page .leadership-intro{margin-bottom:24px}
.teams-page .teams-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.teams-page .teams-role-card.leadership-principal,.teams-page .teams-role-card.leadership-person{background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 9px 24px #173f360b}
.teams-page .teams-role-card.leadership-principal{grid-column:1/-1;display:grid;grid-template-columns:38% minmax(0,1fr);min-height:390px;padding:0;align-items:stretch}
.teams-page .leadership-principal .team-portrait{grid-column:1;grid-row:1;width:100%;height:100%;min-height:390px;border-radius:0}
.teams-page .leadership-principal .team-portrait img{width:100%;height:100%;min-height:0;object-fit:cover;object-position:center 18%}
.teams-page .leadership-principal .team-profile-copy{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;columns:auto;padding:36px 48px}
.teams-page .leadership-principal .team-person{font-size:37px;line-height:1.15;margin:0 0 10px;color:var(--forest)}
.teams-page .leadership-principal .leader-role{margin:0 0 15px;color:var(--terra)!important}
.teams-page .leadership-principal h2{font-size:25px;line-height:1.35;margin:0 0 16px;color:var(--ink)}
.teams-page .leadership-principal .leader-degree{background:#f0f1e9;color:var(--forest);font-size:12px;padding:10px 13px;margin:0 0 14px}
.teams-page .leadership-principal p{font-size:12px;line-height:1.8;color:var(--muted)}
.teams-page .leadership-principal .team-background{margin-top:13px}
.teams-page .teams-role-card.leadership-person{display:flex;flex-direction:column;min-height:0;padding:0}
.teams-page .leadership-person .team-portrait{position:relative;inset:auto;z-index:auto;width:100%;height:235px;min-height:0;background:#e8e9e5}
.teams-page .leadership-person .team-portrait img{width:100%;height:100%;min-height:0;object-fit:cover;object-position:center 20%}
.teams-page .leadership-person .team-profile-copy{position:static;display:block;columns:auto;background:#fff;padding:20px 22px 22px;flex:1;color:var(--ink)}
.teams-page .leadership-person .team-profile-copy:before{display:none}
.teams-page .leadership-person .team-person{font-size:25px;line-height:1.15;margin:0 0 8px;color:var(--forest)}
.teams-page .leadership-person .leader-role{margin:0 0 12px;color:var(--terra)!important}
.teams-page .leadership-person .leader-role span{font-size:10px;color:var(--terra)}
.teams-page .leadership-person h2{font-size:16px;line-height:1.4;margin:0 0 12px;color:var(--ink)}
.teams-page .leadership-person .leader-degree{background:#f0f1e9;border:0;color:var(--forest);font-size:10px;line-height:1.5;padding:9px 10px;margin:0 0 11px}
.teams-page .leadership-person p{font-size:11px;line-height:1.75;color:var(--muted)}
.teams-page #teachers{padding:38px 0 50px}
.teams-page #teachers .section-head{margin-bottom:22px}
.teams-page .member-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.teams-page .member-card{padding:17px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 7px 18px #173f3608}
.teams-page .teacher-photo-slot{height:126px;margin-bottom:13px}
.teams-page .member-name{font-size:23px}
@media(max-width:900px){
 .teams-page .teams-leadership>.wrap,.teams-page #teachers>.wrap{width:min(680px,calc(100% - 36px))}
 .teams-page .teams-role-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .teams-page .teams-role-card.leadership-principal{grid-template-columns:39% minmax(0,1fr);padding:0;min-height:360px}
 .teams-page .leadership-principal .team-portrait{width:100%;height:100%;min-height:360px;border-radius:0}
 .teams-page .leadership-principal .team-profile-copy{display:flex;columns:auto;padding:26px}
 .teams-page .leadership-principal .team-person{font-size:28px}
 .teams-page .leadership-principal h2{font-size:19px;margin:0 0 12px}
 .teams-page .leadership-person .team-portrait{grid-column:auto;grid-row:auto;width:100%;height:190px;border-radius:0}
 .teams-page .leadership-person .team-profile-copy{display:block;padding:16px}
 .teams-page .leadership-person .team-person{font-size:21px}
 .teams-page .leadership-person h2{font-size:14px}
 .teams-page .member-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 .teams-page .teams-leadership{padding:30px 0 24px}
 .teams-page .teams-role-grid{grid-template-columns:1fr;gap:14px}
 .teams-page .teams-role-card.leadership-principal{display:block;min-height:0;padding:0}
 .teams-page .leadership-principal .team-portrait{display:block;width:100%;height:330px;min-height:0}
 .teams-page .leadership-principal .team-profile-copy{display:block;padding:22px}
 .teams-page .leadership-principal .team-person{font-size:29px}
 .teams-page .leadership-principal h2{font-size:19px}
 .teams-page .teams-role-card.leadership-person{display:grid;grid-template-columns:115px minmax(0,1fr);min-height:0}
 .teams-page .leadership-person .team-portrait{grid-column:1;grid-row:1;width:115px;height:100%;min-height:225px}
 .teams-page .leadership-person .team-profile-copy{grid-column:2;grid-row:1;padding:16px;min-width:0}
 .teams-page .leadership-person .team-person{font-size:20px}
 .teams-page .leadership-person h2{font-size:13px;margin-bottom:9px}
 .teams-page .leadership-person .leader-degree{font-size:9px;padding:7px 8px;margin-bottom:8px}
 .teams-page .leadership-person p{font-size:10px;line-height:1.6}
 .teams-page #teachers{padding:30px 0 40px}
 .teams-page .member-grid{grid-template-columns:1fr;gap:10px}
 .teams-page .member-card{display:grid;grid-template-columns:1fr;padding:15px}
 .teams-page .member-top{display:grid;grid-template-columns:86px minmax(0,1fr);gap:13px;align-items:center;margin-bottom:10px}
 .teams-page .teacher-photo-slot{width:86px;height:98px;margin:0}
 .teams-page .member-name{font-size:22px}
 .teams-page .member-role{min-height:0}
 .teams-page .member-bio{margin:0 0 8px}
}
@media(max-width:620px){
 .teams-page .teams-role-card.leadership-person{display:block}
 .teams-page .leadership-person .team-portrait{display:block;width:100%;height:225px;min-height:0}
 .teams-page .leadership-person .team-profile-copy{display:block;padding:19px 20px 20px}
 .teams-page .leadership-person .team-person{font-size:24px}
 .teams-page .leadership-person .leader-role span{font-size:10px}
 .teams-page .leadership-person h2{font-size:16px;margin-bottom:11px}
 .teams-page .leadership-person .leader-degree{font-size:10px;padding:9px 10px;margin-bottom:9px}
 .teams-page .leadership-person p{font-size:12px;line-height:1.7}
}

/* Compact leadership cards; complete portraits with a soft fade into copy. */
@media(min-width:901px){
 .teams-page .teams-leadership>.wrap{width:min(960px,calc(100% - 44px))}
 .teams-page .teams-leadership{padding:34px 0 28px}
 .teams-page .leadership-intro{margin-bottom:19px}
 .teams-page .teams-role-grid{gap:13px}
 .teams-page .teams-role-card.leadership-principal{min-height:330px;grid-template-columns:35% minmax(0,1fr);padding:11px;gap:12px}
 .teams-page .leadership-principal .team-portrait{min-height:308px;height:100%;border-radius:10px}
 .teams-page .leadership-principal .team-profile-copy{padding:22px 26px}
 .teams-page .leadership-principal .team-person{font-size:32px;margin-bottom:8px}
 .teams-page .leadership-principal .leader-role{margin-bottom:10px}
 .teams-page .leadership-principal h2{font-size:21px;margin-bottom:12px}
 .teams-page .leadership-principal .leader-degree{font-size:11px;padding:8px 10px;margin-bottom:9px}
 .teams-page .leadership-principal p{font-size:11px}
 .teams-page .teams-role-card.leadership-person{padding:11px}
 .teams-page .leadership-person .team-portrait{height:245px;border-radius:10px;background:linear-gradient(135deg,#e6e9e5,#f0efe9)}
 .teams-page .leadership-person .team-portrait img{object-fit:contain;object-position:center center}
 .teams-page .leadership-person .team-profile-copy{padding:15px 8px 9px}
 .teams-page .leadership-person .team-person{font-size:22px}
 .teams-page .leadership-person h2{font-size:14px;margin-bottom:9px}
 .teams-page .leadership-person .leader-degree{font-size:9px;padding:7px 8px;margin-bottom:8px}
 .teams-page .leadership-person p{font-size:10px;line-height:1.65}
}
.teams-page .leadership-person .team-portrait{position:relative;overflow:hidden}
.teams-page .leadership-person .team-portrait:after{content:"";position:absolute;inset:auto 0 0;height:48px;background:linear-gradient(transparent,rgba(238,239,235,.7));pointer-events:none}
.teams-page .leadership-principal .team-portrait{overflow:hidden}
.teams-page .member-card .teacher-photo-slot{border-radius:10px}
@media(min-width:621px) and (max-width:900px){
 .teams-page .teams-leadership>.wrap{width:min(620px,calc(100% - 36px))}
 .teams-page .teams-role-card.leadership-principal{padding:10px;gap:11px;min-height:320px}
 .teams-page .leadership-principal .team-portrait{min-height:300px;height:100%;border-radius:9px}
 .teams-page .leadership-principal .team-profile-copy{padding:15px}
 .teams-page .teams-role-card.leadership-person{padding:9px}
 .teams-page .leadership-person .team-portrait{height:185px;border-radius:9px}
 .teams-page .leadership-person .team-portrait img{object-fit:contain;object-position:center}
 .teams-page .leadership-person .team-profile-copy{padding:12px 5px 6px}
}
@media(max-width:620px){
 .teams-page .teams-leadership>.wrap{width:calc(100% - 40px)}
 .teams-page .teams-leadership{padding:25px 0 22px}
 .teams-page .leadership-intro{margin-bottom:18px}
 .teams-page .teams-role-grid{gap:12px}
 .teams-page .teams-role-card.leadership-principal{padding:10px}
 .teams-page .leadership-principal .team-portrait{width:100%;height:285px;border-radius:9px}
 .teams-page .leadership-principal .team-profile-copy{padding:16px 10px 8px}
 .teams-page .teams-role-card.leadership-person{padding:10px}
 .teams-page .leadership-person .team-portrait{height:245px;border-radius:9px;background:linear-gradient(135deg,#e6e9e5,#f0efe9)}
 .teams-page .leadership-person .team-portrait img{object-fit:contain;object-position:center}
 .teams-page .leadership-person .team-profile-copy{padding:15px 8px 8px}
}
@media(min-width:901px){
 .teams-page .teams-role-card.leadership-principal{height:330px;min-height:330px}
 .teams-page .leadership-principal .team-portrait{height:308px;min-height:308px}
}
@media(min-width:621px) and (max-width:900px){
 .teams-page .teams-role-card.leadership-principal{height:320px;min-height:320px}
 .teams-page .leadership-principal .team-portrait{height:298px;min-height:298px}
}
@media(max-width:620px){
 .teams-page .teams-role-card.leadership-principal .team-portrait{height:285px;min-height:0}
 .teams-page .teams-role-card.leadership-principal .team-profile-copy{padding:15px 10px 8px}
 .teams-page .teams-role-card.leadership-principal h2{margin:0 0 10px;font-size:19px}
}

/* Portrait-led management cards; copy lives over the image, never beside it. */
@media(min-width:901px){
 .teams-page .teams-role-card.leadership-principal{height:auto;min-height:355px;grid-template-columns:39% minmax(0,1fr);padding:10px;gap:12px}
 .teams-page .leadership-principal .team-portrait{height:100%;min-height:335px}
 .teams-page .leadership-principal .team-profile-copy{min-width:0;padding:19px 24px}
 .teams-page .leadership-principal .team-person{font-size:31px;margin-bottom:7px}
 .teams-page .leadership-principal h2{font-size:20px;line-height:1.38;margin-bottom:10px}
 .teams-page .leadership-principal .leader-degree{margin-bottom:7px}
 .teams-page .leadership-principal p{line-height:1.65}
 .teams-page .teams-role-card.leadership-person{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:420px;padding:0;overflow:hidden;background:#173f36;border:0}
 .teams-page .leadership-person .team-portrait{position:absolute;inset:0;z-index:-1;width:100%;height:100%;min-height:0;border-radius:0;background:#e5e9e6}
 .teams-page .leadership-person .team-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 15%}
 .teams-page .leadership-person .team-portrait:after{display:none}
 .teams-page .leadership-person .team-profile-copy{position:relative;display:block;flex:none;padding:78px 20px 20px;background:linear-gradient(180deg,transparent,rgba(12,39,33,.82) 27%,#102c25 82%);color:#fff}
 .teams-page .leadership-person .team-person{color:#fff;font-size:23px}
 .teams-page .leadership-person .leader-role,.teams-page .leadership-person .leader-role span{color:#f0cf95!important}
 .teams-page .leadership-person h2{color:#fff;font-size:15px}
 .teams-page .leadership-person .leader-degree{background:#ffffff1a;color:#f3f1e9}
 .teams-page .leadership-person p{color:#e7eee9;font-size:11px}
}
@media(min-width:621px) and (max-width:900px){
 .teams-page .teams-role-card.leadership-principal{height:auto;min-height:340px}
 .teams-page .leadership-principal .team-portrait{height:100%;min-height:320px}
 .teams-page .teams-role-card.leadership-person{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:410px;padding:0;overflow:hidden;background:#173f36;border:0}
 .teams-page .leadership-person .team-portrait{position:absolute;inset:0;z-index:-1;width:100%;height:100%;min-height:0;border-radius:0}
 .teams-page .leadership-person .team-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 15%}
 .teams-page .leadership-person .team-portrait:after{display:none}
 .teams-page .leadership-person .team-profile-copy{position:relative;display:block;flex:none;padding:70px 15px 17px;background:linear-gradient(180deg,transparent,rgba(12,39,33,.84) 28%,#102c25 82%);color:#fff}
 .teams-page .leadership-person .team-person,.teams-page .leadership-person h2{color:#fff}
 .teams-page .leadership-person .leader-role,.teams-page .leadership-person .leader-role span{color:#f0cf95!important}
 .teams-page .leadership-person .leader-degree{background:#ffffff1a;color:#f3f1e9}
 .teams-page .leadership-person p{color:#e7eee9}
}
@media(max-width:620px){
 .teams-page .teams-role-card.leadership-person{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;min-height:420px;padding:0;overflow:hidden;background:#173f36;border:0}
 .teams-page .leadership-person .team-portrait{position:absolute;inset:0;z-index:-1;width:100%;height:100%;min-height:0;border-radius:0}
 .teams-page .leadership-person .team-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 15%}
 .teams-page .leadership-person .team-portrait:after{display:none}
 .teams-page .leadership-person .team-profile-copy{position:relative;display:block;flex:none;padding:84px 20px 20px;background:linear-gradient(180deg,transparent,rgba(12,39,33,.82) 28%,#102c25 82%);color:#fff}
 .teams-page .leadership-person .team-person,.teams-page .leadership-person h2{color:#fff}
 .teams-page .leadership-person .leader-role,.teams-page .leadership-person .leader-role span{color:#f0cf95!important}
 .teams-page .leadership-person .leader-degree{background:#ffffff1a;color:#f3f1e9}
 .teams-page .leadership-person p{color:#e7eee9}
}
@media(min-width:901px){.teams-page .leadership-principal .team-portrait{height:333px;min-height:333px}}
@media(min-width:621px) and (max-width:900px){.teams-page .leadership-principal .team-portrait{height:320px;min-height:320px}}
@media(min-width:901px){.teams-page .teams-role-card.leadership-principal .team-portrait{height:333px;min-height:333px}}
@media(min-width:621px) and (max-width:900px){.teams-page .teams-role-card.leadership-principal .team-portrait{height:320px;min-height:320px}}
@media(min-width:901px){.teams-page .teams-role-card.leadership-principal .team-portrait{height:370px;min-height:370px}}
@media(min-width:901px){.teams-page .teams-role-card.leadership-person{min-height:450px}.teams-page .leadership-person .team-profile-copy{padding-top:38px}}
@media(min-width:621px) and (max-width:900px){.teams-page .teams-role-card.leadership-person{min-height:470px}.teams-page .leadership-person .team-profile-copy{padding-top:32px}}
@media(max-width:620px){.teams-page .teams-role-card.leadership-person{min-height:500px}.teams-page .leadership-person .team-profile-copy{padding-top:34px}}

/* Subtle, longer fade and lower copy leave every face unobscured. */
@media(min-width:901px){
 .teams-page .teams-role-card.leadership-person{min-height:475px}
 .teams-page .leadership-person .team-profile-copy{padding:20px 21px 19px}
}
@media(min-width:621px) and (max-width:900px){
 .teams-page .teams-role-card.leadership-person{min-height:495px}
 .teams-page .leadership-person .team-profile-copy{padding:18px 16px 17px}
}
@media(max-width:620px){
 .teams-page .teams-role-card.leadership-person{min-height:525px}
 .teams-page .leadership-person .team-profile-copy{padding:18px 20px 20px}
}
.teams-page .leadership-person .team-profile-copy{background:linear-gradient(180deg,rgba(15,43,35,0) 0%,rgba(15,43,35,.08) 9%,rgba(15,43,35,.44) 28%,rgba(15,43,35,.75) 53%,rgba(15,43,35,.91) 100%)}
.teams-page .leadership-person .leader-degree{background:rgba(255,255,255,.10)}
