/* dashboard/docs/style.css — typography + chrome for rendered docs.
 * Loaded by each dashboard/docs/<slug>.html standalone page (via <link>)
 * which is then iframe'd by the dashboard's DOCS tab.
 *
 * Variables are inlined here (not :root in the parent dashboard) because
 * the iframe is its own document and doesn't inherit the parent's CSS.
 */

:root {
  --bg-0: #05080a;
  --bg-1: #0a0e10;
  --bg-2: #0e1614;
  --emerald: #00c957;
  --emerald-bright: #3ddc84;
  --line: rgba(0, 201, 87, 0.14);
  --line-strong: rgba(0, 201, 87, 0.28);
  --text-0: #e9f7ee;
  --text-1: #b9d3c2;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--text-0);
}

body.docs-content {
  font-family: 'Exo 2', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding: 32px 36px 80px 36px;
  max-width: 80ch;
  margin: 0 auto;
}

body.docs-content h1,
body.docs-content h2 {
  font-family: 'Orbitron', system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: var(--emerald-bright);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
body.docs-content h1 { font-size: 22px; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.4em; margin-top: 0; }
body.docs-content h2 { font-size: 17px; }
body.docs-content h3 {
  font-family: 'Exo 2', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-0);
  margin-top: 1.4em;
  margin-bottom: 0.4em;
  letter-spacing: 0.02em;
}
body.docs-content h4 { font-size: 14px; font-weight: 600; color: var(--text-1); margin-top: 1.2em; }

body.docs-content p { margin: 0.6em 0; }

body.docs-content a {
  color: var(--emerald-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 201, 87, 0.4);
}
body.docs-content a:hover { text-decoration-color: var(--emerald-bright); }

body.docs-content code {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12.5px;
  background: rgba(0, 201, 87, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--text-0);
}

body.docs-content pre {
  background: rgba(0, 201, 87, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 1em 0;
}
body.docs-content pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: var(--text-0);
}

body.docs-content blockquote {
  border-left: 3px solid var(--emerald-bright);
  padding-left: 14px;
  margin: 1em 0;
  color: var(--text-1);
  font-style: italic;
}

body.docs-content ul,
body.docs-content ol {
  margin: 0.6em 0;
  padding-left: 1.6em;
}
body.docs-content li { margin: 0.2em 0; }
body.docs-content li > input[type=checkbox] {
  margin-right: 6px;
  accent-color: var(--emerald-bright);
}

body.docs-content table {
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 13px;
}
body.docs-content th,
body.docs-content td {
  border: 1px solid var(--line);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}
body.docs-content th {
  background: rgba(0, 201, 87, 0.08);
  font-family: 'Orbitron', system-ui, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--emerald-bright);
}

body.docs-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

body.docs-content .docs-diagram {
  margin: 1.5em 0;
  padding: 0;
  text-align: center;
}
body.docs-content .docs-diagram img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
}
