/* ============================================================
   AID homepage v2 (index-v2.php) — hero, snapshot, pathways and map enhancements
   Calm institutional style: white space, restrained colour, SVG icons.
   ============================================================ */
:root {
    --v2-brand: #5D0C34;
    --v2-brand-soft: #fdf2f7;
    --v2-ink: #0f172a;
    --v2-text: #334155;
    --v2-mute: #64748b;
    --v2-line: #e2e8f0;
}

/* ── Hero ───────────────────────────────────────────────── */
.v2-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-brand); margin: 0 0 14px; }
.hero-heading { text-wrap: balance; }
.v2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 16px; }
.v2-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.v2-btn:active { transform: translateY(1px); }
.v2-btn-primary { background: var(--v2-brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(93, 12, 52, .6); }
.v2-btn-primary:hover { background: #7a1045; color: #fff; }
.v2-btn-ghost { background: #fff; color: var(--v2-brand); border: 1.5px solid #e5c6d4; }
.v2-btn-ghost:hover { border-color: var(--v2-brand); background: var(--v2-brand-soft); }
.v2-btn-link { color: var(--v2-text); padding-left: 6px; padding-right: 6px; }
.v2-btn-link:hover { color: var(--v2-brand); }
.v2-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; margin: 0 0 30px; }
.v2-quick span { color: var(--v2-mute); font-weight: 500; }
.v2-quick a { color: var(--v2-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.v2-quick a:hover { color: var(--v2-brand); border-bottom-color: currentColor; }
.v2-stats .hero-stat-value { font-variant-numeric: tabular-nums; }

/* ── Shared section frame ───────────────────────────────── */
.v2-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.v2-snap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.v2-snap-head h2 { font-size: 24px; font-weight: 700; color: var(--v2-ink); margin: 0; letter-spacing: -.01em; }
.v2-snap-head p { font-size: 14px; color: var(--v2-mute); margin: 0; }

/* ── Infrastructure snapshot ────────────────────────────── */
.v2-snapshot { padding: 48px 0 8px; background: #fff; }
.v2-snap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--v2-line); border-radius: 14px; overflow: hidden; background: #fff; }
.v2-snap { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--v2-line); min-width: 0; }
.v2-snap:last-child { border-right: 0; }
.v2-snap-label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-mute); }
.v2-snap strong { font-size: 28px; font-weight: 700; color: var(--v2-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.v2-snap-note { font-size: 13px; color: var(--v2-mute); line-height: 1.45; }
.v2-snap-note b { color: var(--v2-ink); font-weight: 700; }
.v2-phase { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #f1f5f9; margin: 9px 0 6px; }
.v2-phase i { display: block; height: 100%; }

/* ── Audience pathways ──────────────────────────────────── */
.v2-paths { padding: 64px 0 56px; background: #f8fafc; border-top: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); }
.v2-path-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.v2-path { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--v2-line); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.v2-path:hover { border-color: #d8b4c6; box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35); transform: translateY(-2px); }
.v2-path-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--v2-brand-soft); color: var(--v2-brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.v2-path-icon svg { width: 22px; height: 22px; }
.v2-path b { font-size: 16px; color: var(--v2-ink); }
.v2-path span { font-size: 13.5px; color: var(--v2-text); line-height: 1.55; flex: 1; }
.v2-path em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--v2-brand); }
.v2-desk { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 22px; padding: 26px 28px; background: #0f172a; color: #cbd5e1; border-radius: 14px; }
.v2-desk-k { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f3c6d9; }
.v2-desk h3 { font-size: 21px; color: #fff; margin: 6px 0 6px; letter-spacing: -.01em; }
.v2-desk p { font-size: 14px; line-height: 1.6; margin: 0; max-width: 680px; }
.v2-desk-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.v2-desk .v2-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.v2-desk .v2-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.v2-path-more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 14px; }
.v2-path-more a { color: var(--v2-text); font-weight: 600; text-decoration: none; }
.v2-path-more a:hover { color: var(--v2-brand); text-decoration: underline; }

/* ── What is AID + four square cards ────────────────────── */
.v2-about { padding: 64px 0 56px; background: #fff; }
.v2-about-head { max-width: 860px; margin-bottom: 28px; }
.v2-about-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-brand); }
.v2-about-head h2 { font-size: 30px; line-height: 1.2; color: var(--v2-ink); margin: 8px 0 12px; letter-spacing: -.02em; }
.v2-about-head p { font-size: 16px; line-height: 1.65; color: var(--v2-text); margin: 0; }
.v2-about-head b { color: var(--v2-ink); font-variant-numeric: tabular-nums; }
.v2-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.v2-card { aspect-ratio: 1 / 1; perspective: 1400px; min-width: 0; }
.v2-card-inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2, .75, .2, 1); transform-style: preserve-3d; }
.v2-card.is-open .v2-card-inner { transform: rotateY(180deg); }
.v2-card-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--v2-line); backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: left; font: inherit; color: inherit; overflow: hidden; }
button.v2-card-face { cursor: pointer; transition: border-color .2s, box-shadow .25s; }
button.v2-card-face:hover { border-color: #d8b4c6; box-shadow: 0 22px 40px -26px rgba(15, 23, 42, .45); }
button.v2-card-face:focus-visible { outline: 2px solid var(--v2-brand); outline-offset: 3px; }
.v2-card-front::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--v2-brand); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
button.v2-card-front:hover::after { transform: scaleX(1); }
.v2-card-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--v2-brand-soft); color: var(--v2-brand); margin-bottom: 18px; flex-shrink: 0; }
.v2-card-icon svg { width: 25px; height: 25px; }
.v2-card-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-mute); }
.v2-card-title { font-size: 21px; font-weight: 700; color: var(--v2-ink); line-height: 1.25; margin: 6px 0 10px; letter-spacing: -.01em; }
.v2-card-lead { font-size: 14px; line-height: 1.6; color: var(--v2-text); flex: 1; }
.v2-card-cta { margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--v2-brand); display: inline-flex; gap: 6px; align-items: center; }
.v2-card-cta i { font-style: normal; transition: transform .2s; }
button.v2-card-front:hover .v2-card-cta i { transform: translateX(4px); }
.v2-card-back { transform: rotateY(180deg); background: #0f172a; border-color: #0f172a; color: #cbd5e1; padding: 18px 20px 16px; }
.v2-card-back-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.v2-card-back-head span { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.v2-card-close { width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.v2-card-close:hover { background: rgba(255, 255, 255, .1); }
.v2-svc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 0; }
.v2-svc li { border-top: 1px solid rgba(255, 255, 255, .1); }
.v2-svc li:first-child { border-top: 0; }
.v2-svc a { display: block; padding: 7px 0; text-decoration: none; }
.v2-svc b { display: block; font-size: 13px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-svc span { display: block; font-size: 11.5px; color: #94a3b8; margin-top: 1px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-svc a:hover b, .v2-svc a:focus b { color: #f3c6d9; }
.v2-card-more { font-size: 13px; font-weight: 700; color: #f3c6d9; text-decoration: none; margin-top: auto; padding-top: 6px; }
.v2-card-more:hover { text-decoration: underline; }
.v2-card-invest .v2-card-face { background: var(--v2-brand); border-color: var(--v2-brand); color: rgba(255, 255, 255, .86); }
.v2-card-invest .v2-card-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.v2-card-invest .v2-card-kicker { color: #f3c6d9; }
.v2-card-invest .v2-card-title { color: #fff; }
.v2-card-invest .v2-card-lead { color: rgba(255, 255, 255, .84); }
.v2-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 12px; }
.v2-card-invest .v2-card-lead { flex: 0 1 auto; }
.v2-card-invest .v2-card-actions { margin-top: auto; }
.v2-card-invest .v2-btn { padding: 11px 18px; }
@media (max-width: 1320px) and (min-width: 1181px) { .v2-card-face { padding: 22px; } .v2-card-title { font-size: 19px; } .v2-card-icon { margin-bottom: 14px; } }
.v2-card-invest .v2-btn-primary { background: #fff; color: var(--v2-brand); box-shadow: none; border-radius: 0; }
.v2-card-invest .v2-btn-primary:hover { background: #fdf2f7; color: var(--v2-brand); }
.v2-card-link { font-size: 13px; font-weight: 600; color: #fff; text-decoration: none; opacity: .85; }
.v2-card-link:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 1180px) { .v2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .v2-about { padding: 44px 0 40px; }
    .v2-about-head h2 { font-size: 24px; }
    .v2-cards { grid-template-columns: 1fr; }
    .v2-card { aspect-ratio: auto; min-height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
    .v2-card-inner { transition: none; }
    .v2-card.is-open .v2-card-inner { transform: none; }
    .v2-card.is-open .v2-card-front { visibility: hidden; }
    .v2-card-back { transform: none; visibility: hidden; }
    .v2-card.is-open .v2-card-back { visibility: visible; }
}

/* ── Map: clusters ──────────────────────────────────────── */
.aidp-cluster { background: transparent; }
.aidp-cl { border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .55); transition: transform .15s; cursor: pointer; }
.aidp-cl:hover { transform: scale(1.08); }
.aidp-cl span { width: 68%; height: 68%; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font: 700 13px/1 Inter, system-ui, sans-serif; color: var(--v2-ink); font-variant-numeric: tabular-nums; }
.marker-cluster-anim .leaflet-marker-icon, .marker-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }

/* ── Map: transitions ───────────────────────────────────── */
/* View switches crossfade the data layers */
#africa-map .leaflet-overlay-pane, #africa-map .leaflet-marker-pane, #africa-map .leaflet-choroplethPane-pane, #africa-map .leaflet-tooltip-pane { transition: opacity .17s ease; }
#africa-map.aidp-fade .leaflet-overlay-pane, #africa-map.aidp-fade .leaflet-marker-pane, #africa-map.aidp-fade .leaflet-choroplethPane-pane { opacity: 0; }
/* Countries sweep in west → east, then respond smoothly to hover */
#africa-map path.aidp-cpath { transition: fill-opacity .25s ease, stroke-width .2s ease, fill .3s ease, stroke .2s ease; }
#africa-map path.aidp-sweep { animation: aidpCountryIn .55s cubic-bezier(.2, .7, .2, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes aidpCountryIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
/* Clusters and pins pop in after a view change */
.aidp-entering .aidp-cl, .aidp-entering .aidp-pin > div { animation: aidpPop .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.aidp-entering .aidp-pin > div { transform-origin: 50% 100%; }
@keyframes aidpPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
/* Historical timeline */
.tl-pt.tl-new { animation: tlPop .5s cubic-bezier(.2, 1.6, .4, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes tlPop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.tl-ring { animation: tlRing 1s ease-out both; transform-box: fill-box; transform-origin: center; pointer-events: none; }
@keyframes tlRing { from { opacity: .9; transform: scale(.25); } to { opacity: 0; transform: scale(1.6); } }
.tl-fade { animation: aidpFade .9s ease both; }
#tlYearLabel.tl-tick { animation: tlTick .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes tlTick { from { opacity: 0; transform: translateY(40%); filter: blur(2px); } to { opacity: 1; transform: translateY(0); filter: none; } }
@media (prefers-reduced-motion: reduce) {
    #africa-map path.aidp-sweep, .aidp-entering .aidp-cl, .aidp-entering .aidp-pin > div, .tl-pt.tl-new, .tl-ring, #tlYearLabel.tl-tick { animation: none; }
}

/* ── Map: basemap switcher ──────────────────────────────── */
.aidp-basemaps { display: flex; gap: 2px; padding: 3px; background: rgba(255, 255, 255, .96) !important; border-radius: 10px !important; border: 1px solid rgba(15, 23, 42, .12) !important; box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .35) !important; }
.aidp-basemaps button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 7px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; font: 600 10.5px/1 Inter, system-ui, sans-serif; color: var(--v2-text); }
.aidp-basemaps button i { width: 30px; height: 20px; border-radius: 4px; border: 1px solid rgba(15, 23, 42, .15); display: block; }
.aidp-basemaps button:hover { background: #f1f5f9; }
.aidp-basemaps button.on { background: var(--v2-brand-soft); color: var(--v2-brand); }
.aidp-basemaps button.on i { outline: 2px solid var(--v2-brand); outline-offset: 1px; }

/* ── Map: spotlight ─────────────────────────────────────── */
.aidp-label { background: transparent; border: 0; }
.aidp-label span { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; font: 800 11px/1 Inter, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #0f172a; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; animation: aidpFade .6s .4s both; }
[data-basemap="dark"] .aidp-label span, [data-basemap="satellite"] .aidp-label span { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .7); }
.aidp-draw { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: aidpDraw 1.6s .35s ease-out forwards; }
.aidp-country { animation: aidpFade .5s both; }
.aidp-pulse { background: transparent; }
.aidp-pulse i { position: absolute; inset: 0; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 0 var(--c); animation: aidpPulse 1.8s ease-out infinite; }
/* While a project is spotlit, other routes, pins and clusters step back */
.aidp-spotlit .leaflet-overlay-pane, .aidp-spotlit .leaflet-marker-pane, .aidp-spotlit .leaflet-choroplethPane-pane { opacity: .28; transition: opacity .4s; }
.leaflet-overlay-pane, .leaflet-marker-pane { transition: opacity .4s; }
.aidp-chip { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1001; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 140px); padding: 8px 8px 8px 14px; background: rgba(255, 255, 255, .97); border: 1px solid rgba(15, 23, 42, .12); border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .45); font: 13px/1.2 Inter, system-ui, sans-serif; animation: aidpFade .3s both; }
.aidp-chip i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.aidp-chip b { color: var(--v2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.aidp-chip span { color: var(--v2-mute); white-space: nowrap; }
.aidp-chip button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #f1f5f9; color: var(--v2-text); font-size: 17px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.aidp-chip button:hover { background: #e2e8f0; }
@keyframes aidpDraw { to { stroke-dashoffset: 0; } }
@keyframes aidpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aidpPulse { 0% { box-shadow: 0 0 0 0 rgba(93, 12, 52, .45); } 100% { box-shadow: 0 0 0 16px rgba(93, 12, 52, 0); } }

/* ── Map: mobile touch guard ────────────────────────────── */
.aidp-veil { position: absolute; inset: 0; z-index: 999; border: 0; background: rgba(15, 23, 42, .08); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 72px; cursor: pointer; }
.aidp-veil span { background: rgba(15, 23, 42, .82); color: #fff; font: 600 13px/1 Inter, system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; }
.aidp-done { display: none; position: absolute; top: 12px; right: 12px; z-index: 1002; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--v2-brand); color: #fff; font: 600 13px/1 Inter, system-ui, sans-serif; }
.aidp-active .aidp-veil { display: none; }
.aidp-active .aidp-done { display: block; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .v2-snap-grid, .v2-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v2-snap:nth-child(2) { border-right: 0; }
    .v2-snap:nth-child(-n+2) { border-bottom: 1px solid var(--v2-line); }
}
@media (max-width: 640px) {
    .v2-snap-grid, .v2-path-grid { grid-template-columns: 1fr; }
    .v2-snap { border-right: 0; border-bottom: 1px solid var(--v2-line); }
    .v2-snap:last-child { border-bottom: 0; }
    .v2-snap strong { font-size: 24px; }
    .v2-actions .v2-btn { flex: 1 1 auto; justify-content: center; }
    .v2-snapshot { padding-top: 32px; }
    .v2-paths { padding: 44px 0 40px; }
    .aidp-basemaps span { display: none; }
    .aidp-basemaps button i { width: 24px; height: 24px; border-radius: 50%; }
    .aidp-chip { top: auto; bottom: 64px; max-width: calc(100% - 24px); }
    .aidp-chip span { display: none; }
    .map-sidebar-grid { grid-template-columns: 1fr !important; }
    /* Compact choropleth legend: a single row of swatches */
    #choroplethLegend { transform: scale(.62); transform-origin: bottom right; }
    #mapViewTabs { overflow-x: auto; scrollbar-width: none; }
    #mapViewTabs::-webkit-scrollbar { display: none; }
    #mapViewTabs .map-view-tab { flex: 0 0 auto !important; padding: 9px 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .aidp-draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
    .aidp-label span, .aidp-country, .aidp-chip { animation: none; }
    .aidp-pulse i { animation: none; }
    .v2-path, .v2-btn { transition: none; }
}

/* ═══════════ Homepage layout rhythm (applies to the live index.php) ═══════════ */
/* One content column for every section: aligns with the map (1200px, 24px gutters) */
.v2-wrap, .sectors-container { max-width: 1200px; padding-left: 24px; padding-right: 24px; margin-left: auto; margin-right: auto; }
.v2-snapshot { padding: 64px 0 24px; }
.v2-snap-head { margin-bottom: 24px; }
.v2-about { padding: 96px 0 104px; }
.v2-about-head { margin-bottom: 40px; }
.v2-about-head p { max-width: 760px; }
.v2-cards { gap: 24px; }
.v2-card-face { padding: 30px 28px; }
.v2-card-icon { margin-bottom: auto; }
.v2-card-title { margin: 8px 0 0; font-size: 22px; line-height: 1.3; }
.v2-card-cta { margin-top: 18px; }
.v2-card-lead { line-height: 1.6; flex: 0 0 auto; margin-top: 10px; }
.v2-card-invest .v2-card-actions { margin-top: 18px; }
.v2-card-back { padding: 22px 24px 20px; }
/* Square corners on the new components */
.v2-snap-grid, .v2-btn, .v2-card, .v2-card-face, .v2-card-icon, .v2-card-close { border-radius: 0; }
/* Map: a calmer overview line instead of a heavy banner */
.overview-bar { background: #fff !important; border: 1px solid var(--v2-line) !important; border-left: 3px solid var(--v2-brand) !important; box-shadow: none !important; border-radius: 0 !important; padding: 14px 18px !important; margin-bottom: 24px !important; }
.overview-bar p { color: var(--v2-text) !important; font-size: 14px !important; }
.overview-bar strong { color: var(--v2-ink); }
/* Country Map backdrop: neutral grey relief, no place names */
#africa-map.aidp-quiet .leaflet-tile-pane { filter: grayscale(1) brightness(1.12) contrast(.8); }
/* Closing call to action: the secondary button must be visible on maroon */
.cta-section .cta-ghost { color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .65) !important; background: transparent !important; }
.cta-section .cta-ghost:hover { background: rgba(255, 255, 255, .1) !important; border-color: #fff !important; }
.cta-section .cta-subtitle { max-width: 640px; margin-left: auto; margin-right: auto; line-height: 1.6; }
@media (max-width: 1180px) and (min-width: 601px) { .v2-card { aspect-ratio: 1 / 1; } }
@media (max-width: 600px) {
    .v2-wrap, .sectors-container { padding-left: 18px; padding-right: 18px; }
    .v2-about { padding: 64px 0 72px; }
    .v2-about-head { margin-bottom: 28px; }
    .v2-card { min-height: 0; }
    .v2-card-face { position: relative; padding: 26px 22px; min-height: 280px; }
    .v2-card-back { position: absolute; }
}
.v2-card-invest .v2-card-icon { margin-bottom: 18px; }
.v2-card-invest .v2-card-lead { margin-top: 8px; }
.v2-card-invest .v2-card-actions { margin-top: auto; }
.v2-about { padding-bottom: 80px; }
@media (max-width: 600px) {
    .v2-card-face { min-height: 0; }
    .v2-card-icon { margin-bottom: 22px; }
    .v2-card-back { min-height: 100%; }
    .v2-card.is-open .v2-card-inner { min-height: 330px; }
}
/* Fit checks: services side and investor card inside the square */
.v2-card-back { padding: 18px 22px 16px; }
.v2-svc a { padding: 6px 0; }
.v2-card-invest .v2-card-face { padding: 26px 28px; }
@media (max-width: 600px) {
    /* Stack both faces in one grid cell so the card takes the height of the taller face */
    .v2-card-inner { display: grid; height: auto; }
    .v2-card-face, .v2-card-back { position: relative; inset: auto; grid-area: 1 / 1; min-height: 0; }
    .v2-card.is-open .v2-card-inner { min-height: 0; }
}
.v2-card-invest .v2-card-icon { margin-bottom: 14px; }

/* ── Map: a little wider than the text column ───────────── */
.map-container { max-width: 1360px !important; }
@media (max-width: 1400px) { .map-container { padding-left: 20px !important; padding-right: 20px !important; } }

/* ── Infrastructure panel: grouped layers + energy legend ─ */
#infraControlPanel { border-radius: 0 !important; }
#infraControlPanel .infra-group { margin: 10px 0 4px; padding-top: 8px; border-top: 1px solid #eef1f4; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
#infraControlPanel .infra-group:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
#infraControlPanel input[type="checkbox"] { border-radius: 0; }
.aide-legend { margin: 6px 0 2px; padding: 7px 8px; background: #f8fafc; border: 1px solid #eef1f4; }
.aide-legend-row { display: flex; flex-wrap: wrap; gap: 3px 9px; font-size: 9.5px; color: #475569; }
.aide-legend-row + .aide-legend-row { margin-top: 5px; padding-top: 5px; border-top: 1px dashed #e2e8f0; }
.aide-legend-row span { display: inline-flex; align-items: center; gap: 4px; }
.aide-legend-row i { width: 8px; height: 8px; display: inline-block; }
.aide-legend-row b { width: 14px; height: 3px; display: inline-block; }

/* ═══════════ "What is AID?" — redesign ═══════════ */
.v2-about { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-top: 1px solid var(--v2-line); padding: 104px 0 112px; }
.v2-about .v2-wrap { max-width: 1360px; padding-left: 32px; padding-right: 32px; }
.v2-about-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 72px; align-items: end; max-width: none; margin-bottom: 56px; }
.v2-about-intro h2 { font-size: 34px; line-height: 1.18; margin: 12px 0 16px; letter-spacing: -.025em; max-width: 640px; }
.v2-about-intro p { font-size: 16.5px; line-height: 1.7; color: var(--v2-text); margin: 0; max-width: 620px; }
.v2-about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--v2-brand); }
.v2-about-facts div { padding: 18px 18px 4px 0; }
.v2-about-facts div + div { padding-left: 18px; border-left: 1px solid var(--v2-line); }
.v2-about-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-mute); line-height: 1.4; }
.v2-about-facts dd { margin: 8px 0 0; font-size: 34px; font-weight: 700; color: var(--v2-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.v2-cards-intro { font-size: 14px; color: var(--v2-mute); margin: 0 0 18px; font-weight: 500; }
.v2-cards { gap: 24px; }
.v2-card-face { padding: 32px 30px; background: #fff; }
button.v2-card-face { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
button.v2-card-face:hover { border-color: var(--v2-brand); box-shadow: 0 24px 44px -28px rgba(93, 12, 52, .45); }
.v2-card-icon { width: 52px; height: 52px; }
.v2-card-icon svg { width: 26px; height: 26px; }
.v2-card-kicker { font-size: 11px; letter-spacing: .12em; }
.v2-card-title { font-size: 23px; letter-spacing: -.015em; }
.v2-card-cta { margin-top: 20px; font-size: 14px; }
.v2-card-invest .v2-card-face { padding: 32px 30px; background: linear-gradient(160deg, #6b0f3c 0%, #4a0827 100%); }
.v2-card-invest .v2-card-icon { margin-bottom: 18px; }
.v2-card-invest .v2-card-lead { font-size: 14.5px; line-height: 1.6; margin-top: 10px; color: rgba(255, 255, 255, .82); }
.v2-card-invest .v2-btn { padding: 12px 20px; font-size: 14px; }
@media (max-width: 1100px) {
    .v2-about-head { grid-template-columns: 1fr; gap: 36px; align-items: start; }
    .v2-about-intro h2 { font-size: 30px; }
}
@media (max-width: 600px) {
    .v2-about { padding: 72px 0 80px; }
    .v2-about .v2-wrap { padding-left: 18px; padding-right: 18px; }
    .v2-about-intro h2 { font-size: 26px; }
    .v2-about-facts dd { font-size: 26px; }
    .v2-about-facts div { padding-right: 10px; }
    .v2-about-facts div + div { padding-left: 12px; }
    .v2-card-face, .v2-card-invest .v2-card-face { padding: 26px 22px; }
}

/* ═══════════ Data pipeline: square, one consistent colour scheme ═══════════ */
#pipelineSection .pip-card { border-radius: 0; border: 1px solid var(--v2-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
#pipelineSection .pip-card:hover { border-color: var(--v2-brand); box-shadow: 0 16px 32px -22px rgba(93, 12, 52, .45); }
#pipelineSection .pip-card-icon, #pipelineSection .pip-card-icon.accent { border-radius: 0; background: var(--v2-brand); }
#pipelineSection .pip-card-tags span,
#pipelineSection .pip-card-tags span.accent,
#pipelineSection .pip-card-tags span.muted { border-radius: 0; background: var(--v2-brand-soft); color: var(--v2-brand); border: 1px solid #f0d3e1; font-weight: 600; padding: 3px 8px; letter-spacing: 0; }
#pipelineSection .pipeline-header .pip-badge { border-radius: 0; }
#pipelineSection .pip-hub-count { border-radius: 0; background: var(--v2-ink); box-shadow: 0 2px 10px rgba(15, 23, 42, .3); }
#pipelineSection .pip-stats { border-radius: 0; border: 1px solid var(--v2-line); background: #fff; }
#pipelineSection .pip-stat-num span { color: var(--v2-brand); }
/* Bullets everywhere on the homepage: small squares in the brand colour */
.sectors-section ul li::marker { color: var(--v2-brand); }

/* ═══════════ "What is AID?" (v3): introduction, at-a-glance panel, services by role ═══════════ */
.wa { background: #fff; border-top: 1px solid var(--v2-line); padding: 112px 0 120px; }
.wa-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wa-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 88px; align-items: start; }
.wa-k { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-brand); padding-bottom: 10px; border-bottom: 2px solid var(--v2-brand); }
.wa-intro h2 { font-size: 40px; line-height: 1.14; letter-spacing: -.03em; color: var(--v2-ink); margin: 22px 0 18px; max-width: 620px; }
.wa-intro p { font-size: 17px; line-height: 1.72; color: var(--v2-text); margin: 0 0 22px; max-width: 600px; }
.wa-more { font-size: 14.5px; font-weight: 700; color: var(--v2-brand); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.wa-more span { transition: transform .2s; }
.wa-more:hover span { transform: translateX(4px); }
.wa-glance { background: #f8fafc; border: 1px solid var(--v2-line); border-top: 3px solid var(--v2-brand); padding: 26px 28px 10px; margin-top: 6px; }
.wa-glance-title { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--v2-mute); margin-bottom: 6px; }
.wa-glance dl { margin: 0; }
.wa-glance dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--v2-line); }
.wa-glance dl div:last-child { border-bottom: 0; }
.wa-glance dt { font-size: 14.5px; color: var(--v2-text); font-weight: 500; }
.wa-glance dd { margin: 0; font-size: 30px; font-weight: 700; color: var(--v2-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }

.wa-roles-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 88px 0 24px; padding-top: 40px; border-top: 1px solid var(--v2-line); }
.wa-roles-head h3 { font-size: 22px; color: var(--v2-ink); margin: 0; letter-spacing: -.015em; }
.wa-roles-head p { font-size: 14.5px; color: var(--v2-mute); margin: 0; }
.wa-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.wa-role { perspective: 1600px; min-width: 0; }
/* Both faces share one grid cell, so the card is as tall as the taller face (no fixed heights) */
.wa-role-inner { display: grid; height: 100%; transition: transform .7s cubic-bezier(.2, .75, .2, 1); transform-style: preserve-3d; }
.wa-role.is-open .wa-role-inner { transform: rotateY(180deg); }
.wa-face { grid-area: 1 / 1; display: flex; flex-direction: column; padding: 28px 26px 22px; background: #fff; border: 1px solid var(--v2-line); backface-visibility: hidden; -webkit-backface-visibility: hidden; position: relative; min-width: 0; }
.wa-front::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--v2-brand); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.wa-role:hover .wa-front::before { transform: scaleX(1); }
.wa-role:not(.wa-role-invest):hover .wa-front { box-shadow: 0 24px 44px -30px rgba(15, 23, 42, .45); }
.wa-role-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.wa-ico { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--v2-brand-soft); color: var(--v2-brand); }
.wa-ico svg { width: 21px; height: 21px; }
.wa-role-k { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-mute); line-height: 1.35; }
.wa-face h3 { font-size: 20px; line-height: 1.3; color: var(--v2-ink); margin: 0 0 8px; letter-spacing: -.01em; }
.wa-lead { font-size: 14.5px; line-height: 1.6; color: var(--v2-mute); margin: 0 0 18px; }
.wa-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wa-list li { position: relative; padding-left: 17px; font-size: 14px; line-height: 1.45; color: var(--v2-text); }
.wa-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--v2-brand); }
.wa-flip { margin-top: auto; align-self: stretch; text-align: left; border: 0; border-top: 1px solid var(--v2-line); background: transparent; padding: 16px 0 2px; font: 700 14px/1 Inter, system-ui, sans-serif; color: var(--v2-brand); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.wa-flip span { transition: transform .2s; }
.wa-flip:hover span { transform: translateX(4px); }
.wa-flip:focus-visible, .wa-close:focus-visible { outline: 2px solid var(--v2-brand); outline-offset: 3px; }
.wa-back { transform: rotateY(180deg); background: var(--v2-ink); border-color: var(--v2-ink); color: #cbd5e1; padding: 22px 24px 20px; }
.wa-back-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wa-back-head span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f3c6d9; }
.wa-close { width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.wa-close:hover { background: rgba(255, 255, 255, .1); }
.wa-svc { list-style: none; margin: 0 0 14px; padding: 0; }
.wa-svc li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.wa-svc a { display: block; padding: 11px 0; text-decoration: none; }
.wa-svc b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.wa-svc span { display: block; font-size: 12.5px; line-height: 1.45; color: #94a3b8; margin-top: 2px; }
.wa-svc a:hover b, .wa-svc a:focus b { color: #f3c6d9; }
.wa-back-more { margin-top: auto; font-size: 13.5px; font-weight: 700; color: #f3c6d9; text-decoration: none; }
.wa-back-more:hover { text-decoration: underline; }
/* Investors: the one call to action in the row */
.wa-role-invest .wa-face { background: linear-gradient(165deg, #6b0f3c 0%, #470725 100%); border-color: #5D0C34; }
.wa-role-invest .wa-front::before { background: #f3c6d9; }
.wa-role-invest .wa-ico { background: rgba(255, 255, 255, .14); color: #fff; }
.wa-role-invest .wa-role-k { color: #f3c6d9; }
.wa-role-invest h3 { color: #fff; }
.wa-role-invest .wa-lead { color: rgba(255, 255, 255, .78); }
.wa-role-invest .wa-list li { color: rgba(255, 255, 255, .9); }
.wa-role-invest .wa-list li::before { background: #f3c6d9; }
.wa-invest-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); }
.wa-btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; background: #fff; color: var(--v2-brand); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s; }
.wa-btn:hover { background: #fdf2f7; }
.wa-invest-link { font-size: 13.5px; font-weight: 600; color: #fff; text-decoration: none; opacity: .85; }
.wa-invest-link:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 1180px) { .wa-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .wa-head { grid-template-columns: 1fr; gap: 40px; } .wa-intro h2 { font-size: 34px; } }
@media (max-width: 640px) {
    .wa { padding: 72px 0 80px; }
    .wa-wrap { padding: 0 18px; }
    .wa-intro h2 { font-size: 28px; }
    .wa-glance { padding: 20px 20px 6px; }
    .wa-glance dd { font-size: 24px; }
    .wa-roles-head { margin-top: 56px; padding-top: 28px; }
    .wa-roles { grid-template-columns: 1fr; }
    .wa-face { padding: 24px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-role-inner { transition: none; }
    .wa-role.is-open .wa-role-inner { transform: none; }
    .wa-role.is-open .wa-front { visibility: hidden; }
    .wa-back { transform: none; visibility: hidden; }
    .wa-role.is-open .wa-back { visibility: visible; }
}

/* ═══════════ "What is AID?" — compact mini list before the map ═══════════ */
.wm { background: #fff; border-top: 1px solid var(--v2-line); padding: 64px 0 56px; }
.wm-wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 72px; align-items: center; }
.wm-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-brand); }
.wm-intro h2 { font-size: 28px; line-height: 1.22; letter-spacing: -.02em; color: var(--v2-ink); margin: 10px 0 12px; }
.wm-intro p { font-size: 15.5px; line-height: 1.65; color: var(--v2-text); margin: 0 0 14px; }
.wm-more { font-size: 14px; font-weight: 700; color: var(--v2-brand); text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.wm-more span { transition: transform .2s; }
.wm-more:hover span { transform: translateX(4px); }
.wm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--v2-line); border-left: 1px solid var(--v2-line); }
.wm-list li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-right: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); transition: background .2s; }
.wm-list li:hover { background: #fafbfc; }
.wm-ico { width: 34px; height: 34px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--v2-brand-soft); color: var(--v2-brand); }
.wm-ico svg { width: 18px; height: 18px; }
.wm-list b { display: block; font-size: 15px; color: var(--v2-ink); margin-bottom: 3px; }
.wm-list li div > span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--v2-mute); }
/* Services by role now opens its own section (no divider above the heading) */
.wa { padding: 96px 0 104px; }
.wa-roles-head { margin-top: 0; padding-top: 0; border-top: 0; }
.wa-roles-head h2 { font-size: 26px; color: var(--v2-ink); margin: 0; letter-spacing: -.015em; }
@media (max-width: 1000px) { .wm-wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) {
    .wm { padding: 44px 0 36px; }
    .wm-wrap { padding: 0 18px; }
    .wm-intro h2 { font-size: 23px; }
    .wm-list { grid-template-columns: 1fr; }
    .wm-list li { padding: 16px 16px; }
    .wa { padding: 64px 0 72px; }
}

/* ═══════════ Justified running text across the landing page ═══════════ */
/* Paragraphs, descriptions and list text; headings, buttons, tabs, figures and map popups are left as they are */
section :is(p, li):not(.leaflet-container *):not(nav *),
footer p,
.hero-subtext,
.wm-list li div > span,
.wa-lead, .wa-list li, .wa-svc span,
.pip-card-sub,
.hero-caption-text {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}
/* Centred blocks stay centred: justify the lines, centre the last one */
.pipeline-header p, .cta-section p, .sectors-header p, .map-header p, .text-center p {
    text-align: justify;
    text-align-last: center;
}
/* Paragraphs inside inline-centred blocks (section headers) keep a centred last line */
[style*="text-align: center"] p, [style*="text-align:center"] p { text-align: justify; text-align-last: center; }
/* Very narrow columns: justification would leave wide gaps, so keep them ragged */
@media (max-width: 480px) {
    section :is(p, li):not(.leaflet-container *):not(nav *), .wm-list li div > span, .wa-lead, .wa-list li, .wa-svc span, .pip-card-sub { text-align: left; text-align-last: auto; }
}
/* Short bullet items and tag rows: justification only opens gaps, keep them left-aligned */
section .wa-list li.wa-list li, section.sectors-section ul li.sectors-li, html body section .wa-list li, html body .sectors-section ul li, html body .pip-card-tags, html body .pip-card-tags span, html body .v2-quick, html body .nav-chips { text-align: left; text-align-last: auto; }

/* ═══════════ Connected platforms (replaces "Services by role") ═══════════ */
.pl { background: #f8fafc; border-top: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); padding: 88px 0 96px; }
.pl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.pl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.pl-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--v2-brand); }
.pl-head h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; color: var(--v2-ink); margin: 8px 0 0; }
.pl-head p { font-size: 15px; line-height: 1.6; color: var(--v2-mute); margin: 0; max-width: 460px; }
.pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pl-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--v2-line); padding: 26px 24px 20px; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .25s, transform .25s; min-width: 0; }
.pl-card::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--v2-brand); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.pl-card:hover { border-color: #d8b4c6; box-shadow: 0 24px 44px -30px rgba(15, 23, 42, .45); transform: translateY(-2px); }
.pl-card:hover::before { transform: scaleX(1); }
.pl-card:focus-visible { outline: 2px solid var(--v2-brand); outline-offset: 3px; }
.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.pl-ico { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--v2-brand-soft); color: var(--v2-brand); }
.pl-ico svg { width: 22px; height: 22px; }
.pl-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--v2-mute); border: 1px solid var(--v2-line); padding: 3px 8px; }
.pl-card h3 { font-size: 18.5px; line-height: 1.3; color: var(--v2-ink); margin: 0 0 8px; letter-spacing: -.01em; }
.pl-desc { font-size: 14px; line-height: 1.6; color: var(--v2-mute); margin: 0 0 16px; }
.pl-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
html body .pl-list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: var(--v2-text); text-align: left; text-align-last: auto; }
.pl-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--v2-brand); }
.pl-visit { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--v2-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--v2-brand); }
.pl-host { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--v2-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pl-card:hover .pl-host { color: var(--v2-brand); }
@media (max-width: 1180px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .pl { padding: 60px 0 68px; }
    .pl-wrap { padding: 0 18px; }
    .pl-head h2 { font-size: 23px; }
    .pl-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pl-card, .pl-card::before { transition: none; } .pl-card:hover { transform: none; } }
.pl-visit > span:first-child { white-space: nowrap; }

/* ═══════════ AI Mapper banner: aligned with the map, square, more space around ═══════════ */
.aim-wrap { max-width: 1360px; margin: 32px auto 0; padding: 0 32px; }
@media (max-width: 1400px) { .aim-wrap { padding: 0 20px; } }
.aim-wrap > a { border-radius: 0 !important; padding: 22px 28px !important; box-shadow: 0 18px 36px -24px rgba(93, 12, 52, .55) !important; }
.aim-wrap > a div[style*="border-radius"] { border-radius: 0 !important; }
/* Connected platforms: same column as the map and the banner above it */
.pl { margin-top: 72px; }
.pl-wrap { max-width: 1360px; }
@media (max-width: 1400px) { .pl-wrap { padding: 0 20px; } }
html body .pl-head p { text-align: left; text-align-last: auto; hyphens: manual; -webkit-hyphens: manual; max-width: 440px; }
@media (max-width: 640px) { .aim-wrap { padding: 0 16px; margin-top: 24px; } .pl { margin-top: 48px; } .pl-wrap { padding: 0 18px; } }

/* ═══════════ What the Platform Offers — a Digital Public Good for Africa ═══════════ */
.dpg { background: #fff; padding: 104px 0 112px; }
.dpg-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.dpg-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.dpg-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; background: var(--v2-brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 24px -14px rgba(93, 12, 52, .8); }
.dpg-badge svg { flex-shrink: 0; }
.dpg-head h2 { font-size: 34px; line-height: 1.18; letter-spacing: -.025em; color: var(--v2-ink); margin: 22px 0 14px; }
html body .dpg-head p { font-size: 16px; line-height: 1.7; color: var(--v2-mute); margin: 0; text-align: center; text-align-last: center; hyphens: manual; -webkit-hyphens: manual; }
.dpg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--v2-line); border-left: 1px solid var(--v2-line); }
.dpg-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 22px; background: #fff; border-right: 1px solid var(--v2-line); border-bottom: 1px solid var(--v2-line); text-decoration: none; color: inherit; transition: background .2s; min-width: 0; }
.dpg-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--v2-brand); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.dpg-card:hover { background: #fcf8fa; }
.dpg-card:hover::before { transform: scaleY(1); }
.dpg-card:focus-visible { outline: 2px solid var(--v2-brand); outline-offset: -2px; }
.dpg-ico { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ecd3df; background: var(--v2-brand-soft); color: var(--v2-brand); margin-bottom: 20px; }
.dpg-ico svg { width: 21px; height: 21px; }
.dpg-card h3 { font-size: 17px; line-height: 1.3; color: var(--v2-ink); margin: 0 0 8px; letter-spacing: -.01em; }
html body .dpg-desc { font-size: 14px; line-height: 1.6; color: var(--v2-mute); margin: 0 0 16px; text-align: left; text-align-last: auto; hyphens: manual; -webkit-hyphens: manual; }
.dpg-tags { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
html body .dpg-tags li { font-size: 11.5px; font-weight: 600; color: var(--v2-text); background: #f8fafc; border: 1px solid var(--v2-line); padding: 3px 8px; text-align: left; text-align-last: auto; }
.dpg-cta { margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f5f9; font-size: 13.5px; font-weight: 700; color: var(--v2-brand); display: flex; justify-content: space-between; align-items: center; }
.dpg-cta span { transition: transform .2s; }
.dpg-card:hover .dpg-cta span { transform: translateX(4px); }
.dpg-band { margin-top: 40px; padding: 32px 36px; background: var(--v2-ink); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.dpg-band-text { flex: 1 1 420px; min-width: 0; }
.dpg-band-k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #f3c6d9; }
html body .dpg-band-text p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: #cbd5e1; text-align: left; text-align-last: auto; hyphens: manual; -webkit-hyphens: manual; max-width: 640px; }
.dpg-band-text b { color: #fff; }
.dpg-band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dpg-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; background: var(--v2-brand); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s; }
.dpg-btn:hover { background: #7a1045; }
.dpg-btn-ghost { background: transparent; border: 1px solid #475569; color: #e2e8f0; }
.dpg-btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: #94a3b8; }
@media (max-width: 1000px) { .dpg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .dpg { padding: 64px 0 72px; }
    .dpg-wrap { padding: 0 18px; }
    .dpg-head h2 { font-size: 26px; }
    .dpg-grid { grid-template-columns: 1fr; }
    .dpg-card { padding: 24px 20px 18px; }
    .dpg-band { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { .dpg-card::before, .dpg-cta span { transition: none; } }
/* Exact alignment with the map container's 24px gutters */
@media (min-width: 1401px) { .aim-wrap, .pl-wrap { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 640px) { .aim-wrap, .pl-wrap { padding-left: 20px; padding-right: 20px; } }
/* "What is AID?" — investor item links to the investment desk */
.wm-list .wm-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; background: var(--v2-brand); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.wm-list .wm-link:hover { background: #7a1045; }
.wm-list .wm-link span { display: inline; color: inherit; font-size: inherit; transition: transform .2s; }
.wm-list .wm-link:hover span { transform: translateX(3px); }
/* "What is AID?" — secondary action buttons (investor button stays the filled one) */
.wm-list .wm-link-ghost { background: #fff; color: var(--v2-brand); border: 1px solid #e5c6d4; padding: 6px 12px; }
.wm-list .wm-link-ghost:hover { background: var(--v2-brand); color: #fff; border-color: var(--v2-brand); }
/* Keep the descriptions justified but without mid-word hyphen breaks */
html body .wm-list li div > span { hyphens: manual; -webkit-hyphens: manual; }
