/* Skip Ledger. No web fonts, no scripts: system faces, one stylesheet. */
:root {
  --paper: #f5f2e9;
  --card: #fffdf7;
  --ink: #1c1e1a;
  --muted: #5a5d55;
  --rule: #d9d3c3;
  --rule-strong: #1c1e1a;
  --skip: #f2b705;
  --skip-ink: #1c1e1a;
  --link: #1f4f8a;
  --warn-bg: #fdf0cf;
  --warn-ink: #5e4300;
  --ok: #2f6b3a;
  --no: #9a2c1f;
  --focus: #1f4f8a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141612;
    --card: #1c1f1a;
    --ink: #ebe7dc;
    --muted: #a8a99f;
    --rule: #34372f;
    --rule-strong: #ebe7dc;
    --link: #8db8ef;
    --warn-bg: #3a2f10;
    --warn-ink: #f6dc9a;
    --ok: #7fc48b;
    --no: #f19a8c;
    --focus: #8db8ef;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141612; --card: #1c1f1a; --ink: #ebe7dc; --muted: #a8a99f; --rule: #34372f; --rule-strong: #ebe7dc;
  --link: #8db8ef; --warn-bg: #3a2f10; --warn-ink: #f6dc9a; --ok: #7fc48b; --no: #f19a8c; --focus: #8db8ef;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
img { max-width: 100%; }

.num, td.num, .figure { font-family: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--skip); color: var(--skip-ink); padding: 0.5rem 1rem; z-index: 2; }
.skip-link:focus { left: 1rem; }

/* The marker board stripe a skip on the road has to carry, as the masthead's edge. */
.stripe {
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--skip) 0 14px, var(--ink) 14px 28px);
}
header.site { border-bottom: 1px solid var(--rule); }
.bar { max-width: 72rem; margin: 0 auto; padding: 0.85rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; justify-content: space-between; }
.brand { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; display: inline-flex; gap: 0.55rem; align-items: center; }
.brand-mark { width: 1.6rem; height: 1.05rem; display: inline-block; background: var(--skip); clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); border-bottom: 3px solid var(--ink); }
nav.top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 0.97rem; }
nav.top a { color: var(--ink); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
nav.top a:hover, nav.top a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--skip); text-decoration-thickness: 3px; }

main { max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.75rem; }
.crumbs a { color: var(--muted); }

h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0.25rem 0 0.75rem; font-weight: 800; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 2.25rem 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; max-width: 46rem; }
li { margin-bottom: 0.35rem; }
.lede { font-size: 1.15rem; color: var(--ink); max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* The headline figures. */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 0.75rem; margin: 1.25rem 0 1.5rem; }
@media (max-width: 40rem) {
  .figures { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .figure-card { padding: 0.7rem 0.75rem; }
  .figure-card .figure { font-size: 1.3rem; }
  .figure-card.empty .figure { font-size: 0.95rem; }
}
.figure-card { background: var(--card); border: 1px solid var(--rule); border-top: 5px solid var(--skip); padding: 0.85rem 1rem 0.9rem; }
.figure-card h3 { margin: 0 0 0.15rem; font-size: 0.95rem; font-weight: 700; }
.figure-card .range { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.5rem; }
.figure-card .figure { font-size: 1.65rem; font-weight: 700; line-height: 1.1; display: block; }
.figure-card .figure-label { font-size: 0.82rem; color: var(--muted); }
.figure-card .spread { font-size: 0.9rem; margin: 0.4rem 0 0; }
.figure-card.empty .figure { font-size: 1.05rem; font-weight: 600; color: var(--muted); }

/* Ledger tables. */
.table-wrap { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--rule); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
caption { text-align: left; font-weight: 700; padding: 0.75rem 0.85rem 0.25rem; }
caption .small { font-weight: 400; display: block; }
th, td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border-bottom: 2px solid var(--rule-strong); white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num .src { white-space: normal; min-width: 9rem; }
tbody tr:last-child td { border-bottom: 0; }
td .src { display: block; font-size: 0.82rem; color: var(--muted); }
@media (min-width: 40.01rem) { td.lead { min-width: 10rem; } }

@media (max-width: 40rem) {
  table.stack thead { position: absolute; left: -9999px; }
  table.stack caption { display: block; width: 100%; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border-bottom: 1px solid var(--rule); padding: 0.5rem 0; }
  table.stack td { border: 0; padding: 0.2rem 0.85rem; text-align: left; }
  table.stack td.num { text-align: left; white-space: normal; }
  table.stack td.num .src { min-width: 0; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); font-family: system-ui, sans-serif; }
  table.stack td.lead { font-weight: 700; padding-top: 0.4rem; }
  table.stack td.lead::before { content: none; }
}

.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.08rem 0.45rem; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; vertical-align: 0.1em; }
.tag.old { color: var(--warn-ink); background: var(--warn-bg); }
.tag.advert { color: var(--ink); background: var(--skip); border-color: var(--skip); }

.note { background: var(--warn-bg); color: var(--warn-ink); border-left: 5px solid var(--skip); padding: 0.75rem 1rem; margin: 0 0 1.25rem; max-width: 46rem; }
.note p:last-child { margin-bottom: 0; }
.panel { background: var(--card); border: 1px solid var(--rule); padding: 1rem 1.1rem; margin: 0 0 1.25rem; }
.panel > :last-child { margin-bottom: 0; }

.cols { display: grid; gap: 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .cols { grid-template-columns: 1.6fr 1fr; } }

ul.areas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.5rem; max-width: none; }
ul.areas li { margin: 0; }
ul.areas a { display: block; background: var(--card); border: 1px solid var(--rule); padding: 0.7rem 0.85rem; text-decoration: none; color: var(--ink); min-height: 3rem; }
ul.areas a:hover { border-color: var(--rule-strong); }
ul.areas .count { display: block; color: var(--muted); font-size: 0.85rem; }

.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--no); font-weight: 700; }

dl.facts { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 0.5rem 1rem; margin: 0 0 1.25rem; max-width: 50rem; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }
@media (max-width: 40rem) { dl.facts { grid-template-columns: 1fr; } dl.facts dd { margin-bottom: 0.5rem; } }

.sources { font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 0.75rem; }
.sources ol { padding-left: 1.25rem; max-width: none; }
.sources li { overflow-wrap: anywhere; }
sup.ref a { text-decoration: none; font-size: 0.75em; }

form.claim { display: grid; gap: 0.9rem; max-width: 38rem; }
form.claim label { font-weight: 600; display: block; margin-bottom: 0.25rem; }
form.claim .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; display: block; }
form.claim input[type="text"], form.claim input[type="email"], form.claim input[type="url"], form.claim textarea {
  width: 100%; font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--muted); background: var(--card); color: var(--ink); border-radius: 3px;
}
form.claim textarea { min-height: 9rem; }
form.claim .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
form.claim .check input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; flex: none; }
.hp { position: absolute; left: -9999px; }
button, .button { font: inherit; font-weight: 700; background: var(--skip); color: var(--skip-ink); border: 2px solid var(--ink); padding: 0.65rem 1.2rem; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; min-height: 48px; }
button:hover, .button:hover { filter: brightness(1.05); }

footer.site { border-top: 1px solid var(--rule); background: var(--card); }
footer.site .bar { display: block; font-size: 0.9rem; color: var(--muted); padding-top: 1.25rem; padding-bottom: 2rem; }
footer.site ul { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.2rem; max-width: none; }
footer.site a { color: var(--muted); }

@media print { .stripe, nav.top, footer.site { display: none; } body { background: #fff; } }
