@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..800;1,6..72,400..600&family=Public+Sans:ital,wght@0,400..800;1,400..600&family=Noto+Color+Emoji&display=swap');

/* ==========================================================================
   Researchez
   1. Tokens   2. Base   3. Masthead   4. Homepage   5. Story cards
   6. Sidebar  7. Country & research pages   8. Articles   9. Data
   10. Footer  11. Motion   12. Small screens
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --paper: #f5f0e6;
  --card: #fffdf8;
  --ink: #0e1412;
  --ink-soft: #1b2623;
  --muted: #56615c;
  --line: #d9d1c0;
  --accent: #f0641e;
  --accent-ink: #b0440d;
  --forest: #0f3a31;
  --forest-light: #2f7a66;
  --gold: #f2b93f;
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Instrument Sans", "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 14px;
  --shadow: 0 1px 2px #0e141210, 0 12px 32px -12px #0e141230;
  --shadow-lift: 0 2px 4px #0e141214, 0 28px 48px -18px #0e141255;
  --header-h: 76px;
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1412' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M13 5l7 7-7 7'/%3E%3C/svg%3E");
  --icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1412' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M8 6h10v10'/%3E%3C/svg%3E");
  --icon-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1412' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M5 13l7 7 7-7'/%3E%3C/svg%3E");
  --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1412' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
}

@view-transition { navigation: auto; }

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--ink); }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-ink); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1240px, 92%); margin-inline: auto; }

/* Body-copy links: quiet underline, loud on hover */
main p a, main li a, main td a, .data-note a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  transition: background-color .15s, color .15s;
}
main p a:hover, main li a:hover, main td a:hover, .data-note a:hover {
  color: var(--ink);
  background: #f2b93f66;
}

/* Section label: the small square is the brand motif */
.label {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  color: var(--accent-ink);
  font: 600 11.5px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  flex: none;
  width: .62em;
  height: .62em;
  background: var(--accent);
}
.deck {
  margin: 0 0 18px;
  color: var(--muted);
  font: italic 400 clamp(18px, 1.9vw, 23px)/1.5 var(--serif);
}
.read, .more {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 650;
  text-decoration: none;
}
.read::after, .more::after {
  content: "";
  flex: none;
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
  background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform .2s;
}
.read:hover::after, .more:hover::after { transform: translateX(4px); }
.more { margin-top: 16px; }

/* 3. Masthead ------------------------------------------------------------- */
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff8ea;
  background: #0e1412f2;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 3px solid var(--accent);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 40px);
  min-height: var(--header-h);
}
.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  justify-self: start;
  column-gap: .5em;
  flex: none;
  color: inherit;
  font: 700 clamp(24px, 2.5vw, 30px)/1 var(--serif);
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: inherit; }
/* Emblem: a civic portico with a crack running through it */
.brand::before {
  content: "";
  width: 1.55em;
  height: 1.55em;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 54 54%22%3E%3Cmask id=%22k%22%3E%3Crect width=%2254%22 height=%2254%22 fill=%22%23fff%22/%3E%3Cpath d=%22M29 7l-3 7 4 4-4 6 3 6-3 7 2 9%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%222.2%22/%3E%3C/mask%3E%3Crect x=%221%22 y=%221%22 width=%2252%22 height=%2252%22 fill=%22none%22 stroke=%22%23f2b93f%22 stroke-width=%221.2%22/%3E%3Cg fill=%22%23f2b93f%22 mask=%22url%28%23k%29%22%3E%3Cpath d=%22M27 8 44 18H10z%22/%3E%3Crect x=%2210%22 y=%2220%22 width=%2234%22 height=%222.6%22/%3E%3Crect x=%2213%22 y=%2225%22 width=%224.2%22 height=%2215%22/%3E%3Crect x=%2221.3%22 y=%2225%22 width=%224.2%22 height=%2215%22/%3E%3Crect x=%2228.5%22 y=%2225%22 width=%224.2%22 height=%2215%22/%3E%3Crect x=%2236.8%22 y=%2225%22 width=%224.2%22 height=%2215%22/%3E%3Crect x=%2210%22 y=%2242%22 width=%2234%22 height=%223%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.brand:hover::before { transform: scale(1.08); }
.brand-name { display: block; }
.brand small {
  display: flex;
  align-items: center;
  gap: .9em;
  margin-top: .7em;
  color: var(--gold);
  font: 500 9px/1 var(--mono);
  letter-spacing: .5em;
  text-transform: uppercase;
}
.brand small::after { content: ""; flex: 1; height: 1px; background: #f2b93f59; }
.bar nav { display: flex; align-items: center; gap: 2px; }
.bar nav a {
  position: relative;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: #e9e3d3;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.bar nav a:hover { color: #fff; background: #ffffff1c; }
.bar nav a[aria-current="page"] { color: var(--ink); background: var(--gold); }
.bar a:focus-visible { outline-color: var(--gold); }

/* 4. Homepage ------------------------------------------------------------- */
.hero { position: relative; background: var(--ink); overflow: hidden; }
.hero img {
  height: clamp(340px, 50vw, 680px);
  object-fit: cover;
  object-position: center 48%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0e141200 45%, #0e1412b8 100%);
}
.hero figcaption {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 14px;
  width: auto;
  max-width: min(92%, 32rem);
  margin: 0;
  padding: 4px 10px;
  color: #fff;
  background: #0e1412c4;
  font: 500 10.5px/1.5 var(--mono);
  letter-spacing: .04em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 36px;
}
.layout > div { min-width: 0; }

.lead {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 3.4vw, 46px);
  background: var(--card);
  border-top: 6px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
}
.hero + .layout { margin-top: 0; }
.hero + .layout .lead { margin-top: clamp(-150px, -9vw, -56px); }
.hero + .layout .sidebar { margin-top: 36px; }
.lead h1 {
  max-width: 15ch;
  margin: 14px 0 16px;
  font-size: clamp(38px, 5.3vw, 78px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.045em;
}
.lead .deck { max-width: 56ch; margin-bottom: 26px; }
.lead .read {
  margin: 0 6px 10px 0;
  padding: .62rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: .9rem;
  line-height: 1.25;
  transition: background-color .15s, color .15s, border-color .15s;
}
.lead .read:hover { color: #fff; background: var(--ink); }
.lead .read:hover::after { color: var(--gold); }
.lead .read:first-of-type {
  padding: .8rem 1.3rem;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 1rem;
}
.lead .read:first-of-type::after { color: #fff; }
.lead .read:first-of-type:hover { background: var(--ink); border-color: var(--ink); }

/* Numbered region sections */
.layout > div { counter-reset: region; }
section.section { margin-top: clamp(48px, 6vw, 84px); counter-increment: region; }
section.section > h2 {
  display: flex;
  align-items: baseline;
  gap: .45em;
  margin: 0 0 26px;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 800;
  letter-spacing: -.035em;
}
section.section > h2::before {
  content: counter(region, decimal-leading-zero);
  color: var(--accent-ink);
  font: 600 .32em/1 var(--mono);
  letter-spacing: .08em;
  transform: translateY(-.9em);
}
section.section > h2::after {
  content: "";
  flex: 1;
  align-self: center;
  height: 2px;
  margin-left: .3em;
  background: linear-gradient(90deg, var(--ink) 0 48px, var(--line) 48px);
}
section.section > h2 a { text-decoration: none; }
section.section > h2 a::after {
  content: "";
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-left: .25em;
  background: var(--accent);
  -webkit-mask: var(--icon-arrow-up-right) center / contain no-repeat;
  mask: var(--icon-arrow-up-right) center / contain no-repeat;
  vertical-align: .45em;
}

/* 5. Story cards ---------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s;
}
.story:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.story:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.story a:focus-visible { outline: none; }
.story-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e6dfd0;
  transition: filter .3s;
}
.story:hover .story-art { filter: saturate(1.15) contrast(1.04); }
.story > .label { margin: 20px 22px 0; }
.story h3 {
  margin: 10px 22px 10px;
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.story > a + h3, .story > img + h3 { margin-top: 18px; }
.story h3:last-child { margin-bottom: 22px; }
.story h3 a {
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s;
}
.story:hover h3 a { color: var(--ink); background-size: 100% 2px; }
.story h3 a::after { content: ""; position: absolute; inset: 0; }
.story p { margin: 0 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (min-width: 700px) {
  /* The first story of each region, and any story left alone on a row, runs wide */
  section.section > .grid > .story:first-child,
  section.section > .grid > .story:last-child:nth-child(even) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
  }
  section.section > .grid > .story:first-child > .story-art,
  section.section > .grid > .story:last-child:nth-child(even) > .story-art {
    grid-area: 1 / 1 / -1 / 2;
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto;
  }
  section.section > .grid > .story:first-child > :not(.story-art),
  section.section > .grid > .story:last-child:nth-child(even) > :not(.story-art) {
    grid-column: 2;
    margin-inline: clamp(22px, 2.6vw, 36px);
  }
  section.section > .grid > .story:first-child > .label,
  section.section > .grid > .story:last-child:nth-child(even) > .label { grid-row: 2; margin-top: 26px; justify-self: start; }
  section.section > .grid > .story:first-child > h3,
  section.section > .grid > .story:last-child:nth-child(even) > h3 { grid-row: 3; }
  section.section > .grid > .story:first-child > p,
  section.section > .grid > .story:last-child:nth-child(even) > p { grid-row: 4; margin-bottom: 26px; font-size: 16px; }
  section.section > .grid > .story:first-child > h3 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.06; letter-spacing: -.03em; }
}

/* Callout blocks ("brief") */
.brief {
  margin: 28px 0 0;
  padding: clamp(22px, 3vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.brief h2 { margin: 10px 0 12px; font-size: clamp(25px, 2.6vw, 34px); font-weight: 750; letter-spacing: -.025em; }
.brief h2:first-child { margin-top: 0; }
.brief p { max-width: 70ch; margin: 0 0 12px; }
.brief p:last-child { margin-bottom: 0; }
section.section + .brief { margin-top: clamp(48px, 6vw, 84px); }
.brief:has(> h2 > a) {
  position: relative;
  color: #fff8ea;
  background: var(--forest);
  border-color: var(--forest);
  transition: background-color .2s;
}
.brief:has(> h2 > a):hover { background: var(--ink); }
.brief:has(> h2 > a) h2 a { color: inherit; text-decoration: none; }
.brief:has(> h2 > a) h2 a::before { content: ""; position: absolute; inset: 0; }
.brief:has(> h2 > a) h2 a::after {
  content: "";
  display: inline-block;
  width: .8em;
  height: .8em;
  margin-left: .35em;
  background: var(--gold);
  -webkit-mask: var(--icon-arrow) center / contain no-repeat;
  mask: var(--icon-arrow) center / contain no-repeat;
  vertical-align: -.06em;
  transition: transform .2s;
}
.brief:has(> h2 > a):hover h2 a::after { transform: translateX(6px); }
.brief:has(> h2 > a) p { color: #d7e0d9; }

/* 6. Sidebar -------------------------------------------------------------- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sidebar h2 {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 14px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sidebar h2::before { content: ""; width: .7em; height: .7em; background: var(--accent); }
.sidebar h2.section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sidebar p { color: var(--muted); margin: 8px 0 12px; }
.sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px solid #e8e2d4;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.sidebar nav a::after {
  content: "";
  flex: none;
  width: .85em;
  height: .85em;
  background: var(--accent);
  opacity: .55;
  -webkit-mask: var(--icon-chevron) center / contain no-repeat;
  mask: var(--icon-chevron) center / contain no-repeat;
  transition: opacity .15s, transform .15s;
}
.sidebar nav a:hover { padding-left: 5px; color: var(--accent-ink); }
.sidebar nav a:hover::after { opacity: 1; transform: translateX(3px); }
.sidebar .region {
  grid-column: 1 / -1;
  margin: 18px 0 4px;
  padding: 4px 8px;
  color: #fff8ea;
  background: var(--ink);
  font: 500 10.5px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sidebar .region:first-child { margin-top: 0; }
.country-layout .sidebar nav:first-of-type { grid-template-columns: 1fr; }
.country-layout .sidebar nav:first-of-type a { padding: 9px 0; font-size: 14.5px; font-weight: 600; }

/* 7. Country & research pages -------------------------------------------- */
.country-intro {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 84px) 0 clamp(32px, 4.5vw, 60px);
  color: #fff8ea;
}
.country-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -100vmax;
  background:
    linear-gradient(90deg, #0e1412 20%, #0e141200 70%),
    linear-gradient(#ffffff0d 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, #ffffff0d 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(120deg, var(--ink) 0%, var(--forest) 100%);
  border-bottom: 4px solid var(--accent);
}
.country-intro h1 {
  max-width: 18ch;
  margin: 14px 0 20px;
  font-size: clamp(42px, 7.2vw, 104px);
  font-weight: 880;
  line-height: .96;
  letter-spacing: -.05em;
}
.evidence-hub .country-intro h1 { max-width: 22ch; font-size: clamp(36px, 5.2vw, 72px); }
.country-intro .label { color: var(--gold); }
.country-intro .label::before { background: var(--gold); }
.country-intro .deck { max-width: 62ch; color: #d9d6c8; }
.country-intro p { margin: 0 0 14px; color: #c9c2b0; font-size: 14.5px; }
.country-intro p:last-child { margin-bottom: 0; }
.country-intro p a { color: #fff8ea; text-decoration-color: var(--gold); }
.country-intro p a:hover { color: var(--ink); background: var(--gold); }
.country-intro .country-crime-jump a::after {
  content: "";
  width: 1.05em;
  height: 1.05em;
  background: currentColor;
  -webkit-mask: var(--icon-arrow-down) center / contain no-repeat;
  mask: var(--icon-arrow-down) center / contain no-repeat;
  transition: transform .2s;
}
.country-intro .country-crime-jump a:hover::after { transform: translateY(3px); }
.country-intro .country-crime-jump a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  margin-top: 8px;
  padding: .6rem 1.1rem;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
}
.country-intro .country-crime-jump a:hover { color: #fff; background: var(--accent); }

.country-layout { margin-top: clamp(28px, 4vw, 48px); }
.country-layout .brief:first-child { margin-top: 0; }
.country-layout .brief { border-left: 5px solid var(--forest); }
.country-layout .brief p { font-size: 17px; line-height: 1.7; }

.evidence-panel, .article-evidence {
  max-width: none;
  margin-block: clamp(36px, 5vw, 64px);
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.evidence-panel > h2, .article-evidence > h2 {
  margin: 0 0 18px;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.evidence-panel h2 + h2, .evidence-panel p + h2, .evidence-panel figure + h2 { margin-top: 40px; }
.evidence-panel h3 { margin: 34px 0 12px; font-size: clamp(21px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.evidence-panel p { max-width: 74ch; font-size: 17px; line-height: 1.75; }
.evidence-panel .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-block: 22px; }

.evidence-panel ul:not(.profile-links) {
  columns: 2 320px;
  column-gap: 36px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.evidence-panel ul:not(.profile-links) li {
  break-inside: avoid;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--accent), var(--accent)) 0 1.25em / 7px 7px no-repeat;
  line-height: 1.45;
}
.evidence-panel ul:not(.profile-links) li > a { text-decoration: none; }
.profile-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}
.profile-links li a {
  display: block;
  padding: 9px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.profile-links li a:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

/* Timelines */
.evidence-panel ol { max-width: 76ch; margin: 18px 0; padding: 0; list-style: none; counter-reset: step; }
.evidence-panel ol li {
  position: relative;
  padding: 0 0 22px 46px;
  counter-increment: step;
  font-size: 17px;
  line-height: 1.6;
}
.evidence-panel ol li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--ink);
  font: 600 12px/1 var(--mono);
}
.evidence-panel ol li::after {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 13px;
  width: 2px;
  background: var(--line);
}
.evidence-panel ol li:last-child { padding-bottom: 0; }
.evidence-panel ol li:last-child::after { display: none; }

.country-crime-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
}
.country-crime-grid img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.country-crime-grid figcaption { margin-top: 8px; color: var(--muted); font: 500 11px/1.5 var(--mono); }
.country-crime-grid article h3 { margin-top: 0; }

.evidence-hub .article-hero { margin-block: clamp(24px, 3.5vw, 40px); }
.evidence-hub .article-hero img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* 8. Articles ------------------------------------------------------------- */
.article-hero { margin: 0 auto; }
.article-hero img { height: clamp(260px, 42vw, 600px); object-fit: cover; }
.article-hero figcaption {
  padding-top: 8px;
  color: var(--muted);
  font: 500 10.5px/1.5 var(--mono);
  letter-spacing: .03em;
  text-align: right;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
  margin-top: clamp(26px, 3.5vw, 44px);
}
.article-copy { min-width: 0; }
.article-copy h1 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 870;
  line-height: 1;
  letter-spacing: -.045em;
}
.article-copy > .deck {
  margin-bottom: 30px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(20px, 2.1vw, 25px);
}
.article-copy > p:not(.deck):not(.data-note) {
  max-width: 66ch;
  margin: 0 0 1.25em;
  font: 400 19px/1.75 var(--serif);
}
.article-copy > .deck + p::first-letter {
  float: left;
  margin: .09em .1em 0 0;
  color: var(--accent);
  font: 900 4.3em/.78 var(--serif);
}
.article-copy h2 { margin: 40px 0 14px; font-size: clamp(25px, 2.5vw, 32px); font-weight: 750; letter-spacing: -.025em; }
.article-copy > section {
  margin: 34px 0;
  padding: clamp(20px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-top-width: 1px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-copy > section > h2 { margin-top: 0; }
.article-copy > section p { line-height: 1.7; }
.article-copy > section > :last-child { margin-bottom: 0; }

.article-sources ul { margin: 0 0 18px; padding: 0; list-style: none; }
.article-sources li { padding: 10px 0; border-bottom: 1px solid #e8e2d4; font-size: 14.5px; line-height: 1.4; }
.article-sources li + li { margin-top: 0; }
.article-sources .read {
  padding: .6rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: .9rem;
}
.article-sources .read::after { color: var(--gold); }
.article-sources .read:hover { color: #fff; background: var(--accent); }
.article-sources .read:hover::after { color: #fff; }

/* 9. Data ----------------------------------------------------------------- */
.evidence-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr));
  gap: 22px;
  margin-block: 22px;
}
.evidence-charts .data-chart { margin: 0; }
.data-chart {
  min-width: 0;
  margin: 24px 0;
  padding: clamp(20px, 3vw, 32px);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 5px solid var(--ink);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.data-chart figcaption {
  margin-bottom: 20px;
  font: 750 clamp(19px, 2vw, 24px)/1.2 var(--serif);
  letter-spacing: -.015em;
}
.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px 16px;
  margin-block: 18px;
  font: 500 14.5px/1.35 var(--sans);
}
.data-row strong {
  font: 600 clamp(18px, 2vw, 23px)/1 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}
.data-track {
  grid-column: 1 / -1;
  height: 12px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #0e141224 calc(25% - 1px) 25%),
    #e9e2d2;
}
.data-track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--forest-light));
  transform-origin: left;
}
.data-row:first-of-type .data-track > span { background: linear-gradient(90deg, var(--accent-ink), var(--accent)); }
.data-note {
  max-width: 76ch;
  margin: 16px 0 0;
  color: var(--muted);
  font: 400 13.5px/1.55 var(--sans);
}
.data-chart .data-note { padding-top: 14px; border-top: 1px dashed var(--line); }

.impact-record { margin-block: 28px; overflow-x: auto; }
.impact-record table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  font-size: 15px;
}
.impact-record th, .impact-record td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.impact-record tr:last-child > td { border-bottom: 0; }
.impact-record th:first-child { width: 28%; }
.impact-record thead th {
  color: #fff8ea;
  background: var(--ink);
  font: 600 11.5px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.impact-record tbody tr:nth-child(even) { background: #f8f3e8; }
.impact-record tbody td:first-child, .impact-record tbody th { font-weight: 650; }

/* 10. Footer -------------------------------------------------------------- */
footer {
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(40px, 6vw, 72px) 0;
  color: #fff8ea;
  background:
    linear-gradient(#ffffff0a 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ink);
  border-top: 4px solid var(--accent);
}
footer .brand { font-size: clamp(30px, 5vw, 60px); letter-spacing: -.03em; }
footer .brand small { color: var(--gold); font-size: 11px; }
footer a:not(.brand) { color: var(--gold); font-weight: 600; }
footer a:hover { color: #fff; }

/* 11. Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes bar-grow { from { transform: scaleX(0); } }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes hero-in { from { transform: scale(1.06); } }
  @keyframes lead-in { from { opacity: 0; transform: translateY(34px); } }

  .hero img { animation: hero-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .lead { animation: lead-in .8s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .country-intro > * { animation: lead-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .country-intro > :nth-child(2) { animation-delay: .08s; }
  .country-intro > :nth-child(3) { animation-delay: .16s; }
  .country-intro > :nth-child(n+4) { animation-delay: .24s; }
  .data-track > span { animation: bar-grow 1.1s cubic-bezier(.2, .7, .2, 1) both; }

  @supports (animation-timeline: view()) {
    .data-track > span {
      animation: bar-grow linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 32%;
    }
    section.section .story, .evidence-panel .story, .data-chart, .country-layout .brief {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 12. Small screens ------------------------------------------------------- */
@media (max-width: 900px) {
  .layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .hero + .layout .sidebar { position: static; max-height: none; margin-top: 0; }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .country-layout .sidebar nav:first-of-type { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 0px; }
  body > header { position: static; }
  .bar { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding-top: 14px; }
  .bar nav {
    margin: 12px -4.4% 0;
    padding: 8px 4.4%;
    overflow-x: auto;
    border-top: 1px solid #ffffff22;
    scrollbar-width: none;
  }
  .bar nav::-webkit-scrollbar { display: none; }
  .hero img { height: clamp(250px, 68vw, 380px); }
  .hero figcaption { top: 10px; right: 10px; bottom: auto; }
  .hero + .layout .lead { margin-top: -44px; }
  .lead .read { display: flex; justify-content: space-between; margin-right: 0; }
  section.section > h2::after { display: none; }
  .country-crime-grid { grid-template-columns: 1fr; }
  .impact-record table { table-layout: auto; min-width: 520px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-copy > p:not(.deck):not(.data-note) { font-size: 18px; }
}

/* 13. Flourishes ---------------------------------------------------------- */
/* Reading progress along the masthead edge */
body > header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

/* Full-height opening image */
.hero img { height: clamp(380px, 74vh, 800px); }

/* Outlined section numerals */
section.section > h2 { align-items: center; gap: .3em; }
section.section > h2::before {
  color: transparent;
  font: 900 1.55em/.8 var(--serif);
  letter-spacing: -.05em;
  -webkit-text-stroke: 1.5px var(--accent);
  transform: none;
}

/* Cards: image pushes in, a gold square snaps into the corner */
.story-art { transform-origin: 50% 100%; transition: filter .3s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.story:hover .story-art { transform: scale(1.07); }
.story::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: var(--gold) var(--icon-arrow-up-right) center / 22px no-repeat;
  pointer-events: none;
  transform: scale(0) rotate(-90deg);
  transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.story:hover::after, .story:focus-within::after { transform: none; }
@media (min-width: 700px) {
  section.section > .grid > .story:first-child > .story-art,
  section.section > .grid > .story:last-child:nth-child(even) > .story-art { transform-origin: 100% 50%; }
}

/* The square, drifting behind page titles */
.country-intro { overflow-y: clip; }
.country-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -2%;
  width: clamp(180px, 26vw, 340px);
  aspect-ratio: 1;
  border: 2px solid #f2b93f73;
  box-shadow: inset 0 0 0 26px #f2b93f12, 26px 26px 0 -2px #f0641e2e;
  translate: 0 -50%;
  rotate: 12deg;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-1.5%); } }
  @keyframes square-spin { to { rotate: 372deg; } }
  @keyframes progress { to { transform: scaleX(1); } }

  .hero img { animation: hero-drift 26s ease-in-out infinite alternate; }
  .country-intro::after { animation: square-spin 90s linear infinite; }

  @supports (animation-timeline: scroll()) {
    body > header::after { animation: progress linear both; animation-timeline: scroll(root); }
  }
}
@media (max-width: 760px) {
  body > header::after { display: none; }
  .hero img { height: clamp(260px, 70vw, 400px); }
  .country-intro::after { right: -18%; opacity: .6; }
  section.section > h2::before { font-size: 1.3em; }
}

/* 14. Country flags ------------------------------------------------------- */
a[href="united-states.html"], a[href^="united-states.html#"] { --flag: "🇺🇸"; }
a[href="canada.html"], a[href^="canada.html#"] { --flag: "🇨🇦"; }
a[href="netherlands.html"], a[href^="netherlands.html#"] { --flag: "🇳🇱"; }
a[href="united-kingdom.html"], a[href^="united-kingdom.html#"] { --flag: "🇬🇧"; }
a[href="france.html"], a[href^="france.html#"] { --flag: "🇫🇷"; }
a[href="germany.html"], a[href^="germany.html#"] { --flag: "🇩🇪"; }
a[href="italy.html"], a[href^="italy.html#"] { --flag: "🇮🇹"; }
a[href="spain.html"], a[href^="spain.html#"] { --flag: "🇪🇸"; }
a[href="belgium.html"], a[href^="belgium.html#"] { --flag: "🇧🇪"; }
a[href="sweden.html"], a[href^="sweden.html#"] { --flag: "🇸🇪"; }
a[href="ireland.html"], a[href^="ireland.html#"] { --flag: "🇮🇪"; }
a[href="switzerland.html"], a[href^="switzerland.html#"] { --flag: "🇨🇭"; }
a[href="denmark.html"], a[href^="denmark.html#"] { --flag: "🇩🇰"; }
a[href="norway.html"], a[href^="norway.html#"] { --flag: "🇳🇴"; }
a[href="finland.html"], a[href^="finland.html#"] { --flag: "🇫🇮"; }
a[href="iceland.html"], a[href^="iceland.html#"] { --flag: "🇮🇸"; }
a[href="austria.html"], a[href^="austria.html#"] { --flag: "🇦🇹"; }
a[href="portugal.html"], a[href^="portugal.html#"] { --flag: "🇵🇹"; }
a[href="greece.html"], a[href^="greece.html#"] { --flag: "🇬🇷"; }
a[href="poland.html"], a[href^="poland.html#"] { --flag: "🇵🇱"; }
a[href="czechia.html"], a[href^="czechia.html#"] { --flag: "🇨🇿"; }
a[href="hungary.html"], a[href^="hungary.html#"] { --flag: "🇭🇺"; }
a[href="romania.html"], a[href^="romania.html#"] { --flag: "🇷🇴"; }
a[href="bulgaria.html"], a[href^="bulgaria.html#"] { --flag: "🇧🇬"; }
a[href="croatia.html"], a[href^="croatia.html#"] { --flag: "🇭🇷"; }
a[href="slovenia.html"], a[href^="slovenia.html#"] { --flag: "🇸🇮"; }
a[href="serbia.html"], a[href^="serbia.html#"] { --flag: "🇷🇸"; }
a[href="bosnia-and-herzegovina.html"], a[href^="bosnia-and-herzegovina.html#"] { --flag: "🇧🇦"; }
a[href="montenegro.html"], a[href^="montenegro.html#"] { --flag: "🇲🇪"; }
a[href="north-macedonia.html"], a[href^="north-macedonia.html#"] { --flag: "🇲🇰"; }
a[href="albania.html"], a[href^="albania.html#"] { --flag: "🇦🇱"; }
a[href="kosovo.html"], a[href^="kosovo.html#"] { --flag: "🇽🇰"; }
a[href="estonia.html"], a[href^="estonia.html#"] { --flag: "🇪🇪"; }
a[href="latvia.html"], a[href^="latvia.html#"] { --flag: "🇱🇻"; }
a[href="lithuania.html"], a[href^="lithuania.html#"] { --flag: "🇱🇹"; }
a[href="slovakia.html"], a[href^="slovakia.html#"] { --flag: "🇸🇰"; }
a[href="cyprus.html"], a[href^="cyprus.html#"] { --flag: "🇨🇾"; }
a[href="malta.html"], a[href^="malta.html#"] { --flag: "🇲🇹"; }
a[href="luxembourg.html"], a[href^="luxembourg.html#"] { --flag: "🇱🇺"; }
a[href="liechtenstein.html"], a[href^="liechtenstein.html#"] { --flag: "🇱🇮"; }
a[href="andorra.html"], a[href^="andorra.html#"] { --flag: "🇦🇩"; }
a[href="monaco.html"], a[href^="monaco.html#"] { --flag: "🇲🇨"; }
a[href="san-marino.html"], a[href^="san-marino.html#"] { --flag: "🇸🇲"; }
a[href="vatican.html"], a[href^="vatican.html#"] { --flag: "🇻🇦"; }
a[href="ukraine.html"], a[href^="ukraine.html#"] { --flag: "🇺🇦"; }
a[href="moldova.html"], a[href^="moldova.html#"] { --flag: "🇲🇩"; }
a[href="russia.html"], a[href^="russia.html#"] { --flag: "🇷🇺"; }
a[href="belarus.html"], a[href^="belarus.html#"] { --flag: "🇧🇾"; }
a[href="turkey.html"], a[href^="turkey.html#"] { --flag: "🇹🇷"; }
a[href="georgia.html"], a[href^="georgia.html#"] { --flag: "🇬🇪"; }
a[href="armenia.html"], a[href^="armenia.html#"] { --flag: "🇦🇲"; }
a[href="azerbaijan.html"], a[href^="azerbaijan.html#"] { --flag: "🇦🇿"; }
a[href="kazakhstan.html"], a[href^="kazakhstan.html#"] { --flag: "🇰🇿"; }
a[href="uzbekistan.html"], a[href^="uzbekistan.html#"] { --flag: "🇺🇿"; }
a[href="kyrgyzstan.html"], a[href^="kyrgyzstan.html#"] { --flag: "🇰🇬"; }
a[href="tajikistan.html"], a[href^="tajikistan.html#"] { --flag: "🇹🇯"; }
a[href="australia.html"], a[href^="australia.html#"] { --flag: "🇦🇺"; }
.sidebar nav a, .profile-links li a { justify-content: flex-start; }
.sidebar nav a::after { margin-left: auto; }
.sidebar nav a[href$=".html"]::before, .profile-links li a::before {
  content: var(--flag, "");
  flex: none;
  margin-right: 2px;
  font: 400 1.25em/1 "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
.profile-links li a { display: flex; align-items: center; gap: 8px; }

/* 15. Illustrated country headers ---------------------------------------- */
.country-intro[style*="--art"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: clamp(340px, 40vw, 500px);
}
.country-intro[style*="--art"]::after {
  top: 0;
  right: auto;
  bottom: 0;
  left: 50%;
  width: 100vw;
  aspect-ratio: auto;
  border: 0;
  border-bottom: 4px solid var(--accent);
  box-shadow: none;
  opacity: 1;
  translate: -50% 0;
  rotate: none;
  animation: none;
  background:
    linear-gradient(90deg, #0e1412 0%, #0e1412e0 28%, #0e141280 58%, #0e141226 100%),
    linear-gradient(0deg, #0e1412b3 0%, #0e141200 55%),
    var(--art) center / cover no-repeat;
}
.country-intro[style*="--art"] h1 { text-shadow: 0 2px 24px #0e1412cc; }
.country-intro[style*="--art"] .deck { color: #f0ecdf; text-shadow: 0 1px 12px #0e1412; }
@media (max-width: 760px) {
  .country-intro[style*="--art"] { min-height: 300px; }
  .country-intro[style*="--art"]::after {
    background:
      linear-gradient(0deg, #0e1412 0%, #0e1412d9 45%, #0e141266 100%),
      var(--art) center / cover no-repeat;
  }
}

/* 16. Migration map ------------------------------------------------------- */
.mig-tool {
  --ic-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM2 21v-1a7 7 0 0 1 14 0v1M16.5 3.4a4 4 0 0 1 0 7.2M22 21v-1a7 7 0 0 0-4-6.3'/%3E%3C/svg%3E");
  --ic-money: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18v10H3zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM6.5 10.5v3M17.5 10.5v3'/%3E%3C/svg%3E");
  --ic-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM5 21v-1a7 7 0 0 1 14 0v1'/%3E%3C/svg%3E");
  --ic-return: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14l-5-5 5-5M4 9h10a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E");
  --ic-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14zM20 20l-4-4'/%3E%3C/svg%3E");
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.4vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(14px, 2.2vw, 30px);
  color: #fff8ea;
  background:
    linear-gradient(#ffffff08 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, #ffffff08 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ink);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lift);
}
.mig-map { position: sticky; top: calc(var(--header-h) + 22px); }
.geo-map { display: block; width: 100%; height: auto; }
.geo-map path, .geo-map circle {
  stroke: #0e1412;
  stroke-width: .8;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: filter .18s, stroke .18s;
}
.geo-map .ctx path { fill: #1b2522; stroke: #0e1412; }
.geo-map a { cursor: pointer; outline: none; }
.geo-map a:hover > *, .geo-map a:focus-visible > * { stroke: var(--gold); stroke-width: 2; filter: brightness(1.22); }
.geo-map .dot { stroke: #0e1412; stroke-width: 1.5; }
.geo-map .t0, .tile.t0 { fill: #2a3532; }
.geo-map .t1 { fill: #2f5248; }
.geo-map .t2 { fill: #2f8a71; }
.geo-map .t3 { fill: #e0a02c; }
.geo-map .t4 { fill: var(--accent); }
.geo-map.t1-all .ctx path { fill: #2f5248; }
.geo-map.t2-all .ctx path { fill: #2f8a71; }
.geo-map.t3-all .ctx path { fill: #e0a02c; }
.geo-map.t4-all .ctx path { fill: var(--accent); }
.geo-map text {
  fill: #fff8ea;
  font: 600 13px/1 var(--mono);
  letter-spacing: .02em;
  text-anchor: middle;
  pointer-events: none;
}
.geo-map text.l3, .geo-map text.l4 { fill: var(--ink); }
.mig-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 10px 4px 0;
  color: #c9c2b0;
  font: 500 11.5px/1.4 var(--mono);
}
.mig-legend span { display: inline-block; width: 12px; height: 12px; margin-right: -9px; border-radius: 2px; }
.mig-legend .t1 { background: #2f5248; }
.mig-legend .t2 { background: #2f8a71; }
.mig-legend .t3 { background: #e0a02c; }
.mig-legend .t4 { background: var(--accent); }
.mig-legend em { flex-basis: 100%; font-style: normal; opacity: .75; }

.mig-side { min-width: 0; }
.mig-tabs { display: flex; gap: 4px; border-bottom: 1px solid #ffffff26; }
.mig-tabs a {
  position: relative;
  padding: 12px 16px 13px;
  color: #c9c2b0;
  font: 600 12.5px/1 var(--mono);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.mig-tabs a:hover { color: #fff8ea; }
.mig-tabs a[aria-current="page"] { color: #fff8ea; }
.mig-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--accent); }
.mig-search { position: relative; margin-top: 16px; }
.mig-search::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 22px;
  height: 22px;
  background: #fff8ea;
  -webkit-mask: var(--ic-search) center / contain no-repeat;
  mask: var(--ic-search) center / contain no-repeat;
  translate: 0 -50%;
  pointer-events: none;
}
.mig-search input {
  width: 100%;
  padding: 15px 50px 15px 18px;
  color: #fff8ea;
  background: transparent;
  border: 1.5px solid #fff8ea;
  border-radius: 10px;
  font: 600 16px/1.2 var(--sans);
  outline: none;
}
.mig-search input::placeholder { color: #c9c2b0; opacity: 1; }
.mig-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px #f2b93f40; }
.mig-search input::-webkit-calendar-picker-indicator { display: none !important; }

.mig-panel { display: none; padding-top: 22px; }
.mig-panel:target, .mig-panels:not(:has(.mig-panel:target)) .mig-default { display: block; }
.mig-panel h2 { margin: 0 0 4px; color: #fff8ea; font-size: clamp(28px, 3.2vw, 44px); font-weight: 850; letter-spacing: -.035em; }
.mig-flag { font: 400 .78em/1 "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif; vertical-align: .06em; }
.mig-hint { margin: 6px 0 0; color: #c9c2b0; font: 500 12px/1.5 var(--mono); letter-spacing: .03em; }
.mig-facts { margin: 14px 0 6px; padding: 0; list-style: none; }
.mig-facts li {
  display: grid;
  grid-template-columns: 38px minmax(96px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  padding: 13px 0;
  border-bottom: 1px solid #ffffff1f;
}
.mig-facts .ic { width: 34px; height: 34px; background: var(--gold); }
.ic-people { -webkit-mask: var(--ic-people) center / contain no-repeat; mask: var(--ic-people) center / contain no-repeat; }
.ic-money { -webkit-mask: var(--ic-money) center / contain no-repeat; mask: var(--ic-money) center / contain no-repeat; }
.ic-person { -webkit-mask: var(--ic-person) center / contain no-repeat; mask: var(--ic-person) center / contain no-repeat; }
.ic-return { -webkit-mask: var(--ic-return) center / contain no-repeat; mask: var(--ic-return) center / contain no-repeat; }
.mig-facts strong { color: #fff8ea; font: 600 clamp(24px, 2.7vw, 34px)/1 var(--mono); letter-spacing: -.045em; white-space: nowrap; }
.mig-facts span { color: #d9d3c2; font-size: 14.5px; line-height: 1.35; }
.mig-panel .data-chart {
  margin: 18px 0 0;
  color: #fff8ea;
  background: #16201d;
  border: 1px solid #2a3632;
  border-top: 4px solid var(--gold);
  box-shadow: none;
}
.mig-panel .data-chart figcaption { color: #fff8ea; }
.mig-panel .data-row strong { color: #fff8ea; }
.mig-panel .data-track { background: #2a3632; }
.mig-panel .data-track > span, .mig-panel .data-row:first-of-type .data-track > span { background: linear-gradient(90deg, #d98f1f, var(--gold)); }
.mig-panel .data-note { color: #b9b3a2; border-top-color: #2a3632; }
.mig-panel > .data-note { margin-top: 18px; }
.mig-panel a { color: #fff8ea; }
.mig-panel .data-note a:hover, .mig-panel p a:hover { color: var(--ink); background: var(--gold); }
.mig-panel > p { margin: 20px 0 0; }
.mig-panel .read { padding: .7rem 1.1rem; color: var(--ink); background: var(--gold); border-radius: 999px; text-decoration: none; }
.mig-panel .read::after { color: var(--ink); }
.mig-panel .read:hover { color: #fff; background: var(--accent); }
.mig-panel .read:hover::after { color: #fff; }
#all-countries td, #all-countries thead th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
#all-countries th a { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes map-in { from { opacity: 0; transform: scale(.97); } }
  .geo-map { animation: map-in .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 45%; }
  .mig-panel:target, .mig-default { animation: lead-in .45s cubic-bezier(.2, .7, .2, 1) both; }
}
@media (max-width: 1040px) {
  .bar { gap: 10px; }
  .bar nav a { padding: .45rem .58rem; font-size: .8rem; }
  .mig-facts li { grid-template-columns: 30px minmax(0, auto) minmax(0, 1fr); gap: 4px 12px; }
  .mig-facts .ic { width: 28px; height: 28px; }
  .mig-facts strong { font-size: clamp(20px, 2.6vw, 28px); }
  .mig-facts span { font-size: 13px; }
  .mig-panel h2 { font-size: clamp(24px, 3.4vw, 36px); }
  .mig-tabs a { padding: 11px 10px 12px; font-size: 11.5px; letter-spacing: .08em; }
}
@media (max-width: 760px) {
  .mig-tool { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mig-side { display: contents; }
  .mig-tabs { order: 1; }
  .mig-search { order: 2; margin-top: 0; }
  .mig-map { order: 3; position: static; }
  .mig-panels { order: 4; }
  .mig-panel { padding-top: 6px; }
}

/* 17. Dark data pages ----------------------------------------------------- */
body.dark-page {
  color: #e9e3d3;
  background:
    linear-gradient(#ffffff06 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, #ffffff06 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ink);
}
.dark-page .country-intro::before { border-bottom-color: #ffffff1f; background: none; }
.dark-page .mig-tool {
  background: #131b18;
  border: 1px solid #2a3632;
  box-shadow: 0 30px 80px -30px #000;
}
.dark-page .evidence-panel { border-top-color: #2a3632; }
.dark-page .evidence-panel > h2, .dark-page .evidence-panel h3 { color: #fff8ea; }
.dark-page .evidence-panel p { color: #d3cdbd; }
.dark-page .evidence-panel p strong { color: #fff8ea; }
.dark-page main p a, .dark-page main td a, .dark-page main th a { color: #fff8ea; }
.dark-page main p a:hover, .dark-page main th a:hover { color: var(--ink); background: var(--gold); }
.dark-page .impact-record table { color: #e9e3d3; background: #131b18; border-color: #2a3632; }
.dark-page .impact-record th, .dark-page .impact-record td { border-bottom-color: #232e2a; }
.dark-page .impact-record thead th { color: var(--gold); background: #0b100e; }
.dark-page .impact-record tbody tr:nth-child(even) { background: #18221f; }
.dark-page .impact-record tbody tr:hover { background: #22302b; }
.dark-page .impact-record tbody th a { text-decoration-color: transparent; }
.dark-page footer { margin-top: clamp(48px, 7vw, 90px); border-top-color: #2a3632; }
.dark-page ::selection { background: var(--gold); color: var(--ink); }
.ic-globe { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18zM3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E") center / contain no-repeat; }
.mig-facts li:has(.ic-globe) strong { font: 750 clamp(19px, 2.2vw, 26px)/1.1 var(--serif); letter-spacing: -.02em; white-space: normal; }

/* 18. Editorial refinement ------------------------------------------------
   One serif for reading (Newsreader), one sans for interface and data
   (Public Sans), one accent colour. Square corners, hairline rules,
   no ornamental motion. */
:root {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --paper: #f6f3ec;
  --card: #fbf9f4;
  --ink: #141414;
  --ink-soft: #2b2b2b;
  --muted: #5d5a54;
  --line: #ddd7cb;
  --accent: #c4421b;
  --accent-ink: #9e3412;
  --forest: #1d1d1d;
  --radius: 2px;
  --shadow: none;
  --shadow-lift: 0 1px 0 #00000014, 0 18px 40px -24px #00000059;
}
body { font: 400 16.5px/1.6 var(--sans); background: var(--paper); }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; }
.data-row strong, .mig-facts strong, .impact-record td, .data-note, .tile small { font-variant-numeric: tabular-nums lining-nums; }

/* Kickers: plain small capitals, no ornament */
.label { gap: 0; color: var(--accent-ink); font: 700 12px/1.35 var(--sans); letter-spacing: .07em; }
.label::before { display: none; }

/* Masthead */
body > header { background: #141414; border-bottom: 1px solid #000; }
body > header::after { background: var(--accent); }
.bar nav a { border-radius: 0; color: #d6d2c8; font-weight: 600; letter-spacing: .01em; }
.bar nav a:hover { background: none; color: #fff; }
.bar nav a[aria-current="page"] { color: #fff; background: none; box-shadow: inset 0 -3px 0 var(--accent); }
.brand { font-weight: 700; letter-spacing: -.015em; }
.brand small { color: #b9b4a8; font: 600 9px/1 var(--sans); letter-spacing: .38em; }
.brand small::after { background: #ffffff2e; }

/* Homepage lead */
.hero figcaption { background: #141414cc; font: 500 11px/1.5 var(--sans); letter-spacing: .02em; }
.lead { border-top: 4px solid var(--accent); border-radius: 0; }
.lead h1 { font-weight: 700; letter-spacing: -.022em; line-height: 1.02; }
.lead .deck { font-size: clamp(19px, 1.8vw, 22px); }
.lead .read {
  display: flex; justify-content: space-between; width: 100%; max-width: 560px;
  margin: 0; padding: 13px 2px; color: var(--ink); background: none;
  border: 0; border-top: 1px solid var(--line); border-radius: 0; font: 600 15.5px/1.35 var(--sans);
}
.lead .read:hover { color: var(--accent-ink); background: none; }
.lead .read:hover::after { color: var(--accent); }
.lead .read:first-of-type {
  display: inline-flex; width: auto; gap: 14px; margin: 0 0 18px; padding: 14px 20px;
  color: #fff; background: var(--ink); border: 0; border-radius: var(--radius); font-size: 16px;
}
.lead .read:first-of-type:hover { color: #fff; background: var(--accent); }
.lead .read:first-of-type::after { color: #fff; }

/* Region sections: a heavy rule and a title, nothing more */
section.section { padding-top: 14px; border-top: 3px solid var(--ink); }
section.section > h2 { display: block; margin-bottom: 24px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -.02em; }
section.section > h2::before, section.section > h2::after { display: none; }
section.section > h2 a::after { width: .42em; height: .42em; margin-left: .3em; vertical-align: .32em; background: var(--muted); }

/* Story teasers: image, kicker, headline, standfirst */
.story { overflow: visible; background: none; border: 0; border-radius: 0; }
.story:hover { transform: none; box-shadow: none; border-color: transparent; }
.story::after { display: none; }
.story:focus-within { outline-offset: 6px; }
.story-art { border-radius: 0; transition: filter .3s, opacity .3s; }
.story:hover .story-art { transform: none; filter: saturate(1.08) brightness(1.03); }
.story > .label, .story h3, .story p { margin-left: 0; margin-right: 0; }
.story > .label { margin-top: 14px; }
.story h3 { font-weight: 650; letter-spacing: -.012em; line-height: 1.14; }
.story h3 a { background-image: linear-gradient(var(--ink), var(--ink)); }
.story:hover h3 a { background-size: 100% 1px; }
.story p { margin-bottom: 0; font-size: 15.5px; }
@media (min-width: 700px) {
  section.section > .grid > .story:first-child,
  section.section > .grid > .story:last-child:nth-child(even) { column-gap: clamp(22px, 2.6vw, 36px); padding-bottom: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--line); }
  section.section > .grid > .story:first-child > :not(.story-art),
  section.section > .grid > .story:last-child:nth-child(even) > :not(.story-art) { margin-inline: 0; }
  section.section > .grid > .story:first-child > h3 { font-weight: 700; letter-spacing: -.02em; }
}

/* Briefs */
.brief { background: none; border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding-inline: 0; }
.brief:has(> h2 > a) { padding: clamp(22px, 3vw, 34px); background: var(--ink); border-top: 4px solid var(--accent); }
.brief:has(> h2 > a) h2 a::after { background: var(--accent); }

/* Sidebar */
.sidebar { padding: 14px 0 0; background: none; border: 0; border-top: 3px solid var(--ink); border-radius: 0; }
.sidebar h2 { gap: 0; font: 700 12px/1.4 var(--sans); letter-spacing: .07em; }
.sidebar h2::before { display: none; }
.sidebar .region { margin: 20px 0 2px; padding: 0 0 6px; color: var(--muted); background: none; border-bottom: 1px solid var(--ink); font: 700 11px/1.4 var(--sans); letter-spacing: .07em; }
.sidebar nav a { border-bottom-color: var(--line); font-weight: 500; }

/* Section and page headers */
.country-intro::before { background: linear-gradient(120deg, #141414 0%, #1f1f1f 100%); border-bottom: 3px solid var(--accent); }
.country-intro:not([style*="--art"])::after { display: none; }
.country-intro h1 { font-weight: 700; letter-spacing: -.025em; }
.country-intro .label, .country-intro .label::before { color: #f0b78f; background: none; }
.country-intro .country-crime-jump a { color: #fff; background: var(--accent); border-radius: var(--radius); }
.country-intro .country-crime-jump a:hover { color: var(--ink); background: #fff; }
.country-intro p a { text-decoration-color: #f0b78f; }
.country-intro p a:hover { color: var(--ink); background: #f0b78f; }
.country-layout .brief { padding: 0 0 0 clamp(16px, 2vw, 24px); border: 0; border-left: 3px solid var(--ink); }

/* Evidence panels */
.evidence-panel, .article-evidence { border-top: 3px solid var(--ink); }
.evidence-panel > h2, .article-evidence > h2 { font-weight: 700; letter-spacing: -.02em; }
.evidence-panel h3 { font-weight: 650; }
.evidence-panel ul:not(.profile-links) li { background-size: 6px 6px; }
.profile-links li a { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
.profile-links li a:hover { color: var(--accent-ink); background: none; }
.evidence-panel ol li::before { background: none; color: var(--accent-ink); border: 1.5px solid currentColor; border-radius: 50%; font: 700 12px/1 var(--sans); }
.evidence-hub .article-hero img, .country-crime-grid img { border-radius: 0; box-shadow: none; }
.country-crime-grid figcaption { font: 500 12px/1.5 var(--sans); }

/* Articles */
.article-hero figcaption { font: 500 11.5px/1.5 var(--sans); letter-spacing: 0; }
.article-copy h1 { font-weight: 700; letter-spacing: -.025em; line-height: 1.03; }
.article-copy > .deck { border-bottom-width: 1px; }
.article-copy > p:not(.deck):not(.data-note) { font-size: 19.5px; line-height: 1.65; }
.article-copy > .deck + p::first-letter { color: var(--ink); font-weight: 700; }
.article-copy h2 { font-weight: 700; letter-spacing: -.015em; }
.article-copy > section { background: none; border: 0; border-top: 1px solid var(--ink); border-left: 0; border-radius: 0; padding-inline: 0; }
.article-sources .read { padding: 0; color: var(--ink); background: none; border-radius: 0; font-weight: 700; }
.article-sources .read::after { color: var(--accent); }
.article-sources .read:hover { color: var(--accent-ink); background: none; }

/* Charts: flat bars, light gridlines */
.data-chart { background: none; border: 0; border-top: 2px solid var(--ink); border-radius: 0; box-shadow: none; padding: 16px 0 0; }
.data-chart figcaption { font: 700 clamp(18px, 1.7vw, 21px)/1.25 var(--serif); letter-spacing: -.01em; }
.data-row { font: 500 14.5px/1.35 var(--sans); }
.data-row strong { font: 700 clamp(17px, 1.6vw, 20px)/1 var(--sans); letter-spacing: -.01em; }
.data-track { height: 10px; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #00000014 calc(25% - 1px) 25%), #e7e2d7; border-radius: 0; }
.data-track > span { background: #3a3a3a; border-radius: 0; }
.data-row:first-of-type .data-track > span { background: var(--accent); }
.data-chart .data-note { border-top: 0; padding-top: 6px; }
.impact-record table { border-radius: 0; border-left: 0; border-right: 0; }
.impact-record thead th { font: 700 11.5px/1.4 var(--sans); letter-spacing: .06em; }

/* Footer */
footer { background: #141414; border-top: 3px solid var(--accent); }
footer .brand small { color: #b9b4a8; }

/* Motion: keep the subtle entrances, drop the ornaments */
@media (prefers-reduced-motion: no-preference) {
  .hero img { animation: hero-in 1.4s cubic-bezier(.2, .7, .2, 1) both; }
}

/* Migration tool */
.mig-tool {
  --ic-people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3C/svg%3E");
  --ic-money: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
  --ic-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  --ic-return: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E");
  --ic-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
  --ic-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background: #171717;
  border: 1px solid #262626;
  border-radius: 0;
  box-shadow: none;
}
body.dark-page { background: #101010; }
.dark-page .mig-tool { background: #171717; border-color: #262626; box-shadow: none; }
.mig-tabs { border-bottom-color: #ffffff1f; }
.mig-tabs a { font: 700 12px/1 var(--sans); letter-spacing: .08em; }
.mig-search input { border: 1px solid #ffffff59; border-radius: var(--radius); background: #ffffff08; font: 500 16px/1.2 var(--sans); }
.mig-search input:focus { border-color: #f0b78f; box-shadow: 0 0 0 3px #c4421b40; }
.mig-search::after { -webkit-mask: var(--ic-search) center / contain no-repeat; mask: var(--ic-search) center / contain no-repeat; background: #d6d2c8; width: 20px; height: 20px; }
.mig-panel h2 { font-weight: 700; letter-spacing: -.02em; }
.mig-hint { font: 500 13px/1.5 var(--sans); letter-spacing: 0; color: #a8a398; }
.mig-facts li { grid-template-columns: 40px minmax(96px, auto) minmax(0, 1fr); border-bottom-color: #ffffff17; }
.mig-facts .ic { display: grid; place-items: center; width: 40px; height: 40px; background: #c4421b26; border-radius: 50%; -webkit-mask: none; mask: none; }
.mig-facts .ic::after { content: ""; width: 20px; height: 20px; background: #f3a079; }
.mig-facts .ic-people::after { -webkit-mask: var(--ic-people) center / contain no-repeat; mask: var(--ic-people) center / contain no-repeat; }
.mig-facts .ic-money::after { -webkit-mask: var(--ic-money) center / contain no-repeat; mask: var(--ic-money) center / contain no-repeat; }
.mig-facts .ic-person::after { -webkit-mask: var(--ic-person) center / contain no-repeat; mask: var(--ic-person) center / contain no-repeat; }
.mig-facts .ic-return::after { -webkit-mask: var(--ic-return) center / contain no-repeat; mask: var(--ic-return) center / contain no-repeat; }
.mig-facts .ic-globe::after { -webkit-mask: var(--ic-globe) center / contain no-repeat; mask: var(--ic-globe) center / contain no-repeat; }
.mig-facts strong { font: 700 clamp(23px, 2.5vw, 31px)/1 var(--sans); letter-spacing: -.02em; }
.mig-facts li:has(.ic-globe) strong { font: 700 clamp(20px, 2.1vw, 25px)/1.1 var(--serif); }
.mig-facts span { color: #c9c4b8; }
.mig-panel .data-chart { padding: 16px 0 0; background: none; border: 0; border-top: 1px solid #ffffff2e; }
.mig-panel .data-chart figcaption { color: #fff; }
.mig-panel .data-track { background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #ffffff12 calc(25% - 1px) 25%), #262626; }
.mig-panel .data-track > span, .mig-panel .data-row:first-of-type .data-track > span { background: #d9d4c7; }
.mig-panel .data-row:last-of-type .data-track > span { background: #f3a079; }
.mig-panel .data-note { color: #a8a398; }
.mig-panel .read { color: #fff; background: var(--accent); border-radius: var(--radius); }
.mig-panel .read::after { color: #fff; }
.mig-panel .read:hover { color: var(--ink); background: #fff; }
.mig-panel .read:hover::after { color: var(--ink); }
.dark-page .impact-record table { background: #171717; border-color: #262626; }
.dark-page .impact-record thead th { color: #f0b78f; background: #101010; }
.dark-page .impact-record tbody tr:nth-child(even) { background: #1c1c1c; }
.dark-page .evidence-panel { border-top-color: #333; }

/* Map: ordered colour scale, hairline borders, readable labels */
.mig-map { position: sticky; }
.geo-map .ctx path { fill: #222; stroke: #171717; }
.geo-map path, .geo-map circle { stroke: #171717; stroke-width: .7; }
.geo-map .t0 { fill: #2a2a2a; }
.geo-map .t1 { fill: #4a3b33; }
.geo-map .t2 { fill: #85462a; }
.geo-map .t3 { fill: #c4521f; }
.geo-map .t4 { fill: #f39a66; }
.geo-map.t1-all .ctx path { fill: #4a3b33; }
.geo-map.t2-all .ctx path { fill: #85462a; }
.geo-map.t3-all .ctx path { fill: #c4521f; }
.geo-map.t4-all .ctx path { fill: #f39a66; }
.geo-map a:hover > *, .geo-map a:focus-visible > * { stroke: #fff; stroke-width: 1.6; filter: brightness(1.12); }
.geo-map text { fill: #fff; font: 600 25px/1 var(--sans); letter-spacing: .01em; paint-order: stroke; stroke: #171717b3; stroke-width: 5px; stroke-linejoin: round; }
.geo-map text.l3, .geo-map text.l4 { fill: #141414; stroke: #ffffff59; }
.mig-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 360px; margin: 14px 2px 0; color: #a8a398; font: 500 11.5px/1.3 var(--sans); }
.mig-legend span { display: block; width: auto; height: 8px; margin: 0 0 6px; border-radius: 0; }
.mig-legend .t1 { background: #4a3b33; }
.mig-legend .t2 { background: #85462a; }
.mig-legend .t3 { background: #c4521f; }
.mig-legend .t4 { background: #f39a66; }
.mig-legend em { grid-column: 1 / -1; margin-top: 8px; font-style: normal; color: #8b867b; }
.mig-tip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 8px 11px; color: #141414; background: #fff;
  border-radius: var(--radius); box-shadow: 0 8px 24px -8px #000;
  font: 500 13px/1.35 var(--sans); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}
.mig-tip strong { display: block; font: 700 14px/1.3 var(--sans); }
.mig-tip[hidden] { display: none; }
@media (max-width: 760px) { .mig-map { padding-bottom: 18px; } .mig-legend { max-width: none; } }
.geo-map:not([class*="-all"]) .ctx { display: none; }

/* 19. Paired bars and research pages -------------------------------------- */
.pair-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 10px; color: var(--muted); font: 500 13px/1.4 var(--sans); }
.pair-key span { display: inline-block; width: 12px; height: 12px; margin-right: -12px; }
.pair-key .nat, .pair-bar.nat > span { background: #3a3a3a; }
.pair-key .neu, .pair-bar.neu > span { background: var(--accent); }
.pair-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 58px; grid-template-rows: auto auto; align-items: center; gap: 3px 12px; margin: 0 0 12px; font: 500 14px/1.2 var(--sans); }
.pair-year { grid-row: 1 / 3; font-weight: 700; }
.pair-bar { display: block; height: 9px; background: #e7e2d7; }
.pair-bar > span { display: block; height: 100%; }
.pair-row b { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pair-row b.neu { color: var(--accent-ink); }
.mig-panel .pair-key { color: #a8a398; }
.mig-panel .pair-key .nat, .mig-panel .pair-bar.nat > span { background: #d9d4c7; }
.mig-panel .pair-key .neu, .mig-panel .pair-bar.neu > span { background: #f3a079; }
.mig-panel .pair-bar { background: #262626; }
.mig-panel .pair-row { color: #e9e3d3; }
.mig-panel .pair-row b.neu { color: #f3a079; }
.mig-tool { --ic-work: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='7' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); }
.mig-facts .ic-work::after { -webkit-mask: var(--ic-work) center / contain no-repeat; mask: var(--ic-work) center / contain no-repeat; }
.data-row.pos .data-track > span { background: #3a3a3a; }
.research .data-row:not(.pos) .data-track > span { background: var(--accent); }
.research .data-row.pos strong { color: var(--ink); }
.research .data-row:not(.pos) strong { color: var(--accent-ink); }
.findings { counter-reset: step; }
.findings li { font-size: 18px; }
.findings li strong { display: block; font: 700 21px/1.25 var(--serif); }
