
/* TOC container and alignment */

.toc {
    overflow-x: hidden;
    font-size: 0.875rem !important;
}

.toc .row {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Common TOC link styles */
.toc .toc-link, .toc .toc-header {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    /* text-overflow: ellipsis;
    white-space: nowrap; */
    border-left: 3px solid transparent;
    text-decoration: none;
    border-radius: 5px;
    padding: 5px;
    padding-right: 0.25rem!important;
    margin: 0;
    margin-right: 0.5rem !important;
    font-size: 0.875rem !important;
}

.toc .toc-link {
    text-overflow: ellipsis;
    white-space: nowrap;
}



.toc .toc-link  {
    cursor: pointer;
    color: var(--bs-primary-text) !important;

}

.toc .toc-header {
    pointer-events: none;
    color: var(--bs-secondary-text) !important;
}

.toc .toc-link.disabled  {
    pointer-events: none;
    color: var(--primary-400) !important;
}



.toc .toc-link:hover {
    background-color: var(--primary-100);
    border-left-color: var(--primary-300);
}

.toc .toc-link.active {
    border-left-color: var(--primary-500);
}

/* TOC indentation levels - using padding-left to ensure consistent width */
.toc .indent-0 { padding-left: 0.5rem; }
.toc .indent-1 { padding-left: 1.0rem; }
.toc .indent-2 { padding-left: 2.0rem; font-style: none;}
.toc .indent-3 { padding-left: 2.5rem; font-size: 1.0em;}
.toc .toc-header {font-weight: bold;}



/* TOC Sidebar with fixed width */
.toc-sidebar {
    width: 310px;
    flex-shrink: 0;
}
