
/* Make the main brand link a flex container to stack logo and text vertically */
.sidebar-brand.centered {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.sidebar-logo-container {
  padding: 0;
  width: 85%;
  max-width: 180px;
}

.sidebar-brand-text {
  width: 95%; 
  max-width: 200px; 
}

/* Styling for the <text> element inside the SVG */
.sidebar-brand-text text {
  font-weight: bold;
  font-family: var(--font-stack-sans-serif, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif);
  fill: var(--color-brand-content, var(--color-foreground-primary));
  font-size: 32px;
}
.sidebar-bottom-menu {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: var(--color-sidebar-background);
  border-top: 1px solid var(--color-sidebar-search-border);
  z-index: 1000;
}

.sidebar-bottom-menu .current-info {
  padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal);
  text-align: center;
  cursor: pointer;
  color: var(--color-foreground-primary);
}

.sidebar-bottom-menu .current-info span {
  margin: 0 0.5em;
}

.sidebar-bottom-menu .dropdown-panel {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  background: var(--color-sidebar-background);
  border-top: 1px solid var(--color-sidebar-search-border);
}

.sidebar-bottom-menu:hover .dropdown-panel {
  display: block;
}

.sidebar-bottom-menu .section {
  padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal);
}

.sidebar-bottom-menu .section dt {
  color: var(--color-foreground-secondary);
  margin-bottom: 0.5em;
  font-weight: bold;
}

.sidebar-bottom-menu .section dd {
  margin: 0;
}

.sidebar-bottom-menu .section dd a {
  display: block;
  padding: 0.3em 0;
  color: var(--color-sidebar-link-text--top-level);
  text-decoration: none;
}

.sidebar-bottom-menu .section dd a:hover {
  color: var(--color-sidebar-link-text--top-level--hover);
}

.sidebar-bottom-menu .section dd a.active {
  font-weight: bold;
}

.sidebar-bottom-menu .section.version dd {
  max-height: calc(3 * (1.6em + 0.6em)); /* 3 rows */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: none;
}
.sidebar-bottom-menu .section.version dd:hover {
  scrollbar-width: thin;
  scrollbar-color: var(--color-foreground-secondary) transparent;
}

.sidebar-bottom-menu .section.version dd::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.sidebar-bottom-menu .section.version dd:hover::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.sidebar-bottom-menu .section.version dd:hover::-webkit-scrollbar-thumb {
  background-color: rgba(128,128,128,0.35);
  border-radius: 6px;
}
.sidebar-bottom-menu .section.version dd:hover::-webkit-scrollbar-thumb:hover {
  background-color: rgba(128,128,128,0.55);
}