/* =========================================================
   AIBWSI — stile condiviso da tutte le pagine
   ========================================================= */
@font-face{font-family:Inter;font-style:normal;font-weight:300;font-display:swap;src:url(fonts/inter-300.woff2) format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-400.woff2) format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-500.woff2) format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-600.woff2) format('woff2')}
@font-face{font-family:Inter;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/inter-700.woff2) format('woff2')}

:root{
  --navy:#1B5A80;          /* blu del sito */
  --navy-deep:#134766;
  --navy-ink:#0C3652;
  --sky:#71B4E7;           /* azzurro del logo */
  --sky-hover:#8AC2EC;
  --sky-tint:#EEF5FB;
  --sky-line:#D6E7F5;
  --text:#3D3C40;
  --muted:#67666B;
  --white:#FFFFFF;
  --on-navy:rgba(255,255,255,.84);
  --wrap:1180px;
  --gutter:clamp(16px,4vw,40px);
  --radius-lg:22px;
  --radius:12px;
  --header-h:72px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 16px);-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--white);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;font-feature-settings:"cv11"}
img{display:block;max-width:100%;height:auto}
[hidden]{display:none !important}
svg{display:block}
a{color:var(--navy);text-underline-offset:3px}
h1,h2,h3{margin:0;color:var(--navy);font-weight:600;line-height:1.15;letter-spacing:-.02em}
h1,h2,.hero p,.statement,.cta p{text-wrap:balance}
p{margin:0}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
:focus-visible{outline:3px solid var(--sky);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip{position:absolute;left:16px;top:-60px;z-index:200;background:#fff;color:var(--navy);padding:10px 16px;border-radius:999px;font-weight:600;text-decoration:none}
.skip:focus{top:12px}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border-radius:999px;font:600 16px/1 Inter,sans-serif;text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s;text-align:center}
.btn-navy{background:var(--navy);color:#fff}
.btn-navy:hover{background:var(--navy-deep)}
.btn-white{background:#fff;color:var(--navy)}
.btn-white:hover{background:var(--sky-tint)}
.btn-outline{border-color:var(--sky-line);color:var(--navy);background:#fff}
.btn-outline:hover{border-color:var(--navy)}
.text-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:600;text-decoration:none;color:var(--navy)}
.text-link:hover{text-decoration:underline}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:100;background:var(--navy);color:#fff;transition:box-shadow .2s}
.site-header.scrolled{box-shadow:0 1px 0 rgba(255,255,255,.08),0 8px 24px rgba(8,36,56,.18)}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:24px;height:var(--header-h)}
.brand{display:inline-flex;align-items:center;min-height:48px}
.brand img{height:36px;width:auto}
.nav{display:flex;align-items:center;gap:2px}
.nav a{position:relative;padding:10px 12px;border-radius:8px;color:var(--on-navy);font-weight:500;font-size:15px;text-decoration:none;white-space:nowrap}
.nav a:hover{color:#fff;background:rgba(255,255,255,.08)}
.nav a[aria-current="page"]{color:#fff;font-weight:600}
.nav a[aria-current="page"]::after{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:2px;border-radius:2px;background:var(--sky)}
.menu-toggle{display:none;background:none;border:0;padding:10px;margin-right:-10px;color:#fff;cursor:pointer;border-radius:10px}
.menu-toggle svg{width:26px;height:26px}
@media (max-width:1080px){
  .menu-toggle{display:block}
  .nav{position:absolute;left:0;right:0;top:var(--header-h);flex-direction:column;align-items:stretch;gap:2px;background:var(--navy);padding:8px var(--gutter) 22px;border-top:1px solid rgba(255,255,255,.12);box-shadow:0 18px 30px rgba(8,36,56,.25);display:none}
  .nav.open{display:flex}
  .nav a{padding:14px 12px;font-size:17px}
  .nav a[aria-current="page"]{background:rgba(255,255,255,.08)}
  .nav a[aria-current="page"]::after{left:0;right:auto;top:14px;bottom:14px;width:3px;height:auto}
}

/* ---------- Sections ---------- */
.section{padding:clamp(64px,9vw,120px) 0}
.section-tint{background:var(--sky-tint)}
.section-title{font-size:clamp(30px,3.6vw,44px)}
.row-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:16px 32px}

/* ---------- Page header (inner pages) ---------- */
.page-head{background:var(--navy);color:#fff;padding:clamp(56px,8vw,104px) 0 clamp(48px,6vw,80px)}
.page-head h1{color:#fff;font-weight:300;font-size:clamp(40px,5.4vw,68px);letter-spacing:-.035em;line-height:1.05}
.page-head p{margin-top:18px;max-width:46ch;font-size:clamp(18px,1.6vw,20px);color:var(--on-navy)}
.placeholder{max-width:60ch;padding:28px 32px;border:1.5px dashed var(--sky);border-radius:var(--radius-lg);color:var(--muted)}

/* ---------- Home: hero with the member map ---------- */
.home-hero{background:var(--navy);color:#fff;overflow:hidden}
.home-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:clamp(24px,5vw,72px);padding-top:clamp(48px,7vw,96px);padding-bottom:clamp(40px,5vw,64px)}
.home-hero h1{color:#fff;font-weight:300;font-size:clamp(40px,5.6vw,72px);line-height:1.04;letter-spacing:-.035em;max-width:12ch;text-wrap:initial}
.home-hero .lead{margin-top:28px;font-size:clamp(18px,1.6vw,21px);line-height:1.55;color:var(--on-navy);max-width:36ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
.btn-sky{background:var(--sky);color:var(--navy-ink)}
.btn-sky:hover{background:var(--sky-hover)}
.btn-ghost{border-color:rgba(255,255,255,.5);color:#fff}
.btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.home-map-fig{margin:0;width:100%;max-width:470px;justify-self:end}
.map-caption{margin-top:14px;text-align:right;font-size:14px;color:var(--on-navy)}
.map-caption .dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--sky);margin-right:8px}
/* Desktop: the map scales with the height of the screen, so the whole hero
   (map and "member schools" line) fits on short laptop screens too */
@media (min-width:861px){
  .home-hero-grid{padding-top:clamp(28px,5vh,96px);padding-bottom:clamp(28px,4vh,64px)}
  .home-map-fig{max-width:min(470px,max(300px,calc((100vh - 140px - clamp(28px,5vh,96px)) / 1.28)))}
  .home-map-fig{max-width:min(470px,max(300px,calc((100svh - 140px - clamp(28px,5svh,96px)) / 1.28)))}
}
@media (max-width:860px){
  .home-hero-grid{grid-template-columns:1fr}
  .home-map-fig{justify-self:center;max-width:380px;margin-top:8px}
  .map-caption{text-align:center}
}

/* ---------- Home: statement ---------- */
.statement-band{position:relative;background:var(--sky-tint);padding:clamp(64px,8vw,104px) 0;overflow:hidden}
.statement-band::before,.statement-band::after{content:"";position:absolute;width:220px;height:150px;background:radial-gradient(circle,rgba(27,90,128,.16) 1.7px,transparent 2px) 0 0/14px 14px;pointer-events:none}
.statement-band::before{left:-30px;top:24px}
.statement-band::after{right:-30px;bottom:24px}
.statement{position:relative;max-width:1100px;margin:0 auto;text-align:center;font-weight:400;font-size:clamp(23px,2.25vw,32px);line-height:1.45;letter-spacing:-.02em;color:var(--navy)}
.statement b{font-weight:700}
.statement mark{background:linear-gradient(transparent 60%,rgba(113,180,231,.55) 60%,rgba(113,180,231,.55) 92%,transparent 92%) no-repeat 0 0/100% 100%;color:inherit;padding:0 .08em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
@media (min-width:760px){.statement mark{white-space:nowrap}}
.statement-sub{position:relative;max-width:64ch;margin:28px auto 0;text-align:center;font-size:clamp(17px,1.35vw,19px);line-height:1.65;color:var(--text);text-wrap:pretty}
.statement-sub b{font-weight:600;color:var(--navy)}

/* ---------- Events ---------- */
.events-block{margin-top:0}
.events-empty{margin-top:28px;padding:28px 32px;border-radius:var(--radius-lg);background:var(--sky-tint);max-width:60ch}

/* ---------- Home: education + gallery ---------- */
.edu{display:grid;grid-template-columns:4fr 7fr;gap:clamp(32px,5vw,72px);align-items:center}
.edu p{margin-top:20px;font-size:19px;line-height:1.6;max-width:36ch}
.gallery{position:relative}
.slides{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;border-radius:var(--radius-lg);scrollbar-width:none;aspect-ratio:3/2;background:#DCE8F2}
.slides::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:start;margin:0;position:relative}
.slide img{width:100%;height:100%;object-fit:cover}
.slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:40px 22px 16px;font-size:15px;color:#fff;background:linear-gradient(transparent,rgba(8,36,56,.7))}
.gallery-bar{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:14px 24px;margin-top:18px}
.gallery-caption{display:flex;flex-direction:column;gap:3px;padding-top:2px}
.gc-title{font-size:15px;font-weight:600;color:var(--navy);letter-spacing:-.005em}
.gc-meta{font-size:13px;color:var(--muted)}
.gallery-controls{display:flex;align-items:center;gap:12px;margin-left:auto}
.dots{display:flex;flex-wrap:wrap;gap:4px}
.dots button{width:30px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center;border-radius:50%}
.dots button::after{content:"";width:9px;height:9px;border-radius:50%;background:#B5CEE2;transition:background-color .2s,transform .2s}
.dots button[aria-current="true"]::after{background:var(--navy);transform:scale(1.2)}
.arrows{display:flex;gap:10px}
.arrows button{width:48px;height:48px;border-radius:50%;border:1.5px solid var(--sky-line);background:#fff;color:var(--navy);cursor:pointer;display:grid;place-items:center}
.arrows button:hover{border-color:var(--navy)}
.arrows svg{width:20px;height:20px}
@media (max-width:860px){.edu{grid-template-columns:1fr}.edu p{max-width:none}}

/* ---------- CTA band (all pages) ---------- */
.cta{background:var(--navy);color:#fff;text-align:center;padding:clamp(64px,8vw,104px) 0 clamp(48px,6vw,72px)}
.cta h2{color:#fff;font-size:clamp(28px,3.4vw,42px)}
.cta p{margin:16px auto 0;max-width:none;font-size:clamp(17px,1.5vw,19px);color:var(--on-navy)}
.cta-links{display:grid;grid-template-columns:repeat(4,minmax(0,220px));justify-content:center;gap:12px;margin:40px 0 0;padding:0;list-style:none}
.cta-links .btn{width:100%}
@media (max-width:900px){.cta-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:440px){.cta-links{grid-template-columns:1fr}}

/* ---------- Footer ---------- */
.site-footer{background:var(--navy);color:var(--on-navy);font-size:15px}
.footer-top::before{content:"";display:block;height:1px;background:rgba(255,255,255,.16);margin-bottom:64px}
.logos{display:flex;align-items:center;gap:28px}
.logos .aibwsi{height:42px;width:auto}
.logos .divider{width:1px;align-self:stretch;min-height:56px;background:rgba(255,255,255,.35)}
.logos .ib{height:72px;width:auto}
.footer-grid{display:grid;grid-template-columns:minmax(0,2.1fr) repeat(4,minmax(0,1fr));gap:32px;margin-top:48px}
.footer-about p + p{margin-top:16px}
.footer-about .org{color:#fff;font-weight:600;font-size:16px}
.footer-about address{margin-top:6px;font-style:normal;font-size:14px;line-height:1.55}
.footer-col h3{color:#fff;font-size:16px;letter-spacing:0;margin-bottom:14px}
.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.footer-col a{color:var(--on-navy);text-decoration:none}
.footer-col a:hover{color:#fff;text-decoration:underline}
.footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px;margin-top:56px;padding:28px 0;border-top:1px solid rgba(255,255,255,.14)}
.social{display:flex;gap:10px;margin:0;padding:0;list-style:none}
.social a{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(255,255,255,.3);color:#fff}
.social a:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.social svg{width:19px;height:19px}
.programmes{display:flex;flex-wrap:wrap;gap:14px 20px;margin:0;padding:0;list-style:none}
.programmes img{height:42px;width:auto}
.copyright{padding:0 0 32px;font-size:14px}
@media (max-width:980px){.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-about{grid-column:1/-1}}
@media (max-width:520px){.logos{gap:20px}.logos .aibwsi{height:34px}.logos .ib{height:60px}.programmes img{height:36px}}

/* ---------- Forms (Contact) ---------- */
.form{background:#fff;border:1px solid var(--sky-line);border-radius:var(--radius-lg);padding:clamp(24px,4vw,44px);max-width:760px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:7px}
.field.full{grid-column:1/-1}
.field label{font-size:15px;font-weight:600;color:var(--navy-ink)}
.field .opt{font-weight:400;color:var(--muted)}
.field input,.field textarea,.field select{width:100%;font:400 16px/1.5 Inter,sans-serif;color:var(--text);background:#fff;border:1.5px solid #C9D9E6;border-radius:10px;padding:12px 14px}
.field textarea{min-height:150px;resize:vertical}
.field input:hover,.field textarea:hover{border-color:#9CBCD4}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(113,180,231,.45)}
.form .btn{margin-top:24px}
.hp{display:none}
@media (max-width:560px){.fields{grid-template-columns:1fr}.form .btn{width:100%}}

/* ---------- Page header with photo ---------- */
.page-head.has-photo{position:relative;display:flex;align-items:center;justify-content:center;min-height:clamp(260px,33vw,480px);padding:clamp(40px,5vw,64px) 0;text-align:center;overflow:hidden;isolation:isolate}
.page-head.has-photo > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.page-head.has-photo::before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse 60% 55% at 50% 50%,rgba(12,54,82,.38),rgba(12,54,82,0) 100%),linear-gradient(180deg,rgba(12,54,82,.42) 0%,rgba(12,54,82,.5) 50%,rgba(12,54,82,.62) 100%)}
.page-head.has-photo h1{text-shadow:0 2px 24px rgba(5,25,40,.3)}

/* ---------- Image + text rows ---------- */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:center}
.split + .split{margin-top:clamp(64px,8vw,112px)}
.split.reverse .split-img{order:2}
.split-img{border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:3/2;background:var(--sky-tint)}
.split-img img{width:100%;height:100%;object-fit:cover}
.lead{margin-top:20px;font-size:clamp(19px,1.7vw,22px);line-height:1.55;max-width:38ch;color:var(--text)}
@media (max-width:860px){.split{grid-template-columns:1fr}.split.reverse .split-img{order:0}.lead{max-width:none}}

/* ---------- Who We Are: history ---------- */
.history{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:clamp(32px,6vw,96px);align-items:start}
.year{margin-top:28px;font-size:clamp(96px,12vw,168px);font-weight:300;line-height:.85;letter-spacing:-.05em;color:var(--navy)}
.year-label{margin-top:14px;color:var(--muted);font-weight:500}
.history-text p{font-size:clamp(17px,1.4vw,19px);line-height:1.65;max-width:62ch}
.history-text p + p{margin-top:18px}
.history-text strong{color:var(--navy);font-weight:600}
@media (max-width:860px){.history{grid-template-columns:1fr}}

/* ---------- Who We Are: motto + pillars ---------- */
.motto{font-size:clamp(30px,4.4vw,58px);font-weight:600;line-height:1.08;letter-spacing:-.035em;max-width:16em}
.motto span{color:var(--sky)}
.pillars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px clamp(32px,5vw,80px);margin:clamp(48px,6vw,80px) 0 0;padding:0;list-style:none}
.pillars li{position:relative;padding-left:34px;max-width:50ch}
.pillars li::before{content:"";position:absolute;left:0;top:.42em;width:14px;height:14px;border-radius:50%;background:var(--sky)}
.pillars h3{font-size:clamp(20px,1.8vw,24px);margin-bottom:10px}
@media (max-width:760px){.pillars{grid-template-columns:1fr;gap:36px}}

/* ---------- Governance ---------- */
.page-intro{max-width:880px}
.page-intro .statement-left{font-weight:300;font-size:clamp(24px,2.6vw,34px);line-height:1.3;letter-spacing:-.02em;color:var(--navy);text-wrap:balance}
.page-intro > * + p{margin-top:24px;font-size:clamp(17px,1.4vw,19px);line-height:1.65;max-width:64ch}
.board-head{margin-top:clamp(64px,8vw,104px)}
.board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.4vw,32px);margin:40px 0 0;padding:0;list-style:none}
.person{position:relative;display:flex;flex-direction:column;padding:10px 10px 22px;background:#fff;border:1px solid var(--sky-line);border-radius:var(--radius-lg);box-shadow:0 1px 2px rgba(12,54,82,.04);transition:border-color .25s,box-shadow .3s,translate .3s cubic-bezier(.2,.7,.2,1)}
.person::before{content:"";position:absolute;left:22px;right:22px;top:0;height:3px;border-radius:0 0 3px 3px;background:var(--sky);opacity:0;transition:opacity .25s}
.portrait{aspect-ratio:9/8;border-radius:calc(var(--radius-lg) - 8px);background:#fff;overflow:hidden;display:flex;align-items:flex-end;justify-content:center;border:1px solid #E6EEF5}
.portrait img{width:100%;height:100%;object-fit:cover;object-position:center}
.person h3{margin:18px 14px 0;font-size:21px}
.board-role{margin-top:6px;font-weight:600;color:var(--navy-ink);font-size:15px}
.school-role{margin-top:4px;color:var(--muted);font-size:15px;line-height:1.5;max-width:34ch}
.person .board-role{margin:6px 14px 0}
.person .school-role{margin:4px 14px 0}
@media (hover:hover){.person:hover{border-color:#B9D3E8;box-shadow:0 16px 36px rgba(12,54,82,.10);translate:0 -3px}.person:hover::before{opacity:1}}
@media (max-width:900px){.board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.board{gap:14px}.person{padding:6px 6px 16px}.person h3{margin:14px 8px 0;font-size:17px}.person .board-role,.person .school-role{margin-left:8px;margin-right:8px;font-size:13.5px}}

/* ---------- Events page ---------- */
.organise{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 48px;padding:clamp(28px,4vw,48px);border:1px solid var(--sky-line);border-radius:var(--radius-lg)}
.organise h2{font-size:clamp(22px,2.2vw,28px);max-width:30ch;text-wrap:balance}
.organise p{margin-top:12px;max-width:60ch}
.section-tint .events-empty{background:#fff}

/* ---------- Member Directory: header + map ---------- */
.dir-head{padding:clamp(40px,6vw,72px) 0;overflow:hidden}
.dir-head-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:clamp(24px,5vw,80px);align-items:center}
.dir-head p b{color:#fff;font-weight:600}
.dir-head .dir-hint{margin-top:28px;font-size:15px;color:var(--on-navy);display:flex;align-items:center;gap:10px}
.dir-head .dir-hint::before{content:"";flex:none;width:12px;height:12px;border-radius:50%;background:var(--sky);box-shadow:0 0 0 2px var(--navy),0 0 0 6px rgba(113,180,231,.3)}
.map-fig{margin:0}
.map{position:relative;width:100%;aspect-ratio:500/640}
.map > svg{width:100%;height:100%}
.map .land{stroke:rgba(255,255,255,.24);stroke-width:3.6;stroke-linecap:round;fill:none}
.marker{--d:13px;--hit:max(28px,var(--d));position:absolute;width:var(--hit);height:var(--hit);margin:calc(var(--hit) / -2) 0 0 calc(var(--hit) / -2);padding:0;border:0;border-radius:50%;background:none;display:grid;place-items:center;cursor:pointer}
.marker .dot{width:var(--d);height:var(--d);border-radius:50%;background:var(--sky);color:var(--navy-ink);font:700 12px/1 Inter,sans-serif;display:grid;place-items:center;box-shadow:0 0 0 2.5px var(--navy),0 0 0 7px rgba(113,180,231,.28);transition:background-color .15s}
.marker::before{content:"";position:absolute;inset:min(0px,calc((44px - var(--hit)) / -2));border-radius:50%}
.marker:hover .dot,.marker[aria-pressed="true"] .dot{background:#fff}
.marker:focus-visible{outline:3px solid #fff;outline-offset:6px}
@media (prefers-reduced-motion:no-preference){
  html.motion .marker{opacity:0;scale:.3}
  html.motion .marker.in{opacity:1;scale:1;transition:opacity .4s ease,scale .55s cubic-bezier(.2,1.6,.4,1),background-color .15s}
}
.tip{position:absolute;z-index:5;left:0;top:0;width:max-content;min-width:200px;background:#fff;color:var(--text);border-radius:var(--radius);padding:14px 18px 14px 16px;font-size:14px;line-height:1.45;text-align:left;box-shadow:0 12px 32px rgba(5,30,50,.35);pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .15s,transform .15s}
.tip.show{opacity:1;transform:none}
.tip strong{display:block;color:var(--navy);font-size:15px}
.tip > span{display:block;color:var(--muted);font-size:13px;margin-bottom:6px}
.tip ul{margin:0;padding:0;list-style:none}
.tip li{position:relative;padding-left:16px;white-space:nowrap}
.tip li + li{margin-top:4px}
.tip li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--sky)}
.tip.wrap{width:calc(100vw - 16px)}
.tip.wrap li{white-space:normal}
@media (max-width:600px){.tip{font-size:13px;padding:12px 14px 12px 12px}.tip strong{font-size:14px}}
@media (max-width:370px){.tip{font-size:12px;padding:11px 10px}.tip li{padding-left:14px}}
@media (max-width:860px){.dir-head-grid{grid-template-columns:1fr}.map-fig{max-width:360px;margin:8px auto 0;width:100%}.dir-head .dir-hint{margin-top:20px}}

/* ---------- Member Directory: list ---------- */
.dir-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px}
.dir-count{color:var(--muted)}
.dir-count b{color:var(--navy);font-weight:600}
.dir-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}
.search{flex:1 1 320px;position:relative;display:block}
.search svg{position:absolute;left:16px;top:50%;width:19px;height:19px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.search input{width:100%;min-height:50px;padding:0 18px 0 46px;font:400 16px Inter,sans-serif;color:var(--text);background:#fff;border:1.5px solid #C9D9E6;border-radius:999px}
.search input:hover{border-color:#9CBCD4}
.search input:focus{outline:none;border-color:var(--navy);box-shadow:0 0 0 3px rgba(113,180,231,.45)}
.filters{display:flex;flex-wrap:wrap;gap:4px;padding:4px;background:#fff;border:1.5px solid var(--sky-line);border-radius:999px}
.filters button{min-height:40px;padding:0 16px;border:0;border-radius:999px;background:none;color:var(--text);font:500 15px/1 Inter,sans-serif;cursor:pointer}
.filters button:hover{color:var(--navy);background:var(--sky-tint)}
.filters button[aria-pressed="true"]{background:var(--navy);color:#fff}
.city-chip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:16px;padding:10px 10px 10px 18px;background:var(--sky-tint);border-radius:999px;width:fit-content;max-width:100%}
.city-chip b{color:var(--navy)}
.city-chip button{min-height:34px;padding:0 14px;border:1.5px solid var(--sky-line);border-radius:999px;background:#fff;color:var(--navy);font:600 14px Inter,sans-serif;cursor:pointer}
.city-chip button:hover{border-color:var(--navy)}
.dir-table{width:100%;margin-top:24px;border-collapse:separate;border-spacing:0;border:1px solid var(--sky-line);border-radius:var(--radius-lg);overflow:hidden;font-size:16px}
.dir-table th{padding:14px 20px;text-align:left;background:var(--navy);color:#fff;font-size:14px;font-weight:600}
.dir-table td{padding:14px 20px;border-top:1px solid var(--sky-line);vertical-align:middle}
.dir-table tbody tr:first-child td{border-top:0}
.dir-table tbody tr:hover{background:#F7FAFD}
.school-cell{display:flex;align-items:center;gap:16px}
.logo{flex:none;width:56px;height:56px;border-radius:12px;border:1px solid var(--sky-line);background:#fff;overflow:hidden;display:grid;place-items:center}
.logo img{width:48px;height:48px;object-fit:contain}
.nm{font-weight:600;color:var(--navy-ink);line-height:1.35}
.nm a{color:inherit}
.dir-table .city{color:var(--muted)}
.pr{display:inline-flex;gap:5px}
.p{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:24px;padding:0 6px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.02em;background:#fff;color:#687078;box-shadow:inset 0 0 0 1px #CDD6DD}
.p.on{background:var(--navy);color:#fff;box-shadow:none}
.dir-table .head{color:var(--text)}
.muted{color:#A3AAB0}
.dir-empty{margin-top:24px;padding:32px;border-radius:var(--radius-lg);background:var(--sky-tint);text-align:center}
.dir-empty .text-link{margin-top:8px;background:none;border:0;font:600 16px Inter,sans-serif;cursor:pointer;text-decoration:underline}
.dir-legend{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;margin-top:20px;font-size:14px;color:var(--muted)}
.lg-item{display:inline-flex;align-items:center;gap:8px}
@media (max-width:820px){
  .dir-table,.dir-table tbody,.dir-table tr,.dir-table td{display:block}
  .dir-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .dir-table tr{display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:16px;row-gap:6px;padding:16px 18px;border-top:1px solid var(--sky-line)}
  .dir-table tbody tr:first-child{border-top:0}
  .dir-table td{padding:0;border:0}
  .dir-table td:first-child,.school-cell{display:contents}
  .school-cell .logo{grid-column:1;grid-row:1 / span 4}
  .school-cell .nm,.dir-table td.city,.dir-table td.progs,.dir-table td.head{grid-column:2}
  .dir-table td.city{margin-top:-4px}
  .dir-table td.head::before{content:"Head of School: ";color:var(--muted)}
  .filters{border-radius:18px}
}
@media (max-width:420px){.p{min-width:39px;padding:0 5px}}

/* ---------- Become a Member ---------- */
.benefits-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,6vw,88px);align-items:start}
.benefits-title{font-size:clamp(26px,2.8vw,36px);text-wrap:balance}
.benefits-lead{margin-top:18px;font-size:clamp(17px,1.4vw,19px);max-width:40ch}
.benefits{list-style:none;margin:0;padding:0}
.benefits li{position:relative;padding:20px 0 20px 34px;border-top:1px solid var(--sky-line);font-size:clamp(16px,1.3vw,18px);line-height:1.6}
.benefits li:last-child{border-bottom:1px solid var(--sky-line)}
.benefits li::before{content:"";position:absolute;left:0;top:29px;width:12px;height:12px;border-radius:50%;background:var(--sky)}
.fees-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,5vw,80px);align-items:center}
.fees-lead{margin-top:18px;font-size:clamp(17px,1.4vw,19px);max-width:44ch}
.fees-lead strong{color:var(--navy);font-weight:600}
.fees-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.fees{margin:0;background:#fff;border:1px solid var(--sky-line);border-radius:var(--radius-lg);overflow:hidden}
.fee{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:22px 28px}
.fee + .fee{border-top:1px solid var(--sky-line)}
.fee dt{color:var(--text);font-weight:500}
.fee dd{margin:0;color:var(--navy);font-size:clamp(24px,2.4vw,30px);font-weight:300;letter-spacing:-.02em;white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:560px){.fees-actions .btn{flex:1 1 100%}}
@media (max-width:860px){.benefits-grid,.fees-grid{grid-template-columns:1fr}.fee{padding:18px 20px}}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:24px;margin-top:clamp(48px,6vw,72px);align-items:stretch}
.contact-card{display:flex;align-items:center;gap:28px;padding:clamp(24px,3vw,36px);border:1px solid var(--sky-line);border-radius:var(--radius-lg)}
.portrait-sm{flex:none;width:132px;height:132px;border-radius:50%;background:#fff;overflow:hidden;border:1px solid var(--sky-line);box-shadow:0 0 0 6px #fff,0 0 0 7px var(--sky-line)}
.portrait-sm img{width:100%;height:100%;object-fit:cover;object-position:50% 30%;scale:1.25;transform-origin:50% 30%}
.contact-card h3{font-size:24px}
.contact-card .school-role{max-width:none}
.contact-card .btn{margin-top:20px}
.address-card{padding:clamp(24px,3vw,36px);border-radius:var(--radius-lg);background:var(--sky-tint)}
.address-card h3{font-size:20px}
.address-card address{margin-top:12px;font-style:normal;line-height:1.7}
@media (max-width:860px){.contact-grid{grid-template-columns:1fr}}
@media (max-width:520px){.contact-card{flex-direction:column;align-items:flex-start}.portrait-sm{width:104px;height:104px}}

/* ---------- Who We Are: Mission & Vision (staggered image + card) ---------- */
.mv-row{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:start}
.mv-row + .mv-row{margin-top:clamp(64px,8vw,112px)}
.mv-img{grid-column:1 / 10;grid-row:1;position:relative;z-index:1;border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:16/10;background:var(--sky-tint)}
.mv-img img{width:100%;height:100%;object-fit:cover}
.mv-card{grid-column:7 / 13;grid-row:1;position:relative;z-index:2;margin-top:clamp(190px,20vw,290px);background:#fff;border-radius:var(--radius-lg);padding:clamp(28px,3vw,44px);box-shadow:0 30px 70px rgba(12,54,82,.16),0 2px 6px rgba(12,54,82,.06)}
.mv-card h2{display:flex;align-items:center;gap:12px;font-size:clamp(20px,1.7vw,24px);letter-spacing:-.01em}
.mv-card h2::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--sky);flex:none}
.mv-card p{margin-top:16px;font-weight:300;font-size:clamp(19px,1.6vw,23px);line-height:1.45;letter-spacing:-.01em;color:var(--navy-ink)}
.mv-card.dark{background:var(--navy);box-shadow:0 30px 70px rgba(12,54,82,.28)}
.mv-card.dark h2,.mv-card.dark p{color:#fff}
.mv-row.reverse .mv-img{grid-column:4 / 13}
.mv-row.reverse .mv-card{grid-column:1 / 7}
.mv-row::before{content:"";position:absolute;z-index:0;width:200px;height:140px;top:-36px;left:-28px;background:radial-gradient(circle,rgba(113,180,231,.75) 1.7px,transparent 2px) 0 0/14px 14px}
.mv-row.reverse::before{left:auto;right:-28px}
@media (max-width:900px){
  .mv-row{display:block}
  .mv-img{aspect-ratio:3/2}
  .mv-card{margin:-28px 16px 0}
  .mv-row::before{display:none}
}
@media (max-width:760px){.statement-band::before,.statement-band::after{display:none}}

.benefits-photo{margin:36px 0 0;border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:4/3;background:var(--sky-tint)}
.benefits-photo img{width:100%;height:100%;object-fit:cover}
@media (max-width:860px){.benefits-photo{aspect-ratio:3/2}}
@media (max-width:560px){.gallery-controls{width:100%;justify-content:space-between;margin-left:0}}


/* =====================================================================
   MOTION — only applied when html has the "motion" class
   (set in the page head unless the visitor prefers reduced motion)
   ===================================================================== */
@keyframes rise{from{opacity:0;translate:0 32px}to{opacity:1;translate:0 0}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@keyframes map-in{from{opacity:0;scale:.94}to{opacity:1;scale:1}}
@keyframes ken-burns{from{scale:1.14}to{scale:1}}
@keyframes ripple{0%{opacity:.75;scale:1}70%,100%{opacity:0;scale:2.7}}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0;translate:0 14px}}

/* Reading progress line under the header (always on) */
.scroll-progress{position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--sky);transform:scaleX(0);transform-origin:0 50%;pointer-events:none}

/* Page load: home hero */
html.motion .home-hero h1{animation:rise 1s cubic-bezier(.2,.7,.2,1) .08s both}
html.motion .home-hero .lead{animation:rise 1s cubic-bezier(.2,.7,.2,1) .26s both}
html.motion .home-hero .hero-actions{animation:rise 1s cubic-bezier(.2,.7,.2,1) .42s both}
html.motion .map > svg{animation:map-in 1.4s cubic-bezier(.2,.7,.2,1) .12s both}
html.motion .map-caption{animation:fade-in 1s ease 1.3s both}
/* Page load: inner page headers */
html.motion .page-head h1{animation:rise 1s cubic-bezier(.2,.7,.2,1) .1s both}
html.motion .page-head .wrap p{animation:rise 1s cubic-bezier(.2,.7,.2,1) .28s both}
html.motion .page-head.has-photo > img{animation:ken-burns 2.6s cubic-bezier(.2,.7,.2,1) both;will-change:translate}

/* Map markers: a soft ripple, one city after another */
.marker::after{content:"";position:absolute;inset:calc((var(--hit) - var(--d)) / 2 - 3px);border-radius:50%;border:1.5px solid rgba(113,180,231,.8);opacity:0;pointer-events:none}
html.motion .marker.in::after{animation:ripple 4.2s cubic-bezier(.2,.6,.3,1) infinite;animation-delay:calc(var(--i,0) * .53s + 1.4s)}

/* Scroll reveals */
html.motion .rv{transition:opacity .9s cubic-bezier(.2,.7,.2,1) var(--d,0ms),translate 1s cubic-bezier(.2,.7,.2,1) var(--d,0ms),clip-path 1.2s cubic-bezier(.6,0,.2,1) var(--d,0ms)}
html.motion .rv-up:not(.is-in){opacity:0;translate:0 30px}
html.motion .rv-side:not(.is-in){opacity:0;translate:56px 0}
html.motion .mv-row.reverse .rv-side:not(.is-in){translate:-56px 0}
html.motion .rv-wipe:not(.is-in){clip-path:inset(14% 8% 14% 8% round var(--radius-lg));opacity:.001}
html.motion .rv-wipe.is-in{clip-path:inset(0 0 0 0 round var(--radius-lg))}
html.motion .rv-wipe img{transition:scale 1.6s cubic-bezier(.2,.7,.2,1)}
html.motion .rv-wipe:not(.is-in) img{scale:1.18}
html.motion .rv-mask{overflow:hidden;padding:.12em 0 .04em;margin-top:calc(28px - .12em)}
html.motion .rv-mask .mask-in{display:inline-block;transition:translate 1.2s cubic-bezier(.2,.7,.2,1) calc(var(--d,0ms) + 150ms)}
html.motion .rv-mask:not(.is-in) .mask-in{translate:0 110%}
/* Motto: words rise one after another */
html.motion .rv-words .w{display:inline-block;opacity:0;translate:0 .5em;transition:opacity .6s ease,translate .8s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i) * 130ms)}
html.motion .rv-words.is-in .w{opacity:1;translate:0 0}
/* Home statement: highlighter sweeps across the key phrases */
html.motion .statement.rv mark{background-size:0% 100%;transition:background-size 1.1s cubic-bezier(.6,.1,.2,1) .55s}
html.motion .statement.rv mark ~ mark{transition-delay:1s}
html.motion .statement.is-in mark{background-size:100% 100%}
/* Gallery: the visible photo slowly zooms */

/* Hover */
@media (prefers-reduced-motion:no-preference){
  .btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(12,54,82,.18)}
  .btn:active{transform:translateY(0);box-shadow:none}
  .portrait img,.logo img{transition:scale .7s cubic-bezier(.2,.7,.2,1)}
  .person:hover .portrait img{scale:1.05}
  .dir-table tbody tr:hover .logo img{scale:1.08}
}
@media (min-width:1081px){
  .nav a::after{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:2px;border-radius:2px;background:var(--sky);transform:scaleX(0);transform-origin:0 50%;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
  .nav a:hover::after,.nav a[aria-current="page"]::after{transform:scaleX(1)}
}

/* Smooth transitions between pages (browsers that support it) */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  .site-header{view-transition-name:site-header}
  ::view-transition-old(root){animation:vt-out .22s ease both}
  ::view-transition-new(root){animation:vt-in .5s cubic-bezier(.2,.7,.2,1) both}
}

/* =====================================================================
   EVENT CARDS — poster first, details in a drawer
   ===================================================================== */
.ev-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,2.2vw,28px);align-items:start;margin-top:32px}
.ev{position:relative;display:flex;flex-direction:column;padding:10px;background:#fff;border:1px solid var(--sky-line);border-radius:var(--radius-lg);transition:border-color .25s,box-shadow .3s,translate .3s cubic-bezier(.2,.7,.2,1)}
.section-tint .ev{border-color:#fff}
/* poster frame: 4:5, the whole image always visible */
.ev-poster{position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;border:0;border-radius:calc(var(--radius-lg) - 8px);overflow:hidden;background:#0C3652;cursor:zoom-in;isolation:isolate}
.ev-poster img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;transition:scale .7s cubic-bezier(.2,.7,.2,1)}
.ev-poster.fill img{object-fit:cover}
.ev-blur{position:absolute;inset:-24px;z-index:0;background:center/cover no-repeat;filter:blur(22px) saturate(1.1) brightness(.72);transform:scale(1.1)}
.ev-poster.fill .ev-blur{display:none}
.ev-zoom{position:absolute;z-index:2;right:12px;bottom:12px;display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.94);color:var(--navy);font-size:13px;font-weight:600;box-shadow:0 6px 18px rgba(8,30,46,.25);opacity:0;translate:0 6px;transition:opacity .2s,translate .25s}
.ev-zoom svg{width:15px;height:15px}
.ev-poster:hover .ev-zoom,.ev-poster:focus-visible .ev-zoom{opacity:1;translate:0 0}
.ev-poster:focus-visible{outline:3px solid var(--sky);outline-offset:3px}
@media (hover:none){.ev-zoom{opacity:1;translate:0 0;padding:7px 10px}.ev-zoom span{display:none}}
.ev-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:default;font-size:14px;font-weight:600;color:var(--navy);background:var(--sky-tint) radial-gradient(circle,rgba(27,90,128,.14) 1.4px,transparent 1.8px) 0 0/12px 12px}
.ev-ph svg{width:36px;height:36px}
/* text */
.ev-body{padding:18px 10px 4px}
.ev-date{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;font-size:14px;font-weight:600;color:var(--navy)}
.ev-date svg{width:17px;height:17px;flex:none}
.ev-tag{padding:2px 9px;border-radius:999px;background:var(--sky-tint);color:var(--navy-ink);font-size:12px;font-weight:600}
.ev-title{margin-top:8px;font-size:clamp(20px,1.7vw,22px);line-height:1.25;color:var(--navy)}
.ev-meta{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:7px;font-size:15px;line-height:1.45;color:var(--text)}
.ev-meta li{display:flex;gap:9px;align-items:flex-start}
.ev-meta svg{flex:none;width:17px;height:17px;margin-top:2px;color:var(--navy)}
.ev-meta b{font-weight:600;color:var(--navy-ink)}
/* drawer */
.ev-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 20px);min-height:48px;margin:14px 10px 0;padding:0;border:0;border-top:1px solid var(--sky-line);background:none;color:var(--navy);font:600 15px/1 Inter,sans-serif;cursor:pointer}
.ev-toggle svg{width:20px;height:20px;padding:4px;box-sizing:content-box;border-radius:50%;border:1.5px solid var(--sky-line);transition:rotate .35s cubic-bezier(.2,.7,.2,1),background-color .2s,border-color .2s,color .2s}
.ev-toggle:hover svg{border-color:var(--navy)}
.ev-toggle:focus-visible{outline:3px solid var(--sky);outline-offset:2px;border-radius:8px}
.ev-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s cubic-bezier(.2,.7,.2,1)}
.ev-panel-inner{overflow:hidden;min-height:0;visibility:hidden;transition:visibility 0s .4s}
.ev-summary{margin:0 10px;padding-top:4px;font-size:15px;line-height:1.6;color:var(--text);opacity:0;translate:0 -6px;transition:opacity .3s,translate .4s cubic-bezier(.2,.7,.2,1)}
.ev-actions{display:flex;flex-wrap:wrap;gap:8px;padding:14px 10px 8px;opacity:0;transition:opacity .3s}
.btn-sm{min-height:42px;padding:0 18px;font-size:15px}
.ev.open{border-color:var(--navy);box-shadow:0 18px 40px rgba(12,54,82,.12)}
.ev.open .ev-panel{grid-template-rows:1fr}
.ev.open .ev-panel-inner{visibility:visible;transition:visibility 0s}
.ev.open .ev-summary{opacity:1;translate:0 0;transition-delay:.12s}
.ev.open .ev-actions{opacity:1;transition-delay:.18s}
.ev.open .ev-toggle svg{rotate:180deg;background:var(--navy);border-color:var(--navy);color:#fff}
.ev.is-past .ev-poster img{filter:grayscale(.3)}
.ev.is-past .ev-date{color:var(--muted)}
/* home: invitation to host an event */
.ev-host{align-self:stretch;justify-content:center;padding:0;background:var(--sky-tint);border:1.5px dashed #B9D3E8}
.ev-host-inner{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:clamp(24px,3vw,36px)}
.ev-host-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#fff;color:var(--navy);box-shadow:0 4px 14px rgba(12,54,82,.1)}
.ev-host-icon svg{width:24px;height:24px}
.ev-host h3{margin-top:6px;font-size:22px}
.ev-host p{font-size:15px;line-height:1.6;color:var(--text);max-width:30ch}
.ev-host .btn{margin-top:6px}
@media (hover:hover){
  .ev:not(.ev-host):hover{border-color:#B9D3E8;box-shadow:0 16px 36px rgba(12,54,82,.10);translate:0 -3px}
  .ev.open:hover{border-color:var(--navy);translate:0 0}
  .ev-poster:hover img{scale:1.03}
}
@media (max-width:1000px){.ev-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){
  .ev-list{grid-template-columns:1fr;gap:18px}
  .ev-host{align-self:auto}
  .ev-actions .btn{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){.ev,.ev-panel,.ev-summary,.ev-actions,.ev-toggle svg,.ev-poster img{transition:none}}

/* Online events: link to the meeting + join button */
.ev-meta small{margin-left:4px;font-size:13px;font-weight:500;color:var(--muted)}
.ev-link{display:inline-block;margin-top:2px;color:var(--navy);font-weight:500;text-decoration:underline;text-decoration-color:var(--sky);text-decoration-thickness:2px;text-underline-offset:3px;overflow-wrap:anywhere}
.ev-link:hover{text-decoration-color:var(--navy)}
.btn-join svg{width:18px;height:18px;flex:none}
.ev.is-online:not(.is-past) .ev-date .ev-tag{background:var(--navy);color:#fff}

/* Only one event: a wide card, poster on the left and details already open */
.ev-list > .ev-feature{grid-column:1 / -1}
.ev.ev-feature{display:grid;grid-template-columns:minmax(0,min(46%,440px)) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:clamp(18px,3vw,44px);align-items:start;padding:12px}
.ev-feature > :not(.ev-poster){grid-column:2}
.ev-feature .ev-poster{grid-row:1 / span 2}
.ev-feature .ev-toggle{display:none}
.ev-feature .ev-body{padding:clamp(10px,2vw,30px) 0 0}
.ev-feature .ev-title{font-size:clamp(22px,2.3vw,30px);line-height:1.2;max-width:24ch}
.ev-feature .ev-meta{margin-top:16px;font-size:16px}
.ev-feature .ev-summary,.ev-feature .ev-actions{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
.ev-feature .ev-summary{margin-top:18px;padding-top:18px;border-top:1px solid var(--sky-line);max-width:62ch}
.ev-feature .ev-actions{padding-top:20px}
.ev.ev-feature.open{border-color:var(--sky-line);box-shadow:0 18px 44px rgba(12,54,82,.08)}
.section-tint .ev.ev-feature.open{border-color:#fff}
@media (hover:hover){.ev.ev-feature:hover{translate:0 0}}
@media (max-width:620px){
  .ev.ev-feature{display:flex;padding:10px}
  .ev-feature .ev-body{padding:18px 6px 0}
  .ev-feature .ev-summary,.ev-feature .ev-actions{margin-left:6px;margin-right:6px}
}

/* Lightbox */
.lightbox{padding:0;border:0;background:transparent;max-width:min(92vw,900px);max-height:92vh;overflow:visible}
.lightbox::backdrop{background:rgba(8,30,46,.82)}
.lightbox img{display:block;max-width:min(92vw,900px);max-height:88vh;width:auto;height:auto;border-radius:var(--radius);box-shadow:0 30px 80px rgba(0,0,0,.4)}
.lb-close{position:absolute;top:-14px;right:-14px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:var(--navy);font:400 28px/1 Inter,sans-serif;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.25)}
@media (max-width:520px){.lb-close{top:-52px;right:0}}

/* =====================================================================
   MEMBERSHIP APPLICATION FORM
   ===================================================================== */
.apply-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(32px,5vw,72px);align-items:start}
.apply-intro{position:sticky;top:calc(var(--header-h) + 32px)}
.apply-intro > p{margin-top:16px;font-size:clamp(17px,1.4vw,19px);max-width:34ch}
.apply-intro > p.apply-need{font-size:15px;line-height:1.55;color:var(--muted)}
/* stepper (only when the form runs step by step) */
.steps{display:none;list-style:none;margin:32px 0 0;padding:0;counter-reset:s}
.is-wizard .steps{display:block}
.steps li{position:relative}
.steps li + li{margin-top:4px}
.steps li:not(:last-child)::after{content:"";position:absolute;left:21px;top:42px;bottom:-6px;width:2px;border-radius:2px;background:var(--sky-line);transition:background-color .3s}
.steps li.done:not(:last-child)::after{background:var(--sky)}
.steps button{display:flex;align-items:center;gap:14px;width:100%;min-height:48px;padding:3px 6px 3px 0;border:0;background:none;font:500 16px/1.3 Inter,sans-serif;color:var(--muted);text-align:left;cursor:pointer;border-radius:12px}
.steps button:disabled{cursor:default}
.steps .n{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--sky-line);background:#fff;color:var(--muted);font-weight:600;font-size:15px;transition:background-color .25s,border-color .25s,color .25s,box-shadow .25s}
.steps li.done .n{border-color:var(--sky);background:var(--sky);color:var(--navy-ink);font-size:0}
.steps li.done .n::before{content:"";width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C3652' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.steps li.done button:not(:disabled):hover .t{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.steps li[aria-current="step"] .n{border-color:var(--navy);background:var(--navy);color:#fff;box-shadow:0 0 0 5px rgba(113,180,231,.3)}
.steps li[aria-current="step"] .t{color:var(--navy);font-weight:600}
.steps li.done .t{color:var(--text)}
.steps.all-done li .n{border-color:var(--sky);background:var(--sky);color:var(--navy-ink);font-size:0;box-shadow:none}
.steps.all-done li .n::before{content:"";width:16px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C3652' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat}
.steps.all-done li .t{color:var(--text);font-weight:500}
.steps.all-done li::after{background:var(--sky)}
.apply-intro .apply-help{margin-top:22px;font-size:15px;color:var(--muted)}
.apply-box{background:#fff;border:1px solid var(--sky-line);border-radius:var(--radius-lg);box-shadow:0 24px 60px rgba(12,54,82,.08)}
.apply-form{padding:clamp(22px,3.4vw,44px)}
/* steps: stacked without JavaScript, one at a time with it */
.step + .step{margin-top:36px;padding-top:36px;border-top:1px solid var(--sky-line)}
.step-title{display:flex;align-items:center;gap:10px;margin-bottom:20px;font-size:clamp(20px,1.8vw,24px);letter-spacing:-.015em}
.step-title::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--sky);flex:none}
.step-title:focus{outline:none}
.review,.step-nav,.step-progress{display:none}
.is-wizard .step{display:none;margin:0;padding:0;border:0}
.is-wizard .step.current{display:block}
html.motion .is-wizard .step.current{animation:step-in .45s cubic-bezier(.2,.7,.2,1) both}
@keyframes step-in{from{opacity:0;translate:18px 0}to{opacity:1;translate:0 0}}
.is-wizard .step-nav{display:flex;justify-content:space-between;gap:12px;margin-top:32px;padding-top:24px;border-top:1px solid var(--sky-line)}
.is-wizard .step-nav [data-next]{margin-left:auto;min-width:170px}
.is-wizard .step-nav [data-back][hidden]{display:none}
.is-wizard .on-review [data-next]{display:none}
.is-wizard .apply-form:not(.on-review) .apply-submit{display:none}
.is-wizard .on-review .apply-submit{margin-top:0;padding-top:0;border-top:0}
.is-wizard .on-review .step-nav{margin-bottom:18px}
.field .label{font-size:14px;font-weight:600;color:var(--navy-ink)}
/* review */
.review-list{display:grid;gap:12px}
.rv-group{border:1px solid var(--sky-line);border-radius:14px;padding:16px 18px 6px;background:#FBFDFF}
.rv-group header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.rv-group h4{margin:0;font-size:16px;color:var(--navy)}
.rv-edit{min-height:40px;padding:0 14px;border:1.5px solid var(--sky-line);border-radius:999px;background:#fff;color:var(--navy);font:600 14px Inter,sans-serif;cursor:pointer}
.rv-edit:hover{border-color:var(--navy)}
.rv-group dl{margin:0}
.rv-group dl > div{display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr);gap:4px 16px;padding:9px 0;border-top:1px solid var(--sky-line);font-size:15px}
.rv-group dt{color:var(--muted)}
.rv-group dd{margin:0;color:var(--text);font-weight:500;overflow-wrap:anywhere}
@media (max-width:560px){.rv-group dl > div{grid-template-columns:1fr;gap:2px}}
.fs{margin:0;padding:0;border:0;min-width:0}
.fs + .fs{margin-top:32px;padding-top:32px;border-top:1px solid var(--sky-line)}
.fs legend{display:flex;align-items:center;gap:10px;padding:0;margin-bottom:18px;font-size:19px;font-weight:600;color:var(--navy);letter-spacing:-.01em}
.fs legend::before{content:"";width:10px;height:10px;border-radius:50%;background:var(--sky)}
.fs-hint{margin-top:-8px;margin-bottom:16px;font-size:14px;line-height:1.5;color:var(--muted)}
.field .fs-hint{margin:2px 0 0}
.apply-form .field label{font-size:14px}
.apply-form .field input{padding:11px 14px}
.apply-form .field input[aria-invalid="true"]{border-color:#B42318;box-shadow:0 0 0 3px rgba(180,35,24,.12)}
.field-error{margin:2px 0 0;font-size:14px;font-weight:500;color:#B42318}
.field-error::before{content:"! ";font-weight:700}
.field[hidden]{display:none}
/* programme cards */
.prog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.prog{position:relative;display:block;cursor:pointer}
.prog input{position:absolute;opacity:0;width:1px;height:1px}
.prog-card{position:relative;display:flex;flex-direction:column;gap:10px;height:100%;padding:16px 16px 14px;border:1.5px solid var(--sky-line);border-radius:14px;background:#fff;transition:border-color .15s,background-color .15s,box-shadow .2s}
.prog-card img{height:34px;width:auto;align-self:flex-start}
.prog-name{font-size:15px;font-weight:600;color:var(--navy-ink);padding-right:28px}
.prog-card::after{content:"";position:absolute;top:14px;right:14px;width:22px;height:22px;border-radius:7px;border:1.5px solid #B9CCDB;background:#fff center/14px no-repeat;transition:background-color .15s,border-color .15s}
.prog:hover .prog-card{border-color:#9CBCD4}
.prog input:checked + .prog-card{border-color:var(--navy);background:var(--sky-tint);box-shadow:0 0 0 1px var(--navy) inset}
.prog input:checked + .prog-card::after{background-color:var(--navy);border-color:var(--navy);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.prog input:focus-visible + .prog-card{outline:3px solid var(--sky);outline-offset:2px}
html.motion .coord:not([hidden]){animation:rise .45s cubic-bezier(.2,.7,.2,1) both}
/* file drop */
.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;padding:24px;text-align:center;border:1.5px dashed #9CBCD4;border-radius:14px;background:var(--sky-tint);cursor:pointer;transition:border-color .15s,background-color .15s}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop:hover,.drop.drag{border-color:var(--navy);background:#E2EEF8}
.drop:focus-within{outline:3px solid var(--sky);outline-offset:2px}
.drop.invalid{border-color:#B42318}
.drop.has-file{min-height:96px}
.drop-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;color:var(--navy);box-shadow:0 4px 12px rgba(12,54,82,.1)}
.drop-icon svg{width:22px;height:22px}
.drop-text{font-size:16px;color:var(--text)}
.drop-text b{color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.drop-meta{font-size:14px;color:var(--muted)}
@media (hover:none){.drag-hint{display:none}}
.file-chip{display:flex;align-items:center;gap:12px;margin-top:12px;padding:8px 8px 8px 8px;border:1px solid var(--sky-line);border-radius:12px;background:#fff}
.file-thumb{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:8px;border:1px solid var(--sky-line);background:#fff;overflow:hidden;font-size:11px;font-weight:700;color:var(--navy)}
.file-thumb img{width:100%;height:100%;object-fit:contain}
.file-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--navy-ink);font-size:15px}
.file-size{font-size:14px;color:var(--muted)}
.file-remove{width:40px;height:40px;border:0;border-radius:50%;background:var(--sky-tint);color:var(--navy);font:400 22px/1 Inter,sans-serif;cursor:pointer}
.file-remove:hover{background:#DCE8F2}
/* submit + states */
.apply-submit{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:36px;padding-top:28px;border-top:1px solid var(--sky-line)}
.apply-submit .btn{margin:0;min-width:220px}
.apply-privacy{flex:1 1 240px;font-size:14px;color:var(--muted)}
.form-status{margin-top:18px;padding:14px 18px;border-radius:12px;background:#FEF3F2;color:#912018;font-size:15px}
.apply-form[aria-busy="true"] .btn{opacity:.75;cursor:progress}
.apply-done{padding:clamp(40px,6vw,72px) clamp(24px,4vw,48px);text-align:center}
.apply-done:focus{outline:none}
.done-icon{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--navy);color:#fff;box-shadow:0 0 0 10px var(--sky-tint)}
.done-icon svg{width:30px;height:30px}
.apply-done h3{margin-top:26px;font-size:clamp(24px,2.4vw,30px)}
.apply-done p{margin:12px auto 0;max-width:44ch;font-size:17px}
html.motion .apply-done:not([hidden]){animation:rise .6s cubic-bezier(.2,.7,.2,1) both}
@media (max-width:900px){
  .apply-grid{grid-template-columns:1fr}.apply-intro{position:static}.apply-intro > p{max-width:none}
  .is-wizard .steps{display:none}
  .is-wizard .step-progress{display:block;margin-bottom:24px}
  .sp-label{display:block;font-size:14px;font-weight:600;color:var(--navy)}
  .sp-bar{display:block;height:6px;margin-top:10px;border-radius:6px;background:var(--sky-tint);overflow:hidden}
  .sp-bar i{display:block;height:100%;width:25%;border-radius:6px;background:var(--navy);transition:width .4s cubic-bezier(.2,.7,.2,1)}
}
@media (max-width:560px){.prog-grid{grid-template-columns:1fr}.apply-submit .btn{width:100%}.is-wizard .step-nav .btn{flex:1 1 0;min-width:0}}

/* Member Directory header: the map also scales with the screen height on desktop */
@media (min-width:861px){
  .dir-head{padding:clamp(28px,5vh,72px) 0}
  .dir-head .map-fig{justify-self:end;width:100%;max-width:min(460px,max(300px,calc((100vh - 130px - clamp(28px,5vh,72px)) / 1.28)))}
  .dir-head .map-fig{max-width:min(460px,max(300px,calc((100svh - 130px - clamp(28px,5svh,72px)) / 1.28)))}
}
