/* Final mobile and tablet pass for the public site and staff portal. */
html{max-width:100%;overflow-x:clip}
body{width:100%;min-width:0;overflow-x:clip}
img,video,iframe,svg{max-width:100%}
.site-header{width:100%;min-width:0;gap:12px}
.site-header .brand{min-width:0}
.site-header .brand-name{overflow-wrap:anywhere}
.nav{min-width:0}
.section-pad,.section-pad>*{min-width:0}
.intro-grid>*,.learning-head>*,.life>*,.admissions-inner>*,.contact-panel>*,.newsletter-inner>*{min-width:0}
.fee-layout>*{min-width:0}
.fee-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.fee-table{min-width:700px}
.form-grid input,.form-grid select,.form-grid textarea,.newsletter-input-row input{width:100%;min-width:0}
.button,.text-link{max-width:100%}
.public-media-card img,.public-media-card video{width:100%;object-fit:cover}
.campus-map-frame,.campus-map-frame iframe{max-width:100%}
@media(max-width:1000px){
 .site-header{padding-inline:5vw}
 .nav{gap:14px}
 .nav a{white-space:nowrap}
 .hero{grid-template-columns:minmax(0,1fr) minmax(260px,.9fr);column-gap:18px;padding-left:6vw;padding-right:6vw}
 .hero-logo-art{min-width:0}
 .hero-wordmark strong{font-size:clamp(30px,4vw,48px)}
 .hero-wordmark>b{font-size:clamp(23px,2.8vw,34px)}
 .section-pad{padding-left:7vw;padding-right:7vw}
 .intro-grid,.life{gap:5%}
 .learning-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
 .learning-card{padding:20px;min-width:0}
 .team-section-cards .team-all-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
 .hero{grid-template-columns:1fr;row-gap:0;padding:58px 7vw 0}
 .hero-copy{padding-bottom:8px}
 .hero-logo-art{width:100%;min-width:0;min-height:300px;height:auto}
 .hero-wordmark{max-width:100%}
 .hero-bottom{flex-wrap:wrap;row-gap:10px}
 .intro-grid,.life,.admissions-inner,.contact-panel,.newsletter-inner{grid-template-columns:1fr}
 .learning-head{display:block}
 .learning-head>p{max-width:560px;margin-top:18px}
 .learning-cards{grid-template-columns:1fr}
 .learning-card{min-height:0}
 .info-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admission-intro{width:100%}
 .newsletter-input-row{min-width:0}
 .staff-onboarding-layout{grid-template-columns:1fr}
}
@media(max-width:650px){
 html{scroll-padding-top:76px}
 .site-header{height:68px;padding:0 5vw}
 .site-header .brand{gap:8px}
 .site-header .brand-logo{width:39px;height:39px;flex-basis:39px}
 .site-header .brand-name{font-size:10px;letter-spacing:.08em}
 .menu-toggle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid #dfe5dc;border-radius:6px;background:#fff;color:#102b3a;font-size:23px;line-height:1;cursor:pointer}
 .nav{display:none;position:absolute;top:68px;left:0;right:0;width:100%;max-height:calc(100vh - 68px);overflow-y:auto;padding:16px 6vw 22px;background:#fcfbf8;box-shadow:0 14px 24px rgba(16,43,58,.12);flex-direction:column;align-items:stretch;gap:4px;z-index:20}
 .nav.open{display:flex}
 .nav a{display:block;padding:12px 8px;white-space:normal;border-bottom:1px solid #edf0eb}
 .nav .nav-cta{margin-top:8px;text-align:center;border:0}
 .hero{padding:48px 6vw 0;min-height:0}
 .hero h1{font-size:clamp(42px,11vw,56px);line-height:1.03;overflow-wrap:normal}
 .hero-lede{font-size:14px;line-height:1.75}
 .hero-actions{align-items:flex-start;gap:14px;flex-direction:column}
 .hero-actions .button{justify-content:center}
 .hero-note{margin-top:30px;font-size:8px;letter-spacing:.11em;flex-wrap:wrap}
 .hero-logo-art{min-height:280px;padding:0 0 18px}
 .hero-wordmark{height:290px;min-height:290px;padding:12px 4px}
 .hero-wordmark:before{width:min(96%,285px);height:min(96%,285px)}
 .hero-wordmark:after{width:min(82%,240px);height:min(82%,240px)}
 .hero-wordmark strong{font-size:clamp(27px,8vw,39px);white-space:nowrap}
 .hero-wordmark>b{font-size:clamp(21px,6vw,28px);letter-spacing:.15em}
 .hero-wordmark>small{font-size:8px;letter-spacing:.12em;white-space:normal}
 .hero-bottom{font-size:7px;letter-spacing:.1em;justify-content:space-between}
 .section-pad{padding:54px 6vw}
 .section-kicker{font-size:8px;letter-spacing:.15em}
 .intro h2,.learning h2,.life h2,.admissions h2,.contact h2,.info-section-head h2,.campus-panel h2{font-size:clamp(31px,8.5vw,43px);line-height:1.12}
 .intro-grid{grid-template-columns:1fr;gap:18px}
 .large-copy{font-size:17px}
 .values{grid-template-columns:1fr}
 .learning-head{display:block}
 .learning-cards{grid-template-columns:1fr}
 .learning-card{min-height:0;padding:23px}
 .life{grid-template-columns:1fr;gap:24px}
 .life-visual{height:280px;min-width:0}
 .feature-list li{gap:12px}
 .media-showcase-head{display:block}
 .gallery-note{display:block;margin-top:14px}
 .public-media-grid{grid-template-columns:1fr}
 .public-media-card img,.public-media-card video{height:auto;aspect-ratio:16/10}
 .fee-layout{grid-template-columns:1fr;gap:18px}
 .fee-copy,.fee-table-wrap{width:100%;height:auto;min-height:0}
 .fee-copy{padding:23px 19px}
 .fee-copy h2{font-size:clamp(28px,7.5vw,36px)}
 .fee-table-heading{align-items:flex-start;flex-direction:column;gap:7px;padding:17px}
 .fee-table{min-width:700px}
 .team-section-cards{gap:0}
 .team-section-cards .team-leadership-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
 .team-section-cards .team-all-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;padding-top:15px}
 .team-section-cards .team-all-grid:before{left:25%;width:50%}
 .team-section-cards .team-all-grid .team-section-card,.team-section-cards .team-ceo-row .team-section-card,.team-section-cards .team-leadership-row .team-section-card{width:100%;height:245px;min-height:245px;max-height:245px;padding:12px 8px}
 .team-section-cards .team-person-field{font-size:10px;line-height:1.35}
 .team-section-cards .team-section-image{width:68px;height:68px;min-width:68px;min-height:68px;flex-basis:68px}
 .team-section-cards .team-level-label{margin-top:8px}
 .info-cards{grid-template-columns:1fr;gap:12px}
 .campus-panel{grid-template-columns:1fr;padding:21px 17px}
 .campus-address{border-left:0;border-top:2px solid #c69a50;padding:17px 0 0}
 .admission-intro{width:100%;margin:22px 0 28px}
 .admissions-inner{grid-template-columns:1fr;gap:24px}
 .admission-form{padding:20px 15px}
 .form-grid,.manual-grid{grid-template-columns:1fr}
 .form-grid .full-field,.manual-grid .wide{grid-column:auto}
 .privacy-consent{align-items:flex-start}
 .contact-panel{grid-template-columns:1fr;padding:21px 17px}
 .contact-detail{border-left:0;border-top:1px solid #ffffff35;padding:20px 0 0}
 .contact h2{font-size:clamp(39px,11vw,52px)}
 .newsletter-inner{grid-template-columns:1fr;gap:18px}
 .newsletter-form{padding:18px}
 .newsletter-input-row{flex-direction:column}
 .newsletter-input-row .button{width:100%;justify-content:center}
 footer{align-items:flex-start;flex-direction:column;gap:16px}
 footer .footer-brand{max-width:100%}
 footer .brand-name{font-size:10px}
 .portal-wrap{display:block}
 .portal-rail{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;white-space:nowrap}
 .rail-link{flex:0 0 auto}
 .portal-main{min-width:0;padding:22px 12px}
 .portal-panel,.panel,.manual-panel{min-width:0;max-width:100%}
 .portal-top,.panel-head,.birthday-card-head{align-items:flex-start;flex-direction:column;gap:12px}
 .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .filter-bar{display:flex;flex-wrap:wrap;gap:9px}
 .filter-bar label{min-width:0;flex:1 1 140px}
 .data-table,.table-scroll,.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .data-table table,.table-scroll table,.table-wrap table{min-width:620px}
 .staff-onboarding-layout{grid-template-columns:1fr}
}
@media(max-width:380px){
 .site-header .brand-logo{width:34px;height:34px;flex-basis:34px}
 .site-header .brand-name{font-size:9px;letter-spacing:.04em}
 .menu-toggle{flex-basis:38px;width:38px;height:38px}
 .hero{padding-left:5vw;padding-right:5vw}
 .hero-wordmark strong{font-size:26px}
 .hero-wordmark>b{font-size:20px}
 .hero-bottom{font-size:6px}
 .section-pad{padding-left:5vw;padding-right:5vw}
 .team-section-cards .team-all-grid{gap:7px}
 .team-section-cards .team-all-grid .team-section-card{padding:10px 5px}
 .metric-grid{grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Left-align the admissions callout content only. */
.admission-cta-panel{text-align:left!important;align-items:flex-start!important}
.admission-cta-panel .admission-cta-kicker,.admission-cta-panel h3,.admission-cta-panel p,.admission-cta-panel small{text-align:left!important;width:100%}
.admission-cta-panel .button{align-self:flex-start!important;text-align:center}

/* Team profiles: mobile-first cards with no clipped names, roles or messages. */
@media(max-width:680px){
  #team-section-cards .team-leadership-row,
  #team-section-cards .team-staff-grid,
  #team-section-cards .team-technology-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:460px!important;
    margin-inline:auto!important;
    gap:14px!important;
  }
  #team-section-cards .team-section-card,
  #team-section-cards .team-leadership-row .team-section-card,
  #team-section-cards .team-staff-grid .team-section-card,
  #team-section-cards .team-technology-row .team-section-card{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:18px!important;
    overflow:visible!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
  }
  #team-section-cards .team-profile-header,
  #team-section-cards .team-staff-grid .team-profile-header,
  #team-section-cards .team-technology-row .team-profile-header{
    display:flex!important;
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    gap:13px!important;
    align-items:center!important;
  }
  #team-section-cards .team-profile-header .team-section-image,
  #team-section-cards .team-section-card .team-section-image{
    display:block!important;
    flex:0 0 68px!important;
    width:68px!important;
    height:68px!important;
    min-width:68px!important;
    min-height:68px!important;
    margin:0!important;
    object-fit:cover!important;
  }
  #team-section-cards .team-profile-identity{flex:1 1 auto!important;min-width:0!important}
  #team-section-cards .team-profile-name,
  #team-section-cards .team-section-card .team-profile-name{
    font-size:16px!important;
    line-height:1.35!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  #team-section-cards .team-profile-designation,
  #team-section-cards .team-section-card .team-profile-designation{
    font-size:12px!important;
    line-height:1.5!important;
    overflow-wrap:anywhere!important;
  }
  #team-section-cards .team-profile-organization{font-size:11px!important;line-height:1.5!important;overflow-wrap:anywhere!important}
  #team-section-cards .team-section-card .team-message-box,
  #team-section-cards .team-staff-grid .team-message-box,
  #team-section-cards .team-technology-row .team-message-box{
    box-sizing:border-box!important;
    display:block!important;
    flex:0 0 auto!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    margin:14px 0 0!important;
    padding:13px 0 0!important;
    overflow:visible!important;
    border-top:1px solid #e1e7dc!important;
  }
  #team-section-cards .team-message-label{font-size:10px!important;line-height:1.45!important;margin-bottom:8px!important}
  #team-section-cards .team-section-card .team-message-box p,
  #team-section-cards .team-staff-grid .team-message-box p,
  #team-section-cards .team-technology-row .team-message-box p{
    display:block!important;
    max-width:100%!important;
    margin:0!important;
    font-size:13px!important;
    line-height:1.75!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
  }
  #team-section-cards .team-level-label{font-size:10px!important;line-height:1.5!important;letter-spacing:.14em!important;margin:22px 0 12px!important}
  #team-section-cards .team-staff-connector{display:none!important}
}
@media(max-width:380px){
  #team-section-cards .team-section-card,
  #team-section-cards .team-leadership-row .team-section-card,
  #team-section-cards .team-staff-grid .team-section-card,
  #team-section-cards .team-technology-row .team-section-card{padding:15px!important}
  #team-section-cards .team-profile-header .team-section-image,
  #team-section-cards .team-section-card .team-section-image{flex-basis:60px!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important}
  #team-section-cards .team-profile-name{font-size:15px!important}
  #team-section-cards .team-section-card .team-message-box p{font-size:12.5px!important;line-height:1.7!important}
}

/* Extra-small-screen protection for the two School Leadership profile cards. */
@media(max-width:680px){
  #team-section-cards .team-leadership-row.team-leadership-pair{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  #team-section-cards .team-leadership-row.team-leadership-pair > .team-section-card,
  #team-section-cards .team-leadership-row.team-leadership-pair > .team-director-card,
  #team-section-cards .team-leadership-row.team-leadership-pair > .team-principal-card{
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:16px!important;
    margin:0!important;
    overflow:visible!important;
  }
  #team-section-cards .team-leadership-row.team-leadership-pair .team-profile-header{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    flex:0 0 auto!important;
    align-items:center!important;
    gap:12px!important;
  }
  #team-section-cards .team-leadership-row.team-leadership-pair .team-profile-identity{
    flex:1 1 0!important;
    min-width:0!important;
    max-width:100%!important;
  }
  #team-section-cards .team-leadership-row.team-leadership-pair .team-profile-name,
  #team-section-cards .team-leadership-row.team-leadership-pair .team-profile-designation,
  #team-section-cards .team-leadership-row.team-leadership-pair .team-profile-organization{
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  #team-section-cards .team-leadership-row.team-leadership-pair .team-message-box{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:0 0 auto!important;
    overflow:visible!important;
    white-space:normal!important;
  }
  #team-section-cards .team-leadership-row.team-leadership-pair .team-message-box p{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow:visible!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    font-size:13px!important;
    line-height:1.75!important;
    -webkit-line-clamp:unset!important;
    line-clamp:unset!important;
  }
}