/* docs.css — shared styling for the user-facing guides at /docs/.
   One stylesheet for all three so they read as one manual, not three pages that
   happen to be nearby. Palette matches the console and chat. */

:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: #111826;
  --sunken: #0b1220;
  --rule: #1f2a3a;
  --ink: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --ok: #3fb950;
  --warn: #d29922;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 32px 20px 80px; }

/* --- masthead --------------------------------------------------------------- */
header.top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 28px; border-bottom: 1px solid var(--rule);
}
.brand { font-weight: 700; letter-spacing: .2px; }
.brand a { color: var(--ink); text-decoration: none; }
.crumbs { color: var(--muted); font-size: 13.5px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 6px; text-wrap: balance; }
.lede { color: var(--muted); margin: 0 0 32px; font-size: 16.5px; }

h2 {
  font-size: 1.15rem; margin: 38px 0 10px; padding-top: 18px;
  border-top: 1px solid var(--rule); text-wrap: balance;
}
h3 { font-size: 1rem; margin: 24px 0 8px; color: var(--ink); }
p, li { color: #cdd7e1; }
a { color: var(--accent); }

code {
  font-family: var(--mono); font-size: .88em;
  background: var(--sunken); border: 1px solid var(--rule);
  border-radius: 4px; padding: .1em .35em;
}
pre {
  background: var(--sunken); border: 1px solid var(--rule); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; margin: 14px 0;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.55;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* --- tables ----------------------------------------------------------------- */
.tablewrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  background: var(--sunken); color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }

/* --- callouts ---------------------------------------------------------------
   Two only. A page with five kinds of colored box teaches the reader to skip
   them all. */
.note {
  background: var(--panel); border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 12px 16px; margin: 18px 0;
}
.note.warn { border-left-color: var(--warn); }
.note .label {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); margin-bottom: 4px;
}
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

/* --- misc ------------------------------------------------------------------- */
.muted { color: var(--muted); }
kbd {
  font-family: var(--mono); font-size: .82em; background: var(--panel);
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px;
  padding: .1em .4em; white-space: nowrap;
}
.pill {
  display: inline-block; border-radius: 999px; padding: 1px 9px;
  font-size: 12px; font-weight: 600;
}
.pill.guest { background: #3a2d10; color: var(--warn); }
.pill.member, .pill.admin { background: #12331f; color: var(--ok); }

footer {
  margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 13.5px;
}
