:root {
  --bg: #f7f6f3; --surface: #ffffff; --ink: #1b1d22; --muted: #5d6270; --line: #e3e1dc; --accent: #e8432f;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111317; --surface: #191c22; --ink: #eceae6; --muted: #a2a6b0; --line: #2a2e36; --accent: #ff6853; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header, footer { max-width: 860px; margin: 0 auto; padding: 20px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--ink); text-decoration: none; font-size: 20px; }
a { color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }
article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; margin-bottom: 28px; }
h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.2; }
h2 { margin: 28px 0 8px; font-size: 19px; }
.meta { color: var(--muted); font-size: 14px; margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
dt { font-weight: 700; margin-top: 16px; }
dd { margin: 4px 0 0; }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 10px; }
nav span { color: var(--muted); }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; border-radius: 10px; }
ol { padding-left: 22px; }
.links { padding-left: 18px; }
@media (max-width: 520px) {
  article { padding: 18px 14px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: 0; padding: 4px 0; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
