:root {
  --paper: #f8f6f1; --card: #ffffff; --ink: #1d2320; --muted: #5d6762; --line: #dcd8cf;
  --accent: #1f5f4a; --accent-ink: #ffffff; --up: #a3401f; --down: #1f5f8a; --hit: #c2410c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #151917; --card: #1d2220; --ink: #e8ece9; --muted: #9aa49f; --line: #333b37;
    --accent: #6fbf9f; --accent-ink: #0f1412; --up: #f0956f; --down: #7fb6e0; --hit: #fb923c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.testbar { background: #fde68a; color: #4a3500; text-align: center; font-size: .8rem; padding: 3px 8px; }
.masthead { border-bottom: 1px solid var(--line); background: var(--card); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.wordmark svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--accent); }
.nav__lang { color: var(--muted) !important; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }
.crumbs a { color: var(--muted); }
.lede { font-size: 1.08rem; max-width: 72ch; color: var(--ink); }
.hero { padding: 1.2rem 0 .4rem; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: .55rem .95rem; border-radius: 6px; text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; }
.btn--ghost { background: transparent; color: var(--accent); }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 0 .3rem; }
.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1.6rem 0 .4rem; }
.date { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: .7rem .9rem; border-radius: 4px; display: flex; flex-direction: column; font-size: .92rem; }
.date__d { font-weight: 700; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .5rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ind tbody th { font-weight: 500; }
.sub { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.chainrow th { background: transparent; font-family: var(--serif); font-size: 1.02rem; font-weight: 700; padding-top: 1.2rem; border-bottom: 2px solid var(--ink); }
.up { color: var(--up); } .down { color: var(--down); }
.sparkcell { width: 130px; }
.spark { width: 120px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; }
.muted { color: var(--muted); } .small { font-size: .87rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem; display: flex; flex-direction: column; }
.tile__k { font-size: .8rem; color: var(--muted); }
.tile__v { font-size: 1.8rem; font-weight: 650; font-variant-numeric: tabular-nums; font-family: var(--serif); }
.tile__u { font-size: .8rem; color: var(--muted); }
.chartbox { margin: 1rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .6rem; }
.chartbox:empty { display: none; }
.chartbox figcaption { font-size: .8rem; color: var(--muted); padding: .2rem .4rem 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { stroke: var(--muted); }
.chart .ylab, .chart .xlab { fill: var(--muted); font: 11px var(--sans); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .dot { fill: var(--accent); }
.chart .zero { stroke: var(--muted); stroke-width: 1; }
.chart .thr { stroke: var(--hit); stroke-dasharray: 4 4; stroke-width: 1.2; }
.chart .hit { fill: var(--hit); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .2rem 1.4rem; margin: 1.4rem 0; }
.facts div { border-top: 1px solid var(--line); padding: .5rem 0; }
.facts dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--hit); padding: .7rem 1rem; border-radius: 4px; }
details.series summary { cursor: pointer; color: var(--accent); margin: .4rem 0; }
.vals { max-width: 480px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .4rem 1.1rem 1.1rem; margin: 1.4rem 0; }
.panel h2 { margin-top: 1rem; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem 1rem; margin: 1rem 0; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.form .inline { display: flex; align-items: center; gap: .35rem; color: var(--ink); }
select, input { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: .4rem .5rem; min-width: 0; }
.calc select { max-width: 100%; width: 100%; min-width: 180px; }
.calc input { width: 5rem; text-align: right; }
.form input { width: 100%; max-width: 9rem; }
.result { margin-top: .8rem; }
.result p { margin: .3rem 0; }
.result__k { color: var(--muted); font-size: .9rem; margin-right: .4rem; }
.big { font-size: 1.5rem; font-family: var(--serif); font-variant-numeric: tabular-nums; }
.hits { columns: 3 11rem; font-size: .88rem; font-variant-numeric: tabular-nums; padding-left: 1.1rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.timeline li.past { opacity: .6; }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline p { margin: .2rem 0 0; }
.prose { max-width: 72ch; }
.prose blockquote { margin: .8rem 0; padding: .3rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.2rem 0 2rem; font-size: .87rem; }
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
  .sparkcell, .ind th:last-child { display: none; }
  .ind .sub { display: none; }
  th, td { padding: .45rem .4rem; }
}
.formula code { font-size: .82rem; background: var(--paper); padding: .2rem .4rem; border-radius: 4px; overflow-wrap: anywhere; }
.chart .band { fill: var(--line); opacity: .35; }
table.grid td { background: color-mix(in srgb, var(--accent) calc(var(--a, 0) * 35%), transparent); }
table.grid td.cur { outline: 2px solid var(--ink); outline-offset: -2px; font-weight: 700; }
.badge { font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 .5rem; color: var(--muted); font-weight: 500; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: .2rem 1rem .6rem; }
.card h3 { font-size: 1.02rem; }
.chains { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .4rem 0 1rem; font-size: .93rem; }
.notes { padding-left: 1.1rem; color: var(--muted); }
.alerts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.alerts label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.date.deadline { background: var(--accent); color: var(--accent-ink); border-left-color: var(--accent); }
.deadline .date__d { font-size: 1.05rem; }
.date { text-decoration: none; color: inherit; }
[hidden] { display: none !important; }
