:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1b1d29;
  --muted: #5b5f73;
  --border: #dde0ea;
  --accent: #4a43d6;
  --accent-soft: #ecebff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c;
    --surface: #181c26;
    --text: #edeff7;
    --muted: #9aa0b4;
    --border: #2a2f3d;
    --accent: #9aa6ff;
    --accent-soft: rgba(124, 140, 255, 0.14);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 72px; }
header.site {
  display: flex; flex-wrap: wrap; gap: 12px 20px;
  align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
header.site .brand { font-weight: 700; font-size: 19px; text-decoration: none; color: var(--text); }
nav.docs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
nav.docs a {
  padding: 6px 11px; border: 1px solid var(--border); border-radius: 7px;
  text-decoration: none; color: var(--muted);
}
nav.docs a[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent);
  border-color: transparent; font-weight: 600;
}
h1 {
  font: 600 clamp(30px, 5vw, 40px)/1.15 Georgia, "Times New Roman", serif;
  margin: 0 0 6px; text-wrap: balance;
}
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 30px; font-size: 15px;
}
.toc strong { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 6px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.toc li { margin: 2px 0; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
h2 {
  font: 600 22px/1.3 Georgia, "Times New Roman", serif;
  margin: 36px 0 10px; scroll-margin-top: 16px; text-wrap: balance;
}
p, li { max-width: 68ch; }
li { margin: 4px 0; }
.tablewrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: 10px;
  margin: 12px 0 18px; background: var(--surface);
}
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { text-align: left; padding: 9px 13px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.notice { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; margin: 14px 0; max-width: 68ch; }
footer.site {
  margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
@media print {
  header.site nav, .toc { display: none; }
  body { background: #fff; color: #000; }
}
