:root {
  --paper: #f5f0e6;
  --paper-2: #ebe3d5;
  --ink: #172018;
  --muted: #5f665d;
  --line: #c9c0ae;
  --green: #0d6b4c;
  --green-bright: #21a979;
  --blue: #226b8f;
  --amber: #b86a1c;
  --night: #0c1714;
  --white: #fffdf8;
  --shadow: 0 28px 80px rgba(23, 32, 24, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(34, 107, 143, .08), transparent 34rem),
    linear-gradient(180deg, var(--paper), #f8f5ee 44%, var(--paper-2));
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
body.story-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.reading-progress {
  position: fixed;
  z-index: 400;
  inset: 0 auto auto 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), #54c99b, var(--blue));
}

.desk-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(245, 240, 230, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.desk-nav__row {
  max-width: 1240px;
  min-height: 70px;
  margin: auto;
  padding: .8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead {
  font-family: "Engravers' Old English BT", "Old English Text MT", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1;
  text-decoration: none;
}
.desk-nav__links { display: flex; align-items: center; gap: .75rem; }
.desk-nav__links a {
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.desk-nav__links a:hover, .desk-nav__links a:focus-visible { background: var(--white); color: var(--green); }

.shell { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.desk-hero { padding: clamp(4rem, 9vw, 8rem) 0 2.25rem; }
.desk-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
}
.desk-hero h1 {
  max-width: 11ch;
  margin: .18em 0 .16em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: .78;
  letter-spacing: -.075em;
}
.desk-hero h1 span { display: block; color: var(--green); font-style: italic; font-weight: 400; }
.desk-hero__dek { max-width: 46rem; margin: 1rem 0 0; font: 1.12rem/1.7 Georgia, serif; }
.issue-note {
  padding: 1.5rem;
  border-top: 5px solid var(--green);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(23, 32, 24, .09);
}
.issue-note strong { display: block; margin-bottom: .5rem; font-family: Georgia, serif; font-size: 1.35rem; }
.issue-note p { margin: 0; color: var(--muted); }

.story-picker {
  padding: 1rem 0 4.5rem;
}
.story-picker__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 0 1.5rem;
  border-top: 1px solid var(--ink);
}
.story-picker__intro h2 { margin: 0; font: clamp(1.7rem, 3vw, 2.7rem)/1.05 Georgia, serif; }
.story-picker__intro p { max-width: 36rem; margin: 0; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.country-card {
  min-width: 0;
  min-height: 560px;
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  position: relative;
  border: 0;
  border-radius: 2px;
  background: var(--night);
  color: white;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(23, 32, 24, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.country-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 7, .05) 15%, rgba(3, 10, 7, .9) 82%);
  z-index: 1;
}
.country-card:hover, .country-card:focus-visible { transform: translateY(-7px); box-shadow: var(--shadow); outline: 3px solid var(--green-bright); outline-offset: 3px; }
.country-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.05); }
.country-card__credit { position: absolute; z-index: 3; right: .55rem; bottom: .55rem; max-width: calc(100% - 1.1rem); padding: .32rem .45rem; background: rgba(5, 12, 9, .82); color: #fff; font-size: .56rem; line-height: 1.25; text-align: right; }
.country-card__number { position: relative; z-index: 2; align-self: start; padding: 1rem; font-size: .75rem; font-weight: 900; letter-spacing: .18em; }
.country-card__copy { position: relative; z-index: 2; padding: 1.25rem 1.25rem 3.25rem; }
.country-card h3 { margin: 0 0 .35rem; font: clamp(2rem, 4vw, 3.5rem)/.94 Georgia, serif; letter-spacing: -.04em; }
.country-card p { margin: 0; color: #e8eee8; }
.country-card__open { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; color: #b8f1d9; font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.method-strip { padding: 3rem 0 5rem; border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.method-card { padding: 1.25rem; border: 1px solid var(--line); background: rgba(255, 253, 248, .55); }
.method-card strong { display: block; margin-bottom: .45rem; font-family: Georgia, serif; font-size: 1.2rem; }
.method-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.story-drawer[hidden] { display: none; }
.story-drawer {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  background: rgba(4, 12, 9, .7);
  backdrop-filter: blur(8px);
}
.story-panel {
  width: min(1120px, 100%);
  height: 100%;
  margin-left: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  box-shadow: -30px 0 90px rgba(0, 0, 0, .28);
  animation: enter .34s ease both;
}
@keyframes enter { from { transform: translateX(4rem); opacity: .45; } }
.story-panel[hidden] { display: none; }
.story-close {
  position: fixed;
  z-index: 310;
  top: max(.75rem, env(safe-area-inset-top));
  right: max(.75rem, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(12, 23, 20, .88);
  color: white;
  cursor: pointer;
  font-size: 1.4rem;
}
.story-close:focus-visible { outline: 3px solid #b8f1d9; outline-offset: 3px; }
.story-hero { position: relative; min-height: 78svh; display: grid; align-items: end; overflow: hidden; background: var(--night); color: white; }
.story-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,9,.08), rgba(5,12,9,.94)); }
.story-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-hero__copy { position: relative; z-index: 2; padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem); }
.story-hero .eyebrow { color: #aee9d2; }
.story-hero h2 { max-width: 13ch; margin: .2em 0 .25em; font: clamp(3.2rem, 8vw, 7.5rem)/.84 Georgia, serif; letter-spacing: -.06em; }
.story-hero__dek { max-width: 48rem; margin: 0; color: #eef4ef; font: clamp(1.05rem, 2vw, 1.35rem)/1.55 Georgia, serif; }
.photo-credit { position: absolute; z-index: 3; right: .65rem; bottom: .65rem; max-width: calc(100% - 1.3rem); margin: 0; padding: .55rem .7rem; background: rgba(6, 13, 10, .88); color: #d9e4dc; font-size: .68rem; text-align: right; }
.story-hero__copy { padding-bottom: clamp(5.5rem, 9vw, 7.5rem); }
.photo-credit a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

.story-body { padding: clamp(2rem, 6vw, 5rem); }
.story-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: clamp(2rem, 6vw, 5rem); padding-top: 2rem; }
.article-copy { min-width: 0; font: 1.08rem/1.78 Georgia, "Times New Roman", serif; }
.article-copy > p:first-child::first-letter { float: left; margin: .09em .08em 0 0; color: var(--green); font-size: 4.5rem; line-height: .72; }
.article-copy h3 { margin: 2.2rem 0 .7rem; font: 2rem/1.05 Georgia, serif; letter-spacing: -.025em; }
.article-copy p { margin: 0 0 1.35rem; }
.article-copy a { text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.story-side { min-width: 0; }
.fact-box { position: sticky; top: 1rem; padding: 1.25rem; border-top: 5px solid var(--green); background: var(--white); }
.fact-box h3 { margin: 0 0 .9rem; font: 1.35rem Georgia, serif; }
.fact-list { margin: 0; }
.fact-list div { padding: .8rem 0; border-top: 1px solid var(--line); }
.fact-list dt { color: var(--muted); font-size: .73rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.fact-list dd { margin: .2rem 0 0; font-weight: 800; }

.visual-section { margin-top: clamp(3rem, 8vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--ink); }
.visual-section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.visual-section h3 { margin: .2rem 0 0; font: clamp(2.2rem, 5vw, 4.5rem)/.95 Georgia, serif; letter-spacing: -.04em; }
.visual-section__head p { margin: 0; color: var(--muted); }
.chart { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); background: var(--white); }
.bars { min-height: 310px; display: flex; align-items: end; justify-content: space-around; gap: .6rem; padding: 2.25rem .25rem 0; border-bottom: 1px solid var(--line); }
.bar-item { height: 100%; flex: 1; display: grid; grid-template-rows: 1fr auto; align-items: end; gap: .5rem; text-align: center; }
.bar {
  width: min(58px, 78%);
  height: calc(var(--value) * 1%);
  min-height: 8px;
  margin-inline: auto;
  position: relative;
  background: linear-gradient(180deg, var(--green-bright), var(--green));
  transition: height .45s ease;
}
.bar b { position: absolute; bottom: calc(100% + .35rem); left: 50%; transform: translateX(-50%); font-size: .78rem; white-space: nowrap; }
.bar-item span { padding-bottom: .65rem; color: var(--muted); font-size: .76rem; }
.chart-note { margin: 1rem 0 0; color: var(--muted); font-size: .8rem; }

.progress-comparison { display: grid; gap: 1rem; }
.progress-row { display: grid; grid-template-columns: minmax(11rem, 1fr) 2fr; gap: 1rem; align-items: center; }
.progress-row strong { font-size: .9rem; }
.track { height: 36px; display: flex; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); }
.track span { height: 100%; display: grid; place-items: center; overflow: visible; color: white; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.track .current { width: calc(var(--current) * 1%); background: var(--blue); }
.track .target { width: calc((var(--target) - var(--current)) * 1%); background: var(--green); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .8rem; }
.legend i { display: inline-block; width: .75rem; height: .75rem; margin-right: .35rem; background: var(--blue); }
.legend .target-key i { background: var(--green); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.milestone { padding: 1rem; border-top: 5px solid var(--line); background: var(--paper-2); }
.milestone.done { border-color: var(--blue); }
.milestone.active { border-color: var(--amber); }
.milestone.target { border-color: var(--green); }
.milestone time { color: var(--muted); font-size: .76rem; font-weight: 900; }
.milestone strong { display: block; margin: .55rem 0 .25rem; font-family: Georgia, serif; font-size: 1.05rem; }
.milestone p { margin: 0; color: var(--muted); font-size: .82rem; }

.network-explorer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin-top: 1.5rem; }
.network-map { min-height: 420px; position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #dce9e4, #f8f2e7 52%, #d8e6ec); }
.network-map::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(13,107,76,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(13,107,76,.2) 1px, transparent 1px); background-size: 30px 30px; }
.route-line { position: absolute; z-index: 1; height: 4px; left: 9%; right: 9%; top: 50%; transform: rotate(-8deg); transform-origin: center; background: linear-gradient(90deg, var(--blue), var(--green), var(--amber)); }
.route-line::after { content: ""; position: absolute; inset: -7px 0; background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(255,255,255,.7) 20px 24px, transparent 25px 38px); animation: pulse-route 4s linear infinite; }
@keyframes pulse-route { to { transform: translateX(76px); } }
.node {
  position: absolute;
  z-index: 2;
  width: 70px;
  min-height: 70px;
  padding: .45rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--green);
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  cursor: pointer;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}
.node:nth-of-type(1) { left: 6%; top: 57%; background: var(--blue); }
.node:nth-of-type(2) { left: 28%; top: 43%; }
.node:nth-of-type(3) { left: 50%; top: 32%; }
.node:nth-of-type(4) { left: 70%; top: 25%; background: var(--amber); }
.node:nth-of-type(5) { right: 5%; top: 16%; background: var(--ink); }
.node[aria-pressed="true"], .node:focus-visible { outline: 4px solid #f3bd54; outline-offset: 3px; transform: scale(1.08); }
.network-readout { padding: 1.5rem; background: var(--night); color: white; }
.network-readout .eyebrow { color: #aee9d2; }
.network-readout h4 { margin: .45rem 0; font: 1.8rem/1.05 Georgia, serif; }
.network-readout p { margin: 0; color: #cfdbd3; }
.network-readout small { display: block; margin-top: 1.25rem; color: #91aa9b; }

.risk-toggle { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.risk-toggle button { padding: .7rem 1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; font-weight: 800; }
.risk-toggle button[aria-pressed="true"] { border-color: var(--green); background: var(--green); color: white; }
.risk-readout { margin-top: 1rem; padding: 1rem; border-left: 5px solid var(--amber); background: var(--white); }

.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.media-card { min-height: 250px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--white); }
.media-card--dark { background: var(--night); color: white; }
.media-card h4 { margin: .35rem 0; font: 1.65rem/1.05 Georgia, serif; }
.media-card p, .media-card li { color: var(--muted); }
.media-card--dark p, .media-card--dark li { color: #c9d7ce; }
.media-card ul { padding-left: 1.15rem; }
.media-link { align-self: flex-start; padding: .7rem 1rem; border: 1px solid currentColor; text-decoration: none; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.media-link:hover, .media-link:focus-visible { background: var(--green); color: white; }

.sources { margin-top: 4rem; padding: 1.5rem; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.sources h3 { margin: 0 0 1rem; font: 1.5rem Georgia, serif; }
.sources ol { margin: 0; padding-left: 1.25rem; }
.sources li { margin: .7rem 0; color: var(--muted); font-size: .86rem; }
.sources a { color: var(--green); font-weight: 700; }
.editorial-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

.desk-footer { padding: 3rem 0 calc(4rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.desk-footer__row { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .desk-hero__grid, .article-grid, .visual-section__head, .network-explorer { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .country-card { min-height: 440px; }
  .method-grid { grid-template-columns: 1fr; }
  .fact-box { position: static; }
  .network-readout { min-height: 240px; }
}

@media (max-width: 640px) {
  .desk-nav__links a:not(:last-child) { display: none; }
  .shell { width: min(100% - 1.25rem, 1240px); }
  .desk-hero { padding-top: 3rem; }
  .desk-hero h1 { font-size: clamp(3.5rem, 21vw, 6rem); }
  .story-picker__intro { align-items: start; flex-direction: column; gap: .75rem; }
  .story-grid { gap: .65rem; }
  .country-card { min-height: 360px; }
  .country-card h3 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .story-panel { width: 100%; }
  .story-hero { min-height: 70svh; }
  .story-hero h2 { max-width: 10ch; font-size: clamp(3.1rem, 16vw, 5.5rem); }
  .story-body { padding-inline: 1rem; }
  .article-copy { font-size: 1.03rem; }
  .visual-section { scroll-margin-top: 1rem; }
  .bars { min-height: 260px; gap: .3rem; }
  .bar b { font-size: .66rem; }
  .progress-row { grid-template-columns: 1fr; gap: .4rem; }
  .timeline { grid-template-columns: 1fr; }
  .network-map { min-height: 360px; }
  .node { width: 60px; min-height: 60px; font-size: .57rem; }
  .media-grid { grid-template-columns: 1fr; }
  .desk-footer__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
