/* Nexara Connect docs. Same tokens as web/src/styles.css: warm neutrals, one deep green accent, no gradients. */
:root {
  color-scheme: light dark;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --bg: #F7F6F3; --surface: #FFFFFF; --surface-2: #F2F1ED; --surface-3: #EAE8E3;
  --border: #E5E3DD; --border-strong: #D2CFC7;
  --ink: #1B1F1C; --muted: #777C78;
  --accent: #17593D; --accent-hover: #0F4A31; --accent-soft: #E3EEE7; --accent-text: #15573B;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111312; --surface: #171A18; --surface-2: #1D201E; --surface-3: #252926;
    --border: #272B29; --border-strong: #353A37;
    --ink: #E6E8E6; --muted: #868C87;
    --accent: #3E9E6F; --accent-hover: #4CAE7E; --accent-soft: #1A2E23; --accent-text: #6CCB9A;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font-sans); }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
.top { position: sticky; top: 0; z-index: 2; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.mark { width: 18px; height: 18px; border-radius: 5px; background: var(--accent); display: inline-block; }
.muted { color: var(--muted); font-weight: 400; }
.ver { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.side, .toc { position: sticky; top: 52px; align-self: start; max-height: calc(100vh - 52px); overflow-y: auto; padding: 24px 0; font-size: 14px; }
.nav-group { margin-bottom: 20px; }
.nav-title { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 10px; }
.side a, .toc a { display: block; color: var(--ink); padding: 4px 10px; border-radius: 6px; }
.side a:hover, .toc a:hover { background: var(--surface-2); text-decoration: none; }
.side a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.toc a { color: var(--muted); font-size: 13px; }
.content { padding: 32px 0 64px; min-width: 0; max-width: 780px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 21px; margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
h3 { font-size: 16px; margin: 28px 0 8px; }
h4 { font-size: 14px; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin: 4px 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; }
.table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.note { border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 8px; padding: 12px 16px; margin: 0 0 18px; }
.note p:last-child { margin: 0; }
.foot { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .wrap { grid-template-columns: 220px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 760px) {
  .wrap { display: block; padding: 0 16px; }
  .side { position: static; max-height: none; display: flex; gap: 4px 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-group { margin: 0; display: contents; }
  .nav-title { display: none; }
  .side a { padding: 4px 8px; font-size: 13px; }
  .content { padding-top: 20px; }
  td code { white-space: normal; }
}
