:root {
  --bg: #ffffff;
  --surface: #f7f8f9;
  --text: #1a1d21;
  --muted: #5b6470;
  --border: #dfe3e8;
  --accent: #1f5f4f;
  --accent-soft: #eef4f2;
  --max: 780px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --surface: #1c2024;
    --text: #e7eaed;
    --muted: #9aa4b0;
    --border: #2d333a;
    --accent: #6fbfa6;
    --accent-soft: #1d2a27;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px 96px; }
header.top {
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  padding: 56px 0 28px;
}
.brand {
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}
.brand a { color: inherit; text-decoration: none; }
h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.updated { color: var(--muted); margin: 0; font-size: 15px; }
h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.01em;
  scroll-margin-top: 20px;
}
h3 {
  font-size: 1.05rem;
  margin: 32px 0 10px;
  color: var(--text);
}
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 10px; }
a { color: var(--accent); text-underline-offset: 3px; }
strong { font-weight: 650; }
.lead { font-size: 1.05rem; }
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  margin: 0 0 24px;
  border-radius: 0 6px 6px 0;
}
.callout p:last-child { margin-bottom: 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  margin: 4px 0 20px;
}
.btn:hover { opacity: .88; }
nav.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 8px;
}
nav.toc h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  border: 0;
  margin: 0 0 12px;
  padding: 0;
}
nav.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  font-size: 15px;
}
nav.toc li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 560px) { nav.toc ol { columns: 1; } }
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface);
  font-weight: 650;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
table.kv th { white-space: normal; width: 42%; background: var(--surface); }
footer.bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
footer.bottom a { color: var(--muted); }
@media print {
  body { font-size: 11pt; }
  nav.toc { display: none; }
  h2 { page-break-after: avoid; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
}
