/* Permanently dark sidebar, regardless of the light/dark content toggle.
   furo scopes its own color variables on body[data-theme=...] rather than
   :root, so we must match that scope (and load after furo.css) to win. */
body[data-theme="light"],
body[data-theme="dark"],
body:not([data-theme="light"]) {
  --color-sidebar-background: #343131;
  --color-sidebar-background-border: #4a4646;

  --color-sidebar-caption-text: #b8b3b3;

  --color-sidebar-item-background: transparent;
  --color-sidebar-item-background--hover: #454141;
  --color-sidebar-item-background--current: #514c4c;
  --color-sidebar-item-expander-background: transparent;
  --color-sidebar-item-expander-background--hover: #454141;

  --color-sidebar-link-text: #ffffff;
  --color-sidebar-link-text--top-level: #ffffff;
  --color-sidebar-brand-text: #ffffff;

  --color-sidebar-search-background: #3d3939;
  --color-sidebar-search-background--focus: #454141;
  --color-sidebar-search-border: #514c4c;
  --color-sidebar-search-foreground: #ffffff;
  --color-sidebar-search-icon: #cfcaca;
  --color-sidebar-search-text: #ffffff;
}

/* Sidebar links never turn purple, before or after being visited. */
.sidebar-tree :link,
.sidebar-tree :visited {
  color: var(--color-sidebar-link-text);
}

/* The brand name is redundant with the page's own intro paragraph — hide it,
   keep the logo icon and the browser-tab title (html_title) untouched. */
.sidebar-brand-text {
  display: none;
}
