:root{color-scheme:light;--dark:#17201c;--ink:#222c24;--paper:#f0efdf;--green:#c4ed89;--edge:#d0d4c0;--white:#fffef6;--muted:#536051;--line:#31553d;--compare:#915523;font-family:"Inter",system-ui,sans-serif;color:var(--ink);background:var(--paper);line-height:1.5}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
a{color:inherit;text-underline-offset:3px}
a:hover{color:#507038}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
:focus-visible{outline:3px solid #638a39;outline-offset:3px}
.wrap{width:min(1160px,calc(100% - 64px));margin-inline:auto}
.dark{background:var(--dark);color:var(--paper)}
.dark a:hover,.brand span,h1 span{color:var(--green)}
.nav,.foot{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding-block:1.25rem;font-size:.875rem}
.nav{border-bottom:1px solid #425046}
.brand{text-decoration:none;font-weight:750}
.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);align-items:end;gap:2rem;padding-block:3.65rem 3.3rem}
.eyebrow,article time{font-family:ui-monospace,monospace;font-weight:650;font-size:.78rem}
.eyebrow{color:var(--green);letter-spacing:.08em;text-transform:uppercase;margin:0 0 .7rem}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.13;letter-spacing:-.04em}
h1{font-size:clamp(3.15rem,8.5vw,7.5rem);font-weight:750}
h2{font-size:clamp(1.6rem,4vw,2.5rem)}
h3{font-size:1.25rem}
.intro{max-width:37em;margin-top:1rem;color:#ccd1bf}
.pulse{padding:1.05rem 1.25rem;border:1px solid #465845;border-radius:15px;background:#212c23}
.pulse h2{font-size:.9rem;letter-spacing:0;color:var(--green)}
.pulse dl{margin:.6rem 0}
.pulse dl div{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;padding:.3rem 0;border-bottom:1px solid #394a3b}
.pulse dt,.pulse p{font-size:.76rem;color:#cbd2bf}
.pulse dd{margin:0;font-variant-numeric:tabular-nums;font-weight:750}
main{padding-top:2.25rem}
.section-head,.chart-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6rem;margin-bottom:.95rem}
.settings{display:grid;grid-template-columns:1.3fr 1fr 1fr minmax(132px,.8fr) minmax(132px,.8fr);gap:.65rem}
.settings label{font-weight:700;font-size:.76rem;display:grid;gap:.28rem;min-width:0}
select,input[type=date]{min-width:0;width:100%;border:1px solid #aeb7a1;background:var(--white);padding:.57rem .48rem;border-radius:7px;min-height:2.65rem}
select{overflow:hidden;text-overflow:ellipsis}
.periods{display:flex;flex-wrap:wrap;gap:.4rem;margin-block:.9rem 1rem}
button{border:1px solid #b5bda9;border-radius:7px;background:var(--white);padding:.45rem .7rem;font-size:.822rem;font-weight:650}
button:hover:enabled,button[aria-pressed=true]{background:var(--green);border-color:#839d64}
.chart{border:1px solid var(--edge);border-radius:15px;padding:clamp(.8rem,3vw,1.5rem);background:var(--white)}
.chart-head{margin-bottom:.45rem}
.chart-head a,.section-head a,.sources a{font-size:.88rem}
.description,.events>p,.sources p{color:var(--muted)}
.description{font-size:.88rem}
#graph{width:100%;display:block;margin-top:.4rem;touch-action:pan-y}
#graph text{fill:var(--muted);font-family:ui-monospace,monospace}
#graph .grid{stroke:#e2e6d6;stroke-width:1}
#graph .mark{stroke:#8a6b53;stroke-width:2;stroke-dasharray:3 4}
#graph .trace{fill:none;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
#graph .primary{stroke:var(--line)}
#graph .alternate{stroke:var(--compare);stroke-dasharray:4 2}
#graph .cursor{stroke:#747e6e;stroke-dasharray:5 4}
#graph .point.primary{fill:var(--line)}
#graph .point.alternate{fill:var(--compare);stroke-dasharray:none}
.legend{display:flex;flex-wrap:wrap;gap:.7rem 1.2rem;font-size:.82rem}
.swatch{display:inline-block;width:1.3rem;border-top:3px solid var(--line);margin-right:.35rem;vertical-align:middle}
.swatch.alternate{border-color:var(--compare);border-top-style:dashed}
.swatch.event{border-color:#8a6b53;border-top-style:dotted}
.inspector{display:grid;grid-template-columns:minmax(130px,235px) minmax(80px,1fr);align-items:center;gap:.25rem .7rem;margin-top:.9rem;padding-top:.7rem;border-top:1px solid var(--edge);font-size:.85rem}
.inspector input{width:100%;accent-color:#436747}
.inspector strong{margin-left:.35rem}
#inspect-values{grid-column:1/-1;font-weight:650;min-height:1.3rem}
#retry{margin-top:.6rem}
.events,.sources{margin-block:2.6rem}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1rem}
.cards article{display:grid;grid-template-columns:1fr auto;align-items:start;gap:.55rem;padding:1rem;border:1px solid var(--edge);border-radius:10px;background:#e8ebd9}
.cards article :is(time,h3,p){grid-column:1/-1}
.cards time{color:#485a45}
.cards p{font-size:.88rem}
.cards button{justify-self:start;text-align:left}
.cards a{font-size:.78rem;align-self:center}
.sources{max-width:48rem}
.sources p{margin:.75rem 0}
.foot p{font-size:.82rem;color:#ccd1bf}
@media(max-width:900px){.settings{grid-template-columns:repeat(3,minmax(0,1fr))}.cards article{grid-template-columns:1fr}.cards article :is(time,h3,p){grid-column:auto}.hero{gap:1.2rem}}
@media(max-width:620px){.wrap{width:calc(100% - 34px)}.hero,.cards{grid-template-columns:1fr}.hero{padding-block:2.3rem 1.7rem}.settings{grid-template-columns:repeat(2,minmax(0,1fr))}.settings label:first-child{grid-column:1/-1}.foot{display:grid;gap:.45rem}.inspector{grid-template-columns:1fr}.cards article{grid-template-columns:1fr auto}.cards article :is(time,h3,p){grid-column:1/-1}}

.range-summary{font-size:.9rem;margin:.55rem 0}
#counting-note{background:#f3ecd9;border-inline-start:4px solid #94743f;padding:.75rem 1rem;margin:.85rem 0;font-size:.9rem}
#counting-note p{margin:.22rem 0}
