/* ===== SCROLL SPY STYLES ===== */

/* Table of Contents scroll spy styles */
.toc-content {
    height: 100%;
}

.toc-wrapper {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.toc ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.toc a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    margin: 0.125rem 0;
}

.toc a:hover {
    color: var(--link-color);
    background-color: var(--bg-secondary);
    border-left-color: var(--border-color);
}

.toc a.active {
    color: var(--link-color);
    background-color: var(--bg-tertiary);
    border-left-color: var(--link-color);
    font-weight: 600;
    transform: translateX(2px);
}

.toc > ul {
    padding-left: 0;
}

/* TOC nested levels */
.toc ul ul {
    padding-left: 1.25rem;
}

.toc ul ul a {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.toc ul ul ul a {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}
