.toc {
  overflow-y: auto;
}

.toc > .toc-list {
  overflow: hidden;
  position: relative;
}

.toc > .toc-list li {
  list-style: none;
}

.toc-list {
  margin: 0;
  padding-left: 10px; 
  overflow: hidden;
  list-style: none;
  padding: 0;
}

a.toc-link {
  color: currentColor;
  height: 100%;
  text-decoration: none;
}

.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 {
  display: none;
}

:root {
  --ghost-accent-color: #007bff; 
}

.gh-content {
  position: relative;
  scroll-behavior: smooth; 
}

.gh-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-top: 82px;
  margin-right: 24px;
  grid-column: wide-start / main-start;
}

.gh-toc {
  font-size: 14px;
  line-height: 150%;
  position: sticky;
  top: 5vmin;
  border-right: solid 1px #d3d3d3;
  padding-right: 16px;

  max-height: 90vh;
  overflow-y: scroll;
  scrollbar-width: none; 
}

.gh-toc::-webkit-scrollbar {
  display: none; 
}

.gh-toc::before {
  content: 'On this page:';
  display: block;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

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

.toc-list-item {
  margin-bottom: 1rem;
  color: #949494;
}

.toc-list-item.is-active-li {
  color: var(--ghost-accent-color); 
}

@media (max-width: 768px) {
  .gh-sidebar {
    position: relative;
    margin-top: 0;
    margin-right: 0px;
    grid-column: main-start;
  }

  .gh-toc {
    position: relative;
    border-radius: 16px;
    padding: 16px;
    top: 0;
    border: solid 1px #d3d3d3;
  }

  .toc-list-item.is-active-li {
    color: #000;
  }

  .toc-list-item {
    line-height: 130%;
    color: #000;
  }

  .is-active-link {
    font-weight: 400;
  }
}
