/* TypeDoc theme override — pulls the @nessyapi/sdk reference into the
   same visual identity as docs-site/index.html. Override only the
   small set of CSS variables TypeDoc exposes (so future TypeDoc
   upgrades don't break us) plus a typography pass that pulls in Inter
   to match the landing-page font stack.

   B&W brand per memory/brand_palette.md — pure black/white with four
   greys. No accent colour. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --color-background: #ffffff;
  --color-background-secondary: #fafafa;
  --color-background-warning: #f5f5f5;
  --color-warning-text: #111111;
  --color-icon-background: #f5f5f5;
  --color-accent: #111111;
  --color-active-menu-item: #f5f5f5;
  --color-text: #111111;
  --color-text-aside: #555555;
  --color-link: #111111;
  --color-focus-outline: #111111;
  --color-ts-keyword: #111111;
  --color-ts-project: #111111;
  --color-ts-module: #111111;
  --color-ts-namespace: #111111;
  --color-ts-class: #111111;
  --color-ts-interface: #111111;
  --color-ts-function: #111111;
  --color-ts-property: #444444;
  --color-ts-method: #444444;
  --color-ts-parameter: #555555;
  --color-comment-tag-text: #555555;
  --color-comment-tag: #f5f5f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #0a0a0a;
    --color-background-secondary: #141414;
    --color-background-warning: #1f1f1f;
    --color-warning-text: #f5f5f5;
    --color-icon-background: #1f1f1f;
    --color-accent: #f5f5f5;
    --color-active-menu-item: #1f1f1f;
    --color-text: #f5f5f5;
    --color-text-aside: #a0a0a0;
    --color-link: #f5f5f5;
    --color-focus-outline: #f5f5f5;
    --color-ts-keyword: #f5f5f5;
    --color-ts-project: #f5f5f5;
    --color-ts-module: #f5f5f5;
    --color-ts-namespace: #f5f5f5;
    --color-ts-class: #f5f5f5;
    --color-ts-interface: #f5f5f5;
    --color-ts-function: #f5f5f5;
    --color-ts-property: #c0c0c0;
    --color-ts-method: #c0c0c0;
    --color-ts-parameter: #a0a0a0;
    --color-comment-tag-text: #a0a0a0;
    --color-comment-tag: #1f1f1f;
  }
}

/* Manual theme override (TypeDoc's built-in toggle sets data-theme on
   <html>; respect those values too so the landing-page choice can be
   carried via shared localStorage if we wire that later). */
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

/* Typography pass — pull TypeDoc into Inter to match the landing. */
html, body, .tsd-page-toolbar, .tsd-navigation, .container,
.tsd-page-title, .col-content, .col-sidebar, .tsd-typography {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
.tsd-typography h1, .tsd-typography h2, .tsd-typography h3,
.tsd-page-title h1, .tsd-page-title h2 {
  letter-spacing: -0.02em;
}
code, pre, .tsd-signature, .tsd-signatures, kbd {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo,
    monospace !important;
}

/* Tighten the brand on a couple of TypeDoc bits the variables don't
   reach. */
.tsd-page-toolbar {
  border-bottom: 1px solid var(--color-text-aside);
}
.tsd-kind-icon {
  /* Default icons are saturated. Desaturate to fit the palette. */
  filter: saturate(0);
}

/* Match the landing's snappier code-block edges. */
.tsd-typography pre, pre.tsd-signature {
  border-radius: 0.5rem;
}
