:root {
  --ink: #14231f;
  --muted: #5d6c67;
  --line: #d7ddd4;
  --paper: #f6f4eb;
  --white: #ffffff;
  --green: #1e6f50;
  --teal: #147a7e;
  --clay: #b86f38;
  --sand: #dfc982;
  --shadow: 0 18px 48px rgba(28, 43, 37, 0.16);
  --morocco-red: #b21f2d;
  --morocco-green: #006233;
  --morocco-gold: #c8a24a;
  --morocco-sand: #efe4ca;
  --morocco-ink: #15110c;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ecf4ef;
  --muted: #bdcbc4;
  --line: #334b43;
  --paper: #0d1714;
  --white: #15231f;
  --green: #68d49e;
  --teal: #6fdde0;
  --clay: #d58b54;
  --sand: #d7bd6c;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  --morocco-red: #ff7a84;
  --morocco-green: #68d49e;
  --morocco-gold: #f0cf78;
  --morocco-sand: #322c21;
  --morocco-ink: #edf5f0;
}

.theme-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--morocco-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--morocco-gold) 20%, transparent);
}

:root[data-theme="dark"] body {
  background: var(--paper);
  color: var(--ink);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .royal-header,
:root[data-theme="dark"] .article-scroll-nav {
  background: rgba(13, 23, 20, 0.94);
  border-color: var(--line);
}

:root[data-theme="dark"] .nav a:hover,
:root[data-theme="dark"] .nav a:focus-visible,
:root[data-theme="dark"] .nav a.is-current,
:root[data-theme="dark"] .nav a[aria-current="page"],
:root[data-theme="dark"] .nav a[aria-current="location"] {
  background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .hero-content,
:root[data-theme="dark"] .article-hero,
:root[data-theme="dark"] .section,
:root[data-theme="dark"] main {
  background-color: var(--paper);
  color: var(--ink);
}

:root[data-theme="dark"] .hero-content {
  background-image: linear-gradient(135deg, #111d19 0%, #183329 100%);
}

:root[data-theme="dark"] :is(
  .article-row,
  .article-body,
  .localized-article,
  .article-editorial-section,
  .priority-grid > div,
  .analytic-paper,
  .document-paper,
  .analytic-index-card,
  .article-source-card,
  .article-context-visuals figure,
  .atlas-card,
  .sources-documents,
  .sources-document,
  .deck-slide,
  .solution-slide
) {
  color: var(--ink);
  background-color: var(--white);
  border-color: var(--line);
}

:root[data-theme="dark"] :is(table, th, td, select, option, input, textarea) {
  color: var(--ink);
  background-color: #14241f;
  border-color: var(--line);
}

:root[data-theme="dark"] :is(.article-scroll-nav, .document-header-card, .sources-toc-in-header) a {
  color: var(--ink);
  background-color: #182a24;
  border-color: var(--line);
}

:root[data-theme="dark"] img {
  filter: brightness(0.88) saturate(0.92);
}

:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .article-row-thumb,
:root[data-theme="dark"] .article-visual img,
:root[data-theme="dark"] figure img {
  filter: none;
}

@media (max-width: 680px) {
  .sources-page .sources-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-inline: 22px;
  }

  .sources-page .sources-index {
    position: static;
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .sources-page .sources-index .analytic-index-card {
    max-height: none;
    overflow: visible;
  }

  .sources-page .sources-index .document-section-index.sources-compact-toc,
  .sources-page .sources-section-index {
    max-height: min(46vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-bottom: 12px;
  }

  .sources-page .sources-compact-toc nav a {
    padding: 9px 10px;
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .sources-page .sources-documents {
    min-width: 0;
  }
}

/* Compact ecological-zone cards on tablet and mobile widths. */
@media (min-width: 681px) and (max-width: 980px) {
  #atlas-zones .atlas-cross-section {
    min-height: 0;
    gap: 8px;
  }

  #atlas-zones .atlas-cross-section > :nth-child(1) { min-height: 176px; }
  #atlas-zones .atlas-cross-section > :nth-child(2) { min-height: 164px; }
  #atlas-zones .atlas-cross-section > :nth-child(3) { min-height: 152px; }
  #atlas-zones .atlas-cross-section > :nth-child(4) { min-height: 140px; }
  #atlas-zones .atlas-cross-section > :nth-child(5) { min-height: 128px; }
  #atlas-zones .atlas-cross-section > :nth-child(6) { min-height: 116px; }
  #atlas-zones .atlas-cross-section > :nth-child(7) { min-height: 104px; }
}

@media (max-width: 680px) {
  #atlas-zones .atlas-cross-section > a,
  #atlas-zones .atlas-cross-section > div {
    min-height: 104px !important;
    padding: 12px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.morocco-site {
  color: var(--morocco-ink);
  background:
    linear-gradient(135deg, rgba(178, 31, 45, 0.06) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(0, 98, 51, 0.055) 25%, transparent 25%) 0 0 / 28px 28px,
    #f6efe1;
}

.royal-header {
  background: rgba(246, 239, 225, 0.94);
  border-bottom-color: rgba(178, 31, 45, 0.22);
}

.royal-header .brand-mark {
  background: var(--morocco-red);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.royal-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(200, 162, 74, 0.24), transparent 32%),
    linear-gradient(135deg, #fff8ea 0%, #ead9b8 52%, #d8c18e 100%);
}

.hero-ornament {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background:
    linear-gradient(45deg, transparent 44%, var(--morocco-red) 44% 48%, transparent 48% 52%, var(--morocco-green) 52% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--morocco-green) 44% 48%, transparent 48% 52%, var(--morocco-red) 52% 56%, transparent 56%);
  background-size: 72px 72px;
}

.royal-hero-copy,
.royal-map {
  position: relative;
  z-index: 1;
}

.royal-hero h1 {
  max-width: 12ch;
  color: var(--morocco-ink);
  font-size: clamp(46px, 7vw, 96px);
}

.royal-map {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 28px 70px rgba(68, 43, 19, 0.24);
}

.royal-map img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.royal-metrics {
  border-top: 4px solid var(--morocco-red);
}

.royal-metrics strong {
  color: var(--morocco-red);
}

.palace-section {
  background: #fffaf0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-grid article,
.decision-list a {
  border: 1px solid rgba(178, 31, 45, 0.18);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 32px rgba(68, 43, 19, 0.08);
}

.value-grid article {
  min-height: 230px;
  padding: 22px;
}

.value-grid span {
  color: var(--morocco-gold);
  font-weight: 900;
}

.value-grid h3 {
  margin-top: 42px;
}

.value-grid p {
  color: #665944;
  font-weight: 700;
}

.royal-module {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: #efe5d0;
}

.module-layers {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.module-layers div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(0, 98, 51, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.module-layers b {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: white;
  background: var(--morocco-green);
  border-radius: 7px;
}

.royal-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 31, 45, 0.18);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 62px rgba(68, 43, 19, 0.18);
}

.royal-figure img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 14px;
}

.is-expandable-image {
  cursor: zoom-in;
}

.is-expandable-image:focus-visible {
  outline: 3px solid rgba(178, 31, 45, 0.72);
  outline-offset: 4px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  justify-items: center;
  padding: clamp(16px, 3vw, 36px);
  background: rgba(13, 20, 17, 0.88);
  backdrop-filter: blur(8px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(96vw, 1500px);
  max-height: 84vh;
  object-fit: contain;
  border: 1px solid rgba(255, 250, 240, 0.32);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.image-lightbox p {
  max-width: min(900px, 92vw);
  margin: 0;
  color: #fffaf0;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.44);
  border-radius: 999px;
  color: #fffaf0;
  background: var(--morocco-red);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.lightbox-open {
  overflow: hidden;
}

.zones-section {
  background: var(--morocco-red);
  color: white;
}

.zones-section .eyebrow,
.zones-section .section-heading p {
  color: rgba(255, 255, 255, 0.76);
}

.zone-ribbon {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.zone-ribbon div {
  min-height: 190px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.zone-ribbon span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--morocco-red);
  background: var(--morocco-sand);
  border-radius: 50%;
  font-weight: 900;
}

.zone-ribbon b,
.zone-ribbon em {
  display: block;
}

.zone-ribbon b {
  margin-top: 38px;
  font-size: 20px;
  line-height: 1.1;
}

.zone-ribbon em {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 700;
}

.visual-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: #f8f2e5;
}

.visual-band figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(68, 43, 19, 0.1);
}

.visual-band img {
  height: 260px;
  object-fit: cover;
}

.visual-band figcaption {
  min-height: 82px;
  padding: 14px;
  color: #665944;
  font-weight: 700;
}

.pilot-section {
  background: #fffaf0;
}

.royal-timeline div {
  border-color: rgba(0, 98, 51, 0.2);
}

.royal-timeline b {
  color: var(--morocco-green);
}

.decision-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: start;
  background: #e7d7b7;
}

.decision-list {
  display: grid;
  gap: 10px;
}

.decision-list a {
  display: block;
  padding: 18px;
  color: var(--morocco-ink);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.analytic-hero {
  padding: clamp(42px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(178, 31, 45, 0.88), rgba(0, 98, 51, 0.84)),
    url("assets/coastal-zones-map.png") center / cover;
  color: white;
}

.analytic-hero h1 {
  max-width: 980px;
  font-size: clamp(38px, 5vw, 72px);
}

.analytic-hero .eyebrow,
.analytic-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.analytic-shell {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 920px);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.analytic-index {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 82px;
}

.analytic-index-card {
  display: grid;
  max-height: calc(100vh - 116px);
  overflow: auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(178, 31, 45, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(65, 42, 22, 0.12);
  backdrop-filter: blur(10px);
}

.analytic-index-card p {
  margin: 0;
  color: var(--morocco-red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytic-index nav,
.analytic-index-links {
  display: grid;
  gap: 6px;
}

.analytic-index a {
  display: block;
  padding: 9px 10px;
  border-left: 3px solid rgba(178, 31, 45, 0.32);
  border-radius: 0 6px 6px 0;
  color: var(--morocco-ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.analytic-index a:hover,
.analytic-index a:focus-visible {
  border-left-color: var(--morocco-red);
  background: #fff8e9;
  transform: translateX(2px);
}

.analytic-index-links {
  padding-top: 10px;
  border-top: 1px solid rgba(18, 43, 49, 0.12);
}

.analytic-index-links a {
  border-left-color: var(--morocco-green);
  color: var(--morocco-green);
}

.initiative-index-card nav a {
  line-height: 1.25;
}

.initiative-index-card .analytic-index-links {
  margin-top: 2px;
}

.document-page-links {
  max-height: none;
}

.document-page-links a {
  padding-block: 8px;
}

.document-section-index {
  gap: 10px;
  max-height: calc(100vh - 348px);
}

.document-shell .analytic-index {
  position: sticky;
  top: 82px;
}

.document-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.document-index-toggle {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(18, 43, 49, 0.18);
  border-radius: 6px;
  color: var(--morocco-green);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.document-index-toggle:hover,
.document-index-toggle:focus-visible {
  border-color: var(--morocco-green);
  background: #fff8e9;
}

.document-section-index.is-collapsed {
  max-height: none;
}

.document-section-index.is-collapsed nav {
  display: none;
}

.document-section-index nav {
  display: grid;
  gap: 4px;
}

.document-section-index a.toc-major {
  position: relative;
  border-left-color: rgba(178, 31, 45, 0.42);
  padding-block: 8px;
  padding-right: 28px;
  font-size: 12px;
}

.document-section-index a.toc-major.has-children::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 9px;
  translate: 0 -50%;
  color: var(--morocco-green);
  font-weight: 950;
}

.document-section-index a.toc-major.has-children[aria-expanded="true"]::after {
  content: "-";
}

.document-section-index a.toc-sub {
  margin-left: 8px;
  padding-block: 6px;
  border-left-color: rgba(18, 107, 74, 0.34);
  color: rgba(18, 43, 49, 0.8);
  font-size: 11px;
  font-weight: 760;
}

.document-section-index a.toc-sub.is-hidden {
  display: none;
}

.document-section-index a.is-active {
  border-left-color: var(--morocco-green);
  background: var(--morocco-green);
  color: white;
  transform: translateX(2px);
}

.document-paper h2[id] {
  scroll-margin-top: 112px;
}

.document-paper h3[id] {
  scroll-margin-top: 112px;
}

.anchor-alias {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  scroll-margin-top: 112px;
}

.analytics-version-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: clamp(22px, 4vw, 44px) clamp(18px, 5vw, 72px) 0;
  padding: 18px;
  border: 1px solid rgba(18, 107, 74, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(18, 107, 74, 0.08), rgba(178, 31, 45, 0.05)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(68, 43, 19, 0.1);
}

.analytics-version-panel .eyebrow,
.analytics-version-panel h2,
.analytics-version-panel p {
  margin: 0;
}

.analytics-version-panel h2 {
  margin-top: 4px;
  color: var(--morocco-ink);
  font-size: clamp(22px, 2.4vw, 34px);
}

.analytics-version-panel p:not(.eyebrow) {
  margin-top: 8px;
  max-width: 760px;
  color: #4d5d56;
  font-size: 16px;
  line-height: 1.55;
}

.analytics-version-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.analytics-version-btn {
  padding: 11px 16px;
  border: 1px solid rgba(18, 43, 49, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--morocco-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.analytics-version-btn.active {
  border-color: var(--morocco-green);
  background: var(--morocco-green);
  color: white;
}

.analytics-short-mode .document-paper h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.initiative-version-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px clamp(18px, 5vw, 72px) 0;
}

.initiative-version-btn {
  min-width: 112px;
  padding: 10px 16px;
  border: 1px solid rgba(18, 43, 49, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--morocco-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.initiative-version-btn.active {
  border-color: var(--morocco-green);
  background: var(--morocco-green);
  color: white;
}

.initiative-translation-note {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--morocco-red);
  border-radius: 8px;
  background: #fff8e9;
  color: var(--morocco-ink);
  font-weight: 800;
}

.analytic-paper [id] {
  scroll-margin-top: 104px;
}

.analytic-paper {
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(178, 31, 45, 0.14);
  border-radius: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  background: white;
  box-shadow: 0 20px 48px rgba(68, 43, 19, 0.12);
}

.analytic-paper h2 {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(178, 31, 45, 0.2);
  color: var(--morocco-red);
  font-size: clamp(26px, 3vw, 38px);
}

.analytic-paper h3 {
  margin-top: 28px;
  color: var(--morocco-green);
}

.analytic-paper p,
.analytic-paper li {
  color: #4e4638;
  font-size: 17px;
}

.analytic-paper a {
  color: var(--morocco-green);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.analytic-paper a:hover,
.analytic-paper a:focus-visible {
  color: var(--morocco-red);
}

.analytic-table-wrap {
  width: 100%;
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid rgba(18, 107, 74, 0.16);
  border-radius: 8px;
  background: #fffaf0;
}

.analytic-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #4e4638;
  font-size: 15px;
}

.analytic-table th,
.analytic-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 107, 74, 0.13);
  text-align: left;
  vertical-align: top;
}

.analytic-table th {
  background: rgba(18, 107, 74, 0.1);
  color: var(--morocco-green);
  font-weight: 900;
}

.analytic-table tr:last-child td {
  border-bottom: 0;
}

.analytic-table tbody tr:nth-child(even) {
  background: rgba(246, 239, 225, 0.64);
}

.is-rtl .analytic-table th,
.is-rtl .analytic-table td {
  text-align: right;
}

.sources-page .sources-documents {
  min-width: 0;
}

.sources-page .sources-project-card {
  padding-block: 10px;
}

.sources-page .sources-project-card .analytic-index-links {
  border-top: 0;
  padding-top: 0;
}

.sources-page .sources-section-index {
  max-height: calc(100vh - 300px);
}

.sources-page .sources-paper[hidden] {
  display: none;
}

.sources-page .sources-paper h1 {
  margin: 0 0 24px;
  color: var(--morocco-red);
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.12;
  max-width: 780px;
  overflow-wrap: normal;
}

.sources-page .sources-paper h2 {
  margin-top: 34px;
}

.sources-page .sources-paper h3 {
  color: var(--morocco-green);
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.24;
  margin: 28px 0 10px;
}

.sources-page .sources-paper p {
  color: #3f4038;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.sources-page .source-subhead {
  color: #6b5b42;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  margin: 18px 0 8px;
  overflow-wrap: anywhere;
}

.sources-page .source-flow-arrow {
  color: var(--morocco-green);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  margin: 10px 0;
  text-align: center;
}

.sources-page .source-list-line {
  color: #4b4639;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.48;
  margin: 7px 0 7px 22px;
  padding-left: 15px;
  position: relative;
}

.sources-page .source-list-line::before {
  background: var(--morocco-green);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 0.78em;
  width: 6px;
}

.sources-page .source-list-line + .source-list-line {
  margin-top: 4px;
}

.sources-page .source-partners-panel {
  margin: 34px 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(18, 107, 74, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(18, 107, 74, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(190, 29, 45, 0.08), transparent 44%),
    #fffdf8;
  box-shadow: 0 18px 45px rgba(19, 31, 27, 0.08);
}

.sources-page .source-section-kicker {
  margin: 0 0 10px;
  color: var(--morocco-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sources-page .source-partners-panel h2 {
  margin: 0 0 18px;
}

.sources-page .source-partners-intro {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-left: 5px solid var(--morocco-red);
  background: rgba(255, 255, 255, 0.78);
}

.sources-page .source-partners-intro p {
  margin: 0;
}

.sources-page .source-partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sources-page .source-partner-group {
  padding: 18px;
  border: 1px solid rgba(18, 107, 74, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.sources-page .source-partner-group-wide {
  grid-column: 1 / -1;
}

.sources-page .source-partner-group h3 {
  margin: 0 0 12px;
  color: var(--morocco-green);
  font-size: 18px;
  line-height: 1.25;
}

.sources-page .source-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources-page .source-link-list li {
  position: relative;
  padding-left: 18px;
  color: #3f4038;
  line-height: 1.45;
}

.sources-page .source-link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--morocco-red);
}

.sources-page .source-link-list a {
  color: var(--morocco-green);
  font-weight: 850;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 107, 74, 0.28);
}

.sources-page .source-link-list a:hover {
  color: var(--morocco-red);
  border-bottom-color: currentColor;
}

.sources-page .source-consortium-list li::before {
  background: var(--morocco-green);
}

.sources-page .source-partners-panel[dir="rtl"] .source-section-kicker {
  letter-spacing: 0;
}

.sources-page .source-partners-panel[dir="rtl"] .source-partners-intro {
  border-right: 5px solid var(--morocco-red);
  border-left: 0;
}

.sources-page .source-partners-panel[dir="rtl"] .source-link-list li {
  padding-right: 18px;
  padding-left: 0;
}

.sources-page .source-partners-panel[dir="rtl"] .source-link-list li::before {
  right: 0;
  left: auto;
}

@media (max-width: 860px) {
  .sources-page .source-partner-grid {
    grid-template-columns: 1fr;
  }
}

.sources-page .source-original-ar {
  background:
    linear-gradient(135deg, rgba(18, 107, 74, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(186, 28, 45, 0.07), transparent 40%),
    #fbf7ef;
  border: 1px solid rgba(186, 28, 45, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(38, 30, 18, 0.08);
  direction: rtl;
  margin: 28px 0;
  padding: clamp(22px, 3vw, 36px);
  text-align: right;
}

.sources-page .source-original-ar .source-kicker {
  color: var(--morocco-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.sources-page .source-original-ar h2 {
  color: var(--morocco-red);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25;
  margin: 0 0 18px;
  max-width: none;
  overflow-wrap: normal;
  text-align: right;
}

.sources-page .source-original-ar h3 {
  color: var(--morocco-green);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  margin: 18px 0 12px;
  text-align: right;
}

.sources-page .source-original-ar p {
  color: #40382f;
  font-size: 17px;
  line-height: 2;
  max-width: none;
  text-align: right;
  overflow-wrap: break-word;
}

.sources-page .source-original-ar .source-subhead {
  background: rgba(18, 107, 74, 0.08);
  border-right: 4px solid var(--morocco-green);
  border-radius: 6px;
  color: #006d3d;
  font-size: 18px;
  margin: 22px 0 10px;
  padding: 10px 14px;
}

.sources-page .source-original-ar .source-list-line {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 107, 74, 0.13);
  border-radius: 6px;
  color: #24352d;
  font-weight: 750;
  margin: 8px 0;
  padding: 10px 42px 10px 14px;
}

.sources-page .source-original-ar .source-list-line::before {
  left: auto;
  right: 18px;
  top: 1.42em;
}

.is-rtl .sources-page .source-list-line {
  margin-left: 0;
  margin-right: 22px;
  padding-left: 0;
  padding-right: 15px;
}

.is-rtl .sources-page .source-list-line::before {
  left: auto;
  right: 0;
}

.sources-lang-link {
  width: 100%;
  border: 0;
  border-left: 3px solid rgba(178, 31, 45, 0.3);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.78);
  color: #14251f;
  cursor: pointer;
  display: block;
  font: inherit;
  font-weight: 850;
  margin: 0 0 8px;
  padding: 12px 14px;
  text-align: left;
}

.sources-lang-link:hover,
.sources-lang-link:focus-visible,
.sources-lang-link.active {
  background: var(--morocco-green);
  border-left-color: var(--morocco-green);
  color: #fff;
  outline: none;
}

.is-rtl .sources-lang-link {
  border-left: 0;
  border-right: 3px solid rgba(178, 31, 45, 0.3);
  border-radius: 6px 0 0 6px;
  text-align: right;
}

.document-page {
  background:
    linear-gradient(135deg, rgba(128, 18, 38, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(18, 107, 74, 0.1), transparent 38%),
    #f6efe1;
}

.document-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 72px clamp(22px, 5vw, 72px) 34px;
}

.document-hero h1 {
  max-width: 900px;
  margin: 12px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
}

.sources-page .sources-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.45rem, 5.4vw, 4.9rem);
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
  text-wrap: balance;
}

.document-hero figure {
  margin: 0;
  min-height: 360px;
  border: 1px solid rgba(128, 18, 38, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: #f6efe3;
  box-shadow: 0 20px 48px rgba(68, 43, 19, 0.16);
}

.document-hero img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.document-shell {
  align-items: start;
}

.document-paper h2 {
  scroll-margin-top: 110px;
}

.document-paper ul {
  padding-left: 1.2rem;
}

.document-source-list {
  display: grid;
  gap: 10px;
  padding: 16px 18px 16px 34px;
  border: 1px solid rgba(18, 107, 74, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(18, 107, 74, 0.06), rgba(178, 31, 45, 0.04));
}

.document-source-list li {
  line-height: 1.55;
}

.document-next-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
  counter-reset: next-step;
}

.document-next-steps li {
  position: relative;
  min-height: 44px;
  padding: 14px 16px 14px 60px;
  border: 1px solid rgba(178, 31, 45, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 248, 233, 0.92), rgba(18, 107, 74, 0.05));
  color: var(--morocco-ink);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 850;
  line-height: 1.35;
  counter-increment: next-step;
}

.document-next-steps li::before {
  content: counter(next-step);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--morocco-red);
  color: white;
  font-size: 14px;
  font-weight: 950;
}

.document-compact-steps {
  gap: 8px;
}

.document-compact-steps li {
  min-height: 0;
  padding: 12px 14px 12px 52px;
  font-size: clamp(15px, 1.2vw, 17px);
}

.document-compact-steps li::before {
  top: 10px;
  width: 26px;
  height: 26px;
  font-size: 13px;
}

.document-paper .numbered-line {
  color: var(--morocco-ink);
  font-weight: 650;
}

.deck-home {
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 162, 74, 0.18), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(178, 31, 45, 0.12), transparent 30%),
    #f6efe1;
}

.deck-cover {
  position: relative;
  display: flex;
  min-height: clamp(460px, 58vh, 650px);
  align-items: flex-end;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 78px) clamp(34px, 5vw, 64px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 25, 28, 0.78) 0%, rgba(10, 35, 35, 0.58) 39%, rgba(10, 36, 32, 0.2) 72%, rgba(10, 36, 32, 0.08) 100%),
    linear-gradient(0deg, rgba(7, 19, 20, 0.68), rgba(7, 19, 20, 0.04) 52%),
    url("assets/drevo-home-hero-bg.png") center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 -90px 110px rgba(7, 19, 20, 0.18);
}

.moroccan-star {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  top: clamp(18px, 5vw, 56px);
  width: clamp(90px, 12vw, 170px);
  height: clamp(90px, 12vw, 170px);
  opacity: 0.34;
  background: rgba(255, 255, 255, 0.82);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.deck-cover-copy {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.deck-cover h1 {
  max-width: 13ch;
  color: #fff8e9;
  font-size: clamp(42px, 6.6vw, 88px);
  line-height: 0.92;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.deck-cover .lead {
  max-width: 740px;
  color: rgba(255, 248, 233, 0.94);
  font-size: clamp(17px, 1.65vw, 23px);
  font-weight: 700;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.36);
}

.deck-cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.deck-cover .eyebrow {
  color: #f7d98b;
}

.deck-cover .button.ghost {
  color: #fff8e9;
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.deck-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(178, 31, 45, 0.18);
  background: var(--morocco-red);
}

.deck-kpis div,
.deck-kpis a {
  min-height: 150px;
  padding: 24px;
  color: white;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.deck-kpis span,
.deck-kpis em {
  display: block;
}

.deck-kpis span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.deck-kpis strong {
  display: block;
  margin-top: 18px;
  color: var(--morocco-sand);
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1;
}

.deck-kpis em {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 700;
}

.deck-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: 680px;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 78px);
}

.slide-number {
  position: absolute;
  top: 34px;
  right: clamp(18px, 5vw, 78px);
  color: rgba(178, 31, 45, 0.16);
  font-size: clamp(72px, 12vw, 180px);
  font-weight: 900;
  line-height: 1;
}

.slide-copy h2 {
  max-width: 780px;
  color: var(--morocco-ink);
  font-size: clamp(36px, 5vw, 72px);
}

.slide-copy p {
  max-width: 760px;
  color: #5a4c38;
  font-size: 19px;
  font-weight: 700;
}

.problem-slide {
  background: #fffaf0;
}

.problem-board {
  display: grid;
  gap: 14px;
}

.problem-board div,
.problem-board a {
  min-height: 146px;
  padding: 24px;
  border: 1px solid rgba(178, 31, 45, 0.18);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(65, 42, 22, 0.08);
}

.problem-board b,
.problem-board span {
  display: block;
}

.problem-board b {
  color: var(--morocco-red);
  font-size: 28px;
  line-height: 1.05;
}

.problem-board span {
  margin-top: 18px;
  color: #665944;
  font-weight: 800;
}

.solution-slide {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  background: #eadcbd;
}

.slide-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 10px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 64px rgba(65, 42, 22, 0.2);
}

.slide-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.solution-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.solution-flow span,
.solution-flow a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 14px 12px;
  color: white;
  background: var(--morocco-green);
  border-radius: 8px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.solution-flow span:nth-child(2),
.solution-flow a:nth-child(2) {
  background: var(--morocco-red);
}

.solution-flow span:nth-child(3),
.solution-flow a:nth-child(3) {
  color: var(--morocco-ink);
  background: var(--morocco-gold);
}

.solution-flow span:nth-child(4),
.solution-flow a:nth-child(4) {
  background: #2d2116;
}

.module-slide {
  background: #f8f2e5;
}

.module-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.module-board div,
.module-board a {
  min-height: 210px;
  padding: 20px;
  border-radius: 8px;
  color: white;
  background: var(--morocco-green);
  box-shadow: 0 14px 34px rgba(65, 42, 22, 0.12);
}

.module-board div:nth-child(2),
.module-board div:nth-child(4),
.module-board a:nth-child(2),
.module-board a:nth-child(4) {
  background: var(--morocco-red);
}

.module-board strong {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--morocco-ink);
  background: var(--morocco-sand);
  border-radius: 50%;
}

.module-board b,
.module-board span {
  display: block;
}

.module-board b {
  margin-top: 42px;
  font-size: 24px;
}

.module-board span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.water-visual-slide {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  background: linear-gradient(135deg, rgba(9, 91, 138, 0.12), rgba(246, 239, 225, 0.92));
}

.water-visual-slide .slide-image {
  min-height: 430px;
}

.water-visual-slide .slide-image img {
  object-position: center;
}

.water-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.water-stats div,
.water-stats a {
  padding: 18px;
  border: 1px solid rgba(15, 94, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.water-stats strong {
  display: block;
  color: var(--morocco-red);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.water-stats span {
  display: block;
  margin-top: 8px;
  color: #514737;
  font-size: 14px;
  line-height: 1.35;
}

.performance-slide {
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 1fr);
  background: #173f37;
  color: white;
}

.performance-slide .slide-copy h2,
.performance-slide .slide-copy p,
.performance-slide .eyebrow {
  color: white;
}

.performance-board {
  display: grid;
  gap: 16px;
}

.metric-chart {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(160px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.metric-chart span {
  font-weight: 800;
}

.metric-chart i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #d6a536 var(--v), rgba(255, 255, 255, 0.16) var(--v));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.metric-chart b {
  color: #f4df9b;
  font-size: 18px;
}

.zones-slide {
  grid-template-columns: 1fr;
  background: var(--morocco-red);
  color: white;
}

.zones-slide .slide-copy h2,
.zones-slide .slide-copy p,
.zones-slide .eyebrow {
  color: white;
}

.presentation-zones {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.presentation-zones div,
.presentation-zones a {
  min-height: 210px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.presentation-zones span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--morocco-red);
  background: var(--morocco-sand);
  border-radius: 50%;
  font-weight: 900;
}

.presentation-zones b,
.presentation-zones em {
  display: block;
}

.presentation-zones b {
  margin-top: 48px;
  font-size: 20px;
  line-height: 1.1;
}

.presentation-zones em {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-weight: 800;
}

.deck-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(36px, 6vw, 78px) clamp(18px, 5vw, 78px);
  background: #fffaf0;
}

.deck-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(65, 42, 22, 0.1);
}

.deck-gallery img {
  height: 280px;
  object-fit: cover;
}

.deck-gallery figcaption {
  min-height: 94px;
  padding: 16px;
  color: #5a4c38;
  font-weight: 800;
}

.pilot-deck {
  background: #eadcbd;
}

.pilot-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pilot-steps div,
.pilot-steps a {
  min-height: 176px;
  padding: 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(65, 42, 22, 0.09);
}

.pilot-steps span,
.pilot-steps b,
.pilot-steps em {
  display: block;
}

.pilot-steps span {
  color: var(--morocco-red);
  font-size: 34px;
  font-weight: 900;
}

.pilot-steps b {
  margin-top: 18px;
  font-size: 24px;
}

.pilot-steps em {
  margin-top: 8px;
  color: #665944;
  font-style: normal;
  font-weight: 800;
}

.deck-close {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 78px);
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.94), rgba(178, 31, 45, 0.9)),
    linear-gradient(45deg, transparent 44%, rgba(255, 255, 255, 0.18) 44% 48%, transparent 48% 52%, rgba(255, 255, 255, 0.18) 52% 56%, transparent 56%);
  background-size: auto, 72px 72px;
}

.deck-close h2,
.deck-close .eyebrow {
  color: white;
}

.close-actions {
  display: grid;
  gap: 12px;
}

.close-actions a {
  display: block;
  padding: 20px;
  color: var(--morocco-ink);
  background: rgba(255, 250, 240, 0.92);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.atlas-page {
  background: #f4ead6;
}

.atlas-plate {
  min-height: 0;
  padding: clamp(28px, 4vw, 54px);
  border-bottom: 1px solid rgba(178, 31, 45, 0.18);
}

.atlas-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: center;
  color: white;
  background:
    linear-gradient(135deg, rgba(178, 31, 45, 0.88), rgba(0, 98, 51, 0.78)),
    linear-gradient(45deg, transparent 44%, rgba(255, 255, 255, 0.16) 44% 48%, transparent 48% 52%, rgba(255, 255, 255, 0.14) 52% 56%, transparent 56%),
    url("assets/morocco-fog-corridor-hero.png");
  background-position: center;
  background-size: cover, 78px 78px, cover;
}

.atlas-cover h1 {
  max-width: 900px;
  color: white;
  font-size: clamp(56px, 9vw, 132px);
}

.atlas-cover h2 {
  max-width: 900px;
  color: rgba(255, 255, 255, 0.84);
}

.atlas-kicker {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  font-weight: 900;
}

.atlas-emblem {
  display: grid;
  width: 250px;
  height: 250px;
  place-items: center;
  color: var(--morocco-gold);
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 132px;
}

.atlas-title {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
  direction: ltr;
  text-align: left;
}

.atlas-title span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: white;
  background: var(--morocco-red);
  border-radius: 50%;
  font-weight: 900;
}

.atlas-title h2 {
  color: var(--morocco-ink);
}

.atlas-title p {
  grid-column: 2;
  margin: 0;
  color: #6b5c45;
  font-weight: 800;
}

.atlas-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
  direction: ltr;
}

.atlas-image-card,
.atlas-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 31, 45, 0.18);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 46px rgba(65, 42, 22, 0.16);
}

.atlas-image-card {
  display: grid;
  grid-template-rows: minmax(220px, clamp(260px, 28vw, 340px)) auto;
  min-height: 0;
  height: 100%;
}

.atlas-image-card img,
.atlas-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atlas-image-card figcaption {
  display: grid;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  color: #5d4d37;
  background: #fffaf0;
  font-weight: 900;
  direction: ltr;
  text-align: left;
}

.atlas-card-link {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  color: white;
  background: var(--morocco-green);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.atlas-card-link:hover,
.atlas-card-link:focus-visible {
  background: var(--morocco-red);
}

.atlas-image-card.tall img {
  height: 100%;
}

.final-split .vision-image-card,
.final-split .final-flow {
  grid-column: 1 / -1;
}

.vision-image-card {
  grid-template-rows: minmax(300px, clamp(360px, 56vw, 760px)) auto;
}

.vision-image-card img {
  object-fit: contain;
  background: #eef6f1;
}

.zone-image-card {
  grid-template-rows: minmax(300px, clamp(360px, 48vw, 680px)) auto;
}

.zone-image-card img {
  object-fit: contain;
  background: #f3f7f4;
}

.atlas-split .zone-image-card,
.atlas-split .zone-image-card + .atlas-cross-section {
  grid-column: 1 / -1;
}

.executive-photo,
.future-photo,
.economy-photo,
.southern-photo {
  position: absolute;
  inset: 24px 24px auto auto;
  width: min(360px, 34%);
  height: 240px;
  opacity: 0.96;
  z-index: 1;
}

.future-photo {
  inset: 28px auto auto 28px;
  width: min(420px, 38%);
  height: 300px;
}

.economy-photo {
  inset: 28px auto auto 28px;
  width: min(380px, 34%);
  height: 270px;
}

.southern-photo {
  inset: auto 28px 28px auto;
  width: min(420px, 38%);
  height: 300px;
}

.morocco-map,
.future-board,
.southern-map {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(178, 31, 45, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 98, 51, 0.12), transparent 30%),
    #fffaf0;
  box-shadow: 0 20px 54px rgba(65, 42, 22, 0.12);
}

.atlas-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.atlas-kpi-strip div,
.atlas-kpi-strip a,
.atlas-growth-chart,
.atlas-donut-row,
.atlas-value-bars,
.atlas-roadmap-graph {
  border: 1px solid rgba(178, 31, 45, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(68, 43, 19, 0.08);
}

.atlas-kpi-strip div,
.atlas-kpi-strip a {
  padding: 14px;
}

.atlas-kpi-strip strong {
  display: block;
  color: var(--morocco-red);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}

.atlas-kpi-strip span {
  display: block;
  margin-top: 8px;
  color: #514737;
  font-weight: 800;
}

.atlas-growth-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
  min-height: 300px;
  margin-top: 18px;
  padding: 26px;
  border: 1px solid rgba(0, 98, 51, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 98, 51, 0.14), rgba(197, 32, 49, 0.14)) 26px calc(100% - 82px) / calc(100% - 52px) 4px no-repeat,
    radial-gradient(circle at 12% 18%, rgba(0, 98, 51, 0.12), transparent 26%),
    rgba(255, 250, 240, 0.82);
}

.atlas-growth-chart a {
  position: relative;
  display: grid;
  align-content: end;
  min-height: var(--h);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--morocco-green), #174236);
  color: white;
  box-shadow: 0 20px 40px rgba(65, 42, 22, 0.16);
}

.atlas-growth-chart a::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -24px;
  width: 14px;
  height: 14px;
  border: 3px solid #fff7e6;
  border-radius: 50%;
  background: var(--morocco-gold);
  box-shadow: 0 0 0 1px rgba(65, 42, 22, 0.16);
}

.atlas-growth-chart a:nth-child(even) {
  background: linear-gradient(180deg, var(--morocco-red), #7f1525);
}

.atlas-growth-chart a:nth-child(3) {
  background: linear-gradient(180deg, #167e7a, #174236);
}

.atlas-growth-chart a:nth-child(4) {
  background: linear-gradient(180deg, #2e2116, #0f241f);
}

.atlas-growth-chart span,
.atlas-growth-chart b,
.atlas-growth-chart em,
.atlas-growth-chart small {
  display: block;
}

.atlas-growth-chart span {
  color: #f7dc93;
  font-weight: 900;
  font-size: 18px;
}

.atlas-growth-chart b {
  margin-top: 5px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.05;
}

.atlas-growth-chart em {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.atlas-growth-chart small {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: #f7dc93;
  font-weight: 900;
  line-height: 1.25;
}

.atlas-donut-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
  padding: 16px;
}

.atlas-donut {
  min-height: 150px;
  padding: 16px;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, #fff 0 36%, transparent 37%),
    conic-gradient(var(--morocco-green) 0 var(--a), var(--morocco-gold) var(--a) var(--b), var(--morocco-red) var(--b) 100%);
  display: grid;
  place-items: center;
  text-align: center;
}

.atlas-donut strong,
.atlas-donut span {
  max-width: 150px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
}

.atlas-donut strong {
  align-self: end;
  color: var(--morocco-red);
}

.atlas-donut span {
  align-self: start;
  color: #514737;
  font-size: 13px;
  font-weight: 800;
}

.atlas-value-bars {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
}

.atlas-value-bars div,
.atlas-value-bars a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}

.atlas-value-bars span {
  color: var(--morocco-ink);
  font-weight: 900;
}

.atlas-value-bars i {
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--morocco-green) var(--v), rgba(20, 35, 31, 0.12) var(--v));
}

.atlas-roadmap-graph {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
}

.atlas-roadmap-graph span,
.atlas-roadmap-graph a {
  display: block;
  width: var(--w);
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--morocco-green);
  color: white;
  font-weight: 900;
}

.atlas-roadmap-graph span:nth-child(even),
.atlas-roadmap-graph a:nth-child(even) {
  background: var(--morocco-red);
}

.morocco-map::after,
.southern-map::after,
.economy-orbit::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(178, 31, 45, 0.05), transparent 45%),
    linear-gradient(45deg, transparent 44%, rgba(0, 98, 51, 0.09) 44% 46%, transparent 46% 54%, rgba(178, 31, 45, 0.08) 54% 56%, transparent 56%);
  background-size: auto, 58px 58px;
}

.coastline {
  position: absolute;
  left: 18%;
  top: 6%;
  width: 40%;
  height: 88%;
  border-left: 8px solid var(--morocco-green);
  border-radius: 50% 0 0 48%;
  transform: rotate(10deg);
}

.coastline::before {
  position: absolute;
  inset: 0 auto 0 -70px;
  width: 62px;
  content: "";
  background: linear-gradient(180deg, rgba(20, 122, 126, 0.26), rgba(20, 122, 126, 0.05));
  border-radius: 60% 0 0 60%;
}

.city,
.pilot-zone,
.expansion-zone {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 22px rgba(65, 42, 22, 0.12);
  font-style: normal;
  font-weight: 900;
}

.city::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 8px;
  content: "";
  background: var(--morocco-red);
  border-radius: 50%;
}

.tangier { top: 8%; right: 42%; }
.agadir { top: 34%; right: 49%; }
.guelmim { top: 44%; right: 53%; }
.laayoune { top: 60%; right: 58%; }
.dakhla { top: 78%; right: 62%; }
.pilot-zone { top: 72%; left: 18%; color: white; background: var(--morocco-red); }
.expansion-zone { color: white; background: var(--morocco-green); }
.expansion-zone.north { top: 28%; left: 24%; }
.expansion-zone.south { top: 54%; left: 14%; }

.future-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 18px;
  direction: ltr;
}

.future-board .future-photo {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(280px, 36vw, 460px);
  z-index: 1;
}

.executive-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 18px;
}

.executive-map .executive-photo {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(300px, 42vw, 520px);
  z-index: 1;
}

.executive-map .coastline {
  left: 9%;
  top: calc(18px + clamp(300px, 42vw, 520px) + 18px);
  height: min(220px, 28%);
}

.executive-map .city,
.executive-map .pilot-zone,
.executive-map .expansion-zone {
  position: relative;
  inset: auto;
  z-index: 2;
  align-self: center;
  justify-self: start;
}

.future-board > div,
.future-board > a {
  position: relative;
  z-index: 2;
}

.future-coast,
.future-node {
  display: grid;
  min-height: 128px;
  place-items: center;
  padding: 16px;
  color: white;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
}

.future-coast {
  min-height: 150px;
  background: var(--morocco-green);
}

.future-node.water { background: #147a7e; min-height: 128px; }
.future-node.science { background: var(--morocco-red); min-height: 128px; }
.future-node.industry { background: #2d2116; min-height: 128px; }
.future-node.tourism { background: var(--morocco-gold); min-height: 128px; color: var(--morocco-ink); }
.future-node.corridor { background: #4e8d59; min-height: 128px; }

.atlas-cross-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: end;
  min-height: 0;
  gap: 8px;
  direction: ltr;
}

.atlas-split .atlas-cross-section,
.atlas-split .atlas-flow,
.atlas-split .solar-diagram,
.atlas-split .soil-layers {
  min-height: clamp(300px, 26vw, 360px);
}

.atlas-cross-section div,
.atlas-cross-section a {
  display: grid;
  align-content: end;
  min-height: 130px;
  padding: 14px;
  color: white;
  border-radius: 8px;
  background: var(--morocco-green);
}

.atlas-cross-section div:nth-child(1), .atlas-cross-section a:nth-child(1) { min-height: 360px; background: #147a7e; }
.atlas-cross-section div:nth-child(2), .atlas-cross-section a:nth-child(2) { min-height: 320px; background: var(--morocco-red); }
.atlas-cross-section div:nth-child(3), .atlas-cross-section a:nth-child(3) { min-height: 285px; background: #b96d3b; }
.atlas-cross-section div:nth-child(4), .atlas-cross-section a:nth-child(4) { min-height: 250px; background: #8f7b47; }
.atlas-cross-section div:nth-child(5), .atlas-cross-section a:nth-child(5) { min-height: 215px; background: #4f8d68; }
.atlas-cross-section div:nth-child(6), .atlas-cross-section a:nth-child(6) { min-height: 180px; background: #2f7b45; }
.atlas-cross-section div:nth-child(7), .atlas-cross-section a:nth-child(7) { min-height: 145px; background: #725c3d; }

.atlas-cross-section b,
.atlas-cross-section span {
  display: block;
}

.atlas-cross-section b {
  font-size: 20px;
}

.atlas-cross-section span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.atlas-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  min-height: 360px;
  align-items: center;
  direction: ltr;
}

.atlas-split .atlas-flow {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.atlas-split .atlas-flow span,
.atlas-flow a {
  min-height: 54px;
}

.atlas-split .atlas-flow span:not(:last-child)::after,
.atlas-flow a:not(:last-child)::after {
  right: auto;
  bottom: -24px;
  content: "↓";
}

.atlas-flow span,
.atlas-flow a {
  position: relative;
  display: grid;
  min-height: 108px;
  place-items: center;
  padding: 14px;
  color: white;
  background: var(--morocco-green);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.atlas-flow span:not(:last-child)::after,
.atlas-flow a:not(:last-child)::after {
  position: absolute;
  right: -14px;
  color: var(--morocco-red);
  content: "→";
  font-size: 28px;
}

.atlas-flow span:nth-child(even),
.atlas-flow a:nth-child(even) {
  background: var(--morocco-red);
}

.solar-diagram {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 360px;
  direction: ltr;
}

.solar-split .solar-diagram {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solar-diagram div,
.solar-diagram a {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 16px;
  border-radius: 8px;
  color: white;
  background: var(--morocco-red);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.solar-diagram div:nth-child(odd),
.solar-diagram a:nth-child(odd) {
  background: var(--morocco-green);
}

.mirror-field {
  clip-path: polygon(0 30%, 100% 0, 100% 70%, 0 100%);
}

.sun-tower {
  min-height: 240px !important;
}

.thermal-store {
  border-radius: 50% !important;
}

.soil-layers {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-inline: auto;
}

.atlas-split .soil-layers {
  width: 100%;
  max-width: none;
}

.soil-layers div,
.soil-layers a {
  min-height: 58px;
  padding: 14px 18px;
  color: white;
  background: linear-gradient(90deg, var(--morocco-red), var(--morocco-green));
  border-radius: 8px;
  font-size: 22px;
  font-weight: 900;
}

.economy-orbit {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 0;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(178, 31, 45, 0.16);
  background: #fffaf0;
  box-shadow: 0 14px 30px rgba(68, 43, 19, 0.08);
}

.economy-orbit > * {
  z-index: 2;
}

.economy-orbit .economy-photo {
  grid-column: 1 / -1;
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(240px, 34vw, 400px);
  margin: 0;
}

.economy-orbit strong,
.economy-orbit span,
.economy-orbit .orbit-main,
.economy-orbit a.agri,
.economy-orbit a.ind,
.economy-orbit a.tour,
.economy-orbit a.log {
  position: static;
  display: grid;
  min-height: 70px;
  place-items: center;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(65, 42, 22, 0.14);
  font-weight: 900;
  text-align: center;
}

.economy-orbit strong,
.economy-orbit .orbit-main {
  color: white;
  background: var(--morocco-red);
}

.economy-orbit span,
.economy-orbit a.agri,
.economy-orbit a.ind,
.economy-orbit a.tour,
.economy-orbit a.log {
  color: white;
  background: var(--morocco-green);
}

.economy-orbit strong,
.economy-orbit .orbit-main,
.economy-orbit .agri,
.economy-orbit .ind,
.economy-orbit .tour,
.economy-orbit .log {
  width: auto;
  height: auto;
}

.economy-orbit .tour { background: var(--morocco-gold); color: var(--morocco-ink); }
.economy-orbit .log { background: #2d2116; }

.southern-map {
  display: grid;
  min-height: clamp(520px, 56vw, 680px);
  grid-template-columns: minmax(220px, 0.84fr) minmax(280px, 1.16fr);
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  align-items: stretch;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(110deg, rgba(13, 42, 33, 0.9), rgba(13, 42, 33, 0.56) 48%, rgba(255, 250, 240, 0.22)),
    linear-gradient(180deg, #fffaf0, #e8d5ad);
  isolation: isolate;
}

.southern-map::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(178, 31, 45, 0.22), transparent 42%),
    linear-gradient(45deg, transparent 44%, rgba(0, 98, 51, 0.12) 44% 46%, transparent 46% 54%, rgba(178, 31, 45, 0.08) 54% 56%, transparent 56%);
}

.southern-map::after {
  opacity: 0.35;
}

.southern-plate .southern-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: inherit;
  opacity: 1;
}

.southern-plate .southern-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.southern-intro,
.southern-hubs,
.southern-programs,
.southern-vision {
  position: relative;
  z-index: 3;
}

.southern-intro {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  max-width: 880px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  color: #fffaf0;
  background: rgba(13, 42, 33, 0.68);
  box-shadow: 0 16px 34px rgba(20, 28, 24, 0.2);
}

.southern-intro strong {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.southern-intro span {
  color: #f3dfaf;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 900;
}

.southern-intro p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 240, 0.8);
  font-weight: 700;
  line-height: 1.45;
}

.southern-hubs {
  grid-column: 1;
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.southern-programs {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
}

.southern-hub,
.southern-map .southern-badge {
  display: grid;
  align-content: center;
  min-height: 112px;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 16px 34px rgba(20, 28, 24, 0.22);
}

.southern-hub {
  color: #fffaf0;
  background: linear-gradient(135deg, rgba(178, 31, 45, 0.92), rgba(0, 98, 51, 0.88));
}

.southern-hub span {
  color: #f3dfaf;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1;
}

.southern-hub b {
  font-size: 20px;
}

.southern-hub small {
  color: rgba(255, 250, 240, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.laayoune-node { background: linear-gradient(135deg, rgba(178, 31, 45, 0.94), rgba(95, 45, 45, 0.9)); }
.dakhla-node { background: linear-gradient(135deg, rgba(0, 98, 51, 0.94), rgba(15, 83, 92, 0.9)); }

.southern-badge {
  color: var(--morocco-ink);
  background: rgba(255, 250, 240, 0.92);
}

.southern-badge.water,
.southern-badge.industry {
  color: white;
}

.southern-badge.water {
  background: rgba(0, 98, 51, 0.92);
}

.southern-badge.industry {
  background: rgba(178, 31, 45, 0.92);
}

.southern-badge.ecology {
  background: rgba(232, 213, 173, 0.94);
}

.southern-badge.tourism {
  background: rgba(173, 158, 101, 0.95);
}

.southern-vision {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.southern-vision span,
.southern-vision a {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  color: #fffaf0;
  background: rgba(13, 42, 33, 0.7);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.southern-vision span:not(:last-child)::after,
.southern-vision a:not(:last-child)::after {
  content: "↓";
  color: #f3dfaf;
}

.institution-network {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  direction: ltr;
}

.institution-network a {
  display: grid;
  align-content: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(0, 98, 51, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--morocco-ink);
  text-align: left;
  box-shadow: 0 16px 34px rgba(65, 42, 22, 0.12);
}

.institution-network .institution-core {
  grid-column: 1 / -1;
  min-height: 150px;
  padding: 24px;
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 98, 51, 0.94), rgba(197, 32, 49, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(247, 220, 147, 0.32), transparent 28%);
}

.institution-network span,
.institution-network b,
.institution-network em {
  display: block;
}

.institution-network span {
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--morocco-green);
  background: rgba(0, 98, 51, 0.1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.institution-network .institution-core span {
  color: #2d2116;
  background: #f7dc93;
}

.institution-network b {
  margin-top: 14px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.18;
}

.institution-network em {
  margin-top: 12px;
  color: #5d4d37;
  font-style: normal;
  font-weight: 800;
  line-height: 1.4;
}

.institution-network .institution-core em {
  color: rgba(255, 255, 255, 0.88);
}

.institution-node.research { border-top: 5px solid var(--morocco-green); }
.institution-node.atlantic { border-top: 5px solid #167e7a; }
.institution-node.advisory { border-top: 5px solid var(--morocco-red); }
.institution-node.ecology { border-top: 5px solid var(--morocco-gold); }

.atlas-roadmap {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  min-height: 320px;
  align-items: center;
  direction: ltr;
}

.atlas-roadmap div,
.atlas-roadmap a {
  min-height: 190px;
  padding: 16px;
  color: white;
  background: var(--morocco-green);
  border-radius: 8px;
}

.atlas-roadmap div:nth-child(even),
.atlas-roadmap a:nth-child(even) {
  background: var(--morocco-red);
}

.atlas-roadmap b {
  display: block;
  font-size: 26px;
}

.atlas-roadmap span {
  display: block;
  margin-top: 84px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.final-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.final-split .final-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(246, 244, 235, 0.92);
  border-bottom: 1px solid rgba(20, 35, 31, 0.12);
  backdrop-filter: blur(16px);
}

.article-scroll-nav {
  position: sticky;
  top: var(--article-scroll-nav-top, 68px);
  z-index: 19;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 52px);
  background: rgba(255, 252, 244, 0.94);
  border-bottom: 1px solid rgba(20, 35, 31, 0.12);
  box-shadow: 0 10px 28px rgba(20, 35, 31, 0.08);
  backdrop-filter: blur(14px);
}

.article-scroll-nav a,
.article-scroll-nav select {
  min-height: 38px;
  border: 1px solid rgba(20, 35, 31, 0.14);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.article-scroll-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  text-decoration: none;
}

.article-scroll-nav select {
  width: 100%;
  padding: 8px 12px;
}

.article-scroll-nav .article-scroll-catalog {
  color: white;
  background: var(--green);
}

.article-scroll-nav .is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 7px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav a,
.site-footer a,
.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-current,
.nav a[aria-current="page"],
.nav a[aria-current="location"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.lang-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.lang-menu-options {
  display: contents;
}

.lang-menu-toggle {
  display: none;
}

.lang-btn {
  min-width: 38px;
  height: 32px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.active {
  color: white;
  background: var(--ink);
}

.hero {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 640px);
  align-items: stretch;
  background: #dfe8d8;
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(20, 35, 31, 0.08), rgba(20, 35, 31, 0.34));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 78px);
  background: linear-gradient(135deg, #f6f4eb 0%, #dce9dc 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #34443f;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.48);
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid rgba(20, 35, 31, 0.14);
  background: var(--white);
}

.metric-band div {
  min-height: 138px;
  padding: 28px;
  border-right: 1px solid rgba(20, 35, 31, 0.12);
}

.metric-band strong {
  display: block;
  color: var(--green);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

.metric-band span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 52px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.flow div,
.layer-list div,
.timeline div,
.info-grid div,
.species-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(28, 43, 37, 0.06);
}

.flow div {
  min-height: 150px;
  padding: 18px;
}

.flow span {
  display: block;
  color: var(--clay);
  font-size: 14px;
  font-weight: 900;
}

.flow b {
  display: block;
  margin-top: 36px;
  font-size: 22px;
  line-height: 1.15;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #edf0e5;
}

.split p {
  color: var(--muted);
  font-size: 18px;
}

.layer-list,
.species-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.layer-list div,
.species-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
}

.layer-list b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--teal);
  border-radius: 7px;
}

.image-panel,
.article-visual,
.wide-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 35, 31, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-panel img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 12px;
  background: #fbfaf5;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: grid;
  min-height: 460px;
  grid-template-rows: 250px auto auto 1fr;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.article-card img {
  height: 250px;
  border-radius: 6px;
  object-fit: cover;
}

.article-card span {
  margin-top: 16px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card p {
  color: var(--muted);
}

.article-card.muted {
  opacity: 0.72;
}

.catalog-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 22px;
}

.catalog-card img {
  grid-row: 1 / 4;
  height: 100%;
  min-height: 280px;
}

.timeline-section {
  background: #e5eadf;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.timeline div {
  min-height: 190px;
  padding: 20px;
}

.timeline b {
  display: block;
  color: var(--green);
  font-size: 34px;
}

.timeline span {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 52px);
  color: var(--muted);
  border-top: 1px solid rgba(20, 35, 31, 0.12);
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 52px);
  background: linear-gradient(135deg, #f7f5ed 0%, #dfe9dd 100%);
}

.article-hero.compact h1 {
  max-width: 18ch;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.02;
}

.article-hero h1 {
  max-width: 15ch;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1;
}

.article-visual img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
}

.article-layout.single-column {
  grid-template-columns: minmax(0, min(980px, 100%));
  justify-content: center;
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-left: 3px solid var(--green);
}

.toc a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.article-body {
  display: grid;
  gap: 54px;
  max-width: 960px;
  min-width: 0;
  width: 100%;
}

.article-body p {
  color: var(--muted);
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.info-grid div {
  min-height: 210px;
  padding: 20px;
}

.wide-image {
  margin-top: 22px;
}

.wide-image img {
  max-height: 520px;
  object-fit: cover;
}

.diagram-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}

.diagram-strip div {
  min-height: 96px;
  padding: 16px;
  color: white;
  background: var(--teal);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
}

.diagram-strip div:nth-child(2) {
  background: var(--green);
}

.diagram-strip div:nth-child(3) {
  background: var(--clay);
}

.diagram-strip div:nth-child(4) {
  color: var(--ink);
  background: var(--sand);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery img {
  height: 230px;
  object-fit: cover;
}

.gallery figcaption {
  min-height: 96px;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.takeaway {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  color: white;
  background: var(--ink);
}

.takeaway p {
  color: rgba(255, 255, 255, 0.78);
}

.catalog-hero {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.catalog-hero h1 {
  max-width: 14ch;
  margin-inline: auto;
}

.catalog-hero .lead {
  max-width: 58ch;
  margin-inline: auto;
}

.article-catalog {
  display: grid;
  width: min(100%, 920px);
  gap: 12px;
  margin-inline: auto;
  padding-top: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 122px;
  grid-template-areas:
    "number title thumb"
    "number summary thumb";
  gap: 7px 20px;
  align-items: center;
  min-height: 124px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(28, 43, 37, 0.05);
}

.article-row-thumb {
  grid-area: thumb;
  display: block;
  width: 122px;
  height: 92px;
  justify-self: end;
  border-radius: 6px;
  background: center / cover no-repeat #e6ece3;
}

.article-row span {
  grid-area: number;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  align-self: start;
  justify-self: start;
  border-radius: 999px;
  background: #fff8e8;
  color: var(--clay);
  font-size: 14px;
  font-weight: 900;
}

.article-row strong {
  grid-area: title;
  font-size: 18px;
  line-height: 1.2;
}

.article-row em {
  grid-area: summary;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
}

.source-article p {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 35, 31, 0.08);
}

.source-article.article-narrative-ready,
.source-article .article-narrative-ready {
  display: grid;
  gap: 18px;
}

.article-kicker-title {
  margin: 0 0 8px;
  color: var(--morocco-red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-editorial-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(20, 35, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(28, 43, 37, 0.06);
}

.article-editorial-section.is-opening-section {
  border-color: rgba(0, 102, 65, 0.22);
  background:
    linear-gradient(135deg, rgba(0, 102, 65, 0.11), rgba(255, 250, 240, 0.86)),
    #fffaf0;
}

.article-editorial-section.is-key-section {
  border-color: rgba(178, 31, 45, 0.24);
  background:
    linear-gradient(135deg, rgba(178, 31, 45, 0.09), rgba(0, 102, 65, 0.08)),
    #fffaf0;
}

.article-editorial-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.article-editorial-section p {
  margin: 0;
  padding: 0;
  border: 0;
  color: #43514a;
  font-size: 18px;
  line-height: 1.72;
}

.article-editorial-section .article-lede-paragraph {
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.52;
  font-weight: 850;
}

.article-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-points li {
  min-width: 0;
  min-height: 54px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 102, 65, 0.12);
  border-radius: 8px;
  color: #18322a;
  background: #f7f4ea;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.article-editorial-section.is-key-section .article-points li {
  border-color: rgba(178, 31, 45, 0.16);
  background: rgba(255, 255, 255, 0.68);
}

.article-editorial-section .article-flow-line {
  color: white;
}

.source-article .article-subhead {
  margin-top: 24px;
  padding: 14px 16px;
  border: 0;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  color: var(--ink);
  background: #f1f5ed;
  font-size: 20px;
  font-weight: 900;
}

.source-article .article-step {
  padding: 12px 14px;
  border: 1px solid rgba(18, 107, 74, 0.14);
  border-radius: 6px;
  background: #fffaf0;
  font-weight: 800;
}

.source-article .article-warning {
  padding: 12px 14px;
  border: 1px solid rgba(178, 31, 45, 0.2);
  border-radius: 6px;
  color: var(--morocco-red);
  background: rgba(178, 31, 45, 0.06);
  font-weight: 900;
}

.source-article .article-flow-line {
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: linear-gradient(90deg, var(--morocco-green), var(--teal));
  font-weight: 900;
  text-align: center;
}

.source-article a,
.article-body a {
  color: var(--morocco-green);
  font-weight: 850;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.source-article a:hover,
.article-body a:hover {
  color: var(--morocco-red);
}

.article-context-visuals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background: #f6efe1;
}

.article-context-visuals figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(28, 43, 37, 0.06);
}

.article-context-visuals img {
  height: 260px;
  object-fit: cover;
}

.article-context-visuals figcaption {
  min-height: 70px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

[data-locale][hidden] {
  display: none !important;
}

.localized-article {
  display: grid;
  gap: 26px;
}

.source-article section:has(.curated-article) > p,
.source-article section:has(.curated-article) > .auto-generic-table,
.source-article section:has(.curated-article) > .auto-species-table {
  display: none;
}

.article-note {
  padding: 18px 20px;
  border-left: 5px solid var(--morocco-green);
  border-radius: 8px;
  background: #f7efe0;
  color: #3d3326;
}

.species-table-wrap {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(178, 31, 45, 0.16);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 32px rgba(68, 43, 19, 0.08);
}

.species-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.species-table th,
.species-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(68, 43, 19, 0.12);
  text-align: left;
  vertical-align: top;
}

.is-rtl .species-table th,
.is-rtl .species-table td {
  text-align: right;
}

.species-table th {
  position: sticky;
  top: 0;
  background: var(--morocco-red);
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.species-table td:first-child {
  font-weight: 900;
  color: var(--morocco-ink);
}

.species-table em {
  color: var(--morocco-green);
  font-style: italic;
}

.auto-species-table {
  display: grid;
  gap: 16px;
  margin: 18px 0 28px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.auto-generic-table {
  display: grid;
  gap: 16px;
  margin: 18px 0 28px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.auto-table-head {
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 102, 65, 0.12), rgba(192, 28, 43, 0.08)),
    #fffaf1;
  border: 1px solid rgba(0, 102, 65, 0.14);
}

.auto-table-head h3 {
  margin: 0 0 8px;
  color: var(--morocco-green);
  font-size: clamp(22px, 3vw, 34px);
}

.auto-table-head p {
  margin: 0;
  max-width: 900px;
  color: #5f5142;
  font-weight: 700;
}

.article-callout {
  margin: 18px 0 24px;
  padding: 20px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(192, 28, 43, 0.1), rgba(0, 102, 65, 0.08)), #fffaf1;
  border: 1px solid rgba(192, 28, 43, 0.18);
}

.article-callout p {
  margin: 0;
}

.yadro-system-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 22px;
}

.yadro-system-flow article {
  position: relative;
  min-height: 188px;
  padding: 22px 18px 18px;
  border-radius: 8px;
  border: 1px solid rgba(0, 102, 65, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 238, 220, 0.9)),
    #fffaf1;
  box-shadow: 0 14px 32px rgba(17, 40, 31, 0.08);
}

.yadro-system-flow article::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 5px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--morocco-green), var(--morocco-red));
}

.yadro-system-flow span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--morocco-red);
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.yadro-system-flow h3 {
  margin: 0 0 10px;
  color: var(--morocco-ink);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.1;
}

.yadro-system-flow p {
  margin: 0;
  color: #4f5f58;
  font-size: 1rem;
  line-height: 1.55;
}

.article-editorial-section > .article-callout {
  display: block;
  color: var(--morocco-ink);
  font-weight: 800;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .yadro-system-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .yadro-system-flow {
    grid-template-columns: 1fr;
  }

  .yadro-system-flow article {
    min-height: auto;
  }
}

.article-bullets {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
  padding-left: 22px;
}

.article-bullets li {
  padding-left: 4px;
}

.article-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.article-source-card {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #fffaf1;
  border: 1px solid rgba(68, 43, 19, 0.12);
  box-shadow: 0 14px 30px rgba(68, 43, 19, 0.08);
  cursor: zoom-in;
}

.article-source-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.article-source-card figcaption {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.article-source-card figcaption strong {
  color: var(--morocco-ink);
  font-size: 15px;
}

.article-source-card figcaption span {
  color: #5f5142;
  font-size: 14px;
  line-height: 1.45;
}

.compact-article-gallery .article-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compact-article-gallery .article-gallery-card {
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #fffaf1;
  border: 1px solid rgba(68, 43, 19, 0.12);
  box-shadow: 0 10px 22px rgba(68, 43, 19, 0.07);
  cursor: zoom-in;
}

.compact-article-gallery .article-gallery-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  display: block;
}

.compact-article-gallery .article-gallery-card figcaption {
  min-height: 58px;
  padding: 10px 12px 12px;
  color: #3e362c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  background: #fffaf1;
  border-top: 1px solid rgba(68, 43, 19, 0.1);
}

.compact-species-table {
  min-width: 980px;
}

.compact-species-table td:nth-child(2) {
  color: var(--morocco-green);
  font-style: italic;
  font-weight: 800;
}

.compact-species-table .stage-cell {
  text-align: center;
  font-weight: 950;
  color: var(--morocco-red);
}

.compact-species-table td:nth-child(3),
.compact-species-table td:nth-child(4),
.compact-species-table td:nth-child(5) {
  white-space: nowrap;
}

.risk-high {
  color: #9f1d2f;
  font-weight: 900;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.priority-grid div {
  padding: 18px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 26px rgba(68, 43, 19, 0.08);
}

.priority-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--morocco-red);
}

.article-inline-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.article-inline-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(28, 43, 37, 0.06);
}

.article-inline-gallery figure::after,
.article-visual::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(18, 31, 27, 0.72);
  color: #fffaf0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.article-inline-gallery figure:hover::after,
.article-visual:hover::after,
.article-inline-gallery figure:focus-visible::after,
.article-visual:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.article-inline-gallery img {
  width: 100%;
  height: clamp(120px, 14vw, 170px);
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.article-inline-gallery figure:hover img,
.article-inline-gallery figure:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.06);
}

.article-inline-gallery figcaption {
  min-height: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.fog-hero h1 {
  max-width: 14ch;
}

.fog-story {
  background: #eef3ee;
}

.fog-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fog-chain div {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(28, 43, 37, 0.06);
}

.fog-chain span {
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
}

.fog-chain b {
  display: block;
  margin-top: 34px;
  font-size: 24px;
  line-height: 1.1;
}

.fog-chain p,
.species-showcase p,
.system-note p {
  color: var(--muted);
  font-weight: 700;
}

.fog-split {
  background: var(--paper);
}

.species-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  background: #e6ece3;
}

.species-showcase article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(28, 43, 37, 0.06);
}

.species-showcase img {
  height: 220px;
  object-fit: cover;
}

.species-showcase h3,
.species-showcase p {
  padding-inline: 16px;
}

.species-showcase h3 {
  margin-top: 16px;
}

.species-showcase p {
  min-height: 142px;
}

.fog-mechanism {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.mechanism-card {
  padding: clamp(24px, 5vw, 48px);
  border-radius: 8px;
  color: white;
  background: var(--ink);
}

.mechanism-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.mechanism-card .diagram-strip div {
  color: var(--ink);
  background: var(--sand);
}

.system-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 18px;
  align-items: stretch;
  background: #f4f0e4;
}

.system-note > div {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.system-note p {
  font-size: 18px;
}

.truth-box {
  color: white;
  background: var(--green) !important;
}

.truth-box p {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .article-scroll-nav {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }

  .article-scroll-nav .article-scroll-catalog {
    grid-column: 1 / -1;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .deck-cover,
  .deck-slide,
  .solution-slide,
  .deck-close,
  .atlas-cover,
  .atlas-split,
  .royal-hero,
  .royal-module,
  .decision-section,
  .analytic-shell,
  .split,
  .article-hero,
  .article-layout,
  .fog-mechanism,
  .system-note {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-media {
    min-height: 420px;
  }

  .metric-band,
  .deck-kpis,
  .solution-flow,
  .water-stats,
  .module-board,
  .presentation-zones,
  .deck-gallery,
  .pilot-steps,
  .future-board,
  .atlas-cross-section,
  .atlas-flow,
  .solar-diagram,
  .atlas-roadmap,
  .atlas-kpi-strip,
  .atlas-growth-chart,
  .atlas-donut-row,
  .final-flow,
  .value-grid,
  .zone-ribbon,
  .visual-band,
  .flow,
  .timeline,
  .info-grid,
  .gallery,
  .article-inline-gallery,
  .article-context-visuals,
  .fog-chain,
  .species-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-row {
    grid-template-columns: 54px minmax(0, 1fr) 112px;
  }

  .toc {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 0;
    border-top: 3px solid var(--green);
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .brand small {
    display: none;
  }

  .hero-media {
    min-height: 310px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .metric-band,
  .deck-kpis,
  .solution-flow,
  .module-board,
  .presentation-zones,
  .deck-gallery,
  .pilot-steps,
  .future-board,
  .atlas-cross-section,
  .atlas-flow,
  .solar-diagram,
  .atlas-roadmap,
  .atlas-kpi-strip,
  .atlas-growth-chart,
  .atlas-donut-row,
  .final-flow,
  .value-grid,
  .zone-ribbon,
  .visual-band,
  .flow,
  .timeline,
  .info-grid,
  .gallery,
  .article-context-visuals,
  .article-inline-gallery,
  .article-image-grid,
  .fog-chain,
  .species-showcase,
  .article-grid,
  .catalog-card,
  .article-row,
  .diagram-strip,
  .toc {
    grid-template-columns: 1fr;
  }

  .article-layout.single-column,
  .article-body,
  .source-article,
  .source-article section,
  .article-editorial-section,
  .auto-generic-table,
  .auto-species-table,
  .species-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .article-editorial-section {
    padding: 18px;
  }

  .article-editorial-section h3,
  .auto-table-head h3 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .compact-article-gallery .article-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .compact-article-gallery .article-gallery-card img {
    height: 112px;
  }

  .compact-article-gallery .article-gallery-card figcaption {
    padding: 8px;
    font-size: 12px;
  }

  .article-points {
    grid-template-columns: 1fr;
  }

  .royal-hero {
    min-height: 0;
  }

  .royal-map img {
    aspect-ratio: 4 / 3;
  }

  .analytic-index {
    position: static;
  }

  .atlas-flow span:not(:last-child)::after,
.atlas-flow a:not(:last-child)::after {
    right: auto;
    bottom: -24px;
    content: "↓";
  }

  .future-coast,
  .future-node,
  .atlas-cross-section div,
  .solar-diagram div,
  .atlas-roadmap div,
.atlas-roadmap a {
    min-height: 112px !important;
  }

  .atlas-roadmap span {
    margin-top: 18px;
  }

  .atlas-value-bars div,
.atlas-value-bars a {
    grid-template-columns: 1fr;
  }

  .catalog-hero {
    text-align: center;
  }

  .article-catalog {
    width: min(100%, 560px);
  }

  .article-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "number thumb"
      "number title"
      "number summary";
    justify-items: start;
    min-height: 0;
    padding: 16px;
    text-align: left;
  }

  .article-row-thumb {
    width: min(190px, 100%);
    height: 108px;
    justify-self: stretch;
  }

  .article-row span {
    align-self: start;
    justify-self: start;
  }

  .article-row strong {
    max-width: 22rem;
  }

  .article-row em {
    max-width: 28rem;
  }

  .economy-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-roadmap-graph span,
.atlas-roadmap-graph a {
    width: 100% !important;
  }

  .institution-network {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .executive-photo,
  .future-photo,
  .southern-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 340px;
    margin-bottom: 14px;
  }

  .executive-map {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .executive-map .executive-photo,
  .future-board .future-photo {
    height: clamp(260px, 58vw, 360px);
  }

  .executive-map .coastline {
    display: none;
  }

  .economy-orbit .economy-photo {
    height: 240px;
  }

  .atlas-image-card {
    grid-template-rows: minmax(180px, 260px) auto;
    min-height: 0;
  }

  .vision-image-card {
    grid-template-rows: minmax(320px, 58vw) auto;
  }

  .zone-image-card {
    grid-template-rows: minmax(320px, 58vw) auto;
  }

  .economy-orbit {
    grid-template-columns: 1fr;
  }

  .atlas-split .atlas-cross-section,
  .atlas-split .atlas-flow,
  .atlas-split .solar-diagram,
  .atlas-split .soil-layers {
    min-height: 0;
  }

  .executive-map,
  .future-board,
  .atlas-cross-section,
  .atlas-flow,
  .solar-diagram,
  .atlas-roadmap,
  .atlas-kpi-strip,
  .atlas-growth-chart,
  .final-flow,
  .soil-layers,
  .economy-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-map .executive-photo,
  .future-board .future-photo,
  .economy-orbit .economy-photo {
    grid-column: 1 / -1;
  }

  .atlas-split .atlas-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atlas-flow span:not(:last-child)::after,
.atlas-flow a:not(:last-child)::after {
    display: none;
  }

  .atlas-donut-row {
    grid-template-columns: 1fr;
  }

  .document-hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .document-hero figure,
  .document-hero img {
    min-height: 240px;
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .water-visual-slide,
  .performance-slide {
    grid-template-columns: 1fr;
  }

  .metric-chart {
    grid-template-columns: 1fr;
  }

  .catalog-card img {
    grid-row: auto;
  }

  .article-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .southern-map {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  .southern-plate .southern-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
  }

  .southern-intro,
  .southern-hubs,
  .southern-programs,
  .southern-vision {
    grid-column: 1;
  }

  .southern-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .southern-vision {
    grid-template-columns: 1fr;
  }

  .southern-vision span:not(:last-child)::after,
.southern-vision a:not(:last-child)::after {
    content: "";
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .analytic-shell {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  }

  .analytic-index {
    position: sticky;
    top: 92px;
  }

  .analytic-index-card {
    max-height: calc(100vh - 112px);
  }
}

@media (min-width: 560px) and (max-width: 680px) {
  .analytic-shell {
    grid-template-columns: minmax(156px, 178px) minmax(0, 1fr);
    gap: 12px;
    padding-inline: 12px;
  }

  .analytic-index {
    position: sticky;
    top: 92px;
  }

  .analytic-index-card {
    max-height: calc(100vh - 108px);
    padding: 10px;
  }

  .analytic-index-card p {
    font-size: 10px;
  }

  .analytic-index nav,
  .analytic-index-links {
    gap: 4px;
  }

  .analytic-index a {
    padding: 7px 8px;
    font-size: 11px;
  }

  .analytic-paper {
    padding: 22px;
  }

  .atlas-split,
  .final-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .southern-map {
    grid-template-columns: minmax(180px, 0.82fr) minmax(250px, 1.18fr);
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .southern-intro {
    grid-column: 1 / -1;
    padding: 14px;
  }

  .southern-intro p {
    font-size: 14px;
  }

  .southern-hubs {
    grid-column: 1;
  }

  .southern-programs {
    grid-column: 2;
    grid-template-columns: 1fr;
  }

  .southern-hub,
  .southern-map .southern-badge {
    min-height: 76px;
    padding: 12px;
  }

  .southern-vision {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .southern-vision span,
.southern-vision a {
    min-height: 48px;
    font-size: 12px;
  }

  .atlas-image-card {
    grid-template-rows: minmax(220px, 260px) auto;
  }

  .vision-image-card {
    grid-template-rows: minmax(360px, 62vw) auto;
  }

  .zone-image-card {
    grid-template-rows: minmax(360px, 62vw) auto;
  }

  .atlas-split .atlas-flow,
  .atlas-split .solar-diagram,
  .atlas-split .soil-layers,
  .final-split .final-flow {
    grid-template-columns: 1fr;
  }

  .atlas-split .atlas-flow span,
  .solar-diagram div,
  .soil-layers div,
  .final-flow span {
    min-height: 52px !important;
    font-size: 15px;
  }

  .atlas-image-card figcaption {
    min-height: 64px;
    padding: 12px;
    font-size: 14px;
  }
}

/* The analytics TOC is moved into the header on compact screens. Once moved,
   its empty aside must not keep reserving the first desktop grid column. */
@media (max-width: 680px) {
  .analytics-page .analytic-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .analytics-page .analytic-shell > .analytic-index:empty {
    display: none;
  }

  .analytics-page .analytic-paper {
    width: 100%;
    min-width: 0;
  }
}

.article-nav-toggle {
  display: none;
  min-height: 38px;
  border: 1px solid rgba(20, 35, 31, 0.14);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 680px) {
  .article-scroll-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 12px;
  }

  .article-scroll-nav .article-scroll-catalog {
    grid-column: auto;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1;
  }

  .article-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1;
  }

  .article-scroll-nav select,
  .article-scroll-nav > a:not(.article-scroll-catalog) {
    display: none;
  }

  .article-scroll-nav.is-open {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .article-scroll-nav.is-open .article-scroll-catalog,
  .article-scroll-nav.is-open .article-nav-toggle {
    grid-column: 1 / -1;
  }

  .article-scroll-nav.is-open select,
  .article-scroll-nav.is-open > a:not(.article-scroll-catalog) {
    display: inline-flex;
    min-width: 0;
  }

  .article-scroll-nav.is-open select {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    font-size: 14px;
  }
}


.initiative-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.initiative-index-head p {
  margin: 0;
}

.initiative-index-toggle {
  display: none;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(18, 43, 49, 0.18);
  border-radius: 6px;
  color: var(--morocco-green);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.initiative-index-toggle:hover,
.initiative-index-toggle:focus-visible {
  border-color: var(--morocco-green);
  background: #fff8e9;
}

@media (max-width: 680px) {
  .initiative-index-card {
    max-height: none;
    overflow: visible;
  }

  .initiative-index-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .initiative-index-card.is-collapsed nav,
  .initiative-index-card.is-collapsed .analytic-index-links {
    display: none;
  }

  .initiative-index-card:not(.is-collapsed) {
    max-height: min(46vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}


/* analytics-version-panel mobile fix */
@media (max-width: 680px) {
  .analytics-version-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
    margin: 18px 18px 0;
    padding: 16px;
  }

  .analytics-version-panel > div,
  .analytics-version-panel h2,
  .analytics-version-panel p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .analytics-version-panel h2 {
    font-size: clamp(23px, 8vw, 30px);
    line-height: 1.12;
  }

  .analytics-version-panel p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.5;
  }

  .analytics-version-actions {
    justify-content: stretch;
    width: 100%;
  }

  .analytics-version-btn {
    flex: 1 1 140px;
    min-width: 0;
    padding: 10px 12px;
    text-align: center;
    line-height: 1.15;
  }
}


/* sources mobile header and compact cards */
.sources-project-head {
  display: none;
}

.sources-project-toggle {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(18, 43, 49, 0.18);
  border-radius: 6px;
  color: var(--morocco-green);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sources-project-toggle:hover,
.sources-project-toggle:focus-visible {
  border-color: var(--morocco-green);
  background: #fff8e9;
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    padding: 8px 16px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1;
  }

  .lang-switcher {
    justify-self: end;
    padding: 2px;
  }

  .lang-btn {
    min-width: 32px;
    height: 28px;
    font-size: 12px;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    gap: 14px;
    padding-bottom: 2px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav a,
  .site-footer a,
  .back-link {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.15;
  }

  .sources-page .sources-shell {
    padding-inline: 22px;
  }

  .sources-page .sources-index {
    position: static;
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .sources-page .sources-project-card {
    padding: 10px;
  }

  .sources-project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .sources-project-head p {
    margin: 0;
    color: var(--morocco-red);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .sources-page .sources-project-card.is-collapsed .analytic-index-links {
    display: none;
  }

  .sources-page .sources-index .document-section-index.sources-compact-toc,
  .sources-page .sources-section-index {
    position: sticky;
    top: calc(var(--mobile-header-height, 92px) + 8px);
    z-index: 18;
    max-height: min(46vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-bottom: 12px;
  }

  .sources-page .sources-index .document-section-index.is-collapsed,
  .sources-page .sources-index .document-section-index.sources-compact-toc.is-collapsed {
    max-height: none;
    overflow: visible;
  }
}


/* sources toc inside mobile header */
@media (max-width: 680px) {
  .site-header .sources-section-index.sources-toc-in-header,
  .site-header .document-section-index.sources-toc-in-header {
    grid-column: 1 / -1;
    width: 100%;
    max-height: min(50vh, 380px);
    margin: 0;
    padding: 8px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 8px;
    box-shadow: none;
    background: rgba(255, 250, 244, 0.94);
  }

  .site-header .sources-section-index.sources-toc-in-header.is-collapsed,
  .site-header .document-section-index.sources-toc-in-header.is-collapsed {
    max-height: none;
    overflow: visible;
  }

  .site-header .sources-toc-in-header .sources-toc-head,
  .site-header .sources-toc-in-header .document-index-head {
    position: static;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    background: transparent;
  }

  .site-header .sources-toc-in-header nav {
    margin-top: 8px;
  }
}

@media (min-width: 681px) {
  .sources-toc-in-header {
    grid-column: auto;
  }
}


/* sources mobile toc same row as languages */
@media (max-width: 680px) {
  .sources-page .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .sources-page .site-header .brand {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .sources-page .site-header .nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .sources-page .site-header .lang-switcher {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }

  .sources-page .site-header .sources-section-index.sources-toc-in-header,
  .sources-page .site-header .document-section-index.sources-toc-in-header {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    min-width: 0;
    width: 100%;
    padding: 0;
    border-radius: 8px;
    border-color: rgba(178, 31, 45, 0.16);
    background: rgba(255, 250, 244, 0.72);
  }

  .sources-page .site-header .sources-toc-in-header .sources-toc-head,
  .sources-page .site-header .sources-toc-in-header .document-index-head {
    height: 100%;
    min-height: 34px;
    gap: 6px;
    padding: 0 8px;
  }

  .sources-page .site-header .sources-toc-title,
  .sources-page .site-header .document-index-head p {
    min-width: 0;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sources-page .site-header .sources-toc-toggle,
  .sources-page .site-header .document-index-toggle {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .sources-page .site-header .sources-toc-in-header nav {
    margin-top: 6px;
    padding: 8px;
  }
}


/* final mobile ergonomics pass */
@media (max-width: 680px) {
  .site-header {
    gap: 6px 10px;
    padding: 8px 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 13px;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    min-width: 32px;
    height: 28px;
    font-size: 12px;
  }

  .nav {
    gap: 14px;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav a,
  .site-footer a,
  .back-link {
    font-size: 12px;
    line-height: 1.15;
  }

  .deck-slide h2,
  .solution-slide h2,
  .slide-copy h2 {
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.08;
  }

  .document-hero h1,
  .analytic-hero h1,
  .article-hero h1 {
    font-size: clamp(32px, 10vw, 38px);
    line-height: 1.08;
  }

  .atlas-cover h1 {
    font-size: clamp(46px, 15vw, 56px);
    line-height: 1.05;
  }

  .analytic-table-wrap,
  .species-table-wrap,
  .sources-table-wrap {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .analytic-table-wrap::after,
  .species-table-wrap::after,
  .sources-table-wrap::after {
    content: "";
    position: sticky;
    right: 0;
    display: block;
    width: 28px;
    height: 1px;
    margin-left: auto;
    pointer-events: none;
    box-shadow: -18px 0 22px rgba(20, 35, 31, 0.14);
  }

  .analytic-table {
    min-width: min(520px, 148vw);
    font-size: 14px;
  }

  .sources-doc-table {
    min-width: min(500px, 142vw);
  }

  .species-table {
    min-width: min(680px, 188vw);
    font-size: 13px;
  }

  .analytic-table th,
  .analytic-table td,
  .species-table th,
  .species-table td {
    padding: 10px 11px;
    line-height: 1.35;
  }
}


/* final mobile header two-row order */
@media (max-width: 680px) {
  body:not(.sources-page) .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:not(.sources-page) .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  body:not(.sources-page) .site-header .lang-switcher {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  body:not(.sources-page) .site-header .nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}


/* analytics mobile sticky toc */
.nav-menu-toggle {
  display: none;
}

@media (max-width: 680px) {
  body:not(.sources-page) .site-header {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  body:not(.sources-page) .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  body:not(.sources-page) .site-header .nav-menu-toggle {
    display: inline-grid;
    grid-column: 2;
    grid-row: 1;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  body:not(.sources-page) .site-header .lang-switcher {
    grid-column: 3;
    grid-row: 1;
  }

  body:not(.sources-page) .site-header > .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    z-index: 35;
    display: none;
    max-height: calc(100vh - 90px);
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 252, 244, 0.98);
    box-shadow: 0 18px 42px rgba(20, 35, 31, 0.2);
  }

  body:not(.sources-page) .site-header.is-nav-open > .nav {
    display: flex;
  }

  body:not(.sources-page) .site-header > .nav a {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .initiative-index {
    display: none;
  }

  body:not(.sources-page) .site-header:has(.initiative-index-in-header) {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .site-header .initiative-index-in-header.is-collapsed {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    gap: 0;
    overflow: visible;
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: none;
    background: var(--white);
  }

  body:not(.sources-page) .site-header:has(.initiative-index-in-header) .nav-menu-toggle {
    grid-column: 3;
  }

  body:not(.sources-page) .site-header:has(.initiative-index-in-header) .lang-switcher {
    grid-column: 4;
  }

  .site-header .initiative-index-in-header.is-collapsed .initiative-index-head {
    display: block;
  }

  .site-header .initiative-index-in-header.is-collapsed .initiative-index-head p {
    display: none;
  }

  .site-header .initiative-index-in-header .initiative-index-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font-size: 0;
  }

  .site-header .initiative-index-in-header .initiative-index-toggle::before {
    content: "☷";
    font-size: 21px;
    line-height: 1;
  }

  .site-header .initiative-index-in-header:not(.is-collapsed) {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    z-index: 36;
    width: auto;
    padding: 12px;
    border-radius: 10px;
    background: #fffdf7;
  }

  .site-header .initiative-index-in-header:not(.is-collapsed) .initiative-index-toggle::before {
    content: "×";
  }

  .site-header .initiative-index-in-header:not(.is-collapsed) .initiative-index-toggle {
    width: 34px;
    height: 34px;
  }

  .site-header .initiative-index-in-header:not(.is-collapsed) nav,
  .site-header .initiative-index-in-header:not(.is-collapsed) .analytic-index-links {
    display: grid;
    gap: 6px;
  }

  .site-header .initiative-index-in-header .analytic-index-links {
    padding-top: 10px;
    border-top: 1px solid rgba(18, 43, 49, 0.12);
  }

  .site-header .initiative-index-in-header a {
    display: block;
    padding: 9px 10px;
    border-left: 3px solid rgba(178, 31, 45, 0.32);
    border-radius: 0 6px 6px 0;
    color: var(--morocco-ink);
    background: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
  }

  .site-header .initiative-index-in-header .analytic-index-links a {
    border-left-color: var(--morocco-green);
    color: var(--morocco-green);
  }

  .document-page .document-shell > .analytic-index {
    display: none;
  }

  .document-page .document-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .document-page .document-shell > .document-paper {
    width: 100%;
    min-width: 0;
  }

  body:not(.sources-page) .site-header.has-document-header-nav {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  }

  body:not(.sources-page) .site-header.has-single-document-header-nav {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .analytics-page .analytic-shell > .analytic-index {
    display: none;
  }

  body:not(.sources-page) .site-header.has-single-document-header-nav .document-toc-header-card {
    grid-column: 2;
  }

  body:not(.sources-page) .site-header.has-single-document-header-nav .nav-menu-toggle {
    grid-column: 3;
  }

  body:not(.sources-page) .site-header.has-single-document-header-nav .lang-switcher {
    grid-column: 4;
  }

  .site-header.has-document-header-nav .document-pages-header-card {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header.has-document-header-nav .document-toc-header-card {
    grid-column: 3;
    grid-row: 1;
  }

  body:not(.sources-page) .site-header.has-document-header-nav .nav-menu-toggle {
    grid-column: 4;
  }

  body:not(.sources-page) .site-header.has-document-header-nav .lang-switcher {
    grid-column: 5;
  }

  .site-header .document-header-card:is(.is-collapsed, :has(> nav[hidden])) {
    position: relative;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    gap: 0;
    overflow: visible;
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: none;
    background: var(--white);
  }

  .site-header .document-header-card:is(.is-collapsed, :has(> nav[hidden])) .document-index-head {
    display: block;
  }

  .site-header .document-header-card:is(.is-collapsed, :has(> nav[hidden])) .document-index-head p {
    display: none;
  }

  .site-header .document-header-card .document-index-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font-size: 0;
  }

  .site-header .document-pages-header-card .document-index-toggle::before {
    content: "▦";
    font-size: 20px;
    line-height: 1;
  }

  .site-header .document-toc-header-card .document-index-toggle::before {
    content: "☷";
    font-size: 21px;
    line-height: 1;
  }

  .site-header .document-header-card:not(.is-collapsed):not(:has(> nav[hidden])) {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    z-index: 37;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: auto;
    max-height: min(58vh, 420px);
    padding: 12px;
    overflow-y: auto;
    border-radius: 10px;
    background: #fffdf7;
  }

  .site-header .document-header-card:not(.is-collapsed):not(:has(> nav[hidden])) .document-index-toggle::before {
    content: "×";
  }

  .site-header .document-header-card:not(.is-collapsed):not(:has(> nav[hidden])) nav,
  .site-header .document-header-card:not(.is-collapsed):not(:has(> nav[hidden])) .analytic-index-links {
    display: grid;
    gap: 6px;
  }

  .site-header .document-header-card a {
    display: block;
    padding: 9px 10px;
    border-left: 3px solid rgba(178, 31, 45, 0.32);
    border-radius: 0 6px 6px 0;
    color: var(--morocco-ink);
    background: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
  }
}

.lang-menu-toggle {
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .lang-switcher {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .lang-menu-toggle {
    display: inline-flex;
    min-width: 58px;
    height: 38px;
  }

  .lang-menu-options {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    display: none;
    min-width: 58px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 32px rgba(20, 35, 31, 0.18);
  }

  .lang-switcher.is-open .lang-menu-options {
    display: grid;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  body:not(.sources-page) .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: clamp(14px, 2.5vw, 24px);
  }

  body:not(.sources-page) .site-header .nav {
    grid-column: auto;
    justify-content: center;
    gap: clamp(2px, 0.7vw, 8px);
  }

  body:not(.sources-page) .site-header .nav a {
    flex: 0 0 auto;
    padding-inline: clamp(5px, 0.8vw, 8px);
    font-size: clamp(11px, 1.35vw, 13px);
  }

  body:not(.sources-page) .site-header .brand small {
    display: none;
  }

  .sources-page .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: clamp(14px, 2.5vw, 24px);
  }

  .sources-page .site-header .brand {
    grid-column: auto;
    grid-row: 1;
  }

  .sources-page .site-header .brand small {
    display: none;
  }

  .sources-page .site-header .nav {
    grid-column: auto;
    grid-row: 1;
    justify-content: center;
    gap: clamp(2px, 0.7vw, 8px);
    min-width: 0;
  }

  .sources-page .site-header .nav a {
    flex: 0 0 auto;
    padding-inline: clamp(5px, 0.8vw, 8px);
    font-size: clamp(11px, 1.35vw, 13px);
    white-space: nowrap;
  }

  .sources-page .site-header .lang-switcher {
    grid-column: auto;
    grid-row: 1;
    justify-self: end;
  }
}

.analytics-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.analytics-toc-head p {
  margin: 0;
}

.analytics-toc-toggle {
  display: none;
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(18, 43, 49, 0.18);
  border-radius: 6px;
  color: var(--morocco-green);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.analytics-toc-toggle:hover,
.analytics-toc-toggle:focus-visible {
  border-color: var(--morocco-green);
  background: #fff8e9;
}

@media (max-width: 680px) {
  .document-page-links nav[hidden] {
    display: none;
  }

  .analytics-page .analytic-index {
    position: sticky;
    top: calc(var(--mobile-header-height, 73px) + 8px);
    z-index: 18;
    align-self: start;
  }

  .analytics-page .analytics-toc-card {
    max-height: min(46vh, 360px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .analytics-page .analytics-toc-card.is-collapsed {
    max-height: none;
    overflow: visible;
  }

  .analytics-page .analytics-toc-card.is-collapsed nav {
    display: none;
  }

  .analytics-toc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .analytics-page .analytics-toc-card nav a {
    padding: 9px 10px;
    font-size: 0.78rem;
    line-height: 1.2;
  }
}


@media (max-width: 680px) {
  .analytics-page .analytics-toc-card.is-collapsed .analytic-index-links {
    display: none;
  }

  .analytics-page .analytics-toc-card.is-collapsed {
    gap: 0;
    padding: 10px 12px;
  }
}


/* clickable home cards */
.deck-kpis a,
.problem-board a,
.solution-flow a,
.module-board a,
.water-stats a,
.presentation-zones a,
.metric-chart,
.deck-gallery a,
.pilot-steps a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.deck-kpis a:hover,
.deck-kpis a:focus-visible,
.problem-board a:hover,
.problem-board a:focus-visible,
.solution-flow a {
  color: #fff8e9;
}

.solution-flow a:nth-child(3) {
  color: var(--morocco-ink);
}

.solution-flow a:nth-child(4) {
  color: #fff8e9;
}

.solution-flow a:hover,
.solution-flow a:focus-visible,
.module-board a:hover,
.module-board a:focus-visible,
.water-stats a:hover,
.water-stats a:focus-visible,
.presentation-zones a:hover,
.presentation-zones a:focus-visible,
.metric-chart:hover,
.metric-chart:focus-visible,
.deck-gallery a:hover,
.deck-gallery a:focus-visible,
.pilot-steps a:hover,
.pilot-steps a:focus-visible,
.close-actions a:hover,
.close-actions a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(65, 42, 22, 0.16);
  outline: 2px solid rgba(0, 98, 51, 0.28);
  outline-offset: 3px;
}

.deck-kpis a:hover,
.deck-kpis a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.solution-flow a:hover,
.solution-flow a:focus-visible,
.module-board a:hover,
.module-board a:focus-visible,
.presentation-zones a:hover,
.presentation-zones a:focus-visible {
  filter: brightness(1.06);
}

.water-stats a:hover,
.water-stats a:focus-visible {
  border-color: rgba(0, 98, 51, 0.4);
}

.deck-gallery a {
  display: block;
}

.deck-gallery a figure {
  height: 100%;
}

@media (max-width: 760px) {
  .deck-kpis a:hover,
  .problem-board a:hover,
  .solution-flow a:hover,
  .module-board a:hover,
  .water-stats a:hover,
  .presentation-zones a:hover,
  .metric-chart:hover,
  .deck-gallery a:hover,
  .pilot-steps a:hover {
    transform: none;
  }
}


/* interactive atlas */
.atlas-jump-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px clamp(28px, 4vw, 54px);
  background: #fffaf0;
  border-bottom: 1px solid rgba(178, 31, 45, 0.16);
}

.atlas-jump-nav a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--morocco-ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 98, 51, 0.18);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(65, 42, 22, 0.08);
}

.atlas-jump-nav span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--morocco-red);
  border-radius: 50%;
  font-weight: 900;
}

.atlas-jump-nav b {
  min-width: 0;
  font-size: 14px;
  line-height: 1.15;
}

.atlas-cover .atlas-emblem {
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.solar-diagram a,
.soil-layers a,
.atlas-value-bars a,
.economy-orbit a,
.southern-hub,
.southern-badge,
.southern-vision a,
.institution-network a,
.atlas-roadmap-graph a,
.atlas-kpi-strip a,
.atlas-growth-chart > a,
.atlas-cross-section a,
.atlas-flow a,
.atlas-donut-row a,
.atlas-roadmap a,
.atlas-photo,
.atlas-image-card,
.pilot-zone,
.expansion-zone {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.atlas-flow a,
.atlas-cross-section a,
.atlas-roadmap a {
  color: white;
}

.solar-diagram a:hover,
.solar-diagram a:focus-visible,
.soil-layers a:hover,
.soil-layers a:focus-visible,
.atlas-value-bars a:hover,
.atlas-value-bars a:focus-visible,
.economy-orbit a:hover,
.economy-orbit a:focus-visible,
.southern-hub:hover,
.southern-hub:focus-visible,
.southern-badge:hover,
.southern-badge:focus-visible,
.southern-vision a:hover,
.southern-vision a:focus-visible,
.institution-network a:hover,
.institution-network a:focus-visible,
.atlas-roadmap-graph a:hover,
.atlas-roadmap-graph a:focus-visible,
.atlas-kpi-strip a:hover,
.atlas-kpi-strip a:focus-visible,
.atlas-growth-chart > a:hover,
.atlas-growth-chart > a:focus-visible,
.atlas-cross-section a:hover,
.atlas-cross-section a:focus-visible,
.atlas-flow a:hover,
.atlas-flow a:focus-visible,
.atlas-donut-row a:hover,
.atlas-donut-row a:focus-visible,
.atlas-roadmap a:hover,
.atlas-roadmap a:focus-visible,
.atlas-photo:hover,
.atlas-photo:focus-visible,
.atlas-image-card:hover,
.atlas-image-card:focus-visible,
.pilot-zone:hover,
.pilot-zone:focus-visible,
.expansion-zone:hover,
.expansion-zone:focus-visible,
.atlas-jump-nav a:hover,
.atlas-jump-nav a:focus-visible,
.atlas-cover .atlas-emblem:hover,
.atlas-cover .atlas-emblem:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(65, 42, 22, 0.18);
  outline: 2px solid rgba(0, 98, 51, 0.28);
  outline-offset: 3px;
}

.atlas-cross-section a:hover,
.atlas-flow a:hover,
.atlas-roadmap a:hover {
  filter: brightness(1.06);
}


@media (max-width: 920px) {
  .atlas-jump-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .atlas-jump-nav {
    grid-template-columns: 1fr;
    padding: 10px 18px;
  }

  .atlas-kpi-strip a:hover,
  .atlas-growth-chart > a:hover,
  .atlas-cross-section a:hover,
  .atlas-flow a:hover,
  .atlas-roadmap a:hover,
  .atlas-photo:hover,
  .atlas-image-card:hover,
  .pilot-zone:hover,
  .expansion-zone:hover,
  .atlas-jump-nav a:hover {
    transform: none;
  }
}


/* atlas link cleanup */
.solar-diagram a,
.soil-layers a,
.atlas-value-bars a,
.economy-orbit a,
.southern-hub,
.southern-badge,
.southern-vision a,
.institution-network a,
.atlas-roadmap-graph a {
  text-decoration: none;
}

.solar-diagram a,
.soil-layers a,
.southern-hub,
.southern-badge,
.southern-vision a,
.atlas-roadmap-graph a {
  color: inherit;
}

.atlas-value-bars a {
  color: var(--morocco-ink);
}

.institution-network a:not(.institution-core) {
  color: var(--morocco-ink);
}

/* Atlas roadmap: connect timeline stages with the outcome graph. */
#atlas-roadmap .atlas-roadmap {
  min-height: 0;
  align-items: stretch;
  margin-bottom: 0;
}

#atlas-roadmap .atlas-roadmap a {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0 14px 28px rgba(68, 43, 19, 0.08);
}

#atlas-roadmap .atlas-roadmap span {
  margin-top: 0;
}

#atlas-roadmap .atlas-roadmap-graph {
  margin-top: 0;
  padding: 18px 16px 16px;
  border-top: 0;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
}

#atlas-roadmap .atlas-roadmap-graph a {
  min-height: 46px;
  display: flex;
  align-items: center;
}

@media (max-width: 720px) {
  #atlas-roadmap .atlas-roadmap a {
    min-height: 118px;
    border-radius: 8px;
  }

  #atlas-roadmap .atlas-roadmap-graph {
    margin-top: 10px;
    border-top: 1px solid rgba(178, 31, 45, 0.16);
    border-radius: 8px;
  }
}
/* Atlas contrast fixes for dark interactive cards. */
.atlas-growth-chart > a,
.atlas-growth-chart > a b,
.atlas-growth-chart > a em {
  color: #fffaf0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.atlas-growth-chart > a span,
.atlas-growth-chart > a small {
  color: #ffe39a;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.southern-vision a {
  color: #fffaf0 !important;
  background: linear-gradient(180deg, rgba(11, 36, 29, 0.9), rgba(11, 36, 29, 0.76));
  border-color: rgba(255, 250, 240, 0.34);
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
}

.southern-vision a:nth-child(3),
.southern-vision a:nth-child(4) {
  background: linear-gradient(180deg, rgba(0, 98, 51, 0.92), rgba(13, 64, 51, 0.82));
}

/* Compact mobile header for the sources document. */
@media (max-width: 680px) {
  .sources-page .site-header.has-single-document-header-nav {
    position: sticky;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 8px;
    padding: 8px 16px;
    align-items: center;
  }

  .sources-page .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .sources-page .site-header .sources-toc-in-header.document-header-card.is-collapsed {
    position: relative;
    top: auto;
    grid-column: 2;
    grid-row: 1;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    gap: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
    background: var(--white);
  }

  .sources-page .site-header .sources-toc-in-header.is-collapsed .document-index-head {
    display: block;
    min-height: 0;
    height: auto;
    padding: 0;
  }

  .sources-page .site-header .sources-toc-in-header.is-collapsed .document-index-head p {
    display: none;
  }

  .sources-page .site-header .sources-toc-in-header.is-collapsed .sources-toc-title {
    display: none;
  }

  .sources-page .site-header .sources-toc-in-header .document-index-toggle,
  .sources-page .site-header .sources-toc-in-header .sources-toc-toggle {
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font-size: 0;
  }

  .sources-page .site-header .sources-toc-in-header .document-index-toggle::before,
  .sources-page .site-header .sources-toc-in-header .sources-toc-toggle::before {
    content: "☷";
    font-size: 21px;
    line-height: 1;
  }

  .sources-page .site-header .sources-toc-in-header.document-header-card:not(.is-collapsed) {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    z-index: 37;
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
    max-height: min(58vh, 420px);
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    border-radius: 10px;
    background: #fffdf7;
    box-shadow: 0 18px 42px rgba(20, 35, 31, 0.2);
  }

  .sources-page .site-header .sources-toc-in-header:not(.is-collapsed) .document-index-toggle::before,
  .sources-page .site-header .sources-toc-in-header:not(.is-collapsed) .sources-toc-toggle::before {
    content: "×";
  }

  .sources-page .site-header .nav-menu-toggle {
    display: inline-grid;
    grid-column: 3;
    grid-row: 1;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
  }

  .sources-page .site-header .lang-switcher {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
  }

  .sources-page .site-header > .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    z-index: 35;
    display: none;
    max-height: calc(100vh - 90px);
    grid-column: auto;
    grid-row: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 252, 244, 0.98);
    box-shadow: 0 18px 42px rgba(20, 35, 31, 0.2);
  }

  .sources-page .site-header.is-nav-open > .nav {
    display: flex;
  }

  .sources-page .site-header > .nav a {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Article catalog navigation inside the desktop header. */
@media (min-width: 681px) {
  body .site-header.has-article-header-nav {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: clamp(10px, 1.6vw, 24px);
  }

  .site-header.has-article-header-nav > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header.has-article-header-nav > .nav {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .site-header.has-article-header-nav > .lang-switcher {
    grid-column: 4;
    grid-row: 1;
  }

  .site-header.has-article-header-nav .article-nav-in-header:not(.is-open) {
    position: relative;
    top: auto;
    z-index: auto;
    display: block;
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: none;
  }

  .site-header.has-article-header-nav .article-nav-in-header:not(.is-open) > *:not(.article-nav-toggle) {
    display: none;
  }

  .site-header.has-article-header-nav .article-nav-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    min-height: 0;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    font-size: 0;
  }

  .site-header.has-article-header-nav .article-nav-toggle::before {
    content: "▤";
    font-size: 22px;
    line-height: 1;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open {
    position: absolute;
    top: calc(100% + 1px);
    right: clamp(18px, 4vw, 52px);
    z-index: 37;
    display: grid;
    width: min(720px, calc(100vw - 36px));
    max-height: min(72vh, 560px);
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffdf7;
    box-shadow: 0 18px 42px rgba(20, 35, 31, 0.2);
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open .article-scroll-catalog {
    grid-column: 1 / -1;
    padding-right: 52px;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open .article-nav-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open .article-nav-toggle::before {
    content: "×";
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open select {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open > a:not(.article-scroll-catalog) {
    display: inline-flex;
    width: 56px;
    min-width: 56px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open select + a {
    grid-column: 2;
  }
}

/* Article catalog navigation inside the mobile header. */
@media (max-width: 680px) {
  body .site-header.has-article-header-nav {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 8px;
  }

  .site-header.has-article-header-nav .article-nav-in-header:not(.is-open) {
    position: relative;
    top: auto;
    z-index: auto;
    display: block;
    grid-column: 2;
    grid-row: 1;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
    background: var(--white);
  }

  .site-header.has-article-header-nav .article-nav-in-header:not(.is-open) > *:not(.article-nav-toggle) {
    display: none;
  }

  .site-header.has-article-header-nav .article-nav-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    min-height: 0;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font-size: 0;
  }

  .site-header.has-article-header-nav .article-nav-toggle::before {
    content: "▤";
    font-size: 20px;
    line-height: 1;
  }

  body .site-header.has-article-header-nav .nav-menu-toggle {
    grid-column: 3;
  }

  body .site-header.has-article-header-nav .lang-switcher {
    grid-column: 4;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    z-index: 37;
    display: grid;
    width: auto;
    max-height: min(62vh, 440px);
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 12px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fffdf7;
    box-shadow: 0 18px 42px rgba(20, 35, 31, 0.2);
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open .article-scroll-catalog {
    grid-column: 1 / -1;
    padding-right: 48px;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open .article-nav-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open .article-nav-toggle::before {
    content: "×";
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open select {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open > a:not(.article-scroll-catalog) {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .site-header.has-article-header-nav .article-nav-in-header.is-open select + a {
    grid-column: 2;
  }
}

/* Final dark-theme contrast layer. Kept last so legacy light-page colors cannot win. */
html[data-theme="dark"] body :is(p, li, dd, dt, figcaption, td, th, label, small) {
  color: var(--ink);
}

html[data-theme="dark"] body :is(.lead, .article-lede-paragraph, .muted, .article-row p, .brand small) {
  color: var(--muted);
}

html[data-theme="dark"] body :is(h1, h2, h3, h4, h5, h6, strong, b) {
  color: #f4f8f5;
}

html[data-theme="dark"] body :is(.eyebrow, .section-kicker, .article-kicker) {
  color: var(--morocco-gold);
}

html[data-theme="dark"] body a:not(.button):not(.btn):not(.article-scroll-catalog) {
  color: var(--teal);
}

html[data-theme="dark"] body .nav a,
html[data-theme="dark"] body .brand,
html[data-theme="dark"] body .back-link {
  color: var(--ink);
}

html[data-theme="dark"] body :is(
  .article-row,
  .article-body,
  .article-hero,
  .localized-article,
  .article-editorial-section,
  .priority-grid > div,
  .analytic-paper,
  .document-paper,
  .analytic-index-card,
  .article-source-card,
  .article-context-visuals figure,
  .article-image-grid figure,
  .atlas-card,
  .sources-documents,
  .sources-document,
  .deck-slide,
  .solution-slide,
  .toc,
  .callout,
  .summary-card
) {
  color: var(--ink);
  background-color: #15231f;
  border-color: #3d574e;
}

html[data-theme="dark"] body :is(
  .priority-grid > div:nth-child(even),
  .article-row:nth-child(even),
  tbody tr:nth-child(even),
  .analytic-index-links a
) {
  background-color: #1b2e27;
}

html[data-theme="dark"] body :is(table, thead, tbody, tr, th, td) {
  border-color: #48645a;
}

html[data-theme="dark"] body thead th {
  color: #f7efd4;
  background-color: #244238;
}

html[data-theme="dark"] body tbody td {
  background-color: transparent;
}

html[data-theme="dark"] body :is(
  .lang-menu-options,
  .article-nav-in-header.is-open,
  .site-header > .nav,
  .document-header-card:not(.is-collapsed),
  .sources-toc-in-header:not(.is-collapsed)
) {
  color: var(--ink);
  background-color: #101e1a;
  border-color: #405b51;
}

html[data-theme="dark"] body :is(button, select, input, textarea) {
  color: var(--ink);
  border-color: #526d63;
}

html[data-theme="dark"] body :is(.button, .btn, .article-scroll-catalog, .lang-btn.active) {
  color: #ffffff;
  background-color: #176b49;
  border-color: #76d8aa;
}

html[data-theme="dark"] body :is(button, a, select, input, textarea):focus-visible {
  outline: 3px solid var(--morocco-gold);
  outline-offset: 3px;
}

html[data-theme="dark"] body ::selection {
  color: #0b1713;
  background: #f0cf78;
}

/* Component-level dark palette: subdued surfaces with readable foregrounds. */
html[data-theme="dark"] body .lang-switcher {
  background: #0f1f1a;
  border-color: #3f5d52;
}

html[data-theme="dark"] body :is(.lang-menu-toggle, .theme-toggle) {
  color: #f4f8f5;
  background: #193229;
  border-color: #527267;
}

html[data-theme="dark"] body .lang-btn {
  color: #c9d7d0;
  background: transparent;
}

html[data-theme="dark"] body .lang-btn.active {
  color: #ffffff;
  background: #176b49;
}

html[data-theme="dark"] body .deck-kpis {
  background: #101c18;
}

html[data-theme="dark"] body .deck-kpi-link {
  color: #f4f8f5;
  background: #443039;
  border-color: #73505b;
}

html[data-theme="dark"] body .deck-kpi-link:nth-child(2) { background: #353846; }
html[data-theme="dark"] body .deck-kpi-link:nth-child(3) { background: #20463d; }
html[data-theme="dark"] body .deck-kpi-link:nth-child(4) { background: #514329; }

html[data-theme="dark"] body .deck-kpi-link :is(span, strong, small) {
  color: #f4f8f5;
}

html[data-theme="dark"] body :is(
  .click-card,
  .problem-board .click-card,
  .pilot-steps .click-card,
  .water-stats a,
  .metric-card,
  .stat-card,
  .feature-card,
  .flow-card,
  .pilot-card,
  .zone-card
) {
  color: #edf5f0;
  background: #192923;
  border-color: #466057;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body :is(
  .click-card,
  .water-stats a,
  .metric-card,
  .stat-card,
  .feature-card,
  .flow-card,
  .pilot-card,
  .zone-card
) :is(h3, h4, strong, b) {
  color: #f4f8f5;
}

html[data-theme="dark"] body :is(
  .click-card,
  .water-stats a,
  .metric-card,
  .stat-card,
  .feature-card,
  .flow-card,
  .pilot-card,
  .zone-card
) :is(p, span, small) {
  color: #c8d5cf;
}

html[data-theme="dark"] body .water-stats a strong,
html[data-theme="dark"] body .pilot-steps .click-card > strong,
html[data-theme="dark"] body .pilot-steps .click-card b {
  color: #ff8b94;
}

html[data-theme="dark"] body .solution-flow a {
  color: #f5f8f6;
  background: #174843;
  border-color: #4c7a70;
}

html[data-theme="dark"] body .solution-flow a:nth-child(2) { background: #512f37; }
html[data-theme="dark"] body .solution-flow a:nth-child(3) { background: #594925; }
html[data-theme="dark"] body .solution-flow a:nth-child(4) { background: #38291f; }

html[data-theme="dark"] body .solution-flow a :is(span, strong),
html[data-theme="dark"] body .solution-flow a {
  color: #f5f8f6;
}

html[data-theme="dark"] body .deck-gallery {
  color: var(--ink);
  background: #0f1b17;
}

html[data-theme="dark"] body .deck-gallery :is(figure, .gallery-card, .article-source-card) {
  color: var(--ink);
  background: #182923;
  border-color: #435e54;
}

html[data-theme="dark"] body .deck-gallery figcaption,
html[data-theme="dark"] body .deck-gallery :is(p, span, strong) {
  color: #d7e2dc;
  background: #182923;
}

html[data-theme="dark"] body :is(.problem-board, .pilot-steps, .water-stats) {
  background-color: transparent;
}

/* Atlas dark theme: replace the legacy paper-white diagrams with restrained,
   high-contrast surfaces while preserving the atlas colour coding. */
html[data-theme="dark"] body.atlas-page .atlas-jump-nav {
  background: #0f1b17;
  border-color: #304a41;
}

html[data-theme="dark"] body.atlas-page .atlas-jump-nav a {
  color: #eef5f1;
  background: #192923;
  border-color: #456157;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] body.atlas-page .atlas-jump-nav a:hover,
html[data-theme="dark"] body.atlas-page .atlas-jump-nav a:focus-visible {
  color: #ffffff;
  background: #21372f;
  border-color: #76b99b;
}

html[data-theme="dark"] body.atlas-page .atlas-jump-nav span {
  color: #ffffff;
  background: #7a3540;
}

html[data-theme="dark"] body.atlas-page :is(
  .morocco-map,
  .executive-map,
  .future-board,
  .southern-map,
  .atlas-roadmap-graph
) {
  color: #eef5f1;
  background: #15231f;
  border-color: #405c52;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.atlas-page :is(.morocco-map, .southern-map)::after {
  opacity: 0.18;
}

html[data-theme="dark"] body.atlas-page .executive-map :is(.city, .pilot-zone, .expansion-zone) {
  color: #f5f8f6;
  background: #20332c;
  border: 1px solid #4b675d;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.atlas-page .executive-map .pilot-zone {
  background: #74343d;
  border-color: #a85a64;
}

html[data-theme="dark"] body.atlas-page .executive-map .expansion-zone {
  background: #20533f;
  border-color: #4b896f;
}

html[data-theme="dark"] body.atlas-page .atlas-kpi-strip :is(div, a) {
  color: #eef5f1;
  background: #1a2b25;
  border-color: #435f55;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.atlas-page .atlas-kpi-strip :is(strong, span, b) {
  color: #eef5f1;
}

html[data-theme="dark"] body.atlas-page .future-board > a:not(.future-photo) {
  color: #f5f8f6;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.atlas-page .future-coast { background: #20533f; }
html[data-theme="dark"] body.atlas-page .future-node.water { background: #174b4f; }
html[data-theme="dark"] body.atlas-page .future-node.science { background: #74343d; }
html[data-theme="dark"] body.atlas-page .future-node.industry { background: #342820; }
html[data-theme="dark"] body.atlas-page .future-node.tourism { color: #fff8e1; background: #665326; }
html[data-theme="dark"] body.atlas-page .future-node.corridor { background: #315c42; }

html[data-theme="dark"] body.atlas-page .atlas-image-card {
  color: #eef5f1;
  background: #15231f;
  border-color: #405c52;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.atlas-page .atlas-image-card figcaption {
  color: #dce7e1;
  background: #192923;
  border-top: 1px solid #405c52;
}

html[data-theme="dark"] body.atlas-page .atlas-image-card figcaption :is(span, p, strong, b) {
  color: #dce7e1;
  background: transparent;
}

html[data-theme="dark"] body.atlas-page .atlas-card-link,
html[data-theme="dark"] body.atlas-page .atlas-image-card figcaption .atlas-card-link {
  color: #ffffff;
  background: #176b49;
  border: 1px solid #60b88f;
}

html[data-theme="dark"] body.atlas-page .atlas-card-link:hover,
html[data-theme="dark"] body.atlas-page .atlas-card-link:focus-visible {
  color: #ffffff;
  background: #23815c;
}

html[data-theme="dark"] body.atlas-page .atlas-flow {
  background: transparent;
}

html[data-theme="dark"] body.atlas-page .atlas-flow :is(a, span) {
  color: #f5f8f6;
  background: #20533f;
  border: 1px solid #4c806b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] body.atlas-page .atlas-flow :is(a, span):nth-child(even) {
  color: #fff5f5;
  background: #74343d;
  border-color: #a85a64;
}

html[data-theme="dark"] body.atlas-page .atlas-flow :is(a, span):not(:last-child)::after {
  color: #e6bd67;
  text-shadow: none;
}

html[data-theme="dark"] body.atlas-page #atlas-roadmap .atlas-roadmap-graph {
  background: #182923;
  border-color: #405c52;
}

html[data-theme="dark"] body.atlas-page #atlas-roadmap .atlas-roadmap-graph a {
  color: #f5f8f6;
  background: #20533f;
  border: 1px solid #4c806b;
}

html[data-theme="dark"] body.atlas-page #atlas-roadmap .atlas-roadmap-graph a:nth-child(even) {
  background: #74343d;
  border-color: #a85a64;
}

html[data-theme="dark"] body.atlas-page .final-flow :is(a, span) {
  color: #f5f8f6;
  background: #174843;
  border-color: #4c7a70;
}

html[data-theme="dark"] body.atlas-page .final-flow :is(a, span):nth-child(even) {
  color: #fff5f5;
  background: #65343c;
  border-color: #98545e;
}

html[data-theme="dark"] body.atlas-page :is(
  .atlas-growth-chart,
  .atlas-donut-row,
  .atlas-value-bars,
  .solar-diagram,
  .soil-layers,
  .economy-orbit,
  .institution-network,
  .southern-vision
) {
  color: #eef5f1;
  background-color: #15231f;
  border-color: #405c52;
}

html[data-theme="dark"] body.atlas-page :is(
  .solar-diagram,
  .soil-layers,
  .economy-orbit,
  .institution-network,
  .southern-vision
) :is(a, span, strong, b, p) {
  color: #eef5f1;
}

/* Initiative navigation: avoid the legacy light-grey tiles in dark mode. */
html[data-theme="dark"] body.document-page .initiative-index-card {
  color: #eef5f1;
  background: #13221d;
  border-color: #3d594f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.document-page .initiative-index-card nav a {
  color: #d9e5df;
  background: #1b2e27;
  border-left-color: #76505a;
}

html[data-theme="dark"] body.document-page .initiative-index-card nav a:hover,
html[data-theme="dark"] body.document-page .initiative-index-card nav a:focus-visible {
  color: #ffffff;
  background: #263b34;
  border-left-color: #d37b86;
}

html[data-theme="dark"] body.document-page .initiative-index-card nav a[aria-current] {
  color: #ffffff;
  background: #24463a;
  border-left-color: #70c59d;
}

html[data-theme="dark"] body.document-page .initiative-index-card .analytic-index-links {
  border-top-color: #405c52;
}

html[data-theme="dark"] body.document-page .initiative-index-card .analytic-index-links a {
  color: #bcebd5;
  background: #193128;
  border-left-color: #54ad84;
}

/* Official letter / sources: its long-form document and generated TOC have
   page-local light styles, so dark mode must explicitly take precedence. */
html[data-theme="dark"] body.sources-page .sources-paper {
  color: #e8f0ec;
  background: #15231f;
  border-color: #405c52;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.sources-page .sources-paper :is(p, li, dd, dt, .numbered-line, .source-list-line) {
  color: #d5e0da !important;
}

html[data-theme="dark"] body.sources-page .sources-paper :is(h1, h2) {
  color: #f5f8f6 !important;
  border-color: #614149;
}

html[data-theme="dark"] body.sources-page .sources-paper h3 {
  color: #8ed9b6 !important;
}

html[data-theme="dark"] body.sources-page .sources-paper :is(.eyebrow, .source-section-kicker) {
  color: #efcb76 !important;
}

html[data-theme="dark"] body.sources-page .sources-paper .source-subhead {
  color: #f0dba5 !important;
}

html[data-theme="dark"] body.sources-page .sources-paper a {
  color: #8ed9b6;
}

html[data-theme="dark"] body.sources-page :is(.source-partners-panel, .source-partners-intro, .source-partner-group) {
  color: #e8f0ec;
  background: #1a2b25;
  border-color: #456157;
  box-shadow: none;
}

html[data-theme="dark"] body.sources-page .sources-index .analytic-index-card {
  color: #eef5f1;
  background: #13221d;
  border-color: #3d594f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.sources-page .sources-index .analytic-index-card :is(p, .document-index-head p) {
  color: #efcb76 !important;
}

html[data-theme="dark"] body.sources-page .sources-index .sources-compact-toc nav a,
html[data-theme="dark"] body.sources-page .sources-index .document-section-index nav a {
  color: #d9e5df !important;
  background: #1b2e27 !important;
  border-left-color: #76505a !important;
}

html[data-theme="dark"] body.sources-page .sources-index .sources-compact-toc nav a:hover,
html[data-theme="dark"] body.sources-page .sources-index .sources-compact-toc nav a:focus-visible,
html[data-theme="dark"] body.sources-page .sources-index .document-section-index nav a:hover,
html[data-theme="dark"] body.sources-page .sources-index .document-section-index nav a:focus-visible {
  color: #ffffff !important;
  background: #263b34 !important;
  border-left-color: #d37b86 !important;
}

html[data-theme="dark"] body.sources-page .sources-index .sources-compact-toc nav a.is-active,
html[data-theme="dark"] body.sources-page .sources-index .document-section-index nav a.is-active {
  color: #ffffff !important;
  background: #24523f !important;
  border-left-color: #70c59d !important;
}

html[data-theme="dark"] body.sources-page :is(.document-index-toggle, .sources-project-toggle) {
  color: #f5f8f6;
  background: #193229;
  border-color: #527267;
}

html[data-theme="dark"] body.sources-page .sources-project-card .analytic-index-links a {
  color: #bcebd5;
  background: #193128;
  border-left-color: #54ad84;
}

/* Article catalog and every article page. */
html[data-theme="dark"] body .article-row-number,
html[data-theme="dark"] body .article-row > span:first-child {
  color: #f1d78e;
  background: #29362f;
  border: 1px solid #596b62;
}

html[data-theme="dark"] body .article-hero,
html[data-theme="dark"] body .article-hero.compact {
  color: #eef5f1;
  background: linear-gradient(135deg, #14231e 0%, #1d3029 100%);
  border-color: #405c52;
}

html[data-theme="dark"] body .article-hero :is(h1, h2, strong) {
  color: #f5f8f6;
}

html[data-theme="dark"] body .article-hero :is(p, .lead, .article-lede, .article-deck) {
  color: #cbd8d1;
}

html[data-theme="dark"] body .article-hero .eyebrow {
  color: #efcb76;
}

html[data-theme="dark"] body .article-nav-toggle {
  color: #eef5f1;
  background: #193229;
  border-color: #527267;
}

html[data-theme="dark"] body .article-nav-toggle:hover,
html[data-theme="dark"] body .article-nav-toggle:focus-visible {
  color: #ffffff;
  background: #24463a;
  border-color: #76b99b;
}

html[data-theme="dark"] body .article-note {
  color: #e4ece8;
  background: #26312b;
  border-color: #6fae8f;
}

html[data-theme="dark"] body .article-note :is(p, span, strong, b) {
  color: #e4ece8;
}

html[data-theme="dark"] body.compact-article-gallery .article-gallery-card {
  color: #e8f0ec;
  background: #192923;
  border-color: #456157;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] body.compact-article-gallery .article-gallery-card figcaption {
  color: #dce7e1;
  background: #192923;
  border-top-color: #456157;
}

html[data-theme="dark"] body :is(
  .species-table-wrap,
  .auto-generic-table,
  .auto-species-table,
  .article-step,
  .article-warning,
  .article-subhead
) {
  color: #e4ece8;
  background-color: #192923;
  border-color: #456157;
}

html[data-theme="dark"] body :is(.article-step, .article-warning, .article-subhead) :is(p, span, strong, b) {
  color: #e4ece8;
}

html[data-theme="dark"] body .article-scroll-nav.article-nav-in-header {
  color: #eef5f1;
  background: #101e1a;
  border-color: #405b51;
}

html[data-theme="dark"] body .article-scroll-nav.article-nav-in-header :is(select, a) {
  color: #eef5f1;
  background: #182a24;
  border-color: #4a665c;
}

/* Remaining Atlas dark surfaces: institutions and image letterboxing. */
html[data-theme="dark"] body.atlas-page .institution-network a {
  color: #eef5f1;
  background: #192923;
  border-color: #456157;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body.atlas-page .institution-network a :is(b, strong) {
  color: #f5f8f6;
}

html[data-theme="dark"] body.atlas-page .institution-network a em {
  color: #cbd8d1;
}

html[data-theme="dark"] body.atlas-page .institution-network a span {
  color: #bcebd5;
  background: #214035;
}

html[data-theme="dark"] body.atlas-page .institution-network .institution-core {
  background: linear-gradient(135deg, #20533f, #65343c);
  border-color: #6f635e;
}

html[data-theme="dark"] body.atlas-page .institution-network .institution-core span {
  color: #fff4cf;
  background: #594925;
}

html[data-theme="dark"] body.atlas-page :is(.vision-image-card, .zone-image-card) {
  background: #0f1b17;
  border-color: #405c52;
}

html[data-theme="dark"] body.atlas-page :is(.vision-image-card, .zone-image-card) img {
  background: #0f1b17;
}

/* Atlas technical diagrams: subdued fills and explicit readable labels. */
html[data-theme="dark"] body.atlas-page .solar-diagram > :is(a, div) {
  color: #f5f8f6 !important;
  background: #20533f !important;
  border: 1px solid #4c806b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.atlas-page .solar-diagram > :is(a, div):nth-child(even) {
  background: #74343d !important;
  border-color: #a85a64;
}

html[data-theme="dark"] body.atlas-page .soil-layers > :is(a, div) {
  color: #f5f8f6 !important;
  background: linear-gradient(90deg, #65343c, #20533f) !important;
  border: 1px solid #5b746a;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body.atlas-page .economy-orbit {
  background: #15231f !important;
  border-color: #405c52;
}

html[data-theme="dark"] body.atlas-page .economy-orbit > :is(strong, span, a):not(.economy-photo) {
  color: #f5f8f6 !important;
  background: #20533f !important;
  border: 1px solid #4c806b;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body.atlas-page .economy-orbit > :is(strong, span, a):nth-child(even):not(.economy-photo) {
  background: #65343c !important;
  border-color: #98545e;
}

/* Analytical document mode panel and TOC controls. */
html[data-theme="dark"] body.document-page .analytics-version-panel {
  color: #e8f0ec;
  background: linear-gradient(135deg, #172923, #202b27);
  border-color: #456157;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body.document-page .analytics-version-panel h2 {
  color: #f5f8f6;
}

html[data-theme="dark"] body.document-page .analytics-version-panel p:not(.eyebrow) {
  color: #cbd8d1;
}

html[data-theme="dark"] body.document-page .analytics-version-panel .eyebrow {
  color: #efcb76;
}

html[data-theme="dark"] body.document-page .analytics-version-btn {
  color: #dce7e1;
  background: #26362f;
  border-color: #526d63;
}

html[data-theme="dark"] body.document-page .analytics-version-btn:hover,
html[data-theme="dark"] body.document-page .analytics-version-btn:focus-visible {
  color: #ffffff;
  background: #30463d;
  border-color: #76b99b;
}

html[data-theme="dark"] body.document-page .analytics-version-btn.active {
  color: #ffffff;
  background: #205f45;
  border-color: #70c59d;
}

html[data-theme="dark"] body.document-page .document-index-toggle {
  color: #eef5f1;
  background: #26362f;
  border-color: #526d63;
}

html[data-theme="dark"] body.document-page .document-index-toggle:hover,
html[data-theme="dark"] body.document-page .document-index-toggle:focus-visible {
  color: #ffffff;
  background: #30463d;
  border-color: #76b99b;
}

/* Generated sources TOC header (created after language selection). */
html[data-theme="dark"] body.sources-page .sources-toc-head {
  color: #eef5f1;
  background: #13221d !important;
  border-bottom-color: #405c52 !important;
}

html[data-theme="dark"] body.sources-page .sources-toc-title {
  color: #efcb76 !important;
}

html[data-theme="dark"] body.sources-page .sources-toc-toggle {
  color: #eef5f1 !important;
  background: #26362f !important;
  border-color: #526d63 !important;
}

html[data-theme="dark"] body.sources-page .sources-toc-toggle:hover,
html[data-theme="dark"] body.sources-page .sources-toc-toggle:focus-visible {
  color: #ffffff !important;
  background: #30463d !important;
  border-color: #76b99b !important;
}

/* Article callouts and expanded catalog navigation across every article. */
html[data-theme="dark"] body .article-editorial-section > .article-callout,
html[data-theme="dark"] body .article-callout {
  color: #e8f0ec !important;
  background: linear-gradient(135deg, #33272a, #1d3029) !important;
  border-color: #76505a !important;
  border-left: 5px solid #70b993 !important;
}

html[data-theme="dark"] body .article-callout :is(p, span, strong, b),
html[data-theme="dark"] body p.article-callout {
  color: #e8f0ec !important;
}

html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open {
  color: #eef5f1 !important;
  background: #13221d !important;
  border-color: #456157 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38) !important;
}

html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open .article-scroll-catalog {
  color: #ffffff !important;
  background: #205f45 !important;
  border-color: #70c59d !important;
}

html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open select,
html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open > a:not(.article-scroll-catalog),
html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open .article-nav-toggle {
  color: #eef5f1 !important;
  background: #193229 !important;
  border-color: #526d63 !important;
}

html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open > a:not(.article-scroll-catalog):hover,
html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open > a:not(.article-scroll-catalog):focus-visible,
html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open .article-nav-toggle:hover,
html[data-theme="dark"] body .site-header.has-article-header-nav .article-nav-in-header.is-open .article-nav-toggle:focus-visible {
  color: #ffffff !important;
  background: #29483d !important;
  border-color: #76b99b !important;
}

/* Step-system cards used by the core-species and related articles. */
html[data-theme="dark"] body .yadro-system-flow article,
html[data-theme="dark"] body .article-step-grid > article {
  color: #e8f0ec;
  background: linear-gradient(145deg, #1b2e27, #202b27) !important;
  border-color: #456157;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body .yadro-system-flow article h3,
html[data-theme="dark"] body .article-step-grid > article h3 {
  color: #f5f8f6 !important;
}

html[data-theme="dark"] body .yadro-system-flow article p,
html[data-theme="dark"] body .article-step-grid > article p {
  color: #cbd8d1 !important;
}

html[data-theme="dark"] body .yadro-system-flow article > span,
html[data-theme="dark"] body .article-step-grid > article > span {
  color: #ffffff !important;
  background: #74343d !important;
  border: 1px solid #a85a64;
}

html[data-theme="dark"] body .yadro-system-flow article::after,
html[data-theme="dark"] body .article-step-grid > article::after {
  background: linear-gradient(90deg, #39765b, #74343d);
}

/* Compact point cards used throughout article sections. */
html[data-theme="dark"] body .article-points li,
html[data-theme="dark"] body .article-editorial-section.is-key-section .article-points li {
  color: #dce7e1 !important;
  background: #1b2e27 !important;
  border-color: #456157 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] body .article-points li :is(strong, b) {
  color: #f5f8f6 !important;
}

/* Dark mobile document menus: keep the floating panels subdued and readable. */
@media (max-width: 680px) {
  html[data-theme="dark"] body.analytics-page .site-header > .analytics-toc-card,
  html[data-theme="dark"] body.document-page .site-header > .document-page-links,
  html[data-theme="dark"] body.document-page .site-header > .document-section-index,
  html[data-theme="dark"] body.sources-page .site-header > .document-section-index {
    color: #dce7e1 !important;
    background: #13231e !important;
    border: 1px solid #385148 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38) !important;
  }

  html[data-theme="dark"] body.analytics-page .analytics-toc-head,
  html[data-theme="dark"] body.document-page .document-page-links .document-index-head,
  html[data-theme="dark"] body.document-page .document-section-index .document-index-head,
  html[data-theme="dark"] body.sources-page .sources-toc-head {
    color: #dce7e1 !important;
    background: #172a24 !important;
    border-color: #385148 !important;
  }

  html[data-theme="dark"] body.analytics-page .analytics-toc-head p,
  html[data-theme="dark"] body.document-page .document-page-links .document-index-head p,
  html[data-theme="dark"] body.document-page .document-section-index .document-index-head p,
  html[data-theme="dark"] body.sources-page .sources-toc-title {
    color: #dce7e1 !important;
  }

  html[data-theme="dark"] body.analytics-page .analytics-toc-toggle,
  html[data-theme="dark"] body.document-page .document-page-links .document-index-toggle,
  html[data-theme="dark"] body.document-page .document-section-index .document-index-toggle,
  html[data-theme="dark"] body.sources-page .sources-toc-toggle {
    color: #b8d6ca !important;
    background: #20372f !important;
    border-color: #49685d !important;
  }

  html[data-theme="dark"] body.analytics-page .analytics-toc-card nav a,
  html[data-theme="dark"] body.document-page .document-page-links nav a,
  html[data-theme="dark"] body.document-page .document-section-index nav a,
  html[data-theme="dark"] body.sources-page .document-section-index nav a {
    color: #91d9df !important;
    background: #1a3029 !important;
    border-color: #3d574e !important;
  }
}
