:root {
  color-scheme: light;
  color: #19292e;
  background: #fafbf9;
  font: 100%/1.55 system-ui, sans-serif;
  --muted: #4b5c62;
  --grid: #d6dfdf;
  --rule: #cbd6d5;
  --paper: #fafbf9;
  --china: #00698d;
  --us: #9b5100;
  --russia: #a43453;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2.5rem, 82rem); margin-inline: auto; }
header { padding-top: clamp(1.65rem, 4.4vw, 3.5rem); text-align: center; }

h1, h2, p, figure { margin: 0; }
h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.65rem);
  font-weight: 670;
  letter-spacing: -.052em;
  line-height: 1.08;
  text-wrap: balance;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem clamp(.85rem, 3vw, 2.1rem);
  padding: 0;
  margin: 1.25rem 0 1.45rem;
  list-style: none;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
}

.legend li { display: flex; gap: .4rem; align-items: center; }
.legend svg { width: 2rem; height: 1rem; overflow: visible; }
.china { --series: var(--china); }
.us { --series: var(--us); }
.russia { --series: var(--russia); }
.trace { fill: none; stroke: var(--series); stroke-width: 2.9; stroke-linecap: round; stroke-linejoin: round; }
.us .trace { stroke-dasharray: 7 4; }
.russia .trace { stroke-dasharray: 1 4.5; }
.marker { fill: var(--series); stroke: var(--paper); stroke-width: 1; }

.plots {
  border-block: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 1rem .8rem;
}

.chart { min-width: 0; text-align: center; }
.chart + .chart { border-left: 1px solid var(--rule); }
.chart h2 { font-size: clamp(1.35rem, 2.25vw, 2rem); font-weight: 660; letter-spacing: -.025em; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.ring, .spoke { fill: none; stroke: var(--grid); stroke-width: 1; }
.ring:last-of-type { stroke: #acbdbd; }
.tick { font-size: 13px; fill: #52666c; paint-order: stroke; stroke: var(--paper); stroke-width: 3; }
.axis-label { font-size: 19px; font-weight: 650; fill: #24363c; }
.missing { font-size: 14px; font-weight: 500; fill: var(--muted); }
.chart a:hover .axis-label, .chart a:focus-visible .axis-label { fill: #00698d; text-decoration: underline; }

.chart-note {
  max-width: 63rem;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .9375rem;
  text-wrap: pretty;
}

.methodology { max-width: 52rem; margin: clamp(2.25rem, 6vw, 4.5rem) auto 4rem; }
.methodology h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.035em; line-height: 1.15; }
.methodology > p { margin: .75rem 0 1.25rem; color: var(--muted); }
details { border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; padding: .85rem .2rem; font-weight: 650; }
summary:hover { color: #00698d; }
.indicator { padding: .15rem .2rem 1.15rem; }
.indicator p + p { margin-top: .5rem; }
table { border-collapse: collapse; width: min(100%, 35rem); margin: 1rem 0; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: .875rem; color: var(--muted); margin-bottom: .25rem; }
th, td { padding: .4rem .5rem; border-bottom: 1px solid var(--grid); }
th:first-child, td:first-child { padding-left: 0; text-align: left; }
th, td { text-align: right; vertical-align: top; }
td small { display: block; font-size: .8125rem; color: var(--muted); }
.sources { margin: 0; padding-left: 1.2rem; }
.sources li + li { margin-top: .35rem; }
.sources span { display: block; font-size: .875rem; color: var(--muted); }
a { color: #00698d; text-underline-offset: .18em; }

@media (max-width: 62rem) {
  .plots { grid-template-columns: minmax(0, 38rem); justify-content: center; }
  .chart + .chart { border-left: 0; border-top: 1px solid var(--rule); padding-top: 1rem; }
}

@media (max-width: 36rem) {
  main { width: calc(100% - 1.5rem); }
  .axis-label { font-size: 21px; }
  .missing { font-size: 16px; }
  .tick { font-size: 15px; }
}
