#cd-toc-container {
    max-height: 400px; /* Adjust height as needed */
    overflow-y: auto;
    padding-right: 10px; /* Prevent content cutoff */
    position: relative;
  }
.cd-toc-nav {
    margin: 1em 0;
    padding: 1em;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    font-family: sans-serif;
}

.cd-toc-list {
    list-style: none;
    padding-left: 0;
}

.cd-toc-heading-level-3,
.cd-toc-heading-level-4,
.cd-toc-heading-level-5,
.cd-toc-heading-level-6 {
    padding-left: 10px;
}

.cd-toc-link {
    display: block;
    transition: all 0.2s ease;
}

.cd-toc-link.active {
    font-weight: bold !important;
    background: var(--Gradient-fill,linear-gradient(93deg,#5035bf 6.23%,#e15a18 111.4%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
