/* The user guide. One column of reading with the contents beside it; light and dark follow the device. */
:root { --bg: #f6f8fd; --surface: #ffffff; --line: #dfe5f2; --text: #0b1124; --text-2: #3b4662; --muted: #66718c; --accent: #0b5cff; --accent-soft: #e8f0ff; --code: #eef2fb; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #070b1c; --surface: #0e1430; --line: #1f2a52; --text: #f2f5ff; --text-2: #c3cbe4; --muted: #8e99ba; --accent: #6ea2ff; --accent-soft: #14204a; --code: #131b3d; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15.5px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language select { height: 38px; max-width: 46vw; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.open { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 650; font-size: 14px; }
@media (prefers-color-scheme: dark) { .open { color: #06102e; } }
.hero { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 40px) 8px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -.025em; }
.hero > p { margin: 12px 0 0; max-width: 62ch; color: var(--text-2); font-size: 17px; }
.search { display: block; margin-top: 22px; max-width: 560px; }
.search input { width: 100%; height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.search input:focus-visible, .language select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.none { color: var(--muted); }
.chooser { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chooser a, footer nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.layout { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 64px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.contents { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-inline-end: 8px; font-size: 14px; }
.contents h2 { margin: 0 0 10px; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 650; }
.toc-group { margin-bottom: 16px; }
.toc-group strong { display: block; margin-bottom: 4px; font-size: 13.5px; }
.toc-group ul { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc-group a { display: block; padding: 4px 12px; color: var(--text-2); text-decoration: none; border-radius: 0 8px 8px 0; }
[dir="rtl"] .toc-group a { border-radius: 8px 0 0 8px; }
.toc-group a:hover { background: var(--accent-soft); color: var(--text); }
main { min-width: 0; }
.group > h2 { margin: 36px 0 14px; font-size: 22px; letter-spacing: -.015em; }
.group:first-child > h2 { margin-top: 0; }
.entry { margin-bottom: 18px; padding: 22px clamp(16px, 3vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.entry h3 { margin: 0 0 12px; font-size: 19px; letter-spacing: -.01em; }
.entry p { margin: 0 0 12px; color: var(--text-2); }
.label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.where .label { flex-basis: 100%; margin: 0; }
.where b { padding: 3px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: 14px; }
.where i { color: var(--muted); font-style: normal; }
[dir="rtl"] .where i { transform: scaleX(-1); }
.where code { margin-inline-start: 6px; padding: 3px 9px; border-radius: 8px; background: var(--code); color: var(--text-2); font: 12.5px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; direction: ltr; }
.note { padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--text) !important; font-size: 14.5px; }
.steps ol { margin: 0 0 12px; padding-inline-start: 22px; color: var(--text-2); }
.steps li { margin-bottom: 6px; }
.items dl { margin: 0 0 12px; border-top: 1px solid var(--line); }
.items dl > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.items dt { font-weight: 600; }
.items dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px !important; }
.links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.links a:hover { border-color: var(--accent); }
figure { margin: 16px 0 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
footer { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 48px; color: var(--muted); font-size: 13.5px; }
footer .legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 16px; }
footer .legal a { color: var(--text-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 20px; }
  .contents { position: static; max-height: none; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .items dl > div { grid-template-columns: 1fr; }
  .open { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .top, .search, .contents, footer nav { display: none; } .layout { display: block; } .entry { break-inside: avoid; } }
