/* Table of Contents Styles */
.toc-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 10rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    margin-top: 10rem;
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-list a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toc-list a:hover {
    color: #0d6efd;
}

/* Indentation for nested headings */
.toc-list .h2 { padding-left: 1rem; }
.toc-list .h3 { padding-left: 2rem; }
.toc-list .h4 { padding-left: 3rem; }
.toc-list .h5 { padding-left: 4rem; }
.toc-list .h6 { padding-left: 5rem; }

/* Active state for current section */
.toc-list a.active {
    color: #0d6efd;
    font-weight: 500;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .toc-container {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 1.5rem;
        padding: 1rem;
        margin-top: 0;
    }
    
    .toc-title {
        font-size: 1.1rem;
    }
    
    .toc-list a {
        font-size: 0.9rem;
    }
    
    /* Reduce indentation on mobile */
    .toc-list .h2 { padding-left: 0.75rem; }
    .toc-list .h3 { padding-left: 1.5rem; }
    .toc-list .h4 { padding-left: 2.25rem; }
    .toc-list .h5 { padding-left: 3rem; }
    .toc-list .h6 { padding-left: 3.75rem; }
}

/* Removed #main-content-column scroll styles as we now scroll the whole page */ 