/*
Theme Name: TENS II Redesign
Description: WordPress implementation of the TENS II website redesign handoff.
Version: 1.6.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tens-ii
*/
@font-face{font-family:'Source Sans 3';src:url('assets/fonts/source-sans-3-latin.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap}
.state-emblem{display:block;width:min(100%,340px);margin:auto}.section-subtitle{color:var(--blue);font-size:20px}.state-stats{padding-top:32px}.section-heading{text-align:center;margin-bottom:32px}.card-title{font-size:22px}.geo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px;margin-top:32px}.geo-grid .card img{aspect-ratio:1;object-fit:contain;background:#faf8f5}
.map-replacement{height:auto;object-fit:contain}
.epmis-section .split>img{width:100%;max-width:600px;height:auto;max-height:none;justify-self:center;object-fit:contain}
.section.blue .split p:not([style]),.section.blue .split blockquote{text-align:justify;text-justify:inter-word}
.geo-carousel-layout{display:flex;align-items:center;gap:16px;margin-top:32px}
.geo-carousel-layout>button{flex:0 0 44px;width:44px;height:44px;border:1px solid #ccd5dd;border-radius:50%;background:#fff;color:var(--blue);font-size:22px}
.geo-carousel-layout>button:hover{background:#e8f0f8}
.geo-carousel .geo-grid{display:flex;gap:24px;min-width:0;width:100%;margin:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:12px}
.geo-carousel .geo-grid>.card{flex:0 0 calc((100% - 48px)/3);min-width:0;scroll-snap-align:start}
@media(max-width:760px){.geo-carousel-layout{gap:8px}.geo-carousel-layout>button{flex-basis:36px;width:36px;height:36px}.geo-carousel .geo-grid>.card{flex-basis:100%}}
.steering-hero{margin:0}.steering-hero img{display:block;width:100%;max-height:650px;object-fit:cover;border-radius:16px}.steering-page figcaption{padding-top:10px;color:var(--muted);font-size:15px}.steering-lead{max-width:900px;margin:44px auto 0;text-align:center}.steering-lead p{font-size:20px;color:var(--muted)}.steering-figure{margin:0}.steering-figure img{width:100%;border-radius:14px;object-fit:cover}.steering-people{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}.steering-inline-photo{display:flex;align-items:center;gap:16px;margin:30px 0 0}.steering-inline-photo img{width:110px;height:110px;border-radius:50%;object-fit:cover}.steering-inline-photo figcaption{max-width:220px}.steering-members{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}.steering-member{padding:18px;background:var(--cream);border:1px solid var(--line);border-radius:12px}.steering-member strong,.steering-member span{display:block}.steering-member span{font-size:15px;color:var(--muted);margin-top:5px}.steering-team-heading{margin-top:60px}.steering-back{margin-top:36px}@media(max-width:900px){.steering-members{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.steering-people,.steering-members{grid-template-columns:1fr}.steering-hero img{max-height:420px}}
.programme-detail-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(28px,5vw,80px)}.programme-detail-hero p{font-size:clamp(19px,2vw,25px);line-height:1.65;color:var(--muted)}.programme-detail-hero .button{margin-top:20px}.programme-detail-hero figure,.programme-detail-gallery figure{margin:0}.programme-detail-hero img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:18px}.programme-detail-sections{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.programme-detail-card{padding:clamp(24px,3vw,38px);background:#fff;border:1px solid var(--line);border-radius:16px}.programme-detail-card h2{font-size:clamp(25px,2.2vw,34px)}.programme-detail-card p{color:var(--muted)}.programme-detail-number{display:block;color:var(--blue);font-weight:700;letter-spacing:.15em;margin-bottom:20px}.programme-detail-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin:30px 0}.programme-detail-gallery img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}.programme-detail-gallery figure:only-child{grid-column:1/-1;max-width:760px}@media(max-width:900px){.programme-detail-hero,.programme-detail-sections{grid-template-columns:1fr}}@media(max-width:600px){.programme-detail-gallery{grid-template-columns:1fr}}
.section.epmis-section{padding-top:36px;padding-bottom:12px}
.epmis-section .split{align-items:start}
.epmis-section .split>img{max-height:640px;width:100%;object-fit:contain;object-position:top center}
.map-frame.wide.niger-map{aspect-ratio:900/620;max-width:100%;margin:0}
.video-embed{position:relative;width:100%;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#202c3d}
.video-embed iframe{display:block;width:100%;height:100%;border:0}
.latest-programme{background:#fff;border-top:1px solid var(--line)}
.latest-programme-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.latest-programme-heading h2{margin:0;font-size:30px}
.latest-programme-controls{display:flex;gap:10px}
.latest-programme-controls button{width:46px;height:46px;border-radius:50%;border:1px solid #ccd5dd;background:#fff;color:var(--blue);font-size:22px;line-height:1}
.latest-programme-controls button:hover{background:#e8f0f8}
.latest-programme-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:12px}
.latest-programme-card{flex:0 0 calc((100% - 48px)/3);min-width:0;scroll-snap-align:start;color:var(--ink)}
.latest-programme-card:hover{color:var(--blue);text-decoration:none}
.latest-programme-card .card-body{display:block;font-size:20px;line-height:1.4}
@media(max-width:760px){.latest-programme-heading h2{font-size:25px}.latest-programme-card{flex-basis:82%}}
@media(max-width:760px){.section.epmis-section{padding-top:28px;padding-bottom:12px}.epmis-section .split>img{max-height:420px}}
:root{--blue:#245a91;--navy:#233c59;--gold:#e4ae54;--cream:#faf8f5;--ink:#26313d;--muted:#58636e;--line:#e4e5e7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Source Sans 3',Arial,sans-serif;font-size:18px;line-height:1.65}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.18}h1{font-size:clamp(2.3rem,5vw,3.65rem)}h2{font-size:clamp(1.9rem,3.5vw,2.7rem)}h3{font-size:1.35rem}button,input,textarea{font:inherit}button{cursor:pointer}.container{width:min(100% - 64px,1400px);margin-inline:auto}.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:#fff;padding:12px}.skip-link:focus{left:12px}.site-header{position:sticky;top:0;z-index:50;background:var(--cream);box-shadow:0 2px 12px #0002}.header-inner{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:20px}.government-marks,.partner-marks{display:flex;align-items:center;gap:12px;flex-shrink:0}.government-marks img{width:52px;height:52px;object-fit:contain}.partner-marks img:first-child{width:115px;max-height:64px;object-fit:contain}.partner-marks>img{width:66px;max-height:48px;object-fit:contain}.nav-list{display:flex;justify-content:center;flex-wrap:wrap;gap:3px;list-style:none;padding:0;margin:0}.nav-list a{display:block;padding:10px 12px;border-radius:8px;color:#111;font-size:16px;font-weight:650;white-space:nowrap}.nav-list a:hover,.nav-list a[aria-current="page"],.current-menu-item>a{background:#0001;text-decoration:none}.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:8px 12px}.site-footer{background:#202c3d;color:#cbd0d7;padding:56px 0 24px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}.site-footer h2,.site-footer h3{color:#fff;margin-bottom:12px}.site-footer h2{font-size:24px}.site-footer h3{font-size:17px}.site-footer p{font-size:16px;line-height:1.7}.site-footer a{color:#d9e0eb}.footer-bottom{margin-top:32px;padding-top:20px;border-top:1px solid #ffffff25;text-align:center;font-size:15px}.hero{min-height:720px;display:flex;align-items:flex-end;background:linear-gradient(180deg,#0a14264d,#0a1426d0),url('assets/images/pasted-1789309486080-0.jpg') center 25%/cover}.hero-content{padding-block:72px}.hero h1{color:#f5d28a;margin-bottom:8px}.hero .subtitle{color:#fff;font-size:28px;font-style:italic;margin-bottom:6px}.hero h2{color:#f5d28a;font-size:32px;margin-bottom:28px}.button-row{display:flex;gap:16px;flex-wrap:wrap}.button{display:inline-block;background:var(--blue);color:#fff;padding:13px 26px;border-radius:8px;border:2px solid transparent;font-size:17px;font-weight:700;line-height:1.3}.button:hover{background:#194773;color:#fff;text-decoration:none}.button.gold{background:var(--gold);color:#30261c}.button.outline{background:transparent;border-color:var(--blue);color:var(--blue)}.button.light{background:#ffffff26;border-color:#ffffff80;color:#fff}.stat-strip{background:#fff;border-bottom:1px solid var(--line)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding-block:34px;text-align:center}.stat strong{display:block;font-size:40px;line-height:1.1;color:var(--blue)}.stat span{display:block;font-size:16px;color:var(--muted);margin-top:5px}.section{padding-block:76px}.section.white{background:#fff}.section.blue{background:var(--navy);color:#fff}.section.mist{background:#f0f4f8}.section.center{text-align:center}.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}.split.reverse{grid-template-columns:.85fr 1.15fr}.split p{font-size:19px;line-height:1.75;color:var(--muted)}.blue .split p{color:#ffffffd1}.eyebrow{display:block;color:var(--blue);font-size:15px;font-weight:800;letter-spacing:.09em;margin-bottom:12px}.eyebrow.gold{color:#f3cf88}.feature-image{width:100%;border-radius:16px;object-fit:cover}.governor-image{aspect-ratio:3/4}.map-frame{display:block;border:0;width:100%;max-width:900px;aspect-ratio:11/9;margin:28px auto 0}.map-frame.wide{aspect-ratio:16/9}.page-banner{background:var(--blue);color:#fff;padding:55px 0}.page-banner h1{font-size:clamp(2.3rem,4vw,3rem);margin:0}.page-banner p{max-width:850px;margin:14px 0 0;color:#ffffffdc;font-size:19px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}.card-body{padding:24px}.card h3{margin-bottom:8px}.card p{color:var(--muted);font-size:17px;line-height:1.6}.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.mini-card{padding:28px;background:#fff;border:1px solid var(--line);border-radius:12px}.mini-card p{font-size:17px;color:var(--muted);margin:0}.gallery{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding:8px 32px 20px}.gallery img{width:min(56vw,560px);height:350px;object-fit:cover;border-radius:16px;flex:none;scroll-snap-align:start}.gallery.about img{width:min(70vw,720px);height:450px}.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:24px}.team-card{text-align:center}.team-card img,.portrait-placeholder{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px;background:#e8edf2}.portrait-placeholder{display:flex;align-items:center;justify-content:center;color:var(--blue);font-size:36px;font-weight:800}.team-card strong{display:block;line-height:1.3;margin-top:10px}.team-card span{display:block;color:var(--muted);font-size:15px;line-height:1.4}.team-featured{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-bottom:32px}.team-featured .team-card{display:flex;text-align:left;align-items:center;gap:24px;background:#fff;padding:20px;border:1px solid var(--line);border-radius:14px}.team-featured img{width:45%;max-width:240px;aspect-ratio:4/5}.documents-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}.document-card{display:flex;align-items:center;gap:22px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px}.file-icon{display:grid;place-items:center;width:65px;height:65px;flex:none;border-radius:12px;background:#e8f0f8;color:var(--blue);font-weight:800}.document-card h2{font-size:22px;margin:0}.document-card p{margin:4px 0 0;color:var(--muted);font-size:15px}.document-card .button{margin-left:auto;white-space:nowrap}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.contact-form{display:grid;gap:16px}.contact-form input,.contact-form textarea{width:100%;padding:13px 16px;border:1px solid #c9d0d7;border-radius:8px;background:#fff}.contact-form label{font-weight:650}.contact-form button{justify-self:start}.form-status{padding:12px;border-radius:8px;background:#e8f0f8}.honeypot{position:absolute;left:-9999px}.content-area{max-width:850px}.content-area img{height:auto}.post-list{display:grid;gap:28px}.post-list article{padding-bottom:24px;border-bottom:1px solid var(--line)}@media(max-width:1150px){.header-inner{flex-wrap:wrap;padding-block:12px}.site-nav{order:3;width:100%}.nav-list a{padding:8px 11px}.footer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.container{width:min(100% - 36px,1400px)}.header-inner{min-height:70px}.government-marks img{width:38px;height:38px}.partner-marks img:first-child{width:80px}.partner-marks>img{width:45px}.menu-toggle{display:block;margin-left:auto}.site-nav{display:none}.site-nav.is-open{display:block}.nav-list{display:block}.nav-list a{padding:10px}.hero{min-height:570px}.hero-content{padding-block:45px}.hero .subtitle{font-size:21px}.hero h2{font-size:26px}.section{padding-block:50px}.split,.split.reverse,.contact-grid,.documents-grid,.team-featured{grid-template-columns:1fr;gap:28px}.stats{grid-template-columns:repeat(2,1fr)}.stat strong{font-size:30px}.cards,.mini-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;gap:20px}.gallery img,.gallery.about img{width:82vw;height:260px}.document-card{flex-wrap:wrap}.document-card .button{margin-left:0}.team-featured .team-card{max-width:550px}.map-frame.wide{aspect-ratio:4/3}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.hero{position:relative;isolation:isolate;background:none!important;overflow:hidden}.hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;z-index:0}.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0a14264d,#0a1426d0);z-index:1}.hero-content{position:relative;z-index:2}

/* Responsiveness follow-up pass: closes a few gaps the 1150px/760px
   breakpoints above didn't cover, plus a safety net for default WP
   content (tables/embeds) added below the designed sections. */

/* Featured team cards keep a cramped side-by-side photo+text row at
   narrow widths even after .team-featured itself drops to one column —
   stack each card instead of squeezing the text into ~120px. */
@media(max-width:560px){
  .team-featured .team-card{flex-direction:column;text-align:center;max-width:100%}
  .team-featured img{width:100%;max-width:220px}
}

/* Steering-committee inline photo (circular avatar + caption) can overflow
   the smallest phone widths since neither child was allowed to wrap. */
@media(max-width:480px){
  .steering-inline-photo{flex-wrap:wrap}
  .steering-inline-photo figcaption{max-width:100%}
}

/* Keep the header's three mark clusters on one tidy row on the smallest
   phones instead of an uneven wrap once the nav is hidden behind the
   toggle. */
@media(max-width:420px){
  .header-inner{gap:10px}
  .government-marks,.partner-marks{gap:8px}
  .government-marks img{width:32px;height:32px}
  .partner-marks img:first-child{width:64px}
  .partner-marks>img{width:38px}
  .menu-toggle{padding:6px 9px;font-size:15px}
  .page-banner p{font-size:17px}
}

/* Default WordPress content an editor adds below the designed sections
   (tables, embeds, galleries) isn't covered by the rules above — make
   sure it can't force horizontal scrolling on any screen size. */
.content-area table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}
.content-area iframe,.content-area video,.content-area embed,.content-area object{max-width:100%}
.content-area pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;word-wrap:break-word}
.content-area .wp-block-gallery{flex-wrap:wrap}

/* Tablet tier (iPad Mini/Air/Pro portrait widths, ~768-834px, fall between
   the 760px mobile and 1150px desktop breakpoints above and were falling
   through to a cramped 3-up grid). */
@media(max-width:1024px){
  .cards{grid-template-columns:repeat(2,1fr)}
}

/* ===== Visual polish: hover/focus micro-interactions ===== */
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.button{transition:background-color .2s ease,transform .2s ease,box-shadow .2s ease}
.button:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0002}
.nav-list a{transition:background-color .2s ease}
.card,.mini-card,.document-card,.programme-detail-card,.steering-member{transition:transform .25s ease,box-shadow .25s ease}
.card:hover,.mini-card:hover,.document-card:hover,.programme-detail-card:hover,.steering-member:hover{transform:translateY(-5px);box-shadow:0 16px 32px #00000014}
.card img{transition:transform .4s ease}
.card:hover img{transform:scale(1.05)}
.team-card img,.gallery img{transition:transform .4s ease}
.team-card:hover img,.gallery img:hover{transform:scale(1.04)}
.geo-carousel-layout>button,.latest-programme-controls button{transition:background-color .2s ease,transform .15s ease}
.geo-carousel-layout>button:hover,.latest-programme-controls button:hover{transform:scale(1.08)}
.site-header{transition:box-shadow .25s ease}
.site-header.is-scrolled{box-shadow:0 4px 18px #00000022}

@media(prefers-reduced-motion:no-preference){
  .hero-content{animation:tensHeroIn .7s ease both}
  @keyframes tensHeroIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
  .reveal.is-visible{opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .card,.mini-card,.document-card,.programme-detail-card,.steering-member,.button,.card img,.team-card img,.gallery img{transition:none}
}
