:root {
  --bg: #14161a;
  --panel: #181b21;
  --border: #2c313a;
  --text: #d6dae2;
  --dim: #8a93a3;
  --accent: #4fc3f7;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Geist Sans for the "Orbit" wordmark, matching the app's logotype. The woff2/
   woff are copied next to this file by scripts/build-docs.mjs. */
@font-face {
  font-family: 'Geist Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./geist-sans-latin-600-normal.woff2') format('woff2'),
       url('./geist-sans-latin-600-normal.woff') format('woff');
}

.doc-top {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
}
.doc-brand { display: inline-flex; align-items: center; gap: 9px; font-family: 'Geist Sans', 'Segoe UI', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; color: var(--text); }
.doc-brand img { height: 26px; width: auto; filter: invert(1); }
.doc-sub { color: var(--dim); font-size: 13px; }
.doc-applink { margin-left: auto; color: var(--accent); }

.doc-layout { display: flex; max-width: 1040px; margin: 0 auto; }
.doc-nav {
  flex: none; width: 190px;
  padding: 24px 12px;
  border-right: 1px solid var(--border);
  position: sticky; top: 49px; align-self: flex-start;
  height: calc(100vh - 49px);
}
.doc-nav a {
  display: block; padding: 7px 12px;
  color: var(--dim); border-left: 2px solid transparent;
}
.doc-nav a:hover { color: var(--text); text-decoration: none; }
.doc-nav a.active { color: var(--text); border-left-color: var(--accent); background: rgba(79, 195, 247, 0.08); }

.doc-main { flex: 1; min-width: 0; padding: 28px 36px 64px; }
.doc-main h1 { font-size: 30px; margin: 0 0 18px; }
.doc-main h2 { font-size: 20px; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.doc-main h3 { font-size: 16px; margin: 22px 0 8px; }
.doc-main p, .doc-main li { color: var(--text); }
.doc-main code {
  background: #0f1216; border: 1px solid var(--border);
  padding: 1px 5px; font-size: 0.9em; font-family: ui-monospace, monospace;
}
.doc-main pre { background: #0f1216; border: 1px solid var(--border); padding: 12px 14px; overflow-x: auto; }
.doc-main pre code { background: none; border: 0; padding: 0; }
.doc-main kbd {
  background: #232830; border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 6px; font: inherit; font-size: 0.85em;
}
.doc-main table { border-collapse: collapse; margin: 12px 0; }
.doc-main th, .doc-main td { border: 1px solid var(--border); padding: 6px 12px; text-align: left; }
.doc-main blockquote { margin: 14px 0; padding: 8px 14px; border-left: 3px solid var(--accent); color: var(--dim); background: rgba(79,195,247,0.05); }

.doc-foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--dim); font-size: 13px; }

@media (max-width: 720px) {
  .doc-layout { flex-direction: column; }
  .doc-nav { width: auto; height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 4px; }
  .doc-main { padding: 20px; }
}
