.toc{overflow-y:auto}.toc>.toc-list{overflow:hidden;position:relative}.toc>.toc-list li{list-style:none}.js-toc{overflow-y:hidden}.toc-list{margin:0;}a.toc-link{color:currentColor;height:100%}.is-collapsible{max-height:1000px;overflow:hidden;transition:all 300ms ease-in-out}.is-collapsed{max-height:0}.is-position-fixed{position:fixed !important;top:0}.is-active-link{font-weight:700}.toc-link::before{background-color:#eee;content:" ";display:inline-block;height:inherit;left:0;margin-top:-1px;position:absolute;width:2px}.is-active-link::before{background-color:#54bc4b}


.content {
    position: relative;
    .toc-list {
      margin: unset;
    }
 }

.gh-toc {
  > .toc-list {
    position: relative;
  }
  .toc-list {
    list-style: none;
  }
}

.toc-list {
  overflow: hidden;
  margin: unset;
}

.gh-sidebar {
  display: none;
  font-size: 16px;
}
.gh-sidebar .gh-toc a {
  text-decoration: none;
}
.gh-sidebar .gh-toc, .gh-sidebar .gh-toc li a {
  color: var(--color-toc-text);
}
.gh-sidebar .gh-toc li.is-active-li, .gh-sidebar .gh-toc li a.is-active-link {
  color: var(--color-base-text-2);
}

// Firefox doesn't support the has selector, so we also do this in JavaScript (which unfortunately
// sometimes causes a jump of content on page load, in Firefox).
@media (min-width: 1221px) and (max-width: 1500px) {
  main:has(.toc-list) {
    margin: 0 2rem 0 20rem;
  }
}
@media (min-width: 960px) and (max-width: 1220px) {
  // Firefox doesn't support the has selector, so we also do this in JavaScript (which unfortunately
  // sometimes causes a jump of content on page load, in Firefox).
  main:has(.toc-list) {
    margin: 0 2rem 0 16rem;
  }
}

@media (min-width: 960px) {
  .gh-sidebar {
    display: block;
    position: absolute;
    top: 70px;
    max-height: 95vh;
    overflow-y: auto;
    transform: translateX(-18rem) translateY(-40px); /* translateY(-40px) ensures the TOC can scroll to the bottom even on very long pages */
    width: 16rem;
    border: none;
    background-color: unset;
 }
}

@media (min-width: 1600px) {
  .gh-sidebar {
    transform: translateX(-22rem) translateY(-40px); /* translateY(-40px) ensures the TOC can scroll to the bottom even on very long pages */
    width: 18rem;
  }
}

.gh-toc .is-active-link::before {
    background-color: var(--ghost-accent-color);
}
