/* Build-out history: self-contained styles. Nothing here depends on the
   main site's stylesheet, so a redesign there leaves this page untouched. */
:root {
  color-scheme: light;
  --bg: #f5f2ec; --surface: #fcfcfb; --ink: #1c1b19; --ink-2: #52514e; --ink-3: #7a7873;
  --rule: #d9d4ca; --grid: #e6e2da; --link: #1f5fae;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161615; --surface: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #8f8d86;
    --rule: #3a3936; --grid: #2c2b29; --link: #8db8f0;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161615; --surface: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --ink-3: #8f8d86;
  --rule: #3a3936; --grid: #2c2b29; --link: #8db8f0;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 Georgia, "Iowan Old Style", "Times New Roman", serif; }
main { max-width: 820px; margin: 0 auto; padding: 40px 16px 64px; }
h1 { font-size: 2rem; line-height: 1.2; margin: .2em 0 .4em; font-weight: 600; }
h2 { font-size: 1.35rem; margin: 2.4em 0 .6em; padding-top: .8em; border-top: 1px solid var(--rule); font-weight: 600; }
h3 { font-size: 1.05rem; margin: 1.6em 0 .4em; }
a { color: var(--link); }
.kicker, .date, .src, .note, nav, footer, table, figcaption, .tiles span {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.kicker { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.lede { font-size: 1.12rem; color: var(--ink-2); }
nav.toc { font-size: .85rem; color: var(--ink-3); margin: 1.4em 0; }
.date { font-size: .8rem; font-weight: 400; color: var(--ink-3); margin-left: .4em; }
.src, .note { font-size: .8rem; color: var(--ink-3); }
.note { border-left: 3px solid var(--rule); padding-left: .8em; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; font-size: .85rem; width: 100%; margin: .6em 0; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.num td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.v { font-weight: 600; }
figure { margin: 1em 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 12px; }
figcaption { font-size: .85rem; color: var(--ink-2); margin-bottom: 8px; }
.chartwrap { position: relative; }
svg.chart { width: 100%; height: auto; display: block; font-family: system-ui, sans-serif; }
svg .grid { stroke: var(--grid); stroke-width: 1; }
svg .zero { stroke: var(--ink-3); stroke-width: 1; }
svg .tick { fill: var(--ink-3); font-size: 11px; }
svg .end { fill: var(--ink-2); font-size: 11px; }
svg polyline { fill: none; stroke-width: 2; stroke-linejoin: round; }
svg .s1, svg .dot1 { stroke: var(--s1); fill: var(--s1); } svg polyline.s1 { fill: none; }
svg .s2, svg .dot2 { stroke: var(--s2); fill: var(--s2); } svg polyline.s2 { fill: none; }
svg .s3, svg .dot3 { stroke: var(--s3); fill: var(--s3); } svg polyline.s3 { fill: none; }
svg .s4, svg .dot4 { stroke: var(--s4); fill: var(--s4); } svg polyline.s4 { fill: none; }
svg tspan[class^="dot"] { stroke: none; }
svg .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
svg .hit { fill: transparent; cursor: crosshair; }
.tip { position: absolute; top: 8px; pointer-events: none; background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 4px; padding: 6px 8px; font: 12px/1.4 system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 1em 0; }
.tiles div { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 10px 12px; }
.tiles b { display: block; font-size: 1.6rem; font-weight: 600; }
.tiles span { font-size: .8rem; color: var(--ink-2); }
ul.log { list-style: none; padding: 0; font-size: .9rem; }
ul.log li { margin: .5em 0; }
footer { margin-top: 3em; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-3); }
@media (max-width: 560px) { body { font-size: 16px; } h1 { font-size: 1.6rem; } }
