:root { color-scheme: light dark; --bg: #f5f6f8; --paper: #fff; --text: #202328; --muted: #59616d; --line: #dfe2e8; --accent: #8b1e1e; --soft: #fff4f1; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #14161a; --paper: #1d2024; --text: #e8eaed; --muted: #b3bac5; --line: #414751; --accent: #f1a69d; --soft: #2a1f21; }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; padding: 24px 16px 56px; background: var(--bg); color: var(--text); font: 16px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; overflow-wrap: anywhere; }
.wrap { max-width: 860px; margin: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: -100px; padding: 10px; background: var(--paper); }
.skip:focus { top: 8px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; font-size: .95rem; }
nav a { display: inline-block; padding: 7px 0; }
nav [aria-current="page"] { font-weight: 700; }
header { border-bottom: 2px solid var(--accent); padding-bottom: 20px; margin-bottom: 24px; }
h1 { font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.4; margin: 0 0 12px; }
h2 { font-size: 1.18rem; line-height: 1.6; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 1.4em; }
li + li { margin-top: 6px; }
.sub, .meta { color: var(--muted); font-size: .94rem; }
.meta { margin-bottom: 0; }
section, .toc { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 18px; }
.notice { background: var(--soft); border-left: 4px solid var(--accent); padding: 16px 18px; margin: 18px 0 0; }
.notice p:last-child, section > :last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); min-width: 125px; }
th { background: var(--bg); }
caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
address { font-style: normal; }
footer { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; color: var(--muted); font-size: .9rem; }
@media (max-width: 480px) { section, .toc { padding: 20px 16px; } body { padding: 18px 12px 40px; } }
@media print { body { padding: 0; background: #fff; color: #000; } section, .toc { border: 0; padding: 0; } nav, .skip { display: none; } a { color: #000; } }
