.toc-menu {
  color: var(--toc-font-color);
}

.toc.sidebar .toc-menu {
  max-width: 474px;
  margin-top: -2.1rem;
  margin-right: 0.75rem;
  position: sticky;
  top: var(--toc-top);
}

.toc .toc-menu h3 {
  color: var(--toc-heading-font-color);
  font-size: large;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
  margin: 0 -0.5px;
  padding-bottom: 0.25rem;
}

.toc.sidebar .toc-menu h3 {
  display: flex;
  flex-direction: column;
  height: 2.5rem;
  justify-content: flex-end;
  margin-bottom: 1.2rem;
}

@media screen and (max-width: 1023.5px) {
  .toc.embedded .toc-menu h3 {
    margin-bottom: 1.25rem;
  }
}

.toc .toc-menu ul {
  font-size: calc(15 / var(--rem-base) * 1rem);
  line-height: var(--toc-line-height);
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc.sidebar .toc-menu ul {
  max-height: var(--toc-height);
  overflow-y: auto;
  overscroll-behavior: none;
}

@supports (scrollbar-width: none) {
  .toc.sidebar .toc-menu ul {
    scrollbar-width: none;
  }
}

.toc .toc-menu ul::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.toc .toc-menu li {
  margin: 0;
}

.toc .toc-menu li[data-level="2"] a {
  padding-left: 1.25rem;
}

.toc .toc-menu li[data-level="3"] a {
  padding-left: 2rem;
}

.toc .toc-menu li[data-level="4"] a {
  padding-left: 2.75rem;
}

.toc .toc-menu li[data-level="5"] a {
  padding-left: 3.5rem;
}

.toc .toc-menu a {
  font-family: 'Inter', sans-serif;
  font-size: medium;
  font-weight: 300;
  color: inherit;
  border-left: 1px solid var(--toc-border-color);
  display: inline-block;
  padding: 0.6rem 0 0.6rem 0.8rem;
  text-decoration: none;
  transition: border-left-color 0.3s ease, border-left-width 0.3s ease;
}

@media screen and (max-width: 48rem) {
  .toc .toc-menu a {
    color: var(--link-font-color);
  }
}

.sidebar.toc .toc-menu a {
  display: block;
  outline: none;
}

.toc.embedded .toc-menu a {
  display: block;
}

.toc .toc-menu a:hover {
  color: var(--link-font-color);
}

.toc .toc-menu a.is-active {
  border-left-color: #00B25E;
  border-left-width: 2px;
  color: #161616;
}

.sidebar.toc .toc-menu a:focus {
  background: var(--panel-background);
}
