/* ===== Compact operating-unit layout (cmp-*) ===== */
.cmp-wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--page-pad, 40px) 64px; }
.cmp-head { border-top: 1px solid var(--ink); padding-top: 28px; margin-top: 8px; }
.cmp-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cmp-kicker .bar { width: 26px; height: 1px; background: var(--accent); }
.cmp-head h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; margin: 16px 0 0; max-width: 20ch; }
.cmp-stand { font-size: 19px; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; margin: 20px 0 0; text-wrap: pretty; }
.cmp-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; border: 1px solid var(--rule); }
.cmp-facts .f { padding: 16px 18px; border-right: 1px solid var(--rule); }
.cmp-facts .f:last-child { border-right: 0; }
.cmp-facts .fn { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.cmp-facts .fn .u { font-size: .5em; color: var(--accent); margin-left: 2px; }
.cmp-facts .fl { margin-top: 7px; font-size: 12px; line-height: 1.35; color: var(--ink-mute); }
.cmp-body { display: grid; grid-template-columns: 1fr 264px; gap: 56px; margin-top: 56px; align-items: start; }
.cmp-banner { margin: 40px 0 0; border: 1px solid var(--ink); }
.cmp-banner image-slot { display: block; width: 100%; height: 440px; }
.cmp-banner.contain { background: var(--paper); }
.cmp-banner.contain image-slot { height: 320px; padding: 28px; }
.cmp-banner figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); padding: 10px 14px; border-top: 1px solid var(--rule); }
.cmp-sec { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--rule); }
.cmp-sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cmp-sec > .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin: 0 0 14px; }
.cmp-sec h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.015em; font-size: 25px; line-height: 1.12; margin: 0 0 12px; }
.cmp-sec p { font-size: 16px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 12px; }
.cmp-sec p:last-child { margin-bottom: 0; }
.cmp-points { list-style: none; padding: 0; margin: 14px 0 0; }
.cmp-points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--rule); }
.cmp-points li .pn { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 2px; }
.cmp-points li b { font-weight: 600; font-size: 15.5px; }
.cmp-points li span.t { font-size: 15px; color: var(--ink-soft); }
.cmp-resp { display: grid; gap: 10px; margin-top: 14px; }
.cmp-resp .rc { border: 1px solid var(--rule); padding: 14px 16px; }
.cmp-resp .rc .rn { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); margin-bottom: 6px; }
.cmp-resp .rc b { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.cmp-resp .rc p { font-size: 14.5px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.cmp-learnt .lr { padding: 14px 0; border-top: 1px solid var(--rule); }
.cmp-learnt .lr:first-child { border-top: 0; }
.cmp-learnt .lr b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.cmp-learnt .lr p { font-size: 15px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.cmp-rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.cmp-photo { margin: 0; border: 1px solid var(--ink); }
.cmp-photo image-slot { display: block; width: 100%; height: 200px; }
.cmp-photo.contain { background: var(--paper); }
.cmp-photo.contain image-slot { height: 160px; padding: 22px; }
.cmp-photo figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); padding: 9px 12px; border-top: 1px solid var(--rule); }
.cmp-card { border: 1px solid var(--ink); padding: 18px; background: var(--paper); }
.cmp-card.dark { background: var(--ink); color: var(--bg); }
.cmp-card h3 { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; color: var(--ink-mute); }
.cmp-card.dark h3 { color: var(--accent-soft); }
.cmp-metric { padding: 10px 0; border-top: 1px solid var(--rule); }
.cmp-metric:first-of-type { border-top: 0; }
.cmp-metric .m { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; line-height: 1; }
.cmp-metric .m .u { font-size: .5em; color: var(--accent); }
.cmp-metric .d { font-size: 12px; color: var(--ink-mute); margin-top: 4px; line-height: 1.4; }
.cmp-links a { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.18); color: var(--bg); text-decoration: none; font-size: 14px; }
.cmp-links a:first-of-type { border-top: 0; }
.cmp-links a .ar { color: var(--accent-soft); }
@media (max-width: 860px) {
  .cmp-body { grid-template-columns: 1fr; gap: 28px; }
  .cmp-banner image-slot { height: 260px; }
  .cmp-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .cmp-rail > * { flex: 1 1 240px; }
  .cmp-facts { grid-template-columns: repeat(2, 1fr); }
  .cmp-facts .f:nth-child(2) { border-right: 0; }
}

/* ===== Asset-network gallery (dam-*) ===== */
.cmp-dams { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--ink); }
.cmp-dams-head .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin: 0 0 14px; }
.cmp-dams-head h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.015em; font-size: 25px; line-height: 1.12; margin: 0 0 12px; max-width: 26ch; }
.cmp-dams-head p { font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 66ch; text-wrap: pretty; }
.dam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.dam-card { display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.dam-card.pending { border-style: dashed; background: transparent; }
.dam-img { height: 150px; background: var(--bg-deep); }
.dam-img image-slot { width: 100%; height: 100%; display: block; }
.dam-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.dam-name { font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; line-height: 1.1; }
.dam-name .dam-tbd { color: var(--ink-mute); font-weight: 400; font-style: italic; font-size: 14px; }
.dam-loc { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 6px; }
.dam-stats { margin: 13px 0 0; padding: 0; }
.dam-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); }
.dam-stat dt { font-size: 12.5px; color: var(--ink-mute); margin: 0; }
.dam-stat dd { font-family: var(--display); font-weight: var(--display-weight); font-size: 15px; margin: 0; letter-spacing: -.01em; text-align: right; }
.dam-note { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 12px 0 0; }
.dam-pending { margin-top: auto; padding-top: 13px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) { .dam-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dam-grid { grid-template-columns: 1fr; } }

/* ===== In-page video: inline thumbnail + pop-up (cmp-video-thumb + vid-modal) ===== */
.cmp-video-thumb {
  margin-top: 22px; position: relative; display: block; width: 340px; max-width: 100%;
  aspect-ratio: 16/9; padding: 0; border: 1px solid var(--rule); background: #000;
  cursor: pointer; overflow: hidden; transition: box-shadow .15s, transform .15s;
}
.cmp-video-thumb:hover { box-shadow: 0 12px 30px rgba(8,18,44,.28); }
/* Slightly larger when it sits in a section's left rail (e.g. Our story intro). */
.rail .cmp-video-thumb { width: 100%; max-width: 460px; }
.cmp-video-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  display: block; opacity: .92; transition: opacity .15s;
}
.cmp-video-thumb:hover img { opacity: 1; }
.cmp-video-thumb .vt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(8,18,44,.78);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.cmp-video-thumb .vt-play::after {
  content: ''; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.cmp-video-thumb:hover .vt-play { background: var(--accent, #c96442); }
.cmp-video-thumb .vt-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(180deg, rgba(8,18,44,0) 0%, rgba(8,18,44,.82) 100%);
}
.vid-modal {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center;
  justify-content: center; padding: 5vw; background: rgba(8,18,44,0.86);
  backdrop-filter: blur(4px); animation: vidIn .16s ease-out;
}
@keyframes vidIn { from { opacity: 0; } to { opacity: 1; } }
.vid-box { position: relative; width: 100%; max-width: 1000px; }
.vid-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-close {
  position: absolute; top: -42px; right: 0; width: 34px; height: 34px; border: 0;
  background: transparent; color: var(--paper); font-size: 30px; line-height: 1;
  cursor: pointer; opacity: .85;
}
.vid-close:hover { opacity: 1; }

/* ===== Country hub layout (ct-*) ===== */
/* Closing CTA aligns to the narrow content column used by these layouts
   (cmp-wrap / ct-wrap), instead of the wide site .container, so the CTA text
   and the page content above it share the same left edge. */
.page-compact .sp-cta > .container { max-width: 1080px; padding-left: var(--page-pad, 40px); padding-right: var(--page-pad, 40px); }
.page-country  .sp-cta > .container { max-width: 1100px; padding-left: var(--page-pad, 40px); padding-right: var(--page-pad, 40px); }
/* A hairline above Engage, matching the dividers between the sections above
   (The problem, Our response, What we learnt). Drawn on ::before inside the
   container so it sits at the content width, aligned with those section rules. */
.page-compact .sp-cta, .page-country .sp-cta { padding-top: 0; }
.page-compact .sp-cta > .container::before,
.page-country  .sp-cta > .container::before {
  content: ''; display: block;
  border-top: 1px solid var(--rule);
  margin: 0 0 44px;
}
.ct-wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--page-pad, 40px) 64px; }
.ct-head { border-top: 1px solid var(--ink); padding-top: 28px; margin-top: 8px; }
.ct-head .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.ct-head .kicker .bar { width: 26px; height: 1px; background: var(--accent); }
.ct-head h1 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; font-size: clamp(44px, 6vw, 80px); line-height: .96; margin: 14px 0 0; }
.ct-head .stand { font-size: 19px; line-height: 1.5; max-width: 60ch; margin: 18px 0 0; color: var(--ink-soft); text-wrap: pretty; }
.ct-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--paper); margin-top: 32px; }
.ct-facts .f { padding: 20px; border-right: 1px solid var(--rule); }
.ct-facts .f:last-child { border-right: 0; }
.ct-facts .fn { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(26px, 3vw, 36px); line-height: 1; letter-spacing: -.02em; }
.ct-facts .fn .u { font-size: .5em; color: var(--accent); margin-left: 2px; }
.ct-facts .fl { margin-top: 8px; font-size: 12.5px; color: var(--ink-mute); line-height: 1.35; }
.ct-intro { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; padding: 56px 0 8px; }
.ct-intro h2 { font-family: var(--display); font-weight: var(--display-weight); letter-spacing: -.015em; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; margin: 0; }
.ct-intro .body p { font-size: 17px; line-height: 1.62; color: var(--ink-soft); margin: 0 0 14px; }
.ct-intro .body p:last-child { margin-bottom: 0; }
.ct-group { padding: 28px 0 8px; border-top: 1px solid var(--rule); margin-top: 28px; }
.ct-group-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.ct-group-head .gl { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 5px 11px; }
.ct-group-head .gd { font-size: 15px; color: var(--ink-mute); }
.ct-units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
a.ct-unit { display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--paper); text-decoration: none; color: var(--ink); overflow: hidden; transition: border-color .14s, transform .14s; }
a.ct-unit:hover { border-color: var(--ink); transform: translateY(-2px); }
.ct-unit .uimg { height: 132px; overflow: hidden; background: var(--bg-deep); }
.ct-unit .uimg image-slot { width: 100%; height: 100%; display: block; }
.ct-unit .ubody { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ct-unit .un { font-family: var(--display); font-weight: var(--display-weight); font-size: 18px; line-height: 1.1; }
.ct-unit .ud { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin-top: 7px; }
.ct-unit .uf { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.ct-unit .uf .ar { color: var(--accent); }
.ct-impact { background: var(--ink); color: var(--bg); margin-top: 60px; padding: 44px; }
.ct-impact .il { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); }
.ct-impact h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; margin: 12px 0 26px; max-width: 24ch; color: var(--bg); }
.ct-impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.ct-impact-grid .ic { background: var(--ink); padding: 20px; }
.ct-impact-grid .icn { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(28px, 3.2vw, 40px); line-height: 1; letter-spacing: -.02em; }
.ct-impact-grid .icn .u { font-size: .45em; color: var(--accent-soft); margin-left: 3px; }
.ct-impact-grid .icl { margin-top: 9px; font-size: 13px; color: rgba(255,255,255,.68); line-height: 1.4; }
@media (max-width: 880px) {
  .ct-facts { grid-template-columns: repeat(2, 1fr); }
  .ct-intro { grid-template-columns: 1fr; gap: 22px; }
  .ct-units { grid-template-columns: 1fr; }
  .ct-impact-grid { grid-template-columns: repeat(2, 1fr); }
}
