/* ==========================================================================
   Responsive polish — phones, tablets, laptops, desktops
   Loaded after enhance.css. Goals: readable text (nothing under ~12px),
   comfortable tap targets (~44px) on touch screens, no horizontal scroll.
   ========================================================================== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,iframe,svg{max-width:100%}
a,button,summary,label,input,select,textarea{-webkit-tap-highlight-color:rgba(49,86,184,.12)}
a,button{touch-action:manipulation}
.container{width:min(1160px,calc(100% - 44px))}

/* readable small text, all sizes */
.eyebrow{font-size:12px}
.breadcrumbs,.breadcrumbs a{font-size:12.5px}
.disclaimer{font-size:12.5px}
.testimonial-card small{font-size:12px}
.footer-links a{font-size:13px}
.brand small{font-size:9.5px}

/* ---------- large desktops: keep content comfortably centred, not stretched ---------- */
@media(min-width:1500px){
  .container{width:min(1280px,calc(100% - 80px))}
}
@media(min-width:1900px){
  .container{width:min(1360px,calc(100% - 120px))}
}

/* ---------- laptops / small tablets in landscape: tidy the nav ---------- */
@media(min-width:821px) and (max-width:1050px){
  .nav-links{gap:12px;font-size:12px}
  .nav-cta{padding:10px 13px}
  .brand img{width:50px;height:50px}
  .brand b{font-size:20px}
  .topbar,.topbar-inner>div{font-size:12px}
}

/* ---------- tablets & phones (menu is collapsed ≤820px) ---------- */
@media(max-width:820px){
  .menu-toggle{width:46px;height:46px;display:grid;place-items:center;border-radius:10px;font-size:30px;margin-right:-8px}
  .menu-toggle:active{background:rgba(16,29,76,.07)}
  .nav-links{max-height:calc(100svh - 72px);overflow-y:auto;overscroll-behavior:contain}
  .nav-links a{padding:11px 6px;font-size:15px}
  .topbar{font-size:12.5px}
  .topbar-inner{flex-direction:column;align-items:center;gap:0;padding:4px 0}
  .topbar-inner>span{display:block;max-width:100%;text-align:center;padding:5px 0 0;font-size:12.5px}
  .topbar-inner>div{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 22px;font-size:12.5px}
  .topbar a{display:inline-flex;align-items:center;min-height:32px;margin:0;font-size:12.5px}
  .btn{min-height:46px;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
  input,select,textarea{font-size:16px!important}       /* stops iOS zooming into fields */
  input:not([type=checkbox]):not([type=radio]),select{min-height:48px}
  textarea{min-height:120px}
  .footer-links{gap:2px 6px}
  .footer-links a{display:inline-flex;align-items:center;min-height:42px;padding:0 8px;font-size:14px}
  .footer-bottom a,.footer .back-to-top,.footer a[href="#top"]{display:inline-flex;align-items:center;min-height:42px;padding:0 6px;font-size:13px}
  .text-link,a.text-link{display:inline-flex;align-items:center;min-height:42px;font-size:14px}
  .mapband a,.map-open,.mapband .btn{min-height:42px;display:inline-flex;align-items:center}
  .hs-dot{height:28px}
}

/* ---------- phones ---------- */
@media(max-width:560px){
  .brand small{font-size:9.5px;letter-spacing:1px}
  .btn,.btn.btn-primary,.btn.btn-gold{font-size:14px;padding:13px 18px}
  .page-hero p{font-size:15px}
  .section-heading p,.section p{font-size:15.5px}
  .academic-card p,.facility-item p{font-size:13px}
  .academic-card h3,.facility-item h3{font-size:15px}
  .quick-grid small{font-size:11.5px}
  .hero-bottom,.photo-caption{font-size:12px}
  .footer p,.footer-address{font-size:13.5px}
  .testimonial-card p{font-size:15px}
}
@media(max-width:360px){
  .container{width:calc(100% - 28px)}
  .topbar-inner>div{gap:0 14px}
  .brand b{font-size:18px}
  .section h2{font-size:29px}
}

/* ---------- landscape phones: short screens shouldn't have giant heroes ---------- */
@media(max-height:520px) and (orientation:landscape){
  .hs{height:clamp(420px,100svh,560px)}
  .page-hero{padding:34px 0 20px}
}
/* touch devices: no hover-only affordances getting stuck */
@media(hover:none){
  .staff-nav{display:none}
}

/* ---------- second pass: leftovers found in the audit ---------- */
.notice-link{display:inline-flex;align-items:center;min-height:38px}
.footer-bottom span,.footer-bottom a{font-size:12.5px}
.welcome-cta small,.testimonial-card b,.testimonial-card .who small{font-size:12.5px}
@media(max-width:820px){
  .footer a{min-height:36px;display:inline-flex;align-items:center}
  .footer .footer-brand{min-height:0}
  .breadcrumbs a{display:inline-flex;align-items:center;min-height:36px;padding:0 2px}
  .footer-bottom{gap:2px 14px;flex-wrap:wrap}
}

/* staff row sizing per device: ~2 cards + a peek on phones, ~3-4 on tablets */
@media(max-width:560px){.staff-item{flex-basis:44vw;min-width:156px;max-width:210px}}
@media(min-width:561px) and (max-width:820px){.staff-item{flex-basis:calc((100% - 3 * var(--gap)) / 3.4);min-width:170px}}

/* footer address line: keep phone/email inline inside the sentence */
.footer-address{align-items:flex-start;font-size:13px;line-height:1.9}
.footer-address i{margin-top:5px}
.footer .footer-address a{display:inline;min-height:0;padding:4px 0}
@media(max-width:560px){.footer-address span{display:block}.footer-address a{display:inline-block;padding:6px 0}}
.footer-address{flex-wrap:nowrap}
.footer-address span{flex:1;min-width:0;display:block}

/* ---------- mobile / tablet (menu collapsed): cleaner top ---------- */
@media(max-width:820px){
  .topbar{display:none}                         /* address, email & phone live in the footer / contact page */
  .notice-label{display:none}                   /* only the scrolling notice is shown */
  .notice-track{-webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent)}
  .notice-item{padding-left:0}
  .hs{height:clamp(540px,calc(100svh - 72px - var(--notice-h,0px)),760px)}
}
@media(max-width:820px) and (max-height:520px) and (orientation:landscape){
  .hs{height:clamp(420px,100svh,560px)}
}

/* ---------- admissions badge: floats bottom-left on phones/tablets (instead of the top of the hero) ---------- */
@media(max-width:820px){
  .adm-badge{position:fixed;top:auto;right:auto;left:12px;bottom:14px;width:92px;height:92px;z-index:44}
  .adm-core{width:56px;height:56px}
  .adm-core i{font-size:12px;margin-bottom:2px}
  .adm-core b{font-size:7.5px}
  .adm-core em{font-size:12.5px;letter-spacing:.8px}
  .adm-ring{box-shadow:0 0 0 2px rgba(255,210,125,.9),0 0 0 5px rgba(255,210,125,.18),0 10px 26px rgba(0,0,0,.4)}
  .adm-badge.is-away{visibility:hidden;pointer-events:none}
  /* festival-offer button moves to the right, above WhatsApp, so the two don't collide */
  .ofr-fab{left:auto;right:14px;bottom:70px}
}
@media(max-width:560px){
  .hs-controls{bottom:112px}                      /* keep the slider dots clear of the floating badge */
  .hs-content{padding-bottom:186px}
}
.staff-photo{background:linear-gradient(160deg,#e9f1ff,#fff3dc)}
