@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #f2f4f1;
  --line: #d9ded6;
  --ink: #18231c;
  --ink-soft: #4a564d;
  --forest: #1e4a34;
  --forest-deep: #143424;
  --moss: #6b7f4e;
  --laterite: #9a5b2e;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5vw, 3.6rem);
  --step-5: clamp(2.8rem, 7vw, 5.2rem);
  --gap: clamp(1rem, 3vw, 2rem);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--laterite); }
:focus-visible { outline: 3px solid var(--laterite); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--forest); color: #fff; padding: .6rem 1rem; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.sans { font-family: var(--sans); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; display: block; }
.brand-sub { font-family: var(--sans); font-size: .74rem; color: var(--ink-soft); display: block; margin-top: .25rem; letter-spacing: .01em; }
.nav { font-family: var(--sans); font-size: .92rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--laterite); color: var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: .7rem; padding-bottom: .7rem; }
  .nav-toggle { display: block; font-family: var(--sans); }
  .nav-toggle summary { cursor: pointer; list-style: none; border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 4px; font-size: .9rem; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-desktop { display: none; }
  .nav-toggle ul { flex-direction: column; gap: 0; padding: .6rem 0 .2rem; }
  .nav-toggle li a { padding: .55rem 0; font-size: 1rem; }
  .nav-toggle[open] { flex-basis: 100%; }
}

/* Breadcrumb */
.crumbs { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-soft); margin: 1.6rem 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--ink-soft); }

/* Home hero */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: 0; opacity: .9; }
.hero-art svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 1; padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; margin: 0; max-width: 13ch; }
.hero h1 span { display: block; color: var(--forest); font-style: italic; font-weight: 400; }
.hero p.lede { font-size: var(--step-1); max-width: 40ch; color: var(--ink); margin: 1.6rem 0 0; background: rgba(255,255,255,.82); }
.hero .independence { font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); margin-top: 1.4rem; max-width: 60ch; background: rgba(255,255,255,.85); display: inline-block; }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.mist { background: var(--mist); border-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head h2 { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.015em; margin: 0; line-height: 1.15; }
.section-head p { margin: 0; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); max-width: 52ch; }
.section-head a { font-family: var(--sans); font-size: .95rem; }

/* Lead story */
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); align-items: start; }
.lead-main img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lead-main h3 { font-size: var(--step-3); line-height: 1.12; margin: 1rem 0 .5rem; font-weight: 500; letter-spacing: -0.015em; }
.lead-main h3 a, .story h3 a, .card h3 a { color: var(--ink); text-decoration: none; }
.lead-main h3 a:hover, .story h3 a:hover, .card h3 a:hover { color: var(--forest); text-decoration: underline; }
.lead-main p { margin: 0; color: var(--ink-soft); max-width: 55ch; }
.stories { list-style: none; margin: 0; padding: 0; }
.story { padding: 1rem 0; border-top: 1px solid var(--line); }
.story:first-child { border-top: 0; padding-top: 0; }
.story h3 { font-size: var(--step-1); line-height: 1.25; margin: .2rem 0 .3rem; font-weight: 500; }
.story p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.topic-link { font-family: var(--sans); font-size: .82rem; font-weight: 600; color: var(--laterite); text-decoration: none; }
.topic-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; } }

/* Card grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem var(--gap); list-style: none; padding: 0; margin: 0; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 3px solid var(--forest); }
.card h3 { font-size: var(--step-1); line-height: 1.22; margin: .8rem 0 .35rem; font-weight: 500; }
.card p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* Topic index */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gap); list-style: none; margin: 0; padding: 0; }
.topics li { border-top: 1px solid var(--line); padding: 1.1rem 0 1.3rem; }
.topics a.t { font-size: var(--step-2); line-height: 1.15; text-decoration: none; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.topics a.t:hover { color: var(--forest); text-decoration: underline; }
.topics .count { font-family: var(--sans); font-size: .82rem; color: #4f5f38; margin-left: .35rem; white-space: nowrap; }
.topics p { margin: .4rem 0 0; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 900px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .topics { grid-template-columns: 1fr; } }

/* Plain link lists (archive, resources) */
.ledger { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--gap); }
.ledger li { break-inside: avoid; padding: .8rem 0; border-top: 1px solid var(--line); }
.ledger a { font-size: 1.12rem; color: var(--ink); text-decoration: none; font-weight: 500; }
.ledger a:hover { color: var(--forest); text-decoration: underline; }
.ledger span { display: block; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); margin-top: .15rem; }
@media (max-width: 700px) { .ledger { columns: 1; } }

/* Notice strip */
.notice { font-family: var(--sans); font-size: .95rem; line-height: 1.55; border-left: 4px solid var(--laterite); background: var(--mist); padding: 1rem 1.2rem; max-width: 80ch; }
.notice p { margin: 0 0 .5rem; } .notice p:last-child { margin-bottom: 0; }

/* Article */
.article-head { padding: 1rem 0 2rem; max-width: 50rem; }
.article-head h1 { font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.02em; font-weight: 500; margin: .6rem 0 1rem; }
.article-head .dek { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); margin: 0 0 1.2rem; max-width: 46ch; }
.meta { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.meta a { color: var(--ink-soft); }
.cover { margin: 0 0 2.5rem; }
.cover img { width: 100%; aspect-ratio: 3/1; max-height: 340px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: 3rem; }
.toc { position: sticky; top: 1.5rem; font-family: var(--sans); font-size: .9rem; border-left: 1px solid var(--line); padding-left: 1.2rem; max-width: 18rem; }
.toc h2 { font-size: .9rem; font-weight: 600; margin: 0 0 .6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: .45rem 0; line-height: 1.35; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--forest); text-decoration: underline; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { line-height: 1.68; }
.prose h2 { font-size: var(--step-2); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 2.2em 0 .2em; scroll-margin-top: 1rem; }
.prose h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; margin: 1.8em 0 .1em; scroll-margin-top: 1rem; }
.prose h2 + p, .prose h3 + p { margin-top: .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-left: 0; padding: .9rem 1.2rem; border-left: 4px solid var(--forest); background: var(--mist); font-size: 1.05rem; }
.prose blockquote p { margin: 0; }
.prose strong { font-weight: 650; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .92rem; }
.table-wrap { overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; background: var(--mist); }
.prose code { font-size: .9em; background: var(--mist); padding: .05em .3em; border-radius: 3px; }
.prose a[href^="http"]:not([href*="global-mechanism.org"])::after { content: "\2197"; font-family: var(--sans); font-size: .7em; margin-left: .12em; vertical-align: super; text-decoration: none; display: inline-block; }

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.sources h2 { font-size: var(--step-1); margin: 0 0 .8rem; }
.sources ol { font-family: var(--sans); font-size: .9rem; padding-left: 1.4em; line-height: 1.5; }
.sources li { margin: .5rem 0; overflow-wrap: anywhere; }
.sources .pub { color: var(--ink-soft); }
.made { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); background: var(--mist); padding: 1rem 1.2rem; margin-top: 2rem; }
.made p { margin: 0; }

.related { border-top: 1px solid var(--line); }

/* Hub */
.hub-head { padding: 1rem 0 2.5rem; display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr; gap: var(--gap); align-items: end; }
.hub-head h1 { font-size: var(--step-4); line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; margin: .5rem 0 1.2rem; }
.hub-head .intro p { margin: 0 0 1rem; max-width: 60ch; }
.hub-art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .hub-head { grid-template-columns: 1fr; } .hub-art { display: none; } }
.official { font-family: var(--sans); font-size: .95rem; }
.official ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem var(--gap); }
.official li { border-top: 1px solid var(--line); padding-top: .6rem; }

/* Historical banner */
.historical { font-family: var(--sans); font-size: .95rem; line-height: 1.55; border: 1px solid var(--laterite); border-left-width: 6px; padding: 1.1rem 1.3rem; margin: 0 0 2.2rem; max-width: var(--measure); background: #fbf8f5; }
.historical strong:first-child { display: block; font-size: 1rem; margin-bottom: .35rem; color: var(--laterite); }
.historical p { margin: 0 0 .55rem; } .historical p:last-child { margin: 0; }

/* Worksheet */
.worksheet-facts { font-family: var(--sans); font-size: .95rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem var(--gap); margin: 0 0 2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: var(--measure); }
.worksheet-facts dt { font-weight: 600; } .worksheet-facts dd { margin: .1rem 0 0; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 2rem; font-family: var(--sans); }
.button { display: inline-block; font-family: var(--sans); font-size: .95rem; font-weight: 600; background: var(--forest); color: #fff; text-decoration: none; padding: .7rem 1.1rem; border-radius: 4px; border: 0; cursor: pointer; }
.button:hover { background: var(--forest-deep); color: #fff; }
.button.secondary { background: transparent; color: var(--forest); border: 1px solid var(--forest); }
.prose td:empty::after { content: "\00a0"; display: inline-block; min-height: 2.2em; }

.contact-email { font-size: var(--step-2); }

/* Footer */
.site-footer { background: var(--forest-deep); color: #e7ece6; font-family: var(--sans); font-size: .92rem; margin-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #e9c9a6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap); padding: 3rem 0 2rem; }
.footer-grid h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 0 0 .7rem; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: .35rem 0; }
.footer-brand p { margin: .8rem 0 0; color: #c9d3c8; max-width: 36ch; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #c9d3c8; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.18); padding: 1.3rem 0 2rem; color: #c9d3c8; font-size: .86rem; line-height: 1.55; }
.disclaimer p { margin: 0 0 .5rem; max-width: 95ch; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Error pages */
.error-page { padding: 4rem 0 3rem; max-width: 60ch; }
.error-page h1 { font-size: var(--step-4); font-weight: 500; line-height: 1.05; margin: 0 0 1rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

@media print {
  .site-header, .site-footer, .crumbs, .actions, .toc, .related, .made, .skip { display: none !important; }
  body { font-size: 11.5pt; }
  .article-layout { display: block; }
  .prose { max-width: none; }
  .prose a::after { content: none !important; }
  .prose td { height: 2.4em; }
  .prose h2 { break-after: avoid; }
  .prose table { break-inside: avoid; }
  .cover { display: none; }
}

.sheet-box { margin-top: 2.2rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 3rem; }
.pb-3 { padding-bottom: 3rem; }
a.plain { color: inherit; text-decoration: none; }

/* Photography */
picture { display: block; }
picture img { width: 100%; height: auto; }
.card picture img, .lead-main picture img { aspect-ratio: 16/9; object-fit: cover; border-bottom: 3px solid var(--forest); }
.cover.photo picture img { aspect-ratio: 16/9; max-height: 560px; object-fit: cover; }
.hub-art figure { margin: 0; }
.hub-art picture img { aspect-ratio: 4/3; object-fit: cover; }
figure.photo figcaption, .cover.photo figcaption { font-family: var(--sans); font-size: .82rem; line-height: 1.45; color: var(--ink-soft); margin-top: .55rem; max-width: 80ch; }
.credit a { color: var(--ink-soft); }
