:root {
  --fg: #1d1d1b;
  --muted: #5f5f5a;
  --line: #deded8;
  --bg: #ffffff;
  --hol: #f4f1e6;
  --link: #1f5c8f;
  --accent: #1f5c8f;
  --accent-soft: #9bb8d3;
}
@media (prefers-color-scheme: dark) {
  :root { --fg: #e8e8e3; --muted: #a5a59e; --line: #3a3a36; --bg: #161615; --hol: #2f2c22; --link: #8cc0ea; --accent: #8cc0ea; --accent-soft: #4a6378; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main, footer { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
main { padding-top: 1.5rem; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .3rem; }
h4 { font-size: .95rem; margin: .4rem 0; color: var(--muted); font-weight: 600; }
a { color: var(--link); }
.asof, .note { color: var(--muted); font-size: .92rem; }
.summary p { font-size: 1.05rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: .35rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-weight: 600; border-bottom: 2px solid var(--fg); white-space: normal; vertical-align: bottom; }
tbody th { font-weight: 400; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
thead th.num { white-space: normal; }
.na { color: var(--muted); }
tr.hol { background: var(--hol); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cols ol { margin: 0; padding-left: 1.3rem; }
@media (max-width: 560px) {
  .cols { grid-template-columns: 1fr; }
  table { font-size: .88rem; }
  th, td { padding: .3rem .3rem; }
}
footer { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
header nav { max-width: 46rem; margin: 0 auto; padding: .8rem 16px 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; }
header .brand { font-weight: 700; color: var(--fg); text-decoration: none; margin-right: auto; }
.summary p { font-size: 1.05rem; }
.others ul { columns: 2; padding-left: 1.2rem; }
@media (max-width: 560px) { .others ul { columns: 1; } }
.cols.one { grid-template-columns: 1fr; }
.optin-form { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; }
.optin-form label { display: flex; flex-direction: column; font-size: .9rem; color: var(--muted); }
.optin-form input, .optin-form select, .optin-form button { font: inherit; padding: .4rem .5rem; }
table.overview .nw, table.overview .wk { white-space: nowrap; }
table.overview tbody th { white-space: normal; }
table.overview .wk { display: block; color: var(--muted); font-size: .9em; }

/* chart */
.chart { margin: 1rem 0 1.2rem; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .chart-narrow { display: none; }
@media (max-width: 560px) { .chart .chart-wide { display: none; } .chart .chart-narrow { display: block; } }
.ch-hol { fill: var(--hol); }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { stroke: var(--muted); stroke-width: 1; }
.ch-tick { stroke: var(--muted); }
.ch-lab { fill: var(--muted); }
.ch-min { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; }
.ch-med { fill: none; stroke: var(--accent-soft); stroke-width: 1.6; stroke-linejoin: round; }
.ch-min-dot { fill: var(--accent); }
.ch-med-dot { fill: var(--accent-soft); }
.ch-lo { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.ch-lo-lab { fill: var(--fg); font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.sw { display: inline-block; width: 1.4em; height: .7em; margin-right: .4em; vertical-align: middle; }
.sw-min { border-top: 3px solid var(--accent); height: 0; }
.sw-med { border-top: 2px solid var(--accent-soft); height: 0; }
.sw-hol { background: var(--hol); border: 1px solid var(--line); }
