:root {
  --article-width: 760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  padding: 16px;
  background: var(--bg);
  color: var(--muted);
  font: var(--fs-body)/1.72 var(--mono);
}
a { color: var(--purple); }
a:hover, a:focus-visible { color: var(--green); }
.skip { position: fixed; left: 8px; top: -80px; z-index: 100; padding: 7px 10px; background: var(--panel); color: var(--gold); }
.skip:focus { top: 8px; }
.top {
  max-width: 980px;
  margin: 0 auto 34px;
  padding-bottom: 8px;
  border-bottom: .5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: var(--fs-nav);
}
.site-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top a { color: var(--green); }
.top a:hover, .top a:focus-visible { color: var(--purple); }
.top a:first-child:hover, .top a:first-child:focus-visible { color: var(--gold); }
main { max-width: 980px; margin: 0 auto; }
.publication { max-width: var(--article-width); margin: 0 auto; }
.article-head { margin-bottom: 38px; padding-bottom: 24px; border-bottom: .5px solid var(--line-bright); }
.kicker { margin: 0 0 8px; color: var(--green); font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 8px; color: var(--gold); font-size: clamp(28px, 6vw, 46px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.byline { margin: 0 0 18px; color: var(--muted); font-size: var(--fs-small); }
.article-body > p { margin: 0 0 20px; color: var(--muted); }
.article-body > p:first-child { font-size: var(--fs-lead); }
h2 { margin: 48px 0 16px; color: var(--gold); font-size: clamp(19px, 3.4vw, 25px); font-weight: 500; line-height: 1.25; }
h2.conclusion { color: var(--green); }
h3 { margin: 32px 0 12px; color: var(--purple); font-size: var(--fs-h2); font-weight: 500; }
.viz { margin: 34px 0; padding: 18px; border: .5px solid var(--line); border-radius: 8px; background: var(--panel); overflow: hidden; }
.viz figcaption { display: grid; gap: 4px; margin-bottom: 18px; }
.viz figcaption strong { color: var(--gold); font-size: var(--fs-h3); font-weight: 500; }
.viz figcaption span, .source { color: var(--muted); font-size: var(--fs-small); }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font: 12px var(--mono); }
.grid line { stroke: var(--line-bright); stroke-width: 1; }
.series-green, .bars rect { fill: none; stroke: var(--green); stroke-width: 4; }
.bars rect { fill: color-mix(in srgb, var(--green) 20%, transparent); stroke-width: 1.5; }
.series-green-dashed { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 7 6; opacity: .65; }
.marker-purple { stroke: var(--purple); stroke-width: 3; }
.marker-gold, .replacement-line { stroke: var(--gold); stroke-width: 3; }
.dot-green circle, circle.dot-green { fill: var(--green); }
.dot-purple { fill: var(--purple); }
.range-green line { stroke: var(--green); stroke-width: 2; }
.value-labels text, .annotations text { fill: var(--text); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric-grid div { padding: 12px; border: .5px solid var(--line); border-radius: 6px; }
.metric-grid b { display: block; color: var(--green); font-size: 24px; font-weight: 500; }
.metric-grid span, .metric-grid small { display: block; margin-top: 5px; }
.metric-grid small { color: var(--gold); }
.viz-tide ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.viz-tide li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding-top: 12px; border-top: .5px solid var(--line); }
.viz-tide time { color: var(--gold); }
.viz-tide b { display: block; color: var(--green); font-weight: 500; }
.source { margin: 18px 0 0; }
@media (max-width: 620px) {
  body { padding: 12px; }
  .top { margin-bottom: 26px; }
  .article-head { margin-bottom: 28px; }
  .viz { margin-left: -4px; margin-right: -4px; padding: 11px; }
  .metric-grid { grid-template-columns: 1fr; }
  .chart text { font-size: 10px; }
}
@media print {
  .top, .skip, .nr-publication-meta { display: none; }
  body { background: white; color: black; }
  .publication { max-width: none; }
  .article-body > p, h1, h2, h3, .byline, .viz figcaption strong, .viz figcaption span, .source { color: black; }
  .viz { background: white; border-color: #777; }
}
