/* imgoji theme for TypeDoc: warm paper, monochrome chrome (the emoji carry the colour). */
:root {
  --light-color-background: #f5f5f3;
  --light-color-background-secondary: #faf9f5;
  --light-color-background-active: #efede5;
  --light-color-text: #1b1a17;
  --light-color-text-aside: #6a675f;
  --light-color-accent: #1b1a17;
  --light-color-link: #1b1a17;
  --light-color-active-menu-item: #efede5;
  --light-color-contrast-text: #f5f5f3;
  /* mute the colourful kind badges toward warm grey (letter still distinguishes them) */
  --light-color-ts-class: #1b1a17;
  --light-color-ts-method: #1b1a17;
  --light-color-ts-module: #1b1a17;
  --light-color-ts-function: #6a675f;
  --light-color-ts-variable: #6a675f;
  --light-color-ts-property: #6a675f;
  --light-color-ts-interface: #6a675f;
  --light-color-ts-enum: #6a675f;
  --light-color-ts-type-alias: #6a675f;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }

/* TypeDoc puts contrast-text on the light background-active when the search box
   is focused; with our warm-paper palette that is light-on-light. Keep typed
   text legible: ink on the light active fill. */
#tsd-search-input:focus-visible { color: var(--color-text); }

/* imgoji site-header (matches /docs), injected via customJs */
:root {
  --line: #e4e2db; --line-2: #cfccc2; --muted: #6a675f; --ink: #1b1a17;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.site-header { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; max-width:720px; margin-inline:auto; padding:22px 20px 14px; border-bottom:1px solid var(--line); }
.brand { font-family:var(--mono); font-weight:700; font-size:1.05rem; letter-spacing:-0.01em; }
.brand .mark { margin-right:0.15em; }
.site-header nav { display:flex; gap:0.9rem; }
.site-header nav a { font-family:var(--mono); font-size:0.8rem; color:var(--muted); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-2); }
.site-header nav a:hover { color:var(--ink); text-decoration-color:var(--ink); }

/* replace TypeDoc's toolbar with our .site-header; relocate search + theme into it */
.tsd-page-toolbar { display: none; }
.site-header .header-right { display: flex; align-items: center; gap: 1.2rem; }
.header-tools { display: flex; align-items: center; gap: 0.6rem; }
.header-tools .tsd-widget { display: inline-flex; color: var(--muted); border: none; background: none; cursor: pointer; }
.header-tools .tsd-widget:hover { color: var(--ink); }
.header-tools .tsd-theme-toggle { display: inline-flex; align-items: center; gap: 0.3rem; }
.header-tools .tsd-theme-toggle .settings-label { display: none; }
.header-tools #tsd-theme { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); background: transparent; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 3px; }

/* pin light theme: hide TypeDoc's theme toggle (data-theme is forced to light) */
.tsd-theme-toggle { display: none; }
