/* /stats (numbers.py): headline tiles, the month chart, ranked bars. Bars in the site's teal, text in ink. */
.numbers .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:18px 0 8px}
.numbers .tile{background:var(--card);border-radius:14px;padding:14px 16px;box-shadow:0 0 0 1px var(--line);display:flex;flex-direction:column;gap:2px}
.numbers .tile b{font-size:32px;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums}
.numbers .tile span{font-weight:700;font-size:16px}
.numbers .tile small{color:var(--muted);font-size:14px}
.numbers .chart{display:block;width:100%;height:auto;max-width:700px;background:var(--card);border-radius:14px;box-shadow:0 0 0 1px var(--line);padding:8px 4px 0}
.numbers .chart .ax{stroke:var(--line);stroke-width:1}
.numbers .chart .bar{fill:var(--primary)}
.numbers .chart .bar.part{fill:color-mix(in srgb,var(--primary) 45%,var(--card))}
.numbers .chart .hit:hover .bar{fill:color-mix(in srgb,var(--primary) 80%,var(--ink))}
.numbers .chart .lab{fill:var(--muted);font-size:15px;text-anchor:middle;font-family:var(--font)}
.numbers .chart .val{fill:var(--ink);font-size:16px;font-weight:700;text-anchor:middle;font-family:var(--font)}
.numbers .ranked{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px;max-width:700px}
.numbers .ranked li{display:grid;grid-template-columns:minmax(0,15em) 1fr 3.5em;gap:10px;align-items:center;font-size:15.5px}
.numbers .rk-name{line-height:1.3}
.numbers .rk-bar{display:block;width:100%;height:12px;border-radius:6px;overflow:hidden}
.numbers .rk-bg{fill:var(--soft)}.numbers .rk-fill{fill:var(--primary)}
.numbers .rk-n{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.numbers .facts-list{padding-left:20px;max-width:70ch}
.numbers .facts-list li{margin:6px 0}
.numbers details.tbl{margin:8px 0}
.numbers details.tbl summary{cursor:pointer;color:var(--link);font-weight:600}
.numbers details.tbl table{max-width:320px;margin-top:6px}
@media (max-width:560px){.numbers .ranked li{grid-template-columns:minmax(0,1fr) 30% 3em;font-size:14.5px}.numbers .tile b{font-size:27px}}

/* The chart people cut their own way (explore.js, D-27). Colours: the validated categorical palette in its fixed
   order (c1-c7: blue, orange, aqua, yellow, magenta, green, violet), a one-hue ramp for ordered things (o1-o5: how
   long, and the newest five years, darkest = longest/newest), grey only for older years drawn as context, and the
   site's teal for a single series. Dark mode has its own steps, checked against the dark card. */
.numbers .explore{max-width:760px;--c1:#2a78d6;--c2:#eb6834;--c3:#1baf7a;--c4:#eda100;--c5:#e87ba4;--c6:#008300;--c7:#6250d6;
  --o1:#86b6ef;--o2:#5598e7;--o3:#2a78d6;--o4:#1c5cab;--o5:#104281;--cg:#c3c9cf;--cp:var(--primary)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .numbers .explore{--c1:#3987e5;--c2:#d95926;--c3:#199e70;--c4:#c98500;
  --c5:#d55181;--c6:#0ca30c;--c7:#9085e9;--o1:#256abf;--o2:#3987e5;--o3:#6da7ec;--o4:#9ec5f4;--o5:#cde2fb;--cg:#3d5469}}
:root[data-theme="dark"] .numbers .explore{--c1:#3987e5;--c2:#d95926;--c3:#199e70;--c4:#c98500;
  --c5:#d55181;--c6:#0ca30c;--c7:#9085e9;--o1:#256abf;--o2:#3987e5;--o3:#6da7ec;--o4:#9ec5f4;--o5:#cde2fb;--cg:#3d5469}
.explore .c1{--col:var(--c1)}.explore .c2{--col:var(--c2)}.explore .c3{--col:var(--c3)}.explore .c4{--col:var(--c4)}
.explore .c5{--col:var(--c5)}.explore .c6{--col:var(--c6)}.explore .c7{--col:var(--c7)}.explore .cp{--col:var(--cp)}.explore .cg{--col:var(--cg)}
.explore .o1{--col:var(--o1)}.explore .o2{--col:var(--o2)}.explore .o3{--col:var(--o3)}.explore .o4{--col:var(--o4)}.explore .o5{--col:var(--o5)}

.ex-ctl{margin:6px 0 16px}
.ex-row{display:flex;flex-wrap:wrap;gap:10px 12px;align-items:flex-end}
.ex-row+.ex-row{margin-top:10px}
.explore label{margin:0;font-weight:inherit}
.ex-f{display:flex;flex-direction:column;gap:4px;flex:1 1 165px;min-width:0}
.ex-f.ex-yr{flex:0 1 96px}
.ex-f>span,.ex-seg legend{font-size:14px;font-weight:700;color:var(--muted)}
.numbers .ex-f select{padding:8px 10px;font-size:15.5px;min-height:44px}
.ex-f select:disabled{opacity:.5}
.ex-seg{border:0;padding:0;margin:0;min-width:0;flex:0 0 auto}
.ex-seg legend{padding:0;margin:0 0 4px}
.ex-seg{display:inline-flex;flex-wrap:nowrap}
.ex-seg label{position:relative;display:inline-flex}
.ex-seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.ex-seg span{display:inline-flex;align-items:center;min-height:44px;padding:0 13px;font-size:15px;font-weight:600;background:var(--card);
  box-shadow:inset 0 0 0 1px var(--line);color:var(--ink);white-space:nowrap}
.ex-seg label:first-of-type span{border-radius:10px 0 0 10px}
.ex-seg label:last-of-type span{border-radius:0 10px 10px 0}
.ex-seg label+label span{margin-left:-1px}
.ex-seg input:checked+span{background:var(--ink);color:var(--card);box-shadow:inset 0 0 0 1px var(--ink)}
.ex-seg input:focus-visible+span{outline:3px solid var(--focus);outline-offset:1px;position:relative;z-index:1}
.ex-seg input:disabled+span{opacity:.4}
.ex-seg input:disabled{cursor:not-allowed}

.ex-title{font-size:17px;margin:4px 0 6px;line-height:1.35}
.ex-legend{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:14.5px;color:var(--ink)}
.ex-legend li{display:inline-flex;align-items:center;gap:6px}
.explore .sw{display:inline-block;width:12px;height:12px;border-radius:3px;background:var(--col);flex:none}
.ex-chart{position:relative;background:var(--card);border-radius:14px;box-shadow:0 0 0 1px var(--line);padding:8px 6px 2px;min-height:200px;touch-action:pan-y}
.ex-chart svg{display:block;width:100%;height:auto;overflow:visible;font-family:var(--font)}
.explore .grid{stroke:var(--line);stroke-width:1}
.explore .base{stroke:color-mix(in srgb,var(--muted) 60%,var(--line));stroke-width:1}
.explore .tick{stroke:color-mix(in srgb,var(--muted) 60%,var(--line))}
.explore .tk{fill:var(--muted);font-size:13px;text-anchor:middle}
.explore .tk.ty{text-anchor:end}
.explore .tk.tl{text-anchor:start}
.explore .tk.yr{fill:var(--ink);font-weight:700}
.explore .f{fill:var(--col)}
.explore .f.part{opacity:.5}
.explore .l{fill:none;stroke:var(--col);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.explore .l.now{stroke-width:3}
.explore .l.old{stroke-width:1.5}
.explore .l.partl{stroke-dasharray:4 4}
.explore .dot{fill:var(--col);stroke:var(--card);stroke-width:2}
.explore .endlab{fill:var(--ink);font-size:13px;font-weight:700}
.explore .endlab.old{fill:var(--muted);font-weight:400}
.explore .hov{fill:var(--ink);opacity:.07}
.explore .xh{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}
.ex-tip{position:absolute;z-index:3;pointer-events:none;background:var(--card);color:var(--ink);border-radius:10px;padding:8px 10px;
  box-shadow:0 0 0 1px var(--line),0 6px 18px rgba(0,0,0,.14);font-size:14px;line-height:1.3;max-width:280px}
.ex-tip b{display:block;margin-bottom:4px}
.ex-tip table{border-collapse:collapse}
.ex-tip td{padding:1px 0;vertical-align:middle}
.ex-tip td:first-child{width:18px}
.ex-tip td:last-child{text-align:right;padding-left:12px;font-variant-numeric:tabular-nums;font-weight:700;white-space:nowrap}
.ex-tip tr.tot td{border-top:1px solid var(--line);padding-top:3px}
.ex-note{margin-top:8px}
.ex-share{margin:4px 0 0;font-size:15px}
.explore .ex-table{overflow-x:auto;max-height:420px;overflow-y:auto}
.explore .ex-table table{max-width:none;border-collapse:collapse;font-size:14.5px;font-variant-numeric:tabular-nums}
.explore .ex-table th,.explore .ex-table td{padding:3px 10px 3px 0;text-align:right;white-space:nowrap}
.explore .ex-table th[scope=row],.explore .ex-table thead th:first-child{text-align:left}
.explore .ex-table thead th{position:sticky;top:0;background:var(--paper)}

/* year against year */
.numbers .yt-wrap{overflow-x:auto;max-width:760px}
.numbers .yt{border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:15.5px;min-width:560px}
.numbers .yt th,.numbers .yt td{padding:7px 12px 7px 0;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
.numbers .yt th[scope=row],.numbers .yt thead th:first-child{text-align:left;white-space:nowrap}
.numbers .yt thead th{font-size:14px;color:var(--muted);font-weight:700;line-height:1.25}
.numbers .yt small{color:var(--muted);font-weight:400}
.numbers .yr-pick{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 16px}
.numbers .yr-pick a{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;box-shadow:inset 0 0 0 1px var(--line);
  text-decoration:none;color:var(--ink);font-weight:600;background:var(--card)}
.numbers .yr-pick a[aria-current]{background:var(--ink);color:var(--card);box-shadow:none}
.numbers h3{margin-top:26px}
@media (max-width:560px){.ex-seg span{padding:0 10px;font-size:14.5px;min-height:42px}.ex-f{flex-basis:140px}.ex-row{gap:8px 10px}
  .numbers .ex-f select{min-height:42px;padding:6px 8px}.ex-row+.ex-row{margin-top:8px}}
