:root {
  --bg: #ffffff;
  --surface: #f5f7f6;
  --text: #1b2421;
  --muted: #5b6763;
  --border: #dde3e0;
  --accent: #0f7a5c;
  --accent-soft: #e6f3ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111614;
    --surface: #1a211e;
    --text: #e6ece9;
    --muted: #9aa7a2;
    --border: #2b3531;
    --accent: #4cc39b;
    --accent-soft: #17302a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
header.site {
  border-bottom: 1px solid var(--border);
}
header.site .inner, main, footer.site .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
header.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}
nav a {
  margin-left: 18px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
nav a:hover { color: var(--accent); }
main { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
h2 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
  padding-top: 8px;
  scroll-margin-top: 16px;
}
h3 { font-size: 1rem; margin: 24px 0 8px; }
.meta { color: var(--muted); margin: 0 0 28px; }
.summary {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 4px 22px;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 22px;
  margin: 24px 0;
}
.toc ol { margin: 6px 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.callout {
  border-left: 3px solid var(--accent);
  padding: 4px 16px;
  margin: 16px 0;
  color: var(--text);
}
.hero { padding: 40px 0 8px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 28px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }
.steps li { margin: 8px 0; }
footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer.site .inner { padding-top: 20px; padding-bottom: 28px; }
footer.site a { color: var(--muted); }
