/* Keep the fixed catalog inside the viewport and make it scrollable */
.toc-wrapper.toc-fixed {
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0.75rem 1rem 0;
  box-sizing: border-box;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 127, 127, 0.35) transparent;
}

.toc-wrapper.toc-fixed::-webkit-scrollbar {
  width: 4px;
}

.toc-wrapper.toc-fixed::-webkit-scrollbar-thumb {
  background: rgba(127, 127, 127, 0.35);
  border-radius: 2px;
}

.toc-wrapper.toc-fixed::-webkit-scrollbar-track {
  background: transparent;
}