/* The guide pages: a plain reading layout on the same Fusion tokens as the app. */
:root {
  --canvas: hsl(47.9 15.7% 96.5%);
  --paper: hsl(0 0% 100%);
  --control: hsl(47.9 7.9% 93.2%);
  --fg: hsl(47.8 5.3% 12.2%);
  --muted: hsl(47.9 1.9% 40%);
  --border: hsl(47.9 4.4% 83.9%);
  --primary: hsl(47.8 5.7% 8.7%);
  --primary-fg: hsl(47.9 16.7% 97.8%);
  --signal: hsl(347.6 100% 46.5%);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: hsl(47.7 7.9% 6%); --paper: hsl(47.8 4.7% 13.9%); --control: hsl(47.8 3.9% 17.5%);
    --fg: hsl(47.9 10.6% 93.2%); --muted: hsl(47.9 1.8% 63.5%); --border: hsl(47.8 3.6% 23.4%);
    --primary: hsl(47.9 23.9% 97.7%); --primary-fg: hsl(47.8 5.7% 8.7%); --signal: hsl(348 100% 64%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: hsl(47.7 7.9% 6%); --paper: hsl(47.8 4.7% 13.9%); --control: hsl(47.8 3.9% 17.5%);
  --fg: hsl(47.9 10.6% 93.2%); --muted: hsl(47.9 1.8% 63.5%); --border: hsl(47.8 3.6% 23.4%);
  --primary: hsl(47.9 23.9% 97.7%); --primary-fg: hsl(47.8 5.7% 8.7%); --signal: hsl(348 100% 64%);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--fg); font: 16px/1.7 var(--font-sans); -webkit-font-smoothing: antialiased; padding: 0 16px; }
.wrap { max-width: 44rem; margin: 0 auto; padding-block: 28px 64px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; font-size: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 16px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--fg); }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; margin: 48px 0 12px; }
h3 { font-size: 1.05rem; margin: 24px 0 6px; }
p, li { color: var(--fg); }
.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-weight: 600; text-decoration: none; }
.cta:hover { opacity: .9; }
.cta + .alt { margin-left: 16px; color: var(--muted); }
a { color: inherit; text-underline-offset: 3px; }
figure { margin: 32px 0; }
figure img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border); display: block; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
code, pre { font-family: var(--font-mono); font-size: 14px; }
code { background: var(--control); border-radius: 6px; padding: 1px 5px; }
pre { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; overflow-x: auto; line-height: 1.6; }
pre code { background: none; padding: 0; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
kbd { font-family: var(--font-mono); font-size: 13px; background: var(--paper); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.facts { list-style: none; padding: 0; display: grid; gap: 10px; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
details { border-bottom: 1px solid var(--border); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }
footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
