/* EFASS website — shared stylesheet (static demo + WordPress theme) */
:root{
  --navy:#13286B; --navy-deep:#0C1C4F; --blue:#1D44B8; --red:#D3151F; --green:#0B7A3B; --gold:#F0A500;
  --paper:#F6F7FB; --ink:#14213D; --muted:#566079; --line:#DCE1EC; --white:#fff;
  --o1:var(--gold); --o2:var(--blue); --o3:var(--green); --o4:var(--red); --o5:var(--navy);
  --display:"Bricolage Grotesque",system-ui,sans-serif; --body:"Atkinson Hyperlegible",system-ui,sans-serif;
  --wrap:1200px; --r:10px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--body);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--white)}
img{max-width:100%;display:block}
a{color:var(--blue)}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.5rem}
.skip{position:absolute;left:-999px;top:0;background:var(--gold);color:var(--ink);padding:.6rem 1rem;z-index:200}
.skip:focus{left:1rem}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
h1,h2,h3,h4{font-family:var(--display);line-height:1.12;margin:0 0 .55em;letter-spacing:-.01em;color:var(--navy)}
h1{font-size:clamp(2.2rem,4.4vw,3.6rem);font-weight:800}
h2{font-size:clamp(1.75rem,3vw,2.5rem);font-weight:800}
h3{font-size:1.3rem;font-weight:700}
p{margin:0 0 1em;max-width:68ch}
.lede{font-size:1.2rem;color:var(--muted);max-width:62ch}

/* Brand strip: donors -> MoGEI -> EFASS */
.brandbar{background:var(--white);border-bottom:1px solid var(--line)}
.brandbar .wrap{display:flex;align-items:center;gap:1.75rem;min-height:104px;flex-wrap:wrap;padding-top:.6rem;padding-bottom:.6rem}
.brand-group{display:flex;align-items:center;gap:1.1rem}
.brand-label{font-size:.8rem;color:var(--muted);line-height:1.2;max-width:6.5rem}
.brand-group img{height:52px;width:auto}
.brand-group .logo-canada{height:40px}
.logo-placeholder{height:44px;display:flex;align-items:center;padding:0 .8rem;border:1px dashed #9AA3B8;border-radius:6px;font-size:.8rem;color:var(--muted);line-height:1.15}
.brand-divider{width:1px;align-self:stretch;background:var(--line);margin:.6rem 0}
.brand-home{margin-left:auto;display:flex;align-items:center;gap:.9rem;text-decoration:none}
.brand-home img{height:84px;width:auto}
.brand-home .mogei{height:72px}
.brand-name{font-family:var(--display);font-weight:800;color:var(--navy);font-size:1.15rem;line-height:1.1}
.brand-name small{display:block;font-family:var(--body);font-weight:400;color:var(--muted);font-size:.8rem}

/* Navigation with dropdowns */
.navbar{background:var(--navy);position:sticky;top:0;z-index:100;box-shadow:0 2px 0 var(--navy-deep)}
.navbar .wrap{display:flex;align-items:center;justify-content:space-between;min-height:58px}
.menu{list-style:none;margin:0;padding:0;display:flex}
.menu > li{position:relative}
.menu a{display:block;color:var(--white);text-decoration:none;font-weight:700;padding:1.05rem 1rem}
.menu > li > a:hover,.menu > li:focus-within > a,.menu > .current-menu-item > a,.menu > .current-menu-ancestor > a{background:var(--navy-deep)}
.menu > .current-menu-item > a,.menu > .current-menu-ancestor > a{box-shadow:inset 0 -4px 0 var(--gold)}
.menu-item-has-children{display:flex;align-items:center}
.sub-toggle{background:none;border:0;color:#BFC9E6;cursor:pointer;padding:1.05rem .55rem 1.05rem 0;margin-left:-.6rem;font:inherit;line-height:1}
.sub-toggle::after{content:"";display:inline-block;width:.45rem;height:.45rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg);transition:transform .2s}
.menu-item-has-children.open > .sub-toggle::after{transform:translateY(1px) rotate(-135deg)}
.sub-menu{list-style:none;margin:0;padding:.5rem;position:absolute;top:100%;left:0;min-width:290px;background:var(--white);border-radius:0 0 var(--r) var(--r);box-shadow:0 18px 40px rgba(12,28,79,.18);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .18s,transform .18s,visibility .18s}
.menu-item-has-children:hover > .sub-menu,.menu-item-has-children.open > .sub-menu{opacity:1;visibility:visible;transform:none}
.sub-menu a{color:var(--ink);padding:.6rem .8rem;border-radius:6px;font-weight:700;display:flex;align-items:center;gap:.6rem}
.sub-menu a:hover,.sub-menu .current-menu-item > a{background:var(--paper);color:var(--navy)}
.dot{width:.7rem;height:.7rem;border-radius:50%;flex:none}
.nav-cta{background:var(--gold);color:var(--ink);text-decoration:none;font-weight:700;padding:.55rem 1rem;border-radius:6px;white-space:nowrap}
.nav-cta:hover{background:#FFBE2E}
.nav-toggle{display:none;background:none;border:2px solid #4A5E9C;color:var(--white);border-radius:6px;padding:.45rem .9rem;font:inherit;font-weight:700;cursor:pointer}

/* Buttons */
.btn{display:inline-block;padding:.85rem 1.35rem;border-radius:8px;font-weight:700;text-decoration:none;border:2px solid transparent;margin:0 .5rem .5rem 0}
.btn-gold{background:var(--gold);color:var(--ink)}
.btn-gold:hover{background:#FFBE2E}
.btn-ghost{border-color:var(--navy);color:var(--navy)}
.btn-ghost:hover{background:var(--navy);color:var(--white)}

/* Home hero with outcome ring */
.hero{background:var(--paper);overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;padding-top:4rem;padding-bottom:4rem}
.hero p{font-size:1.2rem;color:var(--muted)}
.ring-wrap{position:relative;max-width:460px;margin:0 auto;width:100%}
.ring{width:100%;height:auto;display:block;overflow:visible}
.ring .seg{fill:none;stroke-width:46;cursor:pointer;transition:stroke-width .2s}
.ring a:hover .seg,.ring a:focus .seg{stroke-width:56}
.ring a:focus{outline:none}
.ring .seg-num{font-family:var(--display);font-weight:800;font-size:22px;fill:#fff;pointer-events:none}
.ring-centre{position:absolute;inset:26%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border-radius:50%;background:var(--white);box-shadow:0 10px 30px rgba(12,28,79,.12);padding:1rem}
.ring-centre img{width:66%;height:auto}
.ring-caption{display:none;font-family:var(--display);font-weight:800;color:var(--navy);font-size:1.12rem;line-height:1.15}
.ring-caption small{display:block;font-family:var(--body);font-weight:400;font-size:.85rem;color:var(--muted);margin-top:.35rem}
.ring-centre.show-caption img{display:none}
.ring-centre.show-caption .ring-caption{display:block}
.ring-hint{text-align:center;color:var(--muted);font-size:.9rem;margin:.6rem auto 0}
@keyframes draw{from{stroke-dashoffset:var(--len)}to{stroke-dashoffset:0}}
.ring .seg{stroke-dasharray:var(--len);animation:draw .7s ease-out both}

/* Sections */
.section{padding:5rem 0}
.section-alt{background:var(--paper)}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;margin-bottom:2.25rem;flex-wrap:wrap}
.section-head p{margin:0}
.split{display:grid;grid-template-columns:1.1fr .9fr;gap:3.5rem;align-items:center}
.quote{font-family:var(--display);font-weight:700;font-size:1.6rem;line-height:1.3;color:var(--navy);margin:0;padding-left:1.4rem;border-left:6px solid var(--gold)}

/* Outcome tiles: five equal columns, one colour each */
.outcome-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}
.o-tile{--c:var(--navy);display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);border-top:8px solid var(--c);border-radius:var(--r);padding:1.4rem 1.25rem 1.25rem;text-decoration:none;color:var(--ink);transition:transform .2s,box-shadow .2s}
.o-tile:hover,.o-tile:focus-visible{transform:translateY(-4px);box-shadow:0 14px 30px rgba(12,28,79,.12)}
.o-num{width:2.6rem;height:2.6rem;border-radius:50%;background:var(--c);color:#fff;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:1.25rem;margin-bottom:1rem}
.o-tile h3{font-size:1.12rem;margin-bottom:.5rem}
.o-tile p{font-size:.95rem;color:var(--muted);margin:0 0 1rem}
.o-tile .more{margin-top:auto;font-weight:700;color:var(--navy)}
.c1{--c:var(--o1)}.c2{--c:var(--o2)}.c3{--c:var(--o3)}.c4{--c:var(--o4)}.c5{--c:var(--o5)}

/* National figures */
.figures{background:var(--navy);color:var(--white)}
.figures h2{color:var(--white)}
.figures p{color:#C6CFEA}
.fig-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-top:2rem}
.fig{background:rgba(255,255,255,.07);border-radius:var(--r);padding:1.5rem}
.fig-value{font-family:var(--display);font-weight:800;font-size:clamp(1.8rem,3vw,2.6rem);color:var(--gold);line-height:1}
.fig-label{margin-top:.5rem;color:#DCE3F5}
.source{font-size:.85rem;color:#9FAED6;margin-top:1.25rem}

/* Where we work */
.states{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.state{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.1rem 1.25rem}
.state h3{font-size:1.08rem;margin:0}
.state span{font-size:.9rem;color:var(--muted)}
.state img{height:40px;width:auto;max-width:110px;object-fit:contain}

/* Cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.card-band{height:10px;background:var(--c,var(--navy))}
.card-body{padding:1.4rem;display:flex;flex-direction:column;flex:1}
.tag{font-size:.85rem;font-weight:700;color:var(--c,var(--navy));margin-bottom:.4rem}
.c1 .tag{color:#9A6A00}
.card h3{font-size:1.15rem}
.card p{color:var(--muted);font-size:.95rem}
.card a.more{margin-top:auto;font-weight:700;color:var(--navy)}
.note{font-size:.92rem;color:var(--muted);background:var(--paper);border-left:4px solid var(--gold);padding:.75rem 1rem;border-radius:0 6px 6px 0;margin:0 0 1.75rem;max-width:none}

/* Inner page hero */
.page-hero{--c:var(--navy);background:var(--c);color:var(--white);padding:3.5rem 0 3rem;position:relative;overflow:hidden}
.page-hero h1{color:var(--white);max-width:20ch}
.page-hero p{color:rgba(255,255,255,.92);font-size:1.15rem}
.page-hero.c1,.page-hero.c1 h1,.page-hero.c1 p,.page-hero.c1 .crumbs a{color:var(--ink)}
.crumbs{font-size:.9rem;margin-bottom:1rem}
.crumbs a{color:var(--white)}
.big-num{position:absolute;right:4%;bottom:-3.5rem;font-family:var(--display);font-weight:800;font-size:16rem;line-height:1;opacity:.14;pointer-events:none}

/* Outcome page parts */
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.tile{background:var(--white);border:1px solid var(--line);border-left:6px solid var(--c,var(--navy));border-radius:var(--r);padding:1.3rem}
.tile h3{font-size:1.1rem;margin-bottom:.35rem}
.tile p{margin:0;color:var(--muted);font-size:.97rem}
.checks{list-style:none;padding:0;margin:0}
.checks li{padding:.65rem 0 .65rem 2rem;border-bottom:1px solid var(--line);position:relative}
.checks li::before{content:"";position:absolute;left:.1rem;top:.9rem;width:1rem;height:.5rem;border-left:3px solid var(--c,var(--green));border-bottom:3px solid var(--c,var(--green));transform:rotate(-45deg)}
.data-panel{background:var(--paper);border-radius:var(--r);padding:1.6rem;border-top:6px solid var(--c,var(--navy))}
.data-panel h3{margin-bottom:.9rem}
.flow{display:grid;grid-template-columns:5.5rem 1fr;gap:.7rem 1rem}
.flow b{font-family:var(--display);color:var(--navy)}
.flow span{color:var(--muted)}
.signature{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.5rem}
.signature h3{font-size:1.1rem}
.layout-2{display:grid;grid-template-columns:1.25fr .75fr;gap:3rem;align-items:start}
.stack > * + *{margin-top:2.75rem}
.side > * + *{margin-top:1.5rem}

/* Signature visuals */
.register-head{display:flex;justify-content:space-between;font-size:.85rem;color:var(--muted);margin-bottom:.75rem}
.register-grid{display:grid;grid-template-columns:repeat(15,1fr);gap:4px}
.cell{aspect-ratio:1;border-radius:50%;background:#E3E7F1;transform:scale(.6);transition:transform .35s,background-color .35s}
.cell.present{background:var(--gold);transform:scale(1)}
.cell.absent{background:#B9C2D8;transform:scale(.8)}
.register-foot{font-size:.85rem;color:var(--muted);margin-top:.75rem}
.approaches{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
.approach{background:var(--paper);border-radius:8px;padding:.9rem .5rem;text-align:center}
.approach b{display:block;font-family:var(--display);font-size:1.5rem;color:var(--blue)}
.approach span{font-size:.82rem;color:var(--muted);line-height:1.25;display:block}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{padding:.45rem .9rem;border-radius:999px;background:#E3F1E8;color:var(--green);font-weight:700;font-size:.92rem}
.steps{list-style:none;counter-reset:s;padding:0;margin:0;display:grid;gap:.9rem}
.steps li{counter-increment:s;display:grid;grid-template-columns:2.4rem 1fr;gap:.9rem;align-items:start}
.steps li::before{content:counter(s);width:2.4rem;height:2.4rem;border-radius:50%;background:var(--c,var(--navy));color:#fff;display:grid;place-items:center;font-family:var(--display);font-weight:800}
.steps b{display:block;color:var(--navy)}
.steps span{font-size:.92rem;color:var(--muted)}
.exchange text{font-family:var(--body)}

/* Prev / next outcome */
.o-pager{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.o-pager a{--c:var(--navy);display:block;text-decoration:none;color:var(--ink);background:var(--white);border:1px solid var(--line);border-bottom:6px solid var(--c);border-radius:var(--r);padding:1.25rem 1.4rem}
.o-pager a:hover{box-shadow:0 10px 24px rgba(12,28,79,.1)}
.o-pager small{display:block;color:var(--muted)}
.o-pager strong{font-family:var(--display);font-size:1.15rem;color:var(--navy)}
.o-pager .next{text-align:right}

/* Team, management, resources */
.people{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.person{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.4rem;text-align:center}
.avatar{width:84px;height:84px;border-radius:50%;margin:0 auto 1rem;display:grid;place-items:center;font-family:var(--display);font-weight:800;color:#fff;font-size:1.5rem;background:var(--c,var(--navy))}
.c1 .avatar{color:var(--ink)}
.person h3{font-size:1.05rem;margin-bottom:.2rem}
.person p{margin:0 auto;color:var(--muted);font-size:.92rem}
.table{width:100%;border-collapse:collapse;background:var(--white);border:1px solid var(--line)}
.table th,.table td{text-align:left;padding:.85rem 1rem;border-bottom:1px solid var(--line);vertical-align:top}
.table th{background:var(--paper);font-family:var(--display);color:var(--navy)}
.logo-row{display:flex;flex-wrap:wrap;align-items:center;gap:1.75rem 2.5rem}
.logo-row img{height:56px;width:auto;object-fit:contain}
.form{display:grid;gap:1rem;max-width:560px}
.form label{font-weight:700;display:grid;gap:.35rem}
.form input,.form textarea,.form select{font:inherit;padding:.75rem .9rem;border:1px solid #B9C2D8;border-radius:8px;background:var(--white)}
.form button{justify-self:start;border:0;cursor:pointer;font:inherit}
.form-status{font-weight:700;color:var(--green);min-height:1.5em}

/* Partner logos band + footer */
.partners-band{background:var(--white);border-top:1px solid var(--line);padding:2.5rem 0}
.partners-band .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2rem 3rem}
.partners-band h2{font-size:1rem;color:var(--muted);font-family:var(--body);font-weight:700;margin-bottom:1rem;letter-spacing:0}
.partners-band .logo-row img{height:50px}
.stripe{height:6px;display:grid;grid-template-columns:repeat(5,1fr)}
.stripe span:nth-child(1){background:var(--o1)}.stripe span:nth-child(2){background:var(--o2)}.stripe span:nth-child(3){background:var(--o3)}.stripe span:nth-child(4){background:var(--o4)}.stripe span:nth-child(5){background:#3E5BB8}
.site-footer{background:var(--navy-deep);color:#C6CFEA;padding:3.5rem 0 1.5rem}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:2rem}
.site-footer h3{color:var(--white);font-size:1.05rem}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:.45rem}
.site-footer a{color:#E4E9F7;text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.footer-logo{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem}
.footer-logo img{height:68px;background:#fff;border-radius:50%;padding:5px}
.footer-base{border-top:1px solid #23357A;margin-top:2.5rem;padding-top:1.25rem;font-size:.88rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}

/* Responsive */
@media (max-width:1080px){
  .outcome-grid{grid-template-columns:repeat(3,1fr)}
  .people{grid-template-columns:repeat(3,1fr)}
  .menu a{padding:1.05rem .7rem}
}
@media (max-width:900px){
  .hero .wrap,.split,.layout-2,.partners-band .wrap{grid-template-columns:1fr}
  .states,.cards{grid-template-columns:1fr 1fr}
  .fig-grid,.footer-grid{grid-template-columns:1fr 1fr}
  .brand-home{margin-left:0;width:100%}
  .brandbar .wrap{gap:1rem}
  .brand-group img{height:40px}
  .brand-divider{display:none}
  .nav-toggle{display:block}
  .nav-cta{display:none}
  .navbar nav{display:none;position:absolute;top:58px;left:0;right:0;background:var(--navy);max-height:calc(100vh - 58px);overflow:auto;padding-bottom:1rem}
  .navbar nav.open{display:block}
  .menu{flex-direction:column}
  .menu-item-has-children{flex-wrap:wrap}
  .menu-item-has-children > a{flex:1}
  .sub-toggle{padding:1.05rem 1.25rem;margin:0}
  .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border-radius:0;display:none;width:100%;background:var(--navy-deep);padding:.25rem 0}
  .menu-item-has-children:hover > .sub-menu{display:none}
  .menu-item-has-children.open > .sub-menu{display:block}
  .sub-menu a{color:var(--white);padding-left:2rem}
  .sub-menu a:hover{background:transparent;color:var(--gold)}
}
@media (max-width:600px){
  .outcome-grid,.states,.cards,.tiles,.people,.o-pager,.fig-grid,.approaches,.footer-grid{grid-template-columns:1fr}
  .o-pager .next{text-align:left}
  .big-num{font-size:10rem}
  .brand-label{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .ring .seg{animation:none}
  .cell,.o-tile,.sub-menu{transition:none}
}

/* Coloured outcome markers in the Outcomes dropdown (works for static and WordPress menus) */
.sub-menu a[href*="outcome-"]::before{content:"";width:.7rem;height:.7rem;border-radius:50%;flex:none;background:var(--navy)}
.sub-menu a[href*="outcome-1"]::before{background:var(--o1)}
.sub-menu a[href*="outcome-2"]::before{background:var(--o2)}
.sub-menu a[href*="outcome-3"]::before{background:var(--o3)}
.sub-menu a[href*="outcome-4"]::before{background:var(--o4)}
.sub-menu a[href*="outcome-5"]::before{background:#3E5BB8}
.menu-item-has-children .sub-menu[aria-label="Outcomes"]{min-width:340px}

/* Uniform logo boxes so partner logos of different shapes read at a consistent size */
.logo-row img,.partners-band .logo-row img{height:auto;max-height:54px;max-width:150px;width:auto;object-fit:contain}
.partners-band .logo-row{gap:1.5rem 2.25rem}
.brand-group img{height:auto;max-height:58px;max-width:120px}
.brand-group .logo-canada{max-height:46px;max-width:150px}
.brand-home .mogei{height:76px}
.state img{max-height:44px;max-width:120px;height:auto}
.sub-menu:has(a[href*="outcome-"]){min-width:400px}

/* Outcome colours win over component defaults */
.page-hero.c1,.o-pager a.c1{--c:var(--o1)}
.page-hero.c2,.o-pager a.c2{--c:var(--o2)}
.page-hero.c3,.o-pager a.c3{--c:var(--o3)}
.page-hero.c4,.o-pager a.c4{--c:var(--o4)}
.page-hero.c5,.o-pager a.c5{--c:var(--o5)}
.page-hero.c5{--c:#1E3A8F}

/* Where we work: state cards with counties and partner roles */
.regions-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.region-card{background:var(--white);border:1px solid var(--line);border-top:6px solid var(--navy);border-radius:var(--r);padding:1.4rem}
.region-card.tbc{border-style:dashed;border-top-style:solid;border-top-color:var(--gold);background:var(--paper)}
.region-top{display:flex;justify-content:space-between;gap:1rem;align-items:start;margin-bottom:.9rem}
.region-top h3{margin:0 0 .2rem;font-size:1.15rem}
.region-top img{max-height:46px;max-width:110px;width:auto;object-fit:contain}
.counties{margin:0;color:var(--blue);font-weight:700}
.region-card p{font-size:.97rem;color:var(--muted);margin:0}
.region-card strong{color:var(--ink)}
.across{display:grid;grid-template-columns:150px 1fr;gap:1.25rem 2rem;align-items:center;max-width:900px}
.across img{max-height:54px;max-width:150px;width:auto;object-fit:contain}
.across h3{font-size:1.05rem;margin:0 0 .2rem}
.across p{margin:0;color:var(--muted)}
.state span{color:var(--blue);font-weight:700}
@media (max-width:900px){.regions-detail{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.regions-detail{grid-template-columns:1fr}.across{grid-template-columns:1fr}}

/* Team cards: brief profile on hover, full bio on click */
button.person{font:inherit;color:inherit;cursor:pointer;position:relative;overflow:hidden;display:block;width:100%;transition:box-shadow .2s,transform .2s}
button.person:hover,button.person:focus-visible{box-shadow:0 14px 30px rgba(12,28,79,.14);transform:translateY(-3px)}
.person-role{display:block;font-family:var(--display);font-weight:700;color:var(--navy);font-size:1.05rem;line-height:1.2}
.person-name{display:block;color:var(--muted);font-size:.88rem;margin-top:.3rem}
.person-hover{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:.75rem;padding:1.25rem;background:var(--c,var(--navy));color:#fff;font-size:.95rem;line-height:1.45;opacity:0;transition:opacity .2s}
.c1 .person-hover{color:var(--ink)}
.person-cta{font-weight:700;text-decoration:underline}
button.person:hover .person-hover,button.person:focus-visible .person-hover{opacity:1}
.bio-dialog{border:0;border-radius:var(--r);padding:2rem;max-width:560px;width:calc(100% - 2rem);box-shadow:0 30px 60px rgba(12,28,79,.3);border-top:8px solid var(--c,var(--navy))}
.bio-dialog::backdrop{background:rgba(12,28,79,.55)}
.bio-head{display:flex;align-items:center;gap:1.25rem;margin-bottom:1.25rem}
.bio-head .avatar{margin:0;flex:none}
.bio-head h2{font-size:1.5rem;margin:0}
.bio-dialog p{color:var(--ink)}
@media (hover:none){.person-hover{display:none}}
@media (prefers-reduced-motion:reduce){button.person,.person-hover{transition:none}}
.bio-dialog button{font:inherit;cursor:pointer;background:none}
.people{grid-template-columns:repeat(3,1fr)}
@media (max-width:600px){.people{grid-template-columns:1fr}}

/* ===== v3 additions ===== */
/* Two-column "Our work" panel: five outcomes beside the four cross-cutting themes */
.menu .mega > .sub-menu{display:grid;grid-template-rows:repeat(6,auto);grid-auto-flow:column;grid-auto-columns:minmax(340px,1fr);gap:0 1rem;min-width:720px;padding:1rem}
.menu-heading > span,.menu-heading > a{display:block;font-family:var(--body);font-size:.82rem;font-weight:700;color:var(--muted);padding:.4rem .8rem .3rem;pointer-events:none;background:none!important}
.menu-heading > a::before{display:none}
.sub-menu a[href*="gender"]::before,.sub-menu a[href*="disability"]::before,.sub-menu a[href*="safeguarding"]::before,.sub-menu a[href*="climate"]::before{content:"";width:.7rem;height:.7rem;border-radius:2px;flex:none;background:conic-gradient(var(--o1) 0 20%,var(--o2) 0 40%,var(--o3) 0 60%,var(--o4) 0 80%,#3E5BB8 0)}
.menu-external > a::after{content:"";width:.55rem;height:.55rem;border-top:2px solid currentColor;border-right:2px solid currentColor;margin-left:.35rem;transform:rotate(45deg) translate(-1px,1px);opacity:.6}
.sub-menu:has(a[href*="outcome-"]){min-width:auto}

/* Homepage and about: cross-cutting theme links */
.theme-heading{margin:3rem 0 1rem;font-size:1.2rem}
.theme-links{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.theme-links a{display:block;text-decoration:none;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.1rem 1.2rem;position:relative;overflow:hidden;transition:box-shadow .2s}
.theme-links a::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--o1) 0 20%,var(--o2) 20% 40%,var(--o3) 40% 60%,var(--o4) 60% 80%,#3E5BB8 80%)}
.theme-links a:hover{box-shadow:0 12px 26px rgba(12,28,79,.12)}
.theme-links strong{display:block;font-family:var(--display);color:var(--navy);font-size:1.05rem;margin-bottom:.25rem}
.theme-links span{font-size:.92rem;color:var(--muted)}

/* Cross-cutting theme pages */
.page-hero.theme{background:linear-gradient(120deg,var(--navy-deep),var(--navy) 60%,#2A3F95)}
.five-chips{display:flex;gap:.5rem}
.five-chips a{width:2.6rem;height:2.6rem;border-radius:50%;display:grid;place-items:center;text-decoration:none;font-family:var(--display);font-weight:800;color:#fff;background:var(--c)}
.five-chips a.c1{color:var(--ink)}
.five-chips a:hover{transform:scale(1.08)}
.lead-panel img{max-height:56px;max-width:170px;width:auto;margin-bottom:.8rem}
.lead-panel p{margin:0;color:var(--muted);font-size:.95rem}
.theme-mini{display:grid;gap:.4rem}
.theme-mini a{font-weight:700;color:var(--navy)}

/* Where we work */
.state{align-items:flex-start}
.state-logos{display:flex;gap:.5rem;flex:none}
.state-logos img{max-height:34px;max-width:70px}
.area-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.area-card{background:var(--white);border:1px solid var(--line);border-top:5px solid var(--navy);border-radius:var(--r);padding:1.2rem 1.3rem}
.area-card h3{font-size:1.08rem;margin-bottom:.6rem}
.county-list{list-style:none;margin:0;padding:0}
.county-list li{display:flex;justify-content:space-between;gap:1rem;padding:.45rem 0;border-top:1px solid var(--line);font-weight:700}
.county-partner{font-weight:400;color:var(--muted);font-size:.9rem}
.partner-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.partner-grid.two{grid-template-columns:repeat(2,1fr)}
.partner-card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.4rem}
.partner-top{display:flex;gap:1rem;align-items:center;margin-bottom:.9rem}
.partner-top img{max-height:52px;max-width:96px;width:auto;object-fit:contain;flex:none}
.partner-top h3{font-size:1.05rem;margin:0 0 .2rem}
.partner-card > p{margin:0;color:var(--muted);font-size:.96rem}

/* Partners page bands */
.partner-band{display:flex;justify-content:space-between;align-items:center;gap:2rem;padding:2rem 0;border-bottom:1px solid var(--line)}
.partner-band h2{margin-bottom:.4rem}
.band-logo{max-height:110px;width:auto}
.band-logos{display:flex;gap:2rem;align-items:center}
.band-logos img{max-height:70px;width:auto}

/* Management: profiles and donors */
.profile{display:grid;grid-template-columns:160px 1fr;gap:2rem;align-items:start;padding:2rem 0;border-bottom:1px solid var(--line)}
.profile:first-child{padding-top:0}
.profile-logo{max-width:140px;max-height:120px;width:auto;margin:0 auto}
.donor-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.donor{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.75rem}
.donor img{max-height:64px;width:auto;margin-bottom:1rem}
.donor p{color:var(--muted);margin:0}

/* Education data */
.mini-figs{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.mini-figs b{display:block;font-family:var(--display);font-size:1.6rem;color:var(--red);line-height:1}
.mini-figs span{color:var(--muted);font-size:.9rem}
.page-hero .btn{margin-top:.5rem}

/* Research library */
.lib-tools{display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;margin-bottom:1.75rem}
.filters{display:flex;flex-wrap:wrap;gap:.5rem}
.filter{font:inherit;font-weight:700;border:2px solid var(--line);background:var(--white);color:var(--navy);border-radius:999px;padding:.45rem 1rem;cursor:pointer}
.filter.is-on{background:var(--navy);border-color:var(--navy);color:#fff}
.lib-search input{font:inherit;padding:.6rem 1rem;border:2px solid var(--line);border-radius:999px;min-width:260px}
.library{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.lib-card{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.4rem;display:flex;flex-direction:column;border-left:6px solid var(--c,var(--navy))}
.lib-card.t-efass{--c:var(--o4)}.lib-card.t-research{--c:var(--o2)}.lib-card.t-case{--c:var(--o3)}.lib-card.t-gess{--c:var(--o1)}
.lib-type{font-size:.82rem;font-weight:700;color:var(--muted);margin-bottom:.35rem}
.lib-card h3{font-size:1.08rem}
.lib-meta{font-size:.88rem;color:var(--blue);font-weight:700;margin:-.2rem 0 .6rem}
.lib-card > p:not(.lib-meta){color:var(--muted);font-size:.95rem}
.lib-card .more{margin-top:auto;font-weight:700;color:var(--navy)}
.status{margin-top:auto;align-self:flex-start;font-size:.85rem;font-weight:700;background:var(--paper);color:var(--muted);padding:.3rem .7rem;border-radius:999px}
.lib-empty{margin-top:1rem;font-weight:700;color:var(--muted)}
.journey{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);position:relative;counter-reset:j}
.journey::before{content:"";position:absolute;top:1.2rem;left:16%;right:16%;height:4px;background:linear-gradient(90deg,var(--o1),var(--o2),var(--o4))}
.journey li{counter-increment:j;text-align:center;position:relative}
.journey li::before{content:counter(j);display:grid;place-items:center;width:2.4rem;height:2.4rem;margin:0 auto .7rem;border-radius:50%;background:var(--navy);color:#fff;font-family:var(--display);font-weight:800;position:relative}
.journey b{display:block;font-family:var(--display);color:var(--navy)}
.journey span{font-size:.9rem;color:var(--muted)}
.gess-band{margin-top:4rem;background:var(--paper);border-radius:var(--r);padding:2rem;display:flex;justify-content:space-between;align-items:center;gap:2rem;flex-wrap:wrap;border-left:6px solid var(--gold)}
.gess-band h2{margin-bottom:.4rem}
.gess-band p{margin:0}

@media (max-width:1080px){.theme-links,.library,.partner-grid,.area-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){
  .menu .mega > .sub-menu{display:none;min-width:0;padding:.25rem 0}
  .menu .mega.open > .sub-menu{display:block}
  .menu-heading > span,.menu-heading > a{color:#AFBBE0;padding-left:2rem}
  .partner-band,.profile{grid-template-columns:1fr;flex-direction:column;align-items:flex-start}
  .donor-grid,.partner-grid.two{grid-template-columns:1fr}
}
@media (max-width:600px){.theme-links,.library,.partner-grid,.area-grid,.journey{grid-template-columns:1fr}.journey::before{display:none}.lib-search input{min-width:0;width:100%}.lib-search{width:100%}}
.profile h2{font-size:clamp(1.4rem,2.2vw,1.85rem)}

/* ===================== Accessibility tools ===================== */
html{font-size:var(--a11y-size,100%)}
.a11y{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:1000;display:flex;align-items:center;font-family:var(--body)}
.a11y-dock{display:flex;flex-direction:column;gap:6px;background:var(--navy-deep);padding:6px;border-radius:14px 0 0 14px;box-shadow:0 10px 30px rgba(12,28,79,.35)}
.a11y-btn{width:48px;height:48px;border:0;border-radius:10px;display:grid;place-items:center;cursor:pointer;color:#fff;background:#24398A;transition:background .2s,transform .2s}
.a11y-btn:hover{background:#3550B8}
.a11y-btn svg{width:28px;height:28px}
.a11y-open{background:var(--blue)}
.a11y-open[aria-expanded="true"]{background:var(--gold);color:var(--ink)}
.a11y-theme .moon{display:none}
html.a11y-dark .a11y-theme .sun{display:none}
html.a11y-dark .a11y-theme .moon{display:block}
.a11y-theme{background:#1A2A66}
.a11y-panel{position:absolute;right:calc(100% + 10px);top:50%;transform:translateY(-50%);width:330px;max-height:calc(100vh - 40px);overflow:auto;background:#fff;color:#14213D;border-radius:14px;box-shadow:0 24px 60px rgba(12,28,79,.35);border-top:6px solid var(--gold)}
.a11y-panel[hidden]{display:none}
.a11y-head{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.1rem .5rem}
.a11y-head h2{font-size:1.15rem;margin:0;color:#13286B}
.a11y-close{border:0;background:#EEF1F8;color:#13286B;width:34px;height:34px;border-radius:50%;cursor:pointer;font:700 1.2rem/1 var(--body)}
.a11y-sec{padding:.55rem 1.1rem}
.a11y-label{display:block;font-size:.82rem;font-weight:700;color:#566079;margin-bottom:.45rem}
.a11y-seg{display:grid;grid-template-columns:repeat(3,1fr);background:#EEF1F8;border-radius:10px;padding:4px;gap:4px}
.a11y-seg button{border:0;background:none;border-radius:7px;padding:.5rem .3rem;font:700 .9rem var(--body);color:#13286B;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.35rem}
.a11y-seg button[aria-pressed="true"]{background:#fff;box-shadow:0 2px 6px rgba(12,28,79,.18)}
.a11y-seg svg{width:16px;height:16px}
.a11y-size{display:flex;align-items:center;gap:.6rem}
.a11y-size button{width:40px;height:40px;border-radius:10px;border:2px solid #DCE1EC;background:#fff;color:#13286B;font:800 1.15rem var(--body);cursor:pointer}
.a11y-size button:disabled{opacity:.4;cursor:default}
.a11y-size output{flex:1;text-align:center;font:800 1.1rem var(--display);color:#13286B}
.a11y-size .bar{height:6px;border-radius:3px;background:#EEF1F8;margin-top:.5rem;overflow:hidden}
.a11y-size .bar span{display:block;height:100%;background:linear-gradient(90deg,var(--o1),var(--o2),var(--o3),var(--o4));transition:width .2s}
.a11y-list{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.a11y-tool{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;padding:.7rem;border:2px solid #DCE1EC;border-radius:10px;background:#fff;color:#14213D;font:700 .9rem/1.2 var(--body);cursor:pointer;text-align:left}
.a11y-tool svg{width:22px;height:22px;color:#13286B}
.a11y-tool[aria-pressed="true"]{border-color:var(--blue);background:#EAF0FF}
.a11y-tool[aria-pressed="true"]::after{content:"On";font-size:.75rem;color:#fff;background:var(--blue);padding:.1rem .45rem;border-radius:999px}
.a11y-reset{width:100%;margin:.4rem 0 .2rem;padding:.7rem;border:0;border-radius:10px;background:#13286B;color:#fff;font:700 .95rem var(--body);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:.5rem}
.a11y-reset svg{width:18px;height:18px}
.a11y-note{font-size:.8rem;color:#566079;padding:0 1.1rem 1rem;margin:0}
.a11y-guide{position:fixed;left:0;right:0;height:3.2rem;top:0;pointer-events:none;z-index:999;display:none;background:rgba(240,165,0,.12);border-top:3px solid var(--gold);border-bottom:3px solid var(--gold)}
html.a11y-guide-on .a11y-guide{display:block}
@media (max-width:600px){
  .a11y{top:auto;bottom:16px;transform:none}
  .a11y-dock{flex-direction:row}
  .a11y-panel{position:fixed;right:8px;left:8px;bottom:80px;top:auto;transform:none;width:auto;max-height:70vh}
}

/* --- Dark mode: brand colours kept for backgrounds, text and surfaces inverted --- */
html.a11y-dark{color-scheme:dark;--white:#0F1832;--paper:#162143;--ink:#E7ECF8;--muted:#AAB5D3;--line:#2B3A68;--navy:#B4C4FF;--blue:#8FA8FF;--o2:#1D44B8;--o5:#3E5BB8}
html.a11y-dark body{background:#0B1430}
html.a11y-dark .navbar{background:#0A1430;box-shadow:0 2px 0 #050A1C}
html.a11y-dark .menu > li > a:hover,html.a11y-dark .menu > .current-menu-item > a{background:#13286B}
html.a11y-dark .page-hero:not(.c1):not(.c2):not(.c3):not(.c4):not(.c5){--c:#13286B}
html.a11y-dark .figures{background:#0A1430}
html.a11y-dark .sub-menu{background:#13204A}
html.a11y-dark .brandbar,html.a11y-dark .partners-band{background:#fff;--ink:#14213D;--muted:#566079;--line:#DCE1EC;--navy:#13286B;--blue:#1D44B8}
html.a11y-dark .ring-centre{background:#fff}
html.a11y-dark .ring-caption{color:#13286B}
html.a11y-dark .steps li::before,html.a11y-dark .journey li::before{background:#3E5BB8}
html.a11y-dark .filter.is-on,html.a11y-dark .btn-ghost:hover{color:#0B1430}
html.a11y-dark .partner-top img,html.a11y-dark .state-logos img,html.a11y-dark .lead-panel img,html.a11y-dark .donor img,html.a11y-dark .profile-logo,html.a11y-dark .band-logo,html.a11y-dark .band-logos img,html.a11y-dark .signature img,html.a11y-dark .state img{background:#fff;padding:5px;border-radius:8px}
html.a11y-dark .c1 .tag{color:#FFC94D}
html.a11y-dark .cell{background:#2B3A68}

/* --- Colour tools: applied to page content only, never to the tools themselves --- */
html.a11y-grayscale body > *:not(.a11y){filter:grayscale(1)}
html.a11y-negative body > *:not(.a11y){filter:invert(1) hue-rotate(180deg)}
html.a11y-negative body > *:not(.a11y) img{filter:invert(1) hue-rotate(180deg)}
html.a11y-grayscale.a11y-negative body > *:not(.a11y){filter:grayscale(1) invert(1)}
html.a11y-contrast body > *:not(.a11y),html.a11y-contrast body > *:not(.a11y) *:not(svg):not(svg *){background:#000!important;color:#fff!important;border-color:#fff!important;box-shadow:none!important}
html.a11y-contrast body > *:not(.a11y) a,html.a11y-contrast body > *:not(.a11y) a *{color:#FFEB3B!important}
html.a11y-contrast body > *:not(.a11y) img{background:#fff!important}
html.a11y-lightbg body > *:not(.a11y),html.a11y-lightbg body > *:not(.a11y) *:not(svg):not(svg *):not(img){background:#fff!important;color:#111!important;border-color:#999!important;box-shadow:none!important}
html.a11y-lightbg body > *:not(.a11y) a{color:#0B3AA8!important}
html.a11y-underline body > *:not(.a11y) a{text-decoration:underline!important;text-underline-offset:3px}
html.a11y-readable body > *:not(.a11y),html.a11y-readable body > *:not(.a11y) *{font-family:Verdana,Tahoma,Arial,sans-serif!important;letter-spacing:.03em!important;word-spacing:.12em!important}
html.a11y-readable body > *:not(.a11y) p,html.a11y-readable body > *:not(.a11y) li{line-height:1.85!important}
html.a11y-nomotion *,html.a11y-nomotion *::before,html.a11y-nomotion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Dark mode: text that sits on brand-coloured backgrounds keeps its original colour */
html.a11y-dark .menu a,html.a11y-dark .nav-toggle,html.a11y-dark .figures,html.a11y-dark .figures h2,html.a11y-dark .page-hero,html.a11y-dark .page-hero h1,html.a11y-dark .crumbs a,html.a11y-dark .site-footer h3,html.a11y-dark .btn-ghost:hover{color:#fff}
html.a11y-dark .sub-menu a{color:#E7ECF8}
html.a11y-dark .skip,html.a11y-dark .nav-cta,html.a11y-dark .btn-gold,html.a11y-dark .page-hero.c1,html.a11y-dark .page-hero.c1 h1,html.a11y-dark .page-hero.c1 p,html.a11y-dark .page-hero.c1 .crumbs a,html.a11y-dark .c1 .avatar,html.a11y-dark .c1 .person-hover,html.a11y-dark .five-chips a.c1{color:#14213D}
html.a11y-dark .ring a:nth-child(5) .seg{stroke:#3E5BB8}
html.a11y-dark .brand-name{color:#13286B}

/* ===================== v5: demo banner, live, slides, media ===================== */
.demo-banner{background:repeating-linear-gradient(45deg,#FFF1C7 0 14px,#FFE7A0 14px 28px);color:#4A3500;text-align:center;font-size:.88rem;padding:.4rem 1rem;border-bottom:1px solid #E8C55C}
.nav-actions{display:flex;align-items:center;gap:.6rem}
.nav-live{display:inline-flex;align-items:center;gap:.45rem;color:#fff;text-decoration:none;font-weight:700;padding:.5rem .85rem;border:2px solid rgba(255,255,255,.35);border-radius:999px}
.nav-live:hover{border-color:#fff}
.pulse{width:.6rem;height:.6rem;border-radius:50%;background:#FF4D4D;box-shadow:0 0 0 0 rgba(255,77,77,.7);animation:pulse 1.6s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(255,77,77,0)}100%{box-shadow:0 0 0 0 rgba(255,77,77,0)}}
@media (max-width:900px){.nav-actions{margin-left:auto;margin-right:.5rem}.nav-live{padding:.4rem .7rem}}

/* Outcome slideshow */
.slides-section{padding:3rem 0 0}
.slides{--c:var(--navy)}
.slides-viewport{position:relative;border-radius:var(--r);overflow:hidden;aspect-ratio:1200/520;background:var(--paper);box-shadow:0 14px 34px rgba(12,28,79,.14)}
.slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .6s ease;visibility:hidden}
.slide.is-active{opacity:1;visibility:visible}
.slide img{width:100%;height:100%;object-fit:cover}
.slide figcaption{position:absolute;left:1.25rem;bottom:1.25rem;max-width:min(520px,80%);background:rgba(255,255,255,.95);color:#14213D;border-left:6px solid var(--c);border-radius:8px;padding:.8rem 1rem;box-shadow:0 8px 20px rgba(12,28,79,.15)}
.slide figcaption strong{display:block;font-family:var(--display);font-size:1.15rem;color:#13286B}
.slide figcaption span{font-size:.95rem;color:#3D4766}
.slides-bar{display:flex;justify-content:space-between;align-items:center;margin-top:.9rem;gap:1rem}
.slides-dots{display:flex;gap:.5rem}
.dot-btn{width:2.4rem;height:.45rem;border-radius:999px;border:0;background:var(--line);cursor:pointer;padding:0}
.dot-btn.is-on{background:var(--c)}
.slides-ctrl{display:flex;gap:.4rem}
.slides-ctrl button{width:2.6rem;height:2.6rem;border-radius:50%;border:2px solid var(--line);background:var(--white);color:var(--navy);font:700 1.2rem/1 var(--body);cursor:pointer}
.slides-ctrl .s-pause{font-size:.7rem;letter-spacing:-1px}
.slides-note{font-size:.85rem;color:var(--muted);margin:.6rem 0 0;max-width:none}
@media (max-width:600px){.slide figcaption{position:static;max-width:none;border-radius:0}.slides-viewport{aspect-ratio:auto;min-height:260px}.slide img{height:200px}.slide{position:absolute}.slides-viewport{height:330px}}

/* Live radio */
.live-player{background:linear-gradient(140deg,#0C1C4F,#13286B 60%,#1D44B8);color:#fff;border-radius:16px;padding:1.6rem;box-shadow:0 20px 44px rgba(12,28,79,.3)}
.live-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.on-air{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,77,77,.18);color:#FFB3B3;font-weight:700;padding:.3rem .8rem;border-radius:999px;font-size:.9rem}
.live-station{color:#C6CFEA;font-size:.95rem}
.live-wave{display:flex;align-items:center;gap:4px;height:90px;margin:1.4rem 0}
.live-wave span{flex:1;background:linear-gradient(var(--gold),#FF8A3D);border-radius:3px;height:18%;transition:height .3s}
.live-player.is-playing .live-wave span{animation:wave 1.1s ease-in-out infinite}
.live-wave span:nth-child(3n){animation-delay:-.3s!important}.live-wave span:nth-child(4n){animation-delay:-.6s!important}.live-wave span:nth-child(5n){animation-delay:-.15s!important}
@keyframes wave{0%,100%{height:18%}50%{height:95%}}
.live-ctrl{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:1rem}
.live-play{width:64px;height:64px;border-radius:50%;border:0;background:var(--gold);cursor:pointer;display:grid;place-items:center}
.live-play svg,.ep-play svg,.ep-bar-play svg{width:28px;height:28px;fill:#14213D}
.live-play .i-pause,.is-playing .live-play .i-play,.ep-bar-play .i-pause,.ep-bar.is-playing .ep-bar-play .i-play{display:none}
.is-playing .live-play .i-pause,.ep-bar.is-playing .ep-bar-play .i-pause{display:block}
.live-title{font-family:var(--display);font-weight:800;font-size:1.25rem;margin:0}
.live-status{margin:0;color:#C6CFEA;font-size:.92rem}
.live-vol input{width:110px;accent-color:var(--gold)}
.live-note{font-size:.85rem;color:#C6CFEA;margin:1.2rem 0 0}
.live-note a{color:#FFD27A}
.freq-list{list-style:none;padding:0;margin:0;display:grid;gap:.5rem}
.freq-list li{display:grid;grid-template-columns:5.5rem 1fr;gap:.1rem 1rem;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:10px;padding:.75rem 1rem}
.freq{grid-row:span 2;font-family:var(--display);font-weight:800;color:var(--red);font-size:1.05rem}
.freq-list b{color:var(--navy)}
.freq-list li > span:last-child{font-size:.88rem;color:var(--muted)}

/* Episodes */
.lib-search select{font:inherit;padding:.6rem 1rem;border:2px solid var(--line);border-radius:999px;background:var(--white);color:var(--ink)}
.episodes{list-style:none;padding:0;margin:0;display:grid;gap:.75rem}
.ep{display:grid;grid-template-columns:auto 1fr auto;gap:1.1rem;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:1rem 1.2rem}
.ep.is-current{border-color:var(--gold);box-shadow:0 0 0 3px rgba(240,165,0,.25)}
.ep-play{width:52px;height:52px;border-radius:50%;border:0;background:var(--gold);cursor:pointer;display:grid;place-items:center}
.ep h3{font-size:1.08rem;margin:0 0 .2rem}
.ep p{margin:0;color:var(--muted);font-size:.95rem}
.ep-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.3rem}
.ep-meta span{font-size:.8rem;font-weight:700;background:var(--paper);color:var(--navy);padding:.2rem .6rem;border-radius:999px;white-space:nowrap}
.ep-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:16px;z-index:900;width:min(720px,calc(100% - 130px));display:grid;grid-template-columns:auto 1fr auto auto;gap:1rem;align-items:center;background:#0C1C4F;color:#fff;border-radius:14px;padding:.7rem 1rem;box-shadow:0 18px 40px rgba(12,28,79,.4)}
.ep-bar[hidden]{display:none}
.ep-bar-play{width:44px;height:44px;border-radius:50%;border:0;background:var(--gold);cursor:pointer;display:grid;place-items:center}
.ep-bar b{display:block;font-size:.95rem;margin-bottom:.35rem}
.ep-progress{height:6px;background:rgba(255,255,255,.2);border-radius:3px;overflow:hidden;cursor:pointer}
.ep-progress span{display:block;height:100%;width:0;background:var(--gold)}
.ep-time{font-variant-numeric:tabular-nums;color:#C6CFEA;font-size:.9rem}
.ep-bar-close{background:none;border:0;color:#fff;font-size:1.6rem;cursor:pointer;line-height:1}
@media (max-width:600px){.ep{grid-template-columns:auto 1fr}.ep-meta{grid-column:2;flex-direction:row;align-items:flex-start}.ep-bar{width:calc(100% - 24px);bottom:90px}}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.g-item{--c:var(--navy);position:relative;border:0;padding:0;border-radius:var(--r);overflow:hidden;cursor:zoom-in;background:var(--paper);text-align:left;font:inherit}
.g-item img{width:100%;aspect-ratio:1200/520;object-fit:cover;transition:transform .3s}
.g-item:hover img{transform:scale(1.04)}
.g-item span{position:absolute;left:0;right:0;bottom:0;padding:.6rem .8rem;background:linear-gradient(transparent,rgba(12,28,79,.85));color:#DCE3F5;font-size:.82rem}
.g-item span b{display:block;color:#fff;font-size:.95rem}
.g-item::after{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--c)}
.lightbox{border:0;border-radius:var(--r);padding:1rem;max-width:min(1000px,calc(100% - 2rem));background:var(--white);color:var(--ink)}
.lightbox::backdrop{background:rgba(12,28,79,.75)}
.lightbox img{width:100%;border-radius:8px}
.lightbox p{margin:.8rem 0}
.lightbox button{font:inherit;cursor:pointer;background:none}
@media (max-width:900px){.gallery{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.gallery{grid-template-columns:1fr}}

/* FAQ */
.faq-wrap{max-width:860px}
.faq{border:1px solid var(--line);border-radius:12px;background:var(--white);margin-bottom:.75rem;overflow:hidden}
.faq summary{cursor:pointer;list-style:none;padding:1.1rem 3rem 1.1rem 1.3rem;font-family:var(--display);font-weight:700;color:var(--navy);font-size:1.1rem;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:1.2rem;top:50%;transform:translateY(-50%);width:1.8rem;height:1.8rem;border-radius:50%;background:var(--paper);display:grid;place-items:center;font-size:1.2rem}
.faq[open] summary::after{content:"\2212";background:var(--gold);color:#14213D}
.faq[open]{border-color:var(--gold)}
.faq div{padding:0 1.3rem 1.1rem}
.faq p{margin:0;color:var(--muted)}

/* Glossary */
.az{display:flex;flex-wrap:wrap;gap:.35rem}
.az a{width:2.3rem;height:2.3rem;display:grid;place-items:center;border-radius:8px;background:var(--paper);color:var(--navy);font-weight:700;text-decoration:none}
.az a:hover{background:var(--gold);color:#14213D}
.glossary{columns:2;column-gap:3rem}
.g-group{break-inside:avoid;margin-bottom:1.5rem}
.g-group h2{font-size:1.6rem;color:var(--red);margin-bottom:.3rem}
.g-group dl{margin:0}
.g-row{display:grid;grid-template-columns:7rem 1fr;gap:1rem;padding:.5rem 0;border-bottom:1px solid var(--line)}
.g-row dt{font-weight:700;color:var(--navy)}
.g-row dd{margin:0;color:var(--muted)}
@media (max-width:700px){.glossary{columns:1}}

/* Dark mode for new components */
html.a11y-dark .slide figcaption{background:rgba(255,255,255,.96)}
html.a11y-dark .faq[open] summary::after{color:#14213D}
html.a11y-dark .az a:hover{color:#14213D}
html.a11y-dark .demo-banner{color:#4A3500}
.slides.c1,.g-item.c1{--c:var(--o1)}.slides.c2,.g-item.c2{--c:var(--o2)}.slides.c3,.g-item.c3{--c:var(--o3)}.slides.c4,.g-item.c4{--c:var(--o4)}.slides.c5,.g-item.c5{--c:var(--o5)}

/* ===================== v6 ===================== */
/* Where we work: schematic map */
.map-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:2.5rem;align-items:start}
.map-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(4,1fr);gap:8px;aspect-ratio:5/4}
.map-tile{border-radius:12px;background:var(--paper);border:1px dashed var(--line);display:flex;flex-direction:column;justify-content:space-between;padding:.6rem;color:var(--muted);font:inherit;text-align:left;min-height:0}
.map-tile b{font-size:.8rem;line-height:1.15;font-weight:700}
.map-tile.is-efass{border:0;background:var(--bg);color:#fff;cursor:pointer;box-shadow:0 6px 16px rgba(12,28,79,.18);transition:transform .2s,box-shadow .2s,opacity .2s}
.map-tile.is-efass span{font-family:var(--display);font-weight:800;font-size:1.8rem;line-height:1;align-self:flex-end}
.map-tile.is-efass:hover,.map-tile.is-efass:focus-visible,.map-tile.is-on{transform:translateY(-3px) scale(1.03);box-shadow:0 14px 28px rgba(12,28,79,.3)}
.map-tile.is-on{outline:4px solid var(--ink);outline-offset:2px}
.map-grid.dim .map-tile.is-efass:not(.is-hit){opacity:.25}
.map-key{font-size:.85rem;color:var(--muted);margin-top:.6rem}
.map-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:1.6rem;min-height:320px;position:sticky;top:80px}
.map-panel h2{margin-bottom:.4rem}
.map-panel .panel-sub{color:var(--muted);margin:0 0 1rem}
.panel-list{list-style:none;padding:0;margin:0 0 1rem}
.panel-list li{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 0;border-top:1px solid var(--line);font-weight:700}
.panel-list li span{font-weight:400;font-size:.88rem;display:inline-flex;align-items:center;gap:.4rem;color:var(--muted)}
.panel-list li span i{width:.7rem;height:.7rem;border-radius:50%;background:var(--pc)}
.panel-actions{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:center}
.panel-actions a{font-weight:700}
.panel-clear{background:none;border:0;color:var(--muted);text-decoration:underline;cursor:pointer;font:inherit}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1.5rem}
.legend-title{font-weight:700;color:var(--muted);margin-right:.5rem}
.legend-chip{display:inline-flex;align-items:center;gap:.45rem;border:2px solid var(--line);background:var(--white);color:var(--ink);border-radius:999px;padding:.4rem .85rem;font:700 .92rem var(--body);cursor:pointer}
.legend-chip i{width:.8rem;height:.8rem;border-radius:50%;background:var(--pc)}
.legend-chip span{background:var(--paper);border-radius:999px;padding:0 .45rem;font-size:.8rem}
.legend-chip.is-on{border-color:var(--pc);box-shadow:0 0 0 3px color-mix(in srgb,var(--pc) 25%,transparent)}
.across-band{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-top:2rem;padding:1.1rem 1.4rem;background:var(--paper);border-radius:var(--r)}
.across-band p{margin:0}
.across-band div{display:flex;gap:.75rem;flex-wrap:wrap}
.across-chip{display:inline-flex;align-items:center;gap:.6rem;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.35rem .9rem .35rem .45rem;text-decoration:none;color:#13286B;font-weight:700}
.across-chip img{height:26px;width:auto;max-width:70px;object-fit:contain}
@media (max-width:900px){.map-layout{grid-template-columns:1fr}.map-panel{position:static}.map-tile b{font-size:.7rem}.map-tile.is-efass span{font-size:1.3rem}}

/* Home: EFASS at a glance */
.glance{background:linear-gradient(90deg,var(--o1),#F7B733);padding:2.2rem 0}
.glance-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem}
.glance-grid div{border-left:3px solid rgba(20,33,61,.25);padding-left:1rem}
.glance b{display:block;font-family:var(--display);font-weight:800;font-size:clamp(2rem,3.4vw,2.9rem);line-height:1;color:#14213D}
.glance span{color:#3A2E05;font-weight:700;font-size:.95rem}
@media (max-width:900px){.glance-grid{grid-template-columns:repeat(2,1fr)}}

/* Gallery: photo shot list */
.shot-intro{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;align-items:start;margin-bottom:2.5rem}
.shot-group{margin-top:2.5rem}
.shot-group[hidden]{display:none}
.shot-head{--c:var(--navy);display:flex;align-items:center;gap:1rem;padding-bottom:1rem;margin-bottom:1rem;border-bottom:3px solid var(--c)}
.shot-head.c1{--c:var(--o1)}.shot-head.c2{--c:var(--o2)}.shot-head.c3{--c:var(--o3)}.shot-head.c4{--c:var(--o4)}.shot-head.c5{--c:var(--o5)}
.shot-head .o-num{margin:0;flex:none}
.shot-head.c1 .o-num{color:#14213D}
.shot-head h2{font-size:1.35rem;margin:0}
.shot-head p{margin:0;color:var(--muted);font-size:.92rem}
.shot-head a{margin-left:auto;font-weight:700}
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.shot{background:var(--white);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.shot-img{position:relative;border:0;padding:0;cursor:zoom-in;background:var(--paper);display:block}
.shot-img img{width:100%;aspect-ratio:1200/520;object-fit:cover;filter:saturate(.75);opacity:.85;transition:opacity .2s}
.shot-img:hover img{opacity:1}
.shot-status{position:absolute;top:.6rem;left:.6rem;background:rgba(12,28,79,.85);color:#fff;font-size:.78rem;font-weight:700;padding:.25rem .6rem;border-radius:999px;display:inline-flex;align-items:center;gap:.35rem}
.shot-status::before{content:"";width:.9rem;height:.7rem;border:2px solid currentColor;border-radius:3px}
.shot-body{padding:1.1rem 1.2rem 1.2rem;display:flex;flex-direction:column;flex:1}
.shot-body h3{font-size:1.05rem;margin-bottom:.35rem}
.shot-body > p{margin:0 0 .8rem;color:var(--muted);font-size:.93rem}
.consent{margin:auto 0 0!important;font-size:.85rem;color:var(--muted);line-height:1.4}
.consent span{display:inline-block;font-weight:700;font-size:.78rem;padding:.15rem .55rem;border-radius:999px;margin-right:.3rem}
.c-child span{background:#FDE8E9;color:#9E0F17}.c-adult span{background:#E7EDFF;color:#1D44B8}.c-none span{background:#E3F3EA;color:#0B7A3B}
@media (max-width:900px){.shot-intro{grid-template-columns:1fr}.shots{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.shots{grid-template-columns:1fr}.shot-head{flex-wrap:wrap}.shot-head a{margin-left:0}}

/* Side navigation */
.with-side{display:grid;grid-template-columns:240px 1fr;gap:3rem;align-items:start}
.with-side .side-main{min-width:0}
.with-side .side-main .wrap{max-width:none;padding-left:0;padding-right:0}
.with-side .side-main > .section:first-child{padding-top:3.5rem}
.with-side .side-main .section-alt{background:var(--paper);border-radius:var(--r);padding:2.75rem 2.25rem;margin-bottom:2.5rem}
.side-nav{position:sticky;top:80px;padding-top:3.5rem}
.side-title{font-family:var(--display);font-weight:800;color:var(--navy);font-size:1.1rem;margin:0 0 .6rem}
.side-nav ul{list-style:none;margin:0;padding:0;border-left:3px solid var(--line)}
.side-nav li a{display:block;padding:.55rem 0 .55rem 1rem;margin-left:-3px;border-left:3px solid transparent;color:var(--ink);text-decoration:none;font-weight:700;font-size:.97rem}
.side-nav li a:hover{color:var(--blue);border-left-color:#B9C2D8}
.side-nav li a[aria-current="page"]{color:var(--navy);border-left-color:var(--gold);background:linear-gradient(90deg,var(--paper),transparent)}
.side-card{margin-top:1.75rem;background:var(--navy);color:#fff;border-radius:var(--r);padding:1.2rem}
.side-card b{display:block;font-family:var(--display);font-size:1.05rem;margin-bottom:.3rem}
.side-card p{margin:0 0 .8rem;font-size:.9rem;color:#C6CFEA}
.side-card a{color:var(--gold);font-weight:700}
html.a11y-dark .side-card{background:#13286B}
@media (max-width:900px){
  .with-side{grid-template-columns:1fr;gap:0}
  .side-nav{position:static;padding-top:1.25rem}
  .side-nav ul{display:flex;overflow-x:auto;border-left:0;gap:.5rem;padding-bottom:.4rem}
  .side-nav li a{white-space:nowrap;border:2px solid var(--line);border-radius:999px;padding:.4rem .9rem;margin:0}
  .side-nav li a[aria-current="page"]{border-color:var(--gold);background:var(--paper)}
  .side-card{display:none}
  .with-side .side-main .section-alt{padding:2rem 1.25rem}
}

/* Back to top */
.to-top{position:fixed;left:16px;bottom:16px;z-index:800;width:46px;height:46px;border-radius:50%;border:0;background:var(--navy);color:#fff;cursor:pointer;box-shadow:0 8px 20px rgba(12,28,79,.3);opacity:0;pointer-events:none;transition:opacity .2s;display:grid;place-items:center}
.to-top.show{opacity:1;pointer-events:auto}
.to-top::before{content:"";width:12px;height:12px;border-left:3px solid currentColor;border-top:3px solid currentColor;transform:translateY(3px) rotate(45deg)}
html.a11y-dark .to-top{background:#3E5BB8}

/* Cash transfers: eligibility to be confirmed */
.pending{background:var(--paper);border:2px dashed #E2C06A;border-radius:var(--r);padding:1.25rem 1.4rem}
.pending p{margin:.6rem 0 0}
.pending-badge{display:inline-block;background:#FFF1C7;color:#6B4E00;font-weight:700;font-size:.85rem;padding:.25rem .7rem;border-radius:999px}
html.a11y-dark .pending-badge{color:#6B4E00}

/* ===== Section navigation: slim edge tab with a slide-out drawer ===== */
.sect-nav{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:850}
.sect-tab{display:flex;flex-direction:column;align-items:center;gap:.6rem;background:var(--navy);color:#fff;border:0;border-radius:0 12px 12px 0;padding:.9rem .45rem;cursor:pointer;box-shadow:4px 6px 18px rgba(12,28,79,.25);font:700 .85rem var(--body);transition:background .2s,padding .2s}
.sect-tab:hover,.sect-tab[aria-expanded="true"]{background:var(--blue);padding-left:.7rem}
.sect-tab-text{writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.04em}
.sect-tab-icon{width:16px;height:12px;background:linear-gradient(currentColor 0 0) 0 0/100% 2px no-repeat,linear-gradient(currentColor 0 0) 0 50%/70% 2px no-repeat,linear-gradient(currentColor 0 0) 0 100%/100% 2px no-repeat}
.sect-drawer{position:absolute;left:0;top:50%;width:280px;max-height:80vh;overflow:auto;transform:translate(-110%,-50%);background:var(--white);border-radius:0 14px 14px 0;box-shadow:12px 16px 40px rgba(12,28,79,.28);border-top:5px solid var(--gold);padding:1.1rem 1.2rem 1.2rem;transition:transform .25s ease;visibility:hidden}
.sect-nav.open .sect-drawer{transform:translate(0,-50%);visibility:visible}
.sect-nav.open .sect-tab{opacity:0;pointer-events:none}
.sect-head{display:flex;justify-content:space-between;align-items:center}
.sect-head .side-title{margin:0}
.sect-close{border:0;background:var(--paper);color:var(--navy);width:32px;height:32px;border-radius:50%;cursor:pointer;font:700 1.15rem/1 var(--body)}
.sect-where{font-size:.85rem;color:var(--muted);margin:.35rem 0 .8rem}
.sect-drawer ul{list-style:none;margin:0;padding:0;border-left:3px solid var(--line)}
.sect-drawer li a{display:block;padding:.55rem 0 .55rem 1rem;margin-left:-3px;border-left:3px solid transparent;color:var(--ink);text-decoration:none;font-weight:700}
.sect-drawer li a:hover{color:var(--blue);border-left-color:#B9C2D8}
.sect-drawer li a[aria-current="page"]{color:var(--navy);border-left-color:var(--gold);background:linear-gradient(90deg,var(--paper),transparent)}
.sect-drawer .side-card{margin-top:1.1rem}
@media (max-width:600px){.sect-nav{top:auto;bottom:90px;transform:none}.sect-drawer{top:auto;bottom:0;transform:translate(-110%,0)}.sect-nav.open .sect-drawer{transform:none}}
@media (prefers-reduced-motion:reduce){.sect-drawer,.sect-tab{transition:none}}
