:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5c5c5c;
  --line: #d9d9d9;
  --accent: #1f5a8a;
  --soft: #f2f5f8;
  --warn: #8a5a00;
  --warn-soft: #fff6e0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131517;
    --fg: #ececec;
    --muted: #a8a8a8;
    --line: #32373c;
    --accent: #7db4de;
    --soft: #1b2026;
    --warn: #e6b450;
    --warn-soft: #2a2412;
  }
}
* { box-sizing: border-box; }
/* The hidden attribute wins over any display rule below. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
header { border-bottom: 1px solid var(--line); }
header .bar {
  max-width: 46rem;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
header .brand { font-weight: 650; text-decoration: none; color: var(--fg); margin-right: auto; }
header nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
header nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
header nav a:hover { color: var(--accent); }
main { max-width: 46rem; margin: 0 auto; padding: 24px 16px 48px; }
main.wide { max-width: 64rem; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.4em 0 0.5em; }
h2 { font-size: 1.3rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.3em 0 0.4em; }
p, li { max-width: 40rem; }
a { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); }
.note { background: var(--soft); border-left: 3px solid var(--accent); padding: 10px 14px; margin: 1.2em 0; }
.note.warn { background: var(--warn-soft); border-left-color: var(--warn); }
table { border-collapse: collapse; margin: 1em 0; font-size: 15px; width: 100%; }
th, td { text-align: left; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }
code { font-size: 0.92em; background: var(--soft); padding: 1px 4px; border-radius: 3px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .bar { max-width: 46rem; margin: 0 auto; padding: 16px; }
.button, button {
  display: inline-block;
  font: inherit;
  font-size: 15px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) { .button, button { color: #10161c; } }
.button.plain, button.plain { background: transparent; color: var(--fg); border-color: var(--line); }
button.small, .button.small { font-size: 13px; padding: 3px 9px; }
button:disabled, .button.disabled { opacity: 0.45; pointer-events: none; }
input, select, textarea {
  font: inherit;
  font-size: 15px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
}
.muted { color: var(--muted); }
.small { font-size: 14px; }
.links a { margin-right: 10px; white-space: nowrap; }
dl dt { font-weight: 600; margin-top: 0.8em; }
dl dd { margin: 0.2em 0 0; }
