/* Styles the HTML manual at /docs/ to match the application (tokens from the app's design). */
:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0b1730;
  --muted: #55657f;
  --border: #e1e7f0;
  --link: #032048;
  --accent: #f29a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070e1c;
    --surface: #0d1729;
    --text: #e6ecf5;
    --muted: #96a5bf;
    --border: #1c2a45;
    --link: #f8bc4e;
    --accent: #f5a623;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.manual {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 46rem);
  gap: 3rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 6rem;
}

@media (max-width: 860px) {
  .manual { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem 1rem 4rem; }
}

#TOC { position: sticky; top: 2rem; align-self: start; font-size: 0.9rem; }
#TOC ul { list-style: none; margin: 0; padding-left: 0.9rem; }
#TOC > ul { padding-left: 0; }
#TOC a { color: var(--muted); text-decoration: none; display: block; padding: 0.15rem 0; }
#TOC a:hover { color: var(--text); }

.brand { display: inline-flex; margin-bottom: 1.5rem; }
.brand img { display: block; height: 40px; width: auto; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.25; }
h1 { font-size: 2rem; margin: 2.5rem 0 1rem; }
h1:first-child { margin-top: 0; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.header-section-number { color: var(--muted); margin-right: 0.5rem; font-weight: 500; }
a { color: var(--link); }
code, kbd { font: 0.875em ui-monospace, 'SF Mono', Menlo, monospace; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 0.1em 0.35em; }
