.toc {
    position: sticky;
    top: calc(var(--header-height, 80px) + 1rem);
    max-height: calc(100vh - var(--header-height, 80px) - 2rem);
    overflow-y: auto;
}
.toc-toggle,
.toc-back {
    display: none;
}
.toc-list {
    margin: 0;
    padding: 0;
    padding-right: 1rem;
    border-right: 1px solid var(--neutral-200);
}
.toc-item {
    padding-left: 0px;
    margin-bottom: 0.75rem;
    line-height: 1.25!important;
    font-weight: 400;
}
.toc-item.active {
    
}
.toc-item.active > .toc-link {
    color: var(--dark-green);
}
.toc-link {
    text-decoration: none;
    color: inherit;
    line-height: 1;
    color: var(--neutral-700);
    transition: all 0.2s ease;
}
@media (max-width: 991.98px) {
    .toc {
        position: fixed;
        top: var(--header-height, 80px);
        left: 0;
        right: 0;
        z-index: 1025;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        max-height: none;
        overflow: visible;
        margin: 0;
        padding: 0;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }
    .toc.toc-visible {
        transform: translateY(0);
        pointer-events: auto;
    }
    .toc-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: auto;
        background: none;
        border: none;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        color: inherit;
    }
    .toc-toggle svg {
        transition: transform 0.2s;
    }
    .toc-open .toc-toggle svg {
        transform: rotate(180deg);
    }
    .toc-back {
        font-size: 0.8rem;
        text-decoration: none;
        color: inherit;
        font-weight: 600;
    }
    .toc-list {
        display: none;
        border-top: 1px solid var(--neutral-200);
        border-right: 0px;
    }
    .toc-open .toc-list {
        display: block;
        max-height: calc(100vh - var(--header-height, 80px) - 50px);
        overflow-y: auto;
    }
    .toc-item {
        border-left: none;
        padding-left: 0;
    }
}