/* api branch: /api/ docs page only (code samples). Colours come from site.css tokens, so light/dark both work. */
.api-doc h3 { margin: 1.2em 0 .4em; font-size: 1rem; }
.api-code { margin: .4em 0 1em; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: 10px;
  overflow-x: auto; max-height: 420px; font-family: var(--font-mono); font-size: .82rem; line-height: 1.5; color: var(--ink); white-space: pre; }
.api-code code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.api-doc td code, .api-doc p code { word-break: break-all; }
.api-doc td:first-child { white-space: nowrap; }
