/* Public user guide (/guide). Same fonts and colours as the app. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #f6f7f9; --surface: #ffffff; --text: #151a24; --muted: #5a6478; --line: #dde1e8; --cue: #3e5bd8; --code: #eef0f5;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f131b; --surface: #161b25; --text: #e9ecf2; --muted: #a7b0c2; --line: #262d3b; --cue: #7c95ff; --code: #1c2230; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.125rem/1.6 'Barlow', system-ui, sans-serif; }
a { color: var(--cue); text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--cue); outline-offset: 2px; border-radius: 2px; }

.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner { max-width: 72rem; margin: 0 auto; padding: 0.9rem 1.25rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font: 700 1.5rem/1 'Barlow Condensed', sans-serif; }
.brand img { width: 2rem; height: 2rem; }
.open { margin-left: auto; padding: 0.55rem 1rem; border-radius: 0.6rem; background: var(--cue); color: #fff; text-decoration: none; font-weight: 500; }
@media (prefers-color-scheme: dark) { .open { color: #0f131b; } }

.layout { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .layout { grid-template-columns: 15rem 1fr; } }
nav.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
nav.toc a { display: block; padding: 0.35rem 0.6rem; border-radius: 0.4rem; color: var(--muted); text-decoration: none; font-size: 1rem; }
nav.toc a:hover { color: var(--text); background: var(--code); }
nav.toc a[aria-current='page'] { color: var(--text); background: var(--code); font-weight: 500; }
@media (max-width: 899px) { nav.toc { order: 2; border-top: 1px solid var(--line); padding-top: 1.5rem; } }

article { max-width: 42rem; }
article h1 { font: 700 clamp(2.4rem, 6vw, 3.4rem)/1.05 'Barlow Condensed', sans-serif; margin: 0 0 1rem; }
article h2 { font: 700 1.9rem/1.15 'Barlow Condensed', sans-serif; margin: 2.4rem 0 0.6rem; }
article h3 { font-size: 1.2rem; font-weight: 500; margin: 1.8rem 0 0.4rem; }
article p, article li { color: var(--text); }
article ul, article ol { padding-left: 1.3rem; }
article li + li { margin-top: 0.3rem; }
article code { background: var(--code); padding: 0.1em 0.35em; border-radius: 0.3em; font-size: 0.92em; }
.foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.updated { color: var(--muted); margin-top: -0.4rem; }
article table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 1rem 0; }
article th, article td { text-align: left; vertical-align: top; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); }
article th { font-weight: 500; color: var(--muted); }
@media (max-width: 640px) { article table { display: block; overflow-x: auto; } }
