/* Layout: single centered column, header band + sections separated by thin rules; spec-sheet tables for facts */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --fg: #16202a;
  --muted: #55626f;
  --line: #d6dde4;
  --accent: #c2410c;
  --band: #1b2733;
  --band-fg: #eef2f6;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11181f; --surface: #18222c; --fg: #e6ebf0; --muted: #9aa8b5;
    --line: #2b3946; --accent: #f97316; --band: #0b1117; --band-fg: #e6ebf0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11181f; --surface: #18222c; --fg: #e6ebf0; --muted: #9aa8b5;
  --line: #2b3946; --accent: #f97316; --band: #0b1117; --band-fg: #e6ebf0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 20px; }
header.band { background: var(--band); color: var(--band-fg); }
.topbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
nav a { color: var(--band-fg); text-decoration: none; opacity: .85; }
nav a:hover, nav a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.hero { padding-block: 40px 52px; border-top: 1px solid rgba(255,255,255,.08); }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.05; margin: 10px 0 14px; text-wrap: balance; }
.hero p { max-width: 62ch; margin: 0; opacity: .88; font-size: 1.05rem; }
main section { padding-block: 44px; border-bottom: 1px solid var(--line); }
main section:last-child { border-bottom: 0; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 0 0 6px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 0 0 4px; }
.lede { color: var(--muted); max-width: 65ch; margin: 0 0 24px; }
p { max-width: 68ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; min-width: 0; }
.item p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 34%; font-weight: 500; color: var(--muted); font-size: .9rem; }
.spec td { font-size: .95rem; }
.mono { font-family: var(--font-mono); font-size: .9rem; }
.table-scroll { overflow-x: auto; }
.policy h3 { margin-top: 22px; }
.policy ul { padding-left: 1.2em; max-width: 68ch; }
.policy li { margin-bottom: 6px; }
.copy { font: inherit; font-size: .78rem; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); background: transparent; color: var(--fg); border-radius: 4px; cursor: pointer; }
.copy:focus-visible, nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
footer { padding-block: 28px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .spec th { width: 40%; } }
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 10px 18px; border-radius: 4px; background: var(--accent); color: #fff; border: 0; cursor: pointer; font: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.hero .btn { margin-top: 22px; }
nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.doc { padding-block: 40px 56px; }
.doc h1 { color: var(--fg); font-size: clamp(2rem, 5vw, 2.8rem); }
.updated { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 4px; max-width: 68ch; }
.notice.error { border-left-color: #b91c1c; }
.notice.ok { border-left-color: #15803d; }
