/* Hide the brand text under the sidebar logo (keeps html_title for
   <title> / meta tags / browser tab — only hides the visual repeat). */
.sidebar-brand-text {
  display: none;
}

/* Inject minimalist Lucide-style icons before each sidebar caption.
   Uses CSS mask so the icon inherits the caption text color
   (works in both light and dark modes). */

.sidebar-tree p.caption .caption-text::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.sidebar-tree p.caption:nth-of-type(1) .caption-text::before {
  -webkit-mask-image: url("icons/getting-started.svg");
  mask-image: url("icons/getting-started.svg");
}

.sidebar-tree p.caption:nth-of-type(2) .caption-text::before {
  -webkit-mask-image: url("icons/user-guide.svg");
  mask-image: url("icons/user-guide.svg");
}

.sidebar-tree p.caption:nth-of-type(3) .caption-text::before {
  -webkit-mask-image: url("icons/user-guide-server.svg");
  mask-image: url("icons/user-guide-server.svg");
}

.sidebar-tree p.caption:nth-of-type(4) .caption-text::before {
  -webkit-mask-image: url("icons/operations.svg");
  mask-image: url("icons/operations.svg");
}

.sidebar-tree p.caption:nth-of-type(5) .caption-text::before {
  -webkit-mask-image: url("icons/cookbook.svg");
  mask-image: url("icons/cookbook.svg");
}

.sidebar-tree p.caption:nth-of-type(6) .caption-text::before {
  -webkit-mask-image: url("icons/api-reference.svg");
  mask-image: url("icons/api-reference.svg");
}

.sidebar-tree p.caption:nth-of-type(7) .caption-text::before {
  -webkit-mask-image: url("icons/development.svg");
  mask-image: url("icons/development.svg");
}

.sidebar-tree p.caption:nth-of-type(8) .caption-text::before {
  -webkit-mask-image: url("icons/release-notes.svg");
  mask-image: url("icons/release-notes.svg");
}
