/* ============================================================================
   BigBrotr Documentation — Minimal Theme Overrides
   Palette from https://github.com/BigBrotr/website
   ============================================================================ */

/* ---------------------------------------------------------------------------
   Brand tokens — Light
   --------------------------------------------------------------------------- */

:root {
  --bb-accent: #6d28d9;
  --bb-surface: #f5f3ff;
  --bb-surface-elevated: #ffffff;
  --bb-text-muted: #585f6d;
  --bb-border: #ddd6fe;
  --bb-radius: 0.75rem;
  --md-primary-fg-color: #6d28d9;
  --md-primary-fg-color--light: #7c3aed;
  --md-primary-fg-color--dark: #5b21b6;
  --md-accent-fg-color: #7c3aed;
}

/* ---------------------------------------------------------------------------
   Brand tokens — Dark
   --------------------------------------------------------------------------- */

[data-md-color-scheme="slate"] {
  --bb-accent: #7c3aed;
  --bb-surface: #151419;
  --bb-surface-elevated: #25272e;
  --bb-text-muted: #8e95a2;
  --bb-border: #3b3f4a;
  --md-primary-fg-color: #7c3aed;
  --md-primary-fg-color--light: #8b5cf6;
  --md-primary-fg-color--dark: #6d28d9;
  --md-accent-fg-color: #8b5cf6;
}

/* ---------------------------------------------------------------------------
   Feature cards
   --------------------------------------------------------------------------- */

.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--bb-accent);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

/* ---------------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------------- */

.md-typeset table:not([class]) {
  border-radius: var(--bb-radius);
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Code blocks
   --------------------------------------------------------------------------- */

.md-typeset code {
  border-radius: 0.375rem;
}

.md-typeset pre > code {
  border-radius: var(--bb-radius);
}

/* ---------------------------------------------------------------------------
   Admonitions
   --------------------------------------------------------------------------- */

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--bb-radius);
}

/* ---------------------------------------------------------------------------
   Content tabs
   --------------------------------------------------------------------------- */

.md-typeset .tabbed-set {
  border-radius: var(--bb-radius);
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Search
   --------------------------------------------------------------------------- */

.md-search__form {
  border-radius: var(--bb-radius);
}

/* ---------------------------------------------------------------------------
   Mermaid
   --------------------------------------------------------------------------- */

.mermaid {
  text-align: center;
}

/* ---------------------------------------------------------------------------
   API reference (mkdocstrings)
   --------------------------------------------------------------------------- */

.doc-heading {
  border-bottom: 2px solid var(--md-primary-fg-color);
  padding-bottom: 0.4em;
}

.doc-signature {
  font-size: 0.85em;
}

.doc-source-link {
  opacity: 0.6;
  transition: opacity 0.2s;
}

.doc-source-link:hover {
  opacity: 1;
}

.doc-md-description dt {
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Logo
   --------------------------------------------------------------------------- */

.md-header__button.md-logo img {
  height: 1.5rem;
}
