.sidebar {
  max-height: calc(100vh - (var(--ifm-navbar-height) + 2rem));
  overflow-y: auto;
  position: sticky;
  top: var(--ifm-navbar-height);
  padding: 20px 12px 0 0;
  margin-left: -20px;
}

.sidebarHeader {
  font-size: var(--ifm-h4-font-size);
  font-weight: var(--ifm-font-weight-bold);
  padding-left: 12px;
  display: block;
}

.sidebarItemTitle {
  margin: 0.75rem 0 0.5rem;
  color: var(--subtle);
  padding-left: 12px;
  border-bottom: 0.01rem solid var(--ifm-table-border-color);
  padding-bottom: 4px;
}

.sidebarItemList {
  font-size: 13px;
}

.sidebarItem {
  margin-top: 0.1rem;
  line-height: 18px;
}

.sidebarItemLink {
  color: var(--ifm-font-color-base);
  padding: 4px 8px;
  display: block;
  border-left: 4px solid transparent;
  border-radius: 0.25rem;
  line-height: 18px;
}

.sidebarItemLink:hover {
  background: var(--ifm-menu-color-background-active);
  color: var(--ifm-font-color-base);
  text-decoration: none;
}

.sidebarItemLinkActive {
  color: var(--ifm-font-color-base);
  background: var(--ifm-menu-color-background-active);
  border-left-color: var(--ifm-menu-color-active);
  font-weight: 700;
}

@media (max-width: 996px) {
  .sidebar {
    display: none;
  }
}
