@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-standard-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-standard-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --accent: #12306b;
  --text: #16181d;
  --text-2: #525a66;
  --rule: #d9dde3;
  --rule-strong: #16181d;
  --wash: #f4f5f7;
  --wash-2: #e6ebf4;
  --muted-mark: #b9c0cc;
  --gutter: clamp(20px, 5vw, 72px);
  --wrap: 1400px;
  --memo: 680px;
  --note: 300px;
  --note-gap: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: #c7ccd4 #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--serif); font-size: clamp(18.5px, 0.45vw + 13.6px, 21px); line-height: 1.6; font-optical-sizing: auto; font-kerning: normal; caret-color: var(--accent); overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 10px 16px; background: #fff; color: var(--accent); font-family: var(--sans); font-size: 15px; }
.skip:focus { left: 12px; }

/* Masthead */
.mast { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--rule); font-family: var(--sans); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--wrap); min-height: 60px; margin: 0 auto; padding: 0 var(--gutter); }
.wordmark { font-family: var(--serif); font-weight: 720; font-size: 24px; line-height: 1; letter-spacing: -0.018em; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--text); }
.mast nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.mast nav a { text-decoration: none; color: var(--text-2); }
.mast nav a:hover { color: var(--accent); text-decoration: underline; }
.mast-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* Article opening */
.head { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 40px; }
.head h1 { font-family: var(--sans); font-weight: 720; font-size: clamp(2.2rem, 3.4vw, 3.8rem); line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
.dek { margin-top: 20px; font-size: clamp(1.14rem, 1.42vw, 1.42rem); line-height: 1.38; color: var(--text-2); text-wrap: pretty; max-width: 34em; }
.meta { margin-top: 20px; font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.head-photo { margin: 0; }
.head-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wash); }
.credit { margin-top: 8px; font-family: var(--sans); font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.credit a { color: inherit; }

/* Section list, reading column and source margin */
.sheet { display: grid; grid-template-columns: 168px minmax(0, var(--memo)) var(--note); column-gap: var(--note-gap); justify-content: space-between; max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter) 72px; }
.rail { grid-column: 1; position: sticky; top: 84px; align-self: start; padding-top: 2px; font-family: var(--sans); font-size: 13.5px; line-height: 1.3; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rail a { display: block; color: var(--text-2); text-decoration: none; }
.rail a:hover { color: var(--accent); }
.rail a[aria-current] { color: var(--accent); font-weight: 650; }
.memo { grid-column: 2; min-width: 0; }
.memo > section { position: relative; }
.memo p { margin-bottom: 1.05em; text-wrap: pretty; }
.memo h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.42rem, 1.72vw, 1.78rem); line-height: 1.18; letter-spacing: -0.02em; margin: 2.3em 0 0.62em; text-wrap: balance; }
.lede { font-size: 1.13em; line-height: 1.52; }
.memo ul, .memo ol.list { margin: 0 0 1.2em; padding: 0 0 0 1.15em; }
.memo li { margin-bottom: 0.55em; padding-left: 0.2em; }
.memo li::marker { color: var(--accent); font-family: var(--sans); font-weight: 650; font-size: 0.86em; }

/* Key figure and the short version */
.brief { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 22px 0 8px; border-top: 2px solid var(--rule-strong); margin-bottom: 1.9rem; font-family: var(--sans); overflow: visible; }
.figure { grid-column: 1; }
.figure-value { font-weight: 680; font-size: clamp(2.9rem, 4vw, 3.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--accent); margin: 0 !important; }
.figure-caption { margin: 9px 0 0 !important; font-size: 14px; line-height: 1.36; color: var(--text-2); text-wrap: pretty; }
.brief-body { grid-column: 2; min-width: 0; }
.brief h2 { margin: 0 0 8px; font-family: var(--sans); font-weight: 680; font-size: 15px; letter-spacing: 0; line-height: 1.3; }
.brief ul { list-style: none; margin: 0; padding: 0; font-size: 16.5px; line-height: 1.4; }
.brief li { margin: 0; padding: 8px 0; border-top: 1px solid var(--rule); text-wrap: pretty; }

/* Claims and their sources */
.claim { cursor: help; background-image: linear-gradient(var(--muted-mark), var(--muted-mark)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 96%; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color 0.14s ease, color 0.14s ease; }
.claim:hover, .claim:focus-visible, .claim.is-lit { background-color: var(--wash-2); color: var(--accent); }
.mk { font-family: var(--sans); font-size: 0.62em; font-weight: 650; line-height: 0; vertical-align: 0.5em; margin-left: 0.14em; font-variant-numeric: lining-nums; }
.mk a { color: var(--accent); text-decoration: none; padding: 0 0.1em; }
.side { display: block; float: right; clear: right; width: var(--note); margin: 0.15rem calc(-1 * (var(--note) + var(--note-gap))) 0.8rem 0; padding: 6px 10px; border-radius: 4px; font-family: var(--sans); font-size: 13.5px; line-height: 1.42; color: var(--text-2); font-weight: 400; transition: background-color 0.16s ease, color 0.16s ease; }
.side b { font-weight: 700; color: var(--accent); margin-right: 0.45em; font-size: 12px; }
.side a { color: var(--accent); white-space: nowrap; }
.side i { font-style: normal; font-weight: 600; }
.side.is-lit { background: var(--wash-2); color: var(--text); }
.side-lead { display: block; float: right; clear: right; width: var(--note); margin: 0.15rem calc(-1 * (var(--note) + var(--note-gap))) 0.8rem 0; padding: 6px 10px; font-family: var(--sans); font-size: 13.5px; line-height: 1.42; color: var(--text-2); }
.side-lead a { color: var(--accent); }
#note-tip, #chart-tip { position: fixed; z-index: 25; max-width: 300px; padding: 8px 11px; background: var(--text); color: #fff; font-family: var(--sans); font-size: 13.5px; line-height: 1.38; border-radius: 4px; pointer-events: none; box-shadow: 0 6px 18px rgba(16, 20, 28, 0.22); }
#note-tip[hidden], #chart-tip[hidden] { display: none; }

/* Pull line and aside */
.pull { clear: both; margin: 2.2em 0 !important; padding: 20px 0 22px; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); font-family: var(--sans); font-weight: 650; font-size: clamp(1.36rem, 1.8vw, 1.8rem); line-height: 1.24; letter-spacing: -0.018em; color: var(--accent); text-wrap: balance; }
.aside { clear: both; margin: 2em 0; padding: 24px 28px 6px; background: var(--wash); border-radius: 10px; }
.aside h3 { font-family: var(--sans); font-weight: 680; font-size: 1rem; line-height: 1.26; margin-bottom: 0.5em; }
.aside p { font-size: 0.96em; }

/* Charts */
.chart { clear: both; margin: 2.2em 0 2.3em; padding-top: 14px; border-top: 2px solid var(--rule-strong); font-family: var(--sans); }
.chart-title { font-weight: 660; font-size: 1.06rem; line-height: 1.28; text-wrap: balance; }
.chart-sub { margin-top: 4px; font-size: 14px; line-height: 1.38; color: var(--text-2); }
.chart-body { margin-top: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--swatch); flex: none; }
.bar-row { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 14px; align-items: center; padding: 5px 0; border-radius: 3px; }
.bar-label { font-size: 14.5px; line-height: 1.26; color: var(--text-2); }
.bar-row:hover .bar-label { color: var(--text); }
.bar-track { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.bar { display: block; height: 22px; background: var(--accent); border-radius: 0 4px 4px 0; }
.bar.is-muted { background: var(--muted-mark); }
.bar-val { font-size: 14.5px; font-weight: 650; white-space: nowrap; font-variant-numeric: lining-nums; }
.db-row { display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 14px; align-items: center; min-height: 44px; }
.db-track { position: relative; display: block; height: 36px; margin: 0 48px; }
.db-track::before { content: ""; position: absolute; left: -48px; right: -48px; top: 50%; height: 1px; background: var(--rule); }
.db-link { position: absolute; top: calc(50% - 1px); height: 2px; background: var(--accent); }
.db-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.db-dot.from { background: var(--muted-mark); }
.db-dot.to { background: var(--accent); }
.db-val { position: absolute; top: 50%; font-size: 14.5px; white-space: nowrap; font-variant-numeric: lining-nums; }
.db-val.from { padding-right: 14px; transform: translate(-100%, -50%); color: var(--text-2); font-weight: 500; }
.db-val.to { padding-left: 14px; transform: translateY(-50%); font-weight: 650; }
.line-wrap { position: relative; padding-left: 52px; }
.plot { position: relative; height: 270px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .area { fill: var(--accent); opacity: 0.1; }
.plot .stroke { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.plot .stroke.projected { stroke-dasharray: 5 5; }
.grid { position: absolute; left: 0; right: 0; height: 1px; background: #edeff2; }
.grid.is-base { background: var(--rule); }
.grid span { position: absolute; right: calc(100% + 8px); top: -9px; font-size: 13px; font-style: normal; line-height: 18px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; cursor: default; }
.pt::after { content: ""; position: absolute; left: 9px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff; }
.pt-label { position: absolute; transform: translate(-50%, -100%); margin-top: -13px; font-size: 14.5px; font-weight: 650; white-space: nowrap; font-variant-numeric: lining-nums; pointer-events: none; }
.pt-label.at-end { transform: translate(-100%, -100%); }
.pt-label.at-start { transform: translate(0, -100%); }
.x-axis { position: relative; height: 26px; margin-top: 7px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.x-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.x-axis span:first-child { transform: none; }
.x-axis span:last-child { transform: translateX(-100%); }
.seg { display: flex; gap: 2px; height: 28px; margin-bottom: 12px; }
.seg-part { display: flex; align-items: center; padding: 0 8px; border-radius: 4px; font-size: 13.5px; font-weight: 650; overflow: hidden; white-space: nowrap; min-width: 4px; font-variant-numeric: lining-nums; }
.chart-foot { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.chart-foot a { color: var(--accent); white-space: nowrap; }
details.numbers { margin-top: 6px; font-size: 13.5px; }
details.numbers summary { cursor: pointer; color: var(--accent); font-weight: 560; width: fit-content; }
details.numbers table, .data-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--sans); font-size: 14px; line-height: 1.34; font-variant-numeric: tabular-nums lining-nums; }
details.numbers th, details.numbers td, .data-table th, .data-table td { padding: 6px 8px 6px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
details.numbers th, .data-table th { font-weight: 650; border-bottom-color: var(--rule-strong); }
.table-block { clear: both; margin: 2.2em 0; }
.table-block caption { caption-side: top; text-align: left; font-family: var(--sans); font-weight: 660; font-size: 1.06rem; line-height: 1.28; padding-bottom: 8px; }

/* One-page test */
.test { clear: both; margin: 3.4rem calc(-1 * (var(--note) + var(--note-gap))) 0 0; padding: 36px 40px 28px; border: 1px solid var(--rule); border-radius: 12px; font-family: var(--sans); }
.test h2 { margin: 0 0 0.45rem; font-size: clamp(1.55rem, 2.05vw, 2.05rem); line-height: 1.14; letter-spacing: -0.024em; }
.test-intro { font-family: var(--serif); font-size: 1.02em; line-height: 1.46; max-width: 44em; margin-bottom: 1.3rem !important; }
.test-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.test-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.test-item { display: grid; grid-template-columns: 26px minmax(0, 1.02fr) minmax(0, 1fr); gap: 16px 22px; padding: 14px 0; cursor: pointer; align-items: start; }
.test-item:hover .test-q { color: var(--accent); }
.test-item input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 2px 0 0; border: 1px solid #8f97a3; background: #fff; display: grid; place-content: center; cursor: pointer; border-radius: 4px; transition: background-color 0.14s ease, border-color 0.14s ease; }
.test-item input::before { content: ""; width: 12px; height: 12px; background: #fff; transform: scale(0); transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1); clip-path: polygon(14% 44%, 0 58%, 38% 100%, 100% 16%, 84% 3%, 37% 68%); }
.test-item input:checked { background: var(--accent); border-color: var(--accent); }
.test-item input:checked::before { transform: scale(1); }
.test-q { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.test-why { font-size: 14.5px; line-height: 1.42; color: var(--text-2); }
.test-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.test-count { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-family: var(--sans); font-weight: 620; font-size: 15px; cursor: pointer; border-radius: 6px; text-decoration: none; transition: background-color 0.16s ease, color 0.16s ease; }
.btn:hover { background: #fff; color: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Sources */
.sources { clear: both; margin-top: 3rem; padding-top: 14px; border-top: 2px solid var(--rule-strong); font-family: var(--sans); }
.sources h2 { margin: 0 0 0.8rem; font-family: var(--sans); font-size: 1.1rem; font-weight: 680; letter-spacing: 0; }
.sources ol { margin: 0; padding: 0 0 0 1.5em; font-size: 14.5px; line-height: 1.42; color: var(--text-2); }
.sources li { margin-bottom: 0.62em; padding-left: 0.2em; scroll-margin-top: 80px; }
.sources li:target { background: var(--wash-2); }
.sources a { color: var(--accent); }
.sources i { font-style: normal; font-weight: 600; }

/* Story lists */
.more { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 72px; font-family: var(--sans); }
.more-title { padding-top: 14px; border-top: 2px solid var(--rule-strong); font-weight: 700; font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.02em; }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 20px; }
.story { display: block; text-decoration: none; color: inherit; }
.story img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--wash); }
.story-title { margin-top: 12px; font-weight: 680; font-size: 1.04rem; line-height: 1.24; letter-spacing: -0.014em; text-wrap: pretty; }
.story:hover .story-title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.story-meta { margin-top: 7px; font-size: 13.5px; color: var(--text-2); }

/* Home */
.home-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter) 0; font-family: var(--sans); font-size: 16px; line-height: 1.4; color: var(--text-2); }
.home-intro strong { font-weight: 620; color: var(--text); white-space: nowrap; }
.home-intro span { text-align: right; max-width: 42em; text-wrap: balance; }
.lead-story { color: inherit; text-decoration: none; padding-top: 28px; }
.lead-story:hover h2 { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.lead-story h2 { font-family: var(--sans); font-weight: 720; font-size: clamp(2.2rem, 3.4vw, 3.8rem); line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
.home-list { padding-top: 8px; }
.home-list .story-grid { margin-top: 0; padding-top: 22px; border-top: 2px solid var(--rule-strong); }

/* Plain pages */
.page { max-width: var(--memo); margin: 0 auto; padding: 56px 20px 88px; }
.page h1 { font-family: var(--sans); font-weight: 720; font-size: clamp(2.1rem, 3vw, 2.9rem); line-height: 1.08; letter-spacing: -0.028em; margin-bottom: 1.1rem; }
.page h2 { font-family: var(--sans); font-weight: 700; font-size: 1.28rem; line-height: 1.2; letter-spacing: -0.016em; margin: 2em 0 0.5em; }
.page p, .page ul { margin: 0 0 1em; }
.placeholder { background: #fff3b8; color: #3f3200; padding: 0 0.25em; font-family: var(--sans); font-size: 0.92em; font-weight: 600; }
.pixel-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 1.2em 0; font-family: var(--sans); font-size: 15px; }

/* Footer */
.foot { border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 14px; line-height: 1.46; color: var(--text-2); }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 48px; align-items: start; max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gutter) 42px; }
.foot .wordmark { display: inline-block; margin-bottom: 10px; font-size: 20px; }
.foot nav { display: flex; gap: 20px; }
.foot p { max-width: 62em; }

@media (max-width: 1300px) {
  .rail { display: none; }
  .sheet { grid-template-columns: minmax(0, var(--memo)) var(--note); justify-content: center; column-gap: var(--note-gap); }
  .memo { grid-column: 1; }
}
@media (max-width: 1099px) {
  .sheet { grid-template-columns: minmax(0, var(--memo)); }
  .side, .side-lead { float: none; width: auto; margin: 0.5rem 0 0.8rem; background: var(--wash); }
  .side { display: none; }
  .side.is-open { display: block; }
  .test { margin-right: 0; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .head { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 28px; }
  .head-photo { order: 2; }
  .brief { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .figure, .brief-body { grid-column: 1; }
  .test { padding: 24px 18px 20px; }
  .test-item { grid-template-columns: 26px minmax(0, 1fr); }
  .test-why { grid-column: 2; }
  .bar-row, .db-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 7px 0; }
  .aside { padding: 20px 20px 4px; }
  .home-intro { display: block; }
  .home-intro span { display: block; text-align: left; margin-top: 6px; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .mast nav { gap: 14px; font-size: 14px; }
  .wordmark { font-size: 21px; }
}

@media print {
  body { font-size: 11.5pt; }
  .mast, .rail, .more, .foot, .btn, details.numbers, .side, .side-lead { display: none !important; }
  .head { display: block; padding: 0 0 14pt; }
  .head-photo img { max-height: 180pt; }
  .sheet { display: block; padding: 0; }
  .test { margin-right: 0; break-before: page; }
  .claim { background-image: none; }
}
