:root {
  --ink: #122f35;
  --ink-soft: #48666b;
  --muted: #526b6f;
  --paper: #f7f5ef;
  --paper-deep: #ece9df;
  --white: #fffefa;
  --line: #d7dfd8;
  --teal: #147c73;
  --teal-dark: #075951;
  --teal-light: #bde1d1;
  --coral: #9d414b;
  --yellow: #f0c965;
  --shadow: 0 20px 50px rgba(18, 47, 53, .08);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
button, select { font: inherit; }
:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 3px; }
.wrapper { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; left: 12px; top: 12px; padding: 10px 14px; border-radius: 9px; background: var(--ink); color: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; letter-spacing: -.02em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; }
.brand small { color: var(--muted); font-size: .76rem; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--teal); border-radius: 50%; color: var(--teal); font-size: 1.5rem; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 24px; color: var(--ink-soft); font-size: .84rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--teal); }
.nav-download { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal-dark); }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(42px, 8vw, 110px); align-items: center; padding: 92px 0 75px; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; }
h1 { max-width: 800px; margin-bottom: 26px; font-size: clamp(3.1rem, 7.2vw, 6.6rem); line-height: .92; }
h2 { margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }
h3 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.2; }
.hero-lede { max-width: 670px; margin-bottom: 28px; color: var(--ink-soft); font-size: clamp(1.04rem, 1.5vw, 1.2rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.button { display: inline-flex; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 10px; text-decoration: none; font-size: .88rem; font-weight: 750; }
.button-primary { background: var(--teal-dark); color: var(--white); box-shadow: 0 8px 18px rgba(7, 89, 81, .18); }
.button-primary:hover, .button-primary:focus-visible { background: var(--teal); }
.text-link { color: var(--ink-soft); font-size: .88rem; font-weight: 700; text-underline-offset: 4px; }
.hero-note { padding: 26px; border: 1px solid #bddbd0; border-radius: 16px; background: linear-gradient(145deg, #e4f1e9, #d4ebe4); box-shadow: var(--shadow); }
.question { margin-bottom: 38px; color: var(--teal-dark); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 750; line-height: 1.18; }
.hero-note-footer { display: flex; align-items: center; gap: 8px; color: var(--teal-dark); font-size: .72rem; font-weight: 700; line-height: 1.4; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(214, 108, 82, .15); }
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip div { display: grid; gap: 4px; padding: 4px 22px; border-right: 1px solid var(--line); }
.proof-strip div:first-child { padding-left: 0; }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { color: var(--teal-dark); font-size: 1.35rem; letter-spacing: -.04em; }
.proof-strip span { color: var(--muted); font-size: .73rem; text-transform: uppercase; letter-spacing: .08em; }

.story-section { padding: 105px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 28px; }
.section-heading > div { max-width: 650px; }
.section-intro { max-width: 410px; margin-bottom: 6px; color: var(--ink-soft); font-size: .94rem; line-height: 1.65; }
.compact-heading { align-items: center; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .8fr); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.chart-panel { min-width: 0; padding: 24px 26px 22px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.panel-kicker { display: block; margin-bottom: 7px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.panel-heading h3 { margin-bottom: 0; font-size: 1.26rem; }
.year-pill, .unit-pill { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--teal-dark); font-size: .7rem; font-weight: 800; }
.unit-pill { color: var(--ink-soft); font-weight: 650; }
.country-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 8px; }
.country-filter { cursor: pointer; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: .72rem; font-weight: 750; transition: .15s ease; }
.country-filter:hover, .country-filter:focus-visible { border-color: var(--teal); color: var(--teal-dark); }
.country-filter[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--white); }
.filter-dot { display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 0; border-radius: 50%; }
.chart-shell { min-height: 420px; }
.chart-shell-small { min-height: 275px; margin-top: 13px; }
.chart-shell svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-loading, .chart-empty { display: grid; min-height: 220px; place-items: center; color: var(--muted); font-size: .84rem; text-align: center; }
.chart-footnote, .chart-caption { margin: 4px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.chart-gap-note { margin: 0 0 8px; color: var(--coral); font-size: .72rem; line-height: 1.45; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin: 0 4px 1px 0; border-radius: 50%; }
.legend-dot-teal { background: var(--teal); }
.legend-dot-coral { background: var(--coral); }
.legend-separator { padding: 0 7px; color: var(--line); }
.insight-stack { display: grid; align-content: start; gap: 13px; }
.insight-card, .mini-card { border-radius: 16px; }
.insight-primary { padding: 24px; background: var(--teal-dark); color: var(--white); }
.insight-primary .eyebrow { color: var(--teal-light); }
.insight-title { margin-bottom: 12px; color: var(--white); font-size: 1.5rem; font-weight: 760; letter-spacing: -.04em; line-height: 1.1; }
.insight-primary p:last-child { margin-bottom: 0; color: #c9dfd7; font-size: .84rem; line-height: 1.6; }
.mini-card { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 18px 18px 17px; border: 1px solid var(--line); background: rgba(255, 254, 250, .6); }
.mini-card p { margin-bottom: 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
.mini-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: .74rem; font-weight: 850; }

.trend-toolbar { display: grid; grid-template-columns: auto 230px 1fr; gap: 18px; align-items: center; padding: 16px 20px; margin-bottom: 20px; }
.trend-toolbar label { font-size: .8rem; font-weight: 800; }
.trend-toolbar select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.toolbar-summary { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.trend-grid, .method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.climate-panel { grid-column: span 2; }
.line-panel { min-width: 0; padding: 23px 25px 18px; }
.line-panel .chart-caption { min-height: 37px; }
.accessible-data { margin-top: 8px; color: var(--teal-dark); font-size: .72rem; }
.accessible-data summary { cursor: pointer; text-underline-offset: 3px; text-decoration: underline; }
.accessible-data table { margin-top: 10px; font-size: .74rem; }
.accessible-data th, .accessible-data td { padding: 7px 9px; }

.table-panel { overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f4f7f0; }
.rank-name { display: flex; align-items: center; gap: 11px; font-weight: 780; }
.rank-number { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--paper-deep); color: var(--teal-dark); font-size: .7rem; }
.value-strong { color: var(--teal-dark); font-weight: 850; }
.bar-track { display: inline-block; width: 90px; height: 7px; margin-right: 9px; overflow: hidden; vertical-align: middle; border-radius: 999px; background: var(--paper-deep); }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.table-note { margin: 0; padding: 15px 20px; background: #f4f1e8; color: var(--ink-soft); font-size: .74rem; }

.limits-section { display: grid; grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr); gap: 80px; padding: 125px 0 0; }
.limits-intro p:last-child { max-width: 330px; color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }
.limits-list { border-top: 1px solid var(--line); }
.limit-item { display: grid; grid-template-columns: 50px 1fr; gap: 12px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.limit-item > span { color: var(--coral); font-size: .75rem; font-weight: 850; }
.limit-item h3 { margin-bottom: 5px; }
.limit-item p { margin-bottom: 0; color: var(--ink-soft); font-size: .84rem; line-height: 1.55; }

.method-section { padding: 108px 0 110px; }
.method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.method-card { min-height: 210px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 254, 250, .54); }
.method-number { display: inline-block; margin-bottom: 32px; color: var(--coral); font-size: .75rem; font-weight: 850; }
.method-card p { min-height: 66px; margin-bottom: 12px; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.method-card a { color: var(--teal-dark); font-size: .76rem; font-weight: 800; text-underline-offset: 3px; }
code { padding: 2px 4px; border-radius: 4px; background: var(--paper-deep); font-size: .8em; }
.source-callout { margin-top: 18px; padding: 14px 17px; border-left: 3px solid var(--yellow); color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }
.source-callout strong { color: var(--ink); }
.evidence-links { display: inline-block; margin-top: 5px; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 24px 0 42px; border-top: 1px solid var(--line); color: var(--ink-soft); }
.site-footer > div:first-child { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; align-items: center; }
.site-footer .brand-mark { grid-row: span 2; }
.site-footer strong { color: var(--ink); font-size: .84rem; }
.site-footer p { grid-column: 2; margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
.footer-links { display: flex; align-items: start; gap: 18px; font-size: .74rem; }
.footer-links a { text-underline-offset: 3px; }
.noscript-note { position: fixed; inset: auto 12px 12px; z-index: 5; padding: 13px 16px; border-radius: 9px; background: var(--ink); color: var(--white); font-size: .82rem; }

.chart-grid-line { stroke: #e5eae4; stroke-width: 1; }
.axis-line { stroke: #9eb2ae; stroke-width: 1.2; }
.axis-label { fill: #526b6f; font-size: 11px; }
.axis-label-center { text-anchor: middle; }
.axis-label-end { text-anchor: end; }
.axis-title { fill: #48666b; font-size: 11px; font-weight: 700; }
.axis-y-title { transform: rotate(-90deg); transform-origin: 16px 210px; }
.point-label { fill: #122f35; font-size: 11px; font-weight: 800; }

@media (max-width: 850px) {
  .hero, .story-grid, .limits-section { grid-template-columns: 1fr; }
  .hero { gap: 32px; padding-top: 64px; }
  .section-heading { display: block; }
  .section-intro { max-width: 620px; margin-top: 16px; }
  .insight-stack { grid-template-columns: repeat(3, 1fr); }
  .insight-primary { grid-column: span 3; }
  .limits-section { gap: 38px; }
  .limits-intro p:last-child { max-width: 600px; }
}
@media (max-width: 650px) {
  .wrapper { width: min(100% - 30px, 1180px); }
  .site-header { align-items: start; }
  .site-nav { flex-wrap: wrap; justify-content: end; gap: 10px 14px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(3) { padding-left: 0; }
  .proof-strip div:nth-child(-n+2) { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
  .chart-panel, .line-panel { padding: 18px 15px 16px; }
  .chart-shell { min-height: 300px; }
  .chart-shell-small { min-height: 230px; }
  .insight-stack, .trend-grid, .method-grid { grid-template-columns: 1fr; }
  .insight-primary { grid-column: auto; }
  .climate-panel { grid-column: auto; }
  .trend-toolbar { grid-template-columns: 1fr; gap: 9px; }
  .toolbar-summary { margin-top: 3px; }
  .limits-section { padding-top: 85px; }
  .method-section { padding: 85px 0 75px; }
  .site-footer { display: block; }
  .footer-links { margin-top: 25px; flex-wrap: wrap; }
}

@media print {
  :root { --paper: #fff; --white: #fff; --shadow: none; }
  .site-header, .hero-actions, .country-filters, .trend-toolbar, .footer-links, .nav-download { display: none; }
  .hero { padding: 35px 0 28px; }
  .story-section, .limits-section, .method-section { padding-top: 38px; }
  .panel, .hero-note, .method-card { box-shadow: none; break-inside: avoid; }
  .snapshot-grid, .trend-grid, .method-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 20px; }
  a { text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .country-filter { transition: none; }
}
