:root {
  --oecd-ink: #101216;
  --oecd-paper: #f6f1e7;
  --oecd-line: #cfc8bc;
  --oecd-cobalt: #1746d1;
  --oecd-cyan: #8be7e4;
  --oecd-red: #e6533f;
  --oecd-yellow: #f3c947;
}

html { scroll-behavior: smooth; }
body { background: var(--oecd-paper); color: var(--oecd-ink); }
main { max-width: 1380px; padding-top: clamp(42px, 6vw, 82px); }
main > section { padding: clamp(42px, 6.5vw, 84px) 0; border-bottom: 1px solid var(--oecd-line); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: clamp(36px, 7vw, 110px); align-items: end; padding-top: 0; }
.hero > * { min-width: 0; }
.hero h1 { max-width: 880px; margin-bottom: 22px; font-size: clamp(62px, 9vw, 132px); line-height: .83; letter-spacing: -.045em; }
.hero .lede { max-width: 850px; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.45; }
.byline { margin-top: 28px; color: #645f57; font-size: 13px; font-weight: 850; }
.thesis-card { padding: 28px; border: 2px solid var(--oecd-ink); background: var(--oecd-cyan); box-shadow: 14px 14px 0 var(--oecd-ink); }
.thesis-card > span { display: block; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.thesis-card strong { display: block; margin-top: 34px; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(48px, 6vw, 78px); line-height: .92; text-transform: uppercase; }
.thesis-card p { margin: 26px 0 0; line-height: 1.55; }

.section-heading { max-width: 1020px; }
.section-heading h2, .hidden-public h2, .source-note h2 { margin: 8px 0 0; font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(44px, 6vw, 82px); line-height: .95; text-transform: uppercase; }
.eyebrow { margin: 0; color: var(--oecd-cobalt); font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-intro { max-width: 920px; font-family: Literata, Georgia, serif; font-size: clamp(18px, 2vw, 25px); line-height: 1.55; }
.evidence-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 26px; border: 1px solid var(--oecd-ink); background: var(--oecd-ink); }
.evidence-key span { min-height: 92px; padding: 15px; background: white; font-size: 12px; line-height: 1.45; }
.evidence-key strong { display: block; margin: 6px 0 3px; font-size: 13px; text-transform: uppercase; }
.key-swatch { display: block; width: 30px; height: 7px; background: #e9e5dd; }
.key-swatch.verified { background: var(--oecd-cyan); }
.key-swatch.partial { background: var(--oecd-yellow); }
.key-swatch.conflicted { background: #ff9d8c; }
.key-swatch.unknown { background: #aaa39a; }

.question-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 36px; border: 1px solid var(--oecd-ink); background: var(--oecd-ink); }
.question-grid article { min-height: 280px; border: 0; background: white; }
.question-grid article:nth-child(2) { background: #f9e8d7; }
.question-grid article:nth-child(3) { background: #dce8ff; }
.question-grid article:nth-child(4) { background: var(--oecd-cyan); }
.question-grid span { font-family: Impact, "Arial Narrow", sans-serif; font-size: 42px; color: var(--oecd-red); }
.question-grid h3 { margin: 36px 0 10px; font-size: 24px; }
.question-grid p { line-height: 1.55; }

.database-status { background: #fff; }
.database-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 34px; border: 1px solid var(--oecd-ink); background: var(--oecd-ink); }
.database-grid article { display: flex; min-height: 170px; flex-direction: column; justify-content: space-between; padding: 20px; border: 0; background: #f4f1ea; }
.database-grid article:nth-child(2), .database-grid article:nth-child(5) { background: #dce8ff; }
.database-grid article:nth-child(4) { background: var(--oecd-yellow); }
.database-grid article:nth-child(6) { background: var(--oecd-cyan); }
.database-grid strong { font-family: Impact, "Arial Narrow", sans-serif; font-size: clamp(45px, 5vw, 72px); font-weight: 500; line-height: .9; }
.database-grid span { font-size: 11px; font-weight: 900; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.coverage-panel { margin-top: 20px; padding: 24px; border: 2px solid var(--oecd-ink); }
.coverage-panel p { margin: 0; }
.coverage-title { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
#coverage-summary { margin-top: 7px; color: #5d5851; font-size: 14px; }
.coverage-track { display: flex; height: 24px; margin: 20px 0; overflow: hidden; border: 2px solid var(--oecd-ink); background: #ddd8d0; }
.coverage-track span { display: block; height: 100%; }
.coverage-track .covered { background: var(--oecd-cyan); }
.coverage-track .partial { background: var(--oecd-yellow); }
.coverage-track .missing { background: #aaa39a; }
.coverage-note { max-width: 920px; font-size: 13px; line-height: 1.55; }
.release-line { margin: 16px 0 0; color: #625e57; font-size: 12px; }

.atlas-tools { display: grid; grid-template-columns: auto minmax(220px, 430px) 1fr; gap: 14px; align-items: center; margin: 34px 0 18px; }
.atlas-tools label { font-size: 13px; font-weight: 900; text-transform: uppercase; }
.atlas-tools input { width: 100%; padding: 13px 15px; border: 2px solid var(--oecd-ink); border-radius: 0; background: white; color: var(--oecd-ink); font: inherit; }
.atlas-tools span { justify-self: end; font-size: 13px; font-weight: 900; }
.table-wrap { overflow-x: auto; border: 2px solid var(--oecd-ink); background: white; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--oecd-line); text-align: left; vertical-align: top; line-height: 1.45; }
th { position: sticky; top: 0; background: var(--oecd-ink); color: white; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fff8cf; }
.country-name strong, .country-name span { display: block; }
.country-name span { margin-top: 3px; color: #706a61; font-size: 12px; }
.country-name button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.country-name button:hover strong { color: var(--oecd-cobalt); text-decoration: underline; }
.cell-state { display: inline-block; padding: 4px 7px; background: #e9e5dd; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.cell-state.verified { background: var(--oecd-cyan); }
.cell-state.partial { background: var(--oecd-yellow); }
.cell-state.conflicted { background: #ffd2c9; }
.cell-state.unknown, .cell-state.reviewing { background: #ddd8d0; }
.downloads { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.downloads a { padding: 11px 13px; border: 2px solid var(--oecd-ink); background: transparent; color: var(--oecd-ink); font-size: 12px; font-weight: 900; text-decoration: none; }
.downloads a:hover { background: var(--oecd-ink); color: white; }

.findings { background: #dce8ff; margin-inline: calc(-1 * clamp(20px, 5vw, 56px)); padding-inline: clamp(20px, 5vw, 56px); }
.finding-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 36px; border: 1px solid var(--oecd-ink); background: var(--oecd-ink); }
.finding-grid article { min-height: 330px; border: 0; background: white; }
.finding-grid article:nth-child(2) { background: #fff8cf; }
.finding-grid article:nth-child(3) { background: var(--oecd-cyan); }
.finding-grid > article > span { color: var(--oecd-cobalt); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.finding-grid h3 { margin: 26px 0 14px; font-size: 27px; line-height: 1.1; }
.finding-grid p { line-height: 1.6; }
.finding-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.finding-sources a { padding: 5px 7px; border: 1px solid currentColor; color: var(--oecd-cobalt); font-size: 10px; font-weight: 900; text-decoration: none; }
.finding-sources a:hover { background: var(--oecd-ink); color: white; }

.dossier-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 36px; align-items: end; }
.dossier-heading label { display: grid; gap: 9px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dossier-heading select { width: 100%; padding: 13px 14px; border: 2px solid var(--oecd-ink); border-radius: 0; background: white; color: var(--oecd-ink); font: inherit; text-transform: none; }
.dossier-empty { margin-top: 30px; padding: 30px; border: 2px dashed #9a948a; color: #625e57; }
.dossier-summary { max-width: 980px; margin: 30px 0; font-family: Literata, Georgia, serif; font-size: 21px; line-height: 1.55; }
.dossier-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--oecd-ink); background: var(--oecd-ink); }
.dossier-cards article { border: 0; background: white; }
.dossier-cards h3 { margin: 0 0 16px; font-size: 17px; }
.dossier-cards p { margin: 0; font-size: 14px; line-height: 1.55; }
.layer-evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 24px; border: 1px solid var(--oecd-ink); background: var(--oecd-ink); }
.layer-evidence article { min-height: 150px; border: 0; background: white; }
.layer-evidence header { display: flex; justify-content: space-between; gap: 14px; padding: 0; background: none; border: 0; }
.layer-evidence h3 { margin: 0; font-size: 16px; }
.layer-evidence p { font-size: 14px; line-height: 1.55; }
.layer-state { color: var(--oecd-cobalt); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dossier-unknowns { margin-top: 24px; padding: 24px; background: #ece7de; }
.dossier-unknowns h3 { margin-top: 0; }
.dossier-unknowns li { margin: 8px 0; line-height: 1.5; }
.source-id { margin-left: 3px; color: var(--oecd-cobalt); font-size: 11px; font-weight: 900; text-decoration: none; }
.source-id:hover { text-decoration: underline; }
.dossier-sources { margin-top: 30px; }
.dossier-sources > h3 { margin-bottom: 5px; font-size: 28px; }
.dossier-sources > p { color: #625e57; }
.dossier-sources details { border-top: 1px solid var(--oecd-line); background: white; }
.dossier-sources details:last-child { border-bottom: 1px solid var(--oecd-line); }
.dossier-sources summary { padding: 16px 18px; font-weight: 750; line-height: 1.4; cursor: pointer; }
.dossier-sources details > div { padding: 2px 18px 22px; }
.dossier-sources details p { max-width: 940px; line-height: 1.55; }
.dossier-sources blockquote { max-width: 940px; margin: 8px 0 18px; padding: 14px 18px; border-left: 5px solid var(--oecd-cyan); background: #f1eee7; line-height: 1.55; }
.dossier-sources .source-label { margin-bottom: 0; color: #625e57; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.dossier-sources a { color: var(--oecd-cobalt); font-weight: 850; }

.chain { background: var(--oecd-ink); color: white; margin-inline: calc(-1 * clamp(20px, 5vw, 56px)); padding-inline: clamp(20px, 5vw, 56px); }
.chain .section-heading h2 { color: white; }
.chain .eyebrow { color: var(--oecd-cyan); }
.layer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 38px 0 0; padding: 1px; background: #505258; list-style: none; }
.layer-grid li { display: flex; flex-direction: column; min-height: 145px; padding: 20px; background: #17191e; }
.layer-grid b { color: var(--oecd-yellow); font-size: 12px; letter-spacing: .12em; }
.layer-grid span { margin-top: auto; font-size: 18px; font-weight: 850; line-height: 1.25; }

.hidden-public { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: clamp(40px, 8vw, 120px); background: var(--oecd-yellow); margin-inline: calc(-1 * clamp(20px, 5vw, 56px)); padding-inline: clamp(20px, 5vw, 56px); }
.hidden-public h2 { max-width: 780px; }
.hidden-public > div:last-child { align-self: end; }
.hidden-public > div:last-child p { font-size: 17px; line-height: 1.7; }

.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 36px; border: 1px solid var(--oecd-ink); background: var(--oecd-ink); }
.method-grid article { min-height: 220px; border: 0; background: white; }
.method-grid h3 { margin-top: 0; font-size: 25px; }
.method-grid p { line-height: 1.65; }
.source-note { border-bottom: 0; }
.source-note > p:not(.eyebrow) { max-width: 940px; font-size: 18px; line-height: 1.65; }
.source-note .note { font-size: 14px; color: #625e57; }
.source-note a { color: var(--oecd-cobalt); font-weight: 850; }

@media (max-width: 1000px) {
  .hero, .hidden-public, .dossier-heading { grid-template-columns: 1fr; }
  .thesis-card { max-width: 480px; }
  .question-grid, .layer-grid, .dossier-cards, .evidence-key, .finding-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .database-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero h1 { font-size: clamp(38px, 13vw, 52px); overflow-wrap: anywhere; }
  .question-grid, .layer-grid, .method-grid, .dossier-cards, .layer-evidence, .evidence-key, .finding-grid { grid-template-columns: 1fr; }
  .database-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-tools { grid-template-columns: 1fr; }
  .atlas-tools span { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
