:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --text: #1c211d;
  --muted: #5b655d;
  --line: #dde2dc;
  --accent: #1f7a3a;
  --accent-ink: #ffffff;
  --head: #111611;
  --head-ink: #f2f5f1;
  --hl: #e8f3eb;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121512;
    --surface: #1a1f1b;
    --text: #e4e9e3;
    --muted: #9aa69c;
    --line: #2d352f;
    --accent: #4cbf6c;
    --accent-ink: #0d120e;
    --head: #0a0c0a;
    --head-ink: #e4e9e3;
    --hl: #1e2c22;
  }
}
:root[data-theme="dark"] {
  --bg: #121512;
  --surface: #1a1f1b;
  --text: #e4e9e3;
  --muted: #9aa69c;
  --line: #2d352f;
  --accent: #4cbf6c;
  --accent-ink: #0d120e;
  --head: #0a0c0a;
  --head-ink: #e4e9e3;
  --hl: #1e2c22;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); overflow-wrap: anywhere; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.4rem; margin: 2.25rem 0 0.75rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--accent); }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }

header.site { background: var(--head); color: var(--head-ink); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { color: var(--head-ink); font-weight: 700; text-decoration: none; letter-spacing: 0.02em; }
header nav a { color: var(--head-ink); text-decoration: none; margin-left: 1rem; opacity: 0.8; }
header nav a[aria-current="page"] { opacity: 1; border-bottom: 2px solid var(--accent); }

.hero { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0; }
.lede { color: var(--muted); font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; }
.card h3 { margin-top: 0; }
.card p { margin: 0.3rem 0; }
.note { background: var(--hl); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.button { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 0.55rem 1rem; border-radius: 6px; text-decoration: none; font-weight: 600; }

.faq-tools { display: flex; gap: 0.5rem; margin: 1rem 0; }
.faq-tools input { flex: 1; min-width: 0; font: inherit; padding: 0.55rem 0.75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.faq-tools button { font: inherit; padding: 0.55rem 0.9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; }
.toc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 1rem; }
.toc a { font-size: 0.9rem; padding: 0.2rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
details.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin: 0.5rem 0; }
details.qa summary { cursor: pointer; padding: 0.7rem 1rem; font-weight: 600; }
details.qa[open] summary { border-bottom: 1px solid var(--line); }
.answer { padding: 0.25rem 1rem 0.5rem; }
.contacts { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.25rem 0.75rem; overflow-x: auto; }

footer { color: var(--muted); font-size: 0.85rem; padding-top: 2rem; padding-bottom: 2rem; }
