/* AfriRadar, on the brand kit (Desktop/AfriRadar/Brand, guide page 3).
   Midnight ink carries the header, hero, stats and footer; paper and white carry the data.
   Emerald is the one accent: bright on ink, deep on paper. Gold appears once per view at most.
   Inter only, sentence case, tight display tracking (brand guide), tabular figures for data. */
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --max: 1280px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --sec: clamp(3.5rem, 7vw, 6.5rem);
  --night: #060c17;
  --ink: #0a1322;
  --ink2: #14203a;
  --emerald: #1dbf8b;
  --emerald-deep: #0b7a57;
  --gold: #f2b33d;
  --paper: #f6f4ef;
  --white: #fff;
  --line: #e2ded5;
  --line-dark: rgba(255, 255, 255, .14);
  --slate: #566275;
  --mist: #9aa7ba;
  --up: #0b7a57;
  --down: #b42318;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  /* z-index scale */
  --z-skip: 30;
  --z-head: 20;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); font-feature-settings: "cv11" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
::selection { background: var(--emerald); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 0; z-index: var(--z-skip); padding: .6rem 1rem; background: var(--emerald); color: var(--ink); font-weight: 600; }
.skip:focus { left: 1rem; }
p, li { text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 900px; }
.band { padding: var(--sec) 0; }
.band--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.band--brand, .band--ink { background: var(--ink); color: var(--white); }
.band--night { background: var(--night); color: var(--white); }
.band--paper { background: var(--paper); }

/* labels: sentence case, never all caps */
.eyebrow { margin: 0 0 1rem; color: var(--emerald-deep); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.band--brand .eyebrow, .band--ink .eyebrow, .band--night .eyebrow { color: var(--emerald); }

/* type scale */
h1, h2, h3 { text-wrap: balance; }
.h-xl { margin: 0 0 1.4rem; font-size: clamp(2.6rem, 5.4vw, 5.5rem); line-height: 1; font-weight: 750; letter-spacing: -.04em; overflow-wrap: anywhere; }
.h-xl--fund { font-size: clamp(2.2rem, 4.4vw, 4.25rem); }
.h-l { margin: 0 0 1.25rem; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; font-weight: 750; letter-spacing: -.035em; }
.h-m { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.section-gap { margin-top: 3.5rem; }
.lead { max-width: 44rem; margin: 0 0 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; }
.band--brand .lead, .band--ink .lead { color: #c9d2df; }
.small { font-size: .9rem; color: var(--slate); max-width: 52rem; }
.source { margin: 0; font-size: .92rem; color: var(--slate); }
.source a { color: var(--ink); }
.more { font-weight: 600; color: var(--emerald-deep); }
.band--brand .more, .band--ink .more { color: var(--emerald); }

/* header */
.site-head { position: sticky; top: 0; z-index: var(--z-head); background: var(--ink); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; min-height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.3rem; font-weight: 750; letter-spacing: -.04em; text-decoration: none; }
.logo svg { width: 2rem; height: 2rem; flex: none; }
.site-head nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.site-head nav a { padding: .35rem 0; color: #c9d2df; font-size: .95rem; font-weight: 500; text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--white); text-decoration: underline; text-decoration-color: var(--emerald); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.site-head nav a.api { padding: .35rem .8rem; border: 1px solid var(--emerald); border-radius: 999px; color: var(--emerald); }
.site-head nav a.api:hover { background: var(--emerald); color: var(--ink); text-decoration: none; }

/* buttons */
.btn { display: inline-block; margin: .3rem .6rem .3rem 0; padding: .85rem 1.3rem; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--white); font-size: .98rem; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--ink2); }
.btn--quiet { background: transparent; color: var(--ink); }
.btn--quiet:hover { background: var(--paper); }
.btn--light { border-color: var(--white); background: var(--white); color: var(--ink); }
.btn--light:hover { background: #e6ebf2; }
.btn--ghost { border-color: rgba(255, 255, 255, .4); background: transparent; color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }

/* hero: copy on the left, this week's readout on the radar */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 7vw, 6.5rem) 0 0; }
.hero::before { content: ""; position: absolute; right: -18rem; top: -10rem; width: 62rem; height: 62rem; background: url(/radar.svg) center / contain no-repeat; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.readout { border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(20, 32, 58, .82); padding: 1.5rem 1.6rem 1.2rem; }
.readout-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin: 0 0 1rem; font-size: .9rem; color: var(--mist); }
.readout-head b { color: var(--white); font-weight: 600; }
.readout ol { margin: 0; padding: 0; list-style: none; }
.readout li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1.25rem; padding: .8rem 0; border-top: 1px solid var(--line-dark); font-variant-numeric: tabular-nums; }
.readout .name { grid-column: 1; grid-row: 1; color: var(--white); font-weight: 600; }
.readout .name a { color: inherit; text-decoration: none; }
.readout .name a:hover { text-decoration: underline; }
.readout .sub { grid-column: 1; grid-row: 2; color: var(--mist); font-size: .85rem; }
.readout .val { grid-column: 2; grid-row: 1 / span 2; align-self: center; white-space: nowrap; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.readout li:first-child .val { color: var(--gold); }
.readout-foot { margin: .9rem 0 0; font-size: .85rem; color: var(--mist); }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-dark); }
.hero-stats div { padding: 1.6rem 1.5rem 2.2rem 0; }
.hero-stats div + div { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2rem 2.5rem; }
.stats .stat { font-size: clamp(1.75rem, 2.8vw, 2.6rem); }
.stats p, .hero-stats p { margin: 0; }
.stat { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 750; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stats .stat { font-size: clamp(1.5rem, 2.2vw, 2.3rem); }
.hero .h-xl { font-size: clamp(2.5rem, 4.6vw, 4.75rem); }
.stat-label { margin-top: .6rem !important; color: var(--mist); font-size: .95rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; font-variant-numeric: tabular-nums; }
th, td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--paper); color: var(--slate); font-size: .85rem; font-weight: 600; white-space: nowrap; }
th button { all: unset; cursor: pointer; }
th button:hover { color: var(--ink); }
th button:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }
th[aria-sort="ascending"] button::after { content: " \2191"; color: var(--emerald-deep); }
th[aria-sort="descending"] button::after { content: " \2193"; color: var(--emerald-deep); }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:hover { background: #fbfaf6; }
td a { font-weight: 600; color: var(--ink); text-decoration-color: var(--line); }
td a:hover { text-decoration-color: var(--emerald-deep); }
.manager { margin-top: .15rem; color: var(--slate); font-size: .87rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.mark { color: var(--slate); }

/* category cards: a 3 x 3 hairline grid, so nine categories never leave a hole */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.card { position: relative; display: block; padding: 1.7rem 1.8rem; background: var(--white); text-decoration: none; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--emerald-deep); transform: scaleX(0); transform-origin: left; transition: transform .18s ease-out; }
.card:hover::before, .card:focus-visible::before { transform: scaleX(1); }
.card h3 { margin: 0 0 .45rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--slate); font-variant-numeric: tabular-nums; }
.band--ink .grid { border-color: var(--line-dark); background: var(--line-dark); }
.band--ink .card { background: var(--ink2); color: var(--white); }
.band--ink .card p { color: var(--mist); }
.band--ink .card::before { background: var(--emerald); }

/* two columns of copy and data */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.band--ink .table-wrap { border-color: var(--line-dark); background: var(--ink2); }
.band--ink table th { background: rgba(255, 255, 255, .04); color: var(--mist); }
.band--ink th, .band--ink td { border-color: var(--line-dark); }
.band--ink tbody tr:hover { background: rgba(255, 255, 255, .03); }
.checks { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checks li { padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid var(--emerald-deep); }
.code { display: block; margin: 1.25rem 0 0; padding: 1rem 1.2rem; border-radius: 10px; background: var(--ink); color: #dfe6f0; font: 500 .92rem/1.6 Consolas, "SFMono-Regular", Menlo, monospace; overflow-x: auto; }

/* charts */
figure { margin: 0; }
figcaption { margin-bottom: .6rem; color: var(--slate); font-size: .92rem; font-weight: 600; }
.two-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2rem; }
.chart { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.chart .gridline { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--slate); font: 12px var(--font); }
.chart .line { fill: none; stroke: var(--emerald-deep); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-dot, .chart .end-dot { fill: var(--emerald-deep); }
.chart-phone { display: none; }

/* pages */
.page-head { border-bottom: 1px solid var(--line); }
.crumbs { margin-bottom: 1.5rem; font-size: .9rem; color: var(--slate); }
.crumbs a { color: var(--slate); }
.prose { max-width: 46rem; }
.prose h2 { margin: 2.75rem 0 .75rem; font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; }
.prose p, .prose li { line-height: 1.7; }
.notice { margin: 0; padding: 1.1rem 1.3rem; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: var(--paper); }

/* footer */
.site-foot { padding: clamp(3.5rem, 6vw, 5rem) 0 2rem; background: var(--night); color: var(--white); }
.site-foot .small { color: var(--mist); }
.site-foot p { max-width: 40rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.site-foot nav { display: flex; flex-direction: column; gap: .55rem; }
.site-foot nav a { color: #c9d2df; text-decoration: none; }
.site-foot nav a:hover { color: var(--white); text-decoration: underline; }
.foot-note { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); color: var(--mist); }
.logo--foot { margin-bottom: 1rem; }

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero::before { right: -24rem; top: auto; bottom: -20rem; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats div:nth-child(n + 3) { border-top: 1px solid var(--line-dark); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
  th, td { padding: .6rem .7rem; }
  .site-head { position: static; }
  .head-row { padding-top: .75rem; padding-bottom: .75rem; }
  .site-head nav { gap: .2rem 1.1rem; }
}
@media (max-width: 600px) {
  .chart-desktop { display: none; }
  .chart-phone { display: block; }
  .grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div { padding-right: .75rem; }
  .hero-stats div + div { padding-left: .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head nav, .site-foot, .btn { display: none; } .site-head { position: static; } }
