/* Docs on the control-room system (tokens from /app/app.css). */
body { font-size: 15px; }
.topbar { background: var(--side); color: var(--side-text); border-bottom: 1px solid var(--side-line); position: sticky; top: 0; z-index: 5; }
.topbar .in { max-width: 1180px; margin: 0 auto; height: 58px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.topbar .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 16px/1 var(--display); }
.topbar .logo .orb { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd27a, var(--gold) 55%, #8a5300); }
.topbar .logo small { font: 500 9.5px/1 var(--mono); color: var(--gold); border: 1px solid #4a3a1a; padding: 3px 5px; border-radius: 3px; letter-spacing: 0.08em; }
.topbar nav { display: flex; gap: 18px; font-size: 13.5px; }
.topbar nav a { color: var(--side-dim); text-decoration: none; }
.topbar nav a:hover { color: var(--side-text); }
.topbar .right { margin-left: auto; }
.topbar .right .btn { background: var(--gold); border-color: #c98208; color: var(--gold-ink); font-weight: 600; }
.loop { text-align: center; padding: 28px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }

.docs { max-width: 1180px; margin: 0 auto; padding: 44px 24px 80px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs nav.toc { position: sticky; top: 90px; align-self: start; display: grid; gap: 4px; font-size: 13.5px; }
.docs nav.toc a { color: var(--ink-2); text-decoration: none; padding: 3px 0 3px 10px; border-left: 2px solid transparent; }
.docs nav.toc a:hover { color: var(--ink); border-left-color: var(--gold); }
.docs nav.toc .group { margin-top: 14px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-left: 10px; }
.docs article { max-width: 760px; }
.docs article h1 { font: 800 clamp(2.2rem, 4vw, 3rem)/1.05 var(--display); letter-spacing: -0.025em; margin-bottom: 12px; }
.docs article h2 { font: 700 24px/1.2 var(--display); margin: 44px 0 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.docs article h3 { font: 600 16px/1.3 var(--ui); margin: 26px 0 8px; }
.docs article p, .docs article li { color: var(--ink-2); line-height: 1.65; }
.docs article p { margin: 10px 0; }
.docs article ul, .docs article ol { margin: 10px 0 10px 22px; display: grid; gap: 6px; }
.docs article a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.docs article code { font-family: var(--mono); font-size: 0.85em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.docs .lede { font-size: 17px; color: var(--ink-2); }
.docs table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.docs th, .docs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs td { color: var(--ink-2); }
.docs .pill { text-transform: none; }
.docs .pill.live { background: var(--live-soft); border-color: #b9dfc8; color: var(--live); }
.docs .pill.building { background: var(--wait-soft); border-color: #efd29e; color: var(--wait); }
.docs .pill.planned { background: var(--panel-2); color: var(--ink-3); }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--gold); background: var(--panel); padding: 14px 18px; border-radius: var(--r); margin: 18px 0; }
.callout p { margin: 4px 0; }
.steps { counter-reset: s; list-style: none; margin-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 13px var(--mono); }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs nav.toc { position: static; } }
