
/* Africa Policy Institute — publication library visual refresh
   Image-free editorial cards, colour-led hero panels and responsive layouts. */
:root{
  --api-rust:#b65027;--api-rust-deep:#963d1d;--api-green:#12613f;
  --api-purple:#7650a0;--api-cream:#f5f2e8;--api-yellow:#f6d66b;
  --api-ink:#171717;
}
.page-research-media-review-html .mr-refined-intro,
.page-research-media-review-html .mr-refined-lead,
.page-research-research-notes-html .rn-hero,
.report-hero,
.pub-hero{
  position:relative!important;isolation:isolate;overflow:hidden;
  background:var(--api-rust)!important;color:var(--api-cream)!important;
}
.page-research-media-review-html .mr-refined-intro:before,
.page-research-media-review-html .mr-refined-lead:before,
.page-research-research-notes-html .rn-hero:before,
.report-hero:before,.pub-hero:before{
  content:"";position:absolute;z-index:-1;width:clamp(300px,48vw,690px);
  aspect-ratio:1;border:clamp(42px,7vw,100px) solid rgba(255,220,175,.13);
  border-radius:50%;right:-8%;top:8%;pointer-events:none;
}
.page-research-media-review-html .mr-refined-intro:after,
.page-research-research-notes-html .rn-hero:after,
.report-hero:after,.pub-hero:after{
  content:"";position:absolute;z-index:-1;width:clamp(170px,22vw,310px);
  aspect-ratio:1;border:clamp(26px,4vw,55px) solid rgba(255,220,175,.12);
  border-radius:50%;left:-7%;top:-18%;pointer-events:none;
}
.page-research-media-review-html .mr-refined-intro,
.page-research-media-review-html .mr-refined-lead{padding-top:clamp(130px,16vw,210px)!important;padding-bottom:clamp(70px,9vw,125px)!important}
.page-research-media-review-html .mr-refined-intro h1,
.page-research-media-review-html .mr-refined-lead h1,
.page-research-research-notes-html .rn-hero h1,
.report-hero h1,.pub-hero h1{
  color:var(--api-cream)!important;font-family:"Playfair Display",Georgia,serif!important;
  font-weight:700!important;letter-spacing:-.035em!important;line-height:1.04!important;
}
.page-research-media-review-html .mr-refined-intro p,
.page-research-media-review-html .mr-refined-lead p,
.report-hero p,.pub-hero p{color:rgba(255,250,239,.86)!important}
.page-research-media-review-html .mr-refined-intro .eyebrow,
.page-research-media-review-html .mr-refined-lead .eyebrow,
.report-hero .report-kicker,.pub-hero .pub-eyebrow{
 color:var(--api-yellow)!important;letter-spacing:.13em;text-transform:uppercase;font-weight:800
}
/* Editorial card grids */
.page-research-media-review-html .mr-card,
.report-card,
.page-research-research-notes-html .rn-card,
.pub-card{
 position:relative!important;isolation:isolate;overflow:hidden;
 display:flex!important;flex-direction:column!important;
 min-height:100%;border:1px solid rgba(25,25,25,.08)!important;
 border-radius:3px!important;box-shadow:0 12px 30px rgba(20,20,20,.08)!important;
 text-decoration:none!important;transition:transform .25s ease,box-shadow .25s ease;
}
.page-research-media-review-html .mr-card,
.page-research-research-notes-html .rn-card{background:var(--api-rust)!important;color:var(--api-cream)!important;padding:clamp(22px,2.6vw,34px)!important}
.report-card{background:var(--api-green)!important;color:var(--api-cream)!important;padding:clamp(22px,2.6vw,34px)!important}
.pub-card{background:var(--api-purple)!important;color:var(--api-cream)!important}
.page-research-media-review-html .mr-card:before,
.report-card:before,
.page-research-research-notes-html .rn-card:before,
.pub-card:before{
 content:"";position:absolute;z-index:-1;width:250px;aspect-ratio:1;border:42px solid rgba(255,255,255,.105);
 border-radius:50%;right:-105px;top:-95px;pointer-events:none
}
.page-research-media-review-html .mr-card:hover,.report-card:hover,
.page-research-research-notes-html .rn-card:hover,.pub-card:hover{
 transform:translateY(-6px);box-shadow:0 20px 38px rgba(20,20,20,.16)!important
}
.page-research-media-review-html .mr-card .mr-kicker,
.page-research-media-review-html .mr-card .mr-badge,
.report-card .report-kicker,
.page-research-research-notes-html .rn-card .rn-category,
.pub-card .pub-tag{color:var(--api-yellow)!important;font-weight:800!important;letter-spacing:.08em;text-transform:uppercase}
.page-research-media-review-html .mr-card .mr-title,
.report-card h3,
.page-research-research-notes-html .rn-card h3,
.pub-card h3{
 color:var(--api-cream)!important;font-family:"Playfair Display",Georgia,serif!important;
 font-size:clamp(1.35rem,2vw,1.85rem)!important;line-height:1.2!important;font-weight:700!important;
 margin-top:18px!important
}
.page-research-media-review-html .mr-card .mr-desc,
.report-card p,
.page-research-research-notes-html .rn-card p,
.pub-card p{color:rgba(255,250,239,.82)!important;line-height:1.75!important}
.page-research-media-review-html .mr-card .mr-meta,
.report-card .report-meta,
.page-research-research-notes-html .rn-card .rn-meta,
.pub-card .pub-meta{
 color:rgba(255,250,239,.72)!important;border-color:rgba(255,255,255,.22)!important;
 margin-top:auto!important;padding-top:22px!important
}
.page-research-media-review-html .mr-card .mr-meta{border-top:1px solid rgba(255,255,255,.22);padding-top:18px}
.page-research-research-notes-html .rn-card .rn-arrow,
.pub-card .pub-btn.primary{color:var(--api-yellow)!important}
.pub-card .pub-card-body{display:flex;flex:1;flex-direction:column;padding:clamp(22px,2.6vw,34px)!important}
.pub-card .pub-card-actions{margin-top:auto;padding-top:24px}
.pub-card .pub-btn{border:1px solid rgba(255,255,255,.4)!important;color:var(--api-cream)!important;background:transparent!important;border-radius:2px!important}
.pub-card .pub-btn.primary{background:var(--api-cream)!important;color:var(--api-purple)!important;border-color:var(--api-cream)!important}
.page-research-media-review-html .mr-card .mr-badge{border:1px solid rgba(255,255,255,.35);padding:5px 9px;border-radius:2px}
.page-research-media-review-html .mr-card .mr-badge.premium{background:var(--api-cream);color:var(--api-rust)!important}
.report-card .report-kicker{margin-bottom:12px}
.report-card .report-meta{font-size:.78rem}
.report-card span{color:var(--api-yellow)!important}
.page-research-media-review-html .mr-grid-4,
.page-research-media-review-html .mr-grid-3{align-items:stretch}
.page-research-research-notes-html .rn-masonry{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px!important}
.page-research-research-notes-html .rn-card{height:100%;min-height:390px}
.page-research-research-notes-html .rn-card .rn-meta img,
.page-research-research-notes-html .rn-slide .rn-author img{display:none!important}
.page-research-research-notes-html .rn-card .rn-meta{display:block}
.page-research-research-notes-html .rn-card .rn-meta>div{display:block}
.page-research-research-notes-html .rn-hero{min-height:520px!important}
.page-research-research-notes-html .rn-slide{background:transparent!important}
.page-research-research-notes-html .rn-slide-content{position:relative!important;min-height:520px;display:flex;align-items:flex-end;padding:clamp(32px,7vw,100px)!important;background:transparent!important}
.page-research-research-notes-html .rn-slide-content>div{max-width:1000px}
.page-research-research-notes-html .rn-slide-cta{color:var(--api-yellow)!important}
.report-hero{background:var(--api-green)!important;padding-top:120px!important;padding-bottom:70px!important}
.report-card .media,.pub-cover,.mr-img,.rn-card-media{display:none!important}
.pub-hero{background:var(--api-purple)!important;padding-top:130px!important;padding-bottom:75px!important}
.pub-grid{align-items:stretch}
.pub-card{min-height:100%}
.pub-card .pub-meta>span:last-child{color:rgba(255,250,239,.75)!important}
.page-research-media-review-html .mr-month-section h2{font-family:"Playfair Display",Georgia,serif!important}
@media(max-width:900px){
 .page-research-research-notes-html .rn-masonry{grid-template-columns:repeat(2,minmax(0,1fr))}
 .page-research-research-notes-html .rn-hero,.page-research-research-notes-html .rn-slide-content{min-height:440px!important}
}
@media(max-width:640px){
 .page-research-media-review-html .mr-refined-intro,.page-research-media-review-html .mr-refined-lead{padding-top:118px!important;padding-bottom:55px!important}
 .page-research-research-notes-html .rn-masonry{grid-template-columns:1fr}
 .page-research-research-notes-html .rn-card{min-height:330px}
 .page-research-research-notes-html .rn-slide-content{min-height:420px!important;padding:28px 22px!important}
 .page-research-research-notes-html .rn-hero{min-height:420px!important}
 .report-hero,.pub-hero{padding-top:112px!important;padding-bottom:52px!important}
 .page-research-media-review-html .mr-card,.report-card,.page-research-research-notes-html .rn-card{padding:23px!important}
}
@media(prefers-reduced-motion:reduce){.page-research-media-review-html .mr-card,.report-card,.page-research-research-notes-html .rn-card,.pub-card{transition:none!important}}
