:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #e4e2dc;
  --accent: #2f6b4f;
  --accent-soft: #e6f0ea;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141514;
    --surface: #1d1f1d;
    --text: #ecece8;
    --muted: #a3a8a3;
    --line: #2e322e;
    --accent: #7cc49d;
    --accent-soft: #223128;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo",
    "Noto Sans", sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px; }
.langs a {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted);
  text-decoration: none; background: var(--surface);
}
.langs a[aria-current="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 32px 0 8px; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p, li { color: var(--text); }
.lead { color: var(--muted); margin-top: 0; }
.muted { color: var(--muted); font-size: 14px; }
a { color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.card p { margin: 4px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p, details ol, details ul { margin: 8px 0 2px; }
ol, ul { padding-left: 22px; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer a { margin-right: 14px; }
html.js section[data-lang] { display: none; }
html.js section[data-lang].on { display: block; }
