/* API Africa shared hero system */
:root { --api-hero-accent:#DCB441; --api-hero-title-size:clamp(38px,5vw,62px); }
:where(.hero-title,.hero-heading,.hero-content h1,.hero-copy h1,.page-hero h1,.about-hero h1,.event-hero h1,.gallery-hero h1,.policy-hero h1,.leadership-hero h1,.profile-hero h1,.books-hero h1,.article-hero h1,.hero-section h1,.gallery-heading,.api-hero h1,[data-hero] h1) {
  font:500 var(--api-hero-title-size)/1.08 "Playfair Display",Georgia,serif;
  letter-spacing:-.03em; max-width:900px; margin:16px 0;
}
:where(.hero-section,.page-hero,.about-hero,.event-hero,.gallery-hero,.policy-hero,.leadership-hero,.profile-hero,.books-hero,.article-hero,.api-hero,[data-hero]) {
  border-bottom:3px solid var(--api-hero-accent);
}


/* ==========================================================
   Shared editorial hero
   ========================================================== */
.api-page-hero{position:relative;isolation:isolate;min-height:510px;display:flex;align-items:flex-end;overflow:hidden;color:#fff;background:#1D2855;padding:190px 0 30px}
.api-page-hero:before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--hero-image);background-position:center 42%;background-size:cover;transform:scale(1.015)}
.api-page-hero__overlay{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(12,20,47,.94) 0%,rgba(18,29,67,.78) 52%,rgba(18,29,67,.38) 100%),linear-gradient(0deg,rgba(10,18,42,.56),transparent 62%)}
.api-page-hero__rings{position:absolute;right:-130px;top:90px;width:440px;height:440px;border:1px solid rgba(255,255,255,.17);border-radius:50%;pointer-events:none}
.api-page-hero__rings:after{content:"";position:absolute;inset:48px;border:1px solid rgba(220,180,65,.4);border-radius:50%}
.api-page-hero__inner{position:relative;z-index:1}
.api-page-hero h1{max-width:900px;margin:20px 0 15px;font-family:var(--api-display);font-size:clamp(42px,6.3vw,48px);line-height:1.02;letter-spacing:-.045em;font-weight:600;color:#fff}
.api-page-hero p{max-width:720px;color:rgba(255,255,255,.82);font-size:clamp(15px,1.4vw,18px);line-height:1.85;margin-bottom:28px}
.api-page-hero .api-eyebrow{margin-bottom:8px}


/* Editorial hero tuning for working-paper detail pages */
body[data-page*="working-paper"] main>section:first-child{isolation:isolate}
body[data-page*="working-paper"] main>section:first-child h1{max-width:1000px;text-wrap:balance}
body[data-page*="working-paper"] main>section:first-child p{max-width:760px}



/* Working paper hero refinements */
.wp-feature-slide__copy,.wp-article-hero__inner{position:relative;z-index:1}
.wp-article-hero h1,.wp-feature-slide__copy h2{max-width:900px}


/* Homepage current-issue carousel */
body[data-page="index-html"] #hero{min-height:700px;height:min(920px,100svh);max-height:920px}
body[data-page="index-html"] #slides{position:absolute;inset:0;z-index:4}
body[data-page="index-html"] .hero-slide{opacity:0;visibility:hidden;position:absolute;inset:0;z-index:0;transition:opacity .75s ease,visibility .75s ease}
body[data-page="index-html"] .hero-slide.active{opacity:1;visibility:visible;z-index:2}
body[data-page="index-html"] .news-slide__photo{position:absolute;inset:0 0 0 42%;overflow:hidden;background:#101a40}
body[data-page="index-html"] .news-slide__photo img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transform:scale(1.02);transition:transform 7.2s ease}
body[data-page="index-html"] .hero-slide.active .news-slide__photo img{transform:scale(1.08)}
body[data-page="index-html"] .news-slide__overlay{position:absolute;inset:0;background:linear-gradient(90deg,#1D2855 0%,#1D2855 38%,rgba(29,40,85,.96) 48%,rgba(29,40,85,.38) 75%,rgba(29,40,85,.2) 100%);z-index:1}
body[data-page="index-html"] .news-slide__inner{position:relative;z-index:2;height:100%;max-width:1580px;margin:auto;padding:150px 5.5% 90px;display:flex;align-items:center}
body[data-page="index-html"] .news-slide__copy{width:min(58%,720px);opacity:0;transform:translateY(20px);transition:opacity .55s ease .1s,transform .55s ease .1s}
body[data-page="index-html"] .hero-slide.active .news-slide__copy{opacity:1;transform:none}
body[data-page="index-html"] .news-slide__category{color:#e6bf4c;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.22em;margin:0 0 22px}
body[data-page="index-html"] .news-slide__copy h2{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:clamp(36px,4.5vw,68px);line-height:.99;letter-spacing:-.025em;color:#fff;margin:0;max-width:760px;text-wrap:balance}
body[data-page="index-html"] .news-slide__byline{display:flex;align-items:center;gap:12px;margin-top:28px}
body[data-page="index-html"] .news-slide__avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#fff;border:2px solid rgba(255,255,255,.55)}
body[data-page="index-html"] .news-slide__author strong,.news-slide__author small{display:block}
body[data-page="index-html"] .news-slide__author strong{font-size:12px;color:#fff;font-weight:800}
body[data-page="index-html"] .news-slide__author small{font-size:10px;color:rgba(255,255,255,.66);margin-top:4px}
body[data-page="index-html"] .news-slide__meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:18px;color:rgba(255,255,255,.68);font-size:10px;letter-spacing:.04em}
body[data-page="index-html"] .news-slide__link{display:inline-flex;align-items:center;gap:28px;margin-top:28px;color:#f0c64e;font-size:12px;font-weight:800}
body[data-page="index-html"] .news-slide__link span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e5b82e;color:#1d2855;font-size:16px}
@media(max-width:760px){
 body[data-page="index-html"] #hero{height:780px;min-height:740px;max-height:850px}
 body[data-page="index-html"] .news-slide__photo{inset:0}
 body[data-page="index-html"] .news-slide__photo img{object-position:center}
 body[data-page="index-html"] .news-slide__overlay{background:linear-gradient(90deg,rgba(29,40,85,.97),rgba(29,40,85,.83)),linear-gradient(0deg,#1D2855 0%,transparent 100%)}
 body[data-page="index-html"] .news-slide__inner{padding:145px 24px 55px;align-items:flex-end}
 body[data-page="index-html"] .news-slide__copy{width:100%}
 body[data-page="index-html"] .news-slide__copy h2{font-size:clamp(34px,9vw,48px)}
 body[data-page="index-html"] .news-slide__category{margin-bottom:15px}
 body[data-page="index-html"] .news-slide__byline{margin-top:22px}
}
@media(prefers-reduced-motion:reduce){body[data-page="index-html"] .hero-slide,body[data-page="index-html"] .news-slide__copy,body[data-page="index-html"] .news-slide__photo img{transition:none!important}}

/* Homepage hero — full-bleed image with bottom-anchored editorial caption */
body[data-page="index-html"] #hero{
  min-height:750px;height:min(860px,100svh);max-height:680px;
}
body[data-page="index-html"] #slides{position:absolute;inset:0;z-index:4}
body[data-page="index-html"] #slides .hero-slide{
  position:absolute;inset:0;display:flex;align-items:stretch;opacity:0;visibility:hidden;
  transition:opacity .8s ease,visibility .8s ease;z-index:0;
}
body[data-page="index-html"] #slides .hero-slide.active{opacity:1;visibility:visible;z-index:2}
body[data-page="index-html"] .news-slide__photo{position:absolute;inset:0;overflow:hidden;background:#101a40}
body[data-page="index-html"] .news-slide__photo img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:center;
  transform:scale(1.015);transition:transform 8s ease;
}
body[data-page="index-html"] .hero-slide.active .news-slide__photo img{transform:scale(1.055)}
/* 10% navy tint at the top, transitioning to a fully solid navy base. */
body[data-page="index-html"] .news-slide__overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(to top,
    rgba(29,40,85,1) 0%,
    rgba(29,40,85,.96) 13%,
    rgba(29,40,85,.78) 30%,
    rgba(29,40,85,.38) 55%,
    rgba(29,40,85,.10) 100%);
}
body[data-page="index-html"] .news-slide__inner{
  position:relative;z-index:2;width:100%;max-width:1740px;margin:0 auto;
  height:100%;padding:120px 8.5% 58px;display:flex;align-items:flex-end;justify-content:center;
}
body[data-page="index-html"] .news-slide__copy{
  width:100%;max-width:100%;text-align:left;display:flex;flex-direction:column;
  align-items:start;opacity:0;transform:translateY(18px);
  transition:opacity .6s ease .12s,transform .6s ease .12s;
}
body[data-page="index-html"] .hero-slide.active .news-slide__copy{opacity:1;transform:none}
body[data-page="index-html"] .news-slide__category{
  color:#e6bf4c;text-transform:uppercase;font-size:10px;font-weight:800;
  letter-spacing:.22em;margin:0 0 13px;
}
body[data-page="index-html"] .news-slide__copy h2{
  font-family:Georgia,'Times New Roman',serif;font-weight:500;
  font-size:clamp(25px,2.75vw,40px)!important;line-height:1.08;letter-spacing:-.025em;
  color:#fff;margin:0;width:70%;max-width:100%;white-space:nowrap;
  overflow:visible;text-wrap:auto;
}
body[data-page="index-html"] .news-slide__byline{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:17px}
body[data-page="index-html"] .news-slide__avatar{width:34px;height:34px;border-radius:50%;object-fit:cover;background:#fff;border:1.5px solid rgba(255,255,255,.7)}
body[data-page="index-html"] .news-slide__author{text-align:left}
body[data-page="index-html"] .news-slide__author strong,.news-slide__author small{display:block}
body[data-page="index-html"] .news-slide__author strong{font-size:11px;color:#fff;font-weight:800}
body[data-page="index-html"] .news-slide__author small{font-size:9px;color:rgba(255,255,255,.68);margin-top:3px}
body[data-page="index-html"] .news-slide__meta{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 15px;margin-top:9px;color:rgba(255,255,255,.68);font-size:9px;letter-spacing:.04em}
body[data-page="index-html"] .news-slide__link{display:none}
@media(max-width:760px){
 body[data-page="index-html"] #hero{height:660px;min-height:660px;max-height:690px}
 body[data-page="index-html"] .news-slide__overlay{background:linear-gradient(to top,rgba(29,40,85,1) 0%,rgba(29,40,85,.93) 25%,rgba(29,40,85,.55) 60%,rgba(29,40,85,.1) 100%)}
 body[data-page="index-html"] .news-slide__inner{padding:110px 20px 100px}
 body[data-page="index-html"] .news-slide__copy h2{font-size:clamp(27px,5.4vw,36px);white-space:normal;text-wrap:balance;line-height:1.08}
 body[data-page="index-html"] .news-slide__category{font-size:9px}
 body[data-page="index-html"] .news-slide__avatar{width:30px;height:30px}
 body[data-page="index-html"] .news-slide__meta{font-size:8px}

 body[data-page="index-html"] .news-slide__copy h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: clamp(25px, 2.75vw, 48px);
    line-height: 1.3;
    letter-spacing: -.025em;
    color: #fff;
    margin: 0;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-wrap: auto;
}
}
@media(prefers-reduced-motion:reduce){body[data-page="index-html"] .hero-slide,body[data-page="index-html"] .news-slide__copy,body[data-page="index-html"] .news-slide__photo img{transition:none!important}}


/* Homepage hero — discreet, accessible manual carousel controls */
body[data-page="index-html"] .api-hero-controls{
  position:absolute;z-index:12;left:50%;bottom:28px;transform:translateX(-50%);
  display:flex;align-items:center;justify-content:center;gap:17px;
  padding:8px 12px;backdrop-filter:blur(8px);

}
body[data-page="index-html"] .api-hero-arrow{
  width:34px;height:34px;display:grid;place-items:center;color:#fff;
  font-size:17px;line-height:1;transition:color .2s,border-color .2s,background .2s;
}
body[data-page="index-html"] .api-hero-arrow:hover,
body[data-page="index-html"] .api-hero-arrow:focus-visible{
  color:#1d2855;background:#e2bd45;border-color:#e2bd45;
}
body[data-page="index-html"] .api-hero-dots{display:flex;align-items:center;justify-content:center;gap:9px}
body[data-page="index-html"] .api-hero-dot{
  width:7px;height:7px;min-width:7px;padding:0;border:0;border-radius:50%;
  background:rgba(255,255,255,.48);cursor:pointer;transition:width .2s,background .2s,transform .2s;
}
body[data-page="index-html"] .api-hero-dot.is-active{width:22px;border-radius:8px;background:#e2bd45}
body[data-page="index-html"] .api-hero-dot:hover{background:#e2bd45;transform:scale(1.15)}
body[data-page="index-html"] .api-hero-controls button:focus-visible{outline:2px solid #e2bd45;outline-offset:4px}
@media(max-width:760px){
 body[data-page="index-html"] .api-hero-controls{bottom:14px;gap:11px;padding:6px 9px}
 body[data-page="index-html"] .api-hero-arrow{width:31px;height:31px}
 body[data-page="index-html"] .api-hero-dots{gap:7px}
 body[data-page="index-html"] .api-hero-dot{width:6px;height:6px;min-width:6px}
 body[data-page="index-html"] .api-hero-dot.is-active{width:18px}
 body[data-page="index-html"] .news-slide__link{
   display:inline-flex!important;align-items:center;gap:12px;margin-top:16px!important;
   min-height:42px;padding:9px 13px;background:#e2bd45;color:#17234d!important;
   font-size:11px!important;font-weight:800;border:1px solid #e2bd45;
 }
 body[data-page="index-html"] .news-slide__link span{width:24px;height:24px;background:#1d2855;color:#fff;font-size:13px}
}
