/* Docs-only semantic palette. Light is the default, including without JS. */
:root {
  color-scheme: light;
}
:root[data-docs-theme="light"] {
  color-scheme: light;
}
:root[data-docs-theme="dark"] {
  color-scheme: dark;
}
.beams-theme.docs-page {
  color-scheme: inherit;
  --docs-surface: light-dark(#fcfcfd, #0b0d2c);
  --docs-code-surface: light-dark(#f1f3f7, #090f25);
  --docs-text: light-dark(#182138, #f2f5ff);
  --docs-muted: light-dark(#526078, #a7b5ce);
  --docs-accent: light-dark(#176653, #d4f0e8);
  --docs-outline: light-dark(#ccd2dd, rgb(167 181 206 / 30%));
  --docs-popup: light-dark(#ffffff, color-mix(in srgb, #a7b5ce 16%, #0b0d2c));
  --docs-popup-outline: light-dark(#7b879b, color-mix(in srgb, #a7b5ce 70%, #0b0d2c));
  --docs-warning-color: light-dark(#805207, #e7bf78);
  --docs-reading-color: light-dark(#35425a, color-mix(in srgb, #f2f5ff 55%, #a7b5ce));
  /* Legacy docs components consume these aliases; product tokens stay untouched. */
  --beams-navy: var(--docs-surface);
  --beams-surface: var(--docs-surface);
  --beams-terminal: var(--docs-code-surface);
  --beams-white: var(--docs-text);
  --beams-text: var(--docs-text);
  --beams-muted: var(--docs-muted);
  --beams-text-secondary: var(--docs-muted);
  --beams-mint: var(--docs-accent);
  --beams-action: var(--docs-accent);
  --beams-action-hover: light-dark(#12513f, #e7faf4);
  --beams-signal: light-dark(#176653, #84e6cc);
  --beams-alert: light-dark(#a53026, #ff8c73);
  --beams-purple: light-dark(#6845a1, #c4a9ff);
  --beams-capture: light-dark(#255b9f, #a7c8ff);
  --beams-outline: var(--docs-outline);
  --beams-popup: var(--docs-popup);
  --beams-popup-outline: var(--docs-popup-outline);
  --beams-popup-shadow: 0 12px 32px light-dark(rgb(24 33 56 / 14%), rgb(9 15 37 / 40%));
  --beams-popup-backdrop: light-dark(rgb(24 33 56 / 45%), rgb(9 15 37 / 92%));
  --beams-dropdown: var(--docs-popup);
  --beams-hover-fill: light-dark(rgb(24 33 56 / 5%), rgb(167 181 206 / 7%));
}
.docs-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--beams-outline);
  border-radius: var(--beams-radius-button);
  background: transparent;
  color: var(--beams-text);
}
.docs-theme-toggle:hover {
  background: var(--beams-hover-fill);
  border-color: var(--beams-mint);
}
.docs-theme-toggle .docs-theme-moon,
[data-docs-theme="light"] .docs-theme-toggle .docs-theme-sun {
  display: none;
}
[data-docs-theme="light"] .docs-theme-toggle .docs-theme-moon {
  display: block;
}
.beams-theme.docs-page .docs-site-nav {
  background: var(--docs-surface);
}
.beams-theme.docs-page .docs-site-nav .container {
  width: 100%;
  max-width: var(--docs-shell-width);
  padding-inline: 20px;
  grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
  column-gap: 16px;
}
.docs-site-nav .docs-logo-label {
  color: var(--beams-text);
  font: 400 20px / 1 var(--beams-font-body);
  white-space: nowrap;
}
/* Use the supplied black artwork, not a filtered white logo. */
.docs-site-nav .docs-logo-dark,
[data-docs-theme="dark"] .docs-site-nav .docs-logo-light {
  display: none;
}
.docs-site-nav .docs-logo-light,
[data-docs-theme="dark"] .docs-site-nav .docs-logo-dark {
  display: block;
}
.docs-prose pre {
  color: var(--beams-text) !important;
}
/* Shiki's build-time token palette has stable colors; no runtime highlighter. */
.docs-prose pre span[style*="#a7b5ce" i] {
  color: var(--docs-muted) !important;
}
.docs-prose pre span[style*="#f2f5ff" i] {
  color: var(--docs-text) !important;
}
.docs-prose pre span[style*="#c4a9ff" i] {
  color: light-dark(#6845a1, #c4a9ff) !important;
}
.docs-prose pre span[style*="#d8fdb0" i] {
  color: light-dark(#346323, #d8fdb0) !important;
}
.docs-prose pre span[style*="#f4bf75" i] {
  color: light-dark(#805207, #f4bf75) !important;
}
.docs-prose pre span[style*="#79d9ff" i] {
  color: light-dark(#255b9f, #79d9ff) !important;
}
.docs-prose pre span[style*="#d4f0e8" i] {
  color: var(--docs-accent) !important;
}
.docs-prose pre span[style*="#ff8c73" i] {
  color: var(--beams-alert) !important;
}
@media (max-width: 600px) {
  .beams-theme.docs-page .docs-site-nav .container {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
  }
  .docs-site-nav .nav-logo {
    width: max-content;
  }
  .docs-site-nav .docs-logo-label {
    font-size: 18px;
  }
  .docs-theme-toggle {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }
}
@media (forced-colors: active) {
  .docs-theme-toggle {
    color: ButtonText;
    border-color: ButtonText;
  }
  .docs-prose pre,
  .docs-prose pre span[style] {
    color: CanvasText !important;
  }
}
