.toc-container {
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-expand,
.toc-collapse {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-purple);
}

.toc-expand.hide,
.toc-collapse.hide {
    display: none;
}

.toc-title {
    font-size: var(--fs-4);
    font-weight: var(--weight-bold);
}

.toc {
    overflow: auto;
    max-height: 600px;
    transition: max-height 400ms;
}

.toc .toc-subheading {
    font-size: 0.85em;
}


.toc a,
.toc a:hover,
.toc a:visited,
.toc a:active {
    color: var(--color-text);
    text-decoration: none;
    display: block;
    padding: 12px 16px;
    border-left: 1px solid var(--color-gray);
}

.toc .toc-subheading a {
    padding-left: 22px;
}

.toc a:hover {
    color: var(--color-purple);
    border-left: 2px solid var(--color-purple);
    background-color: var(--color-very-light-purple);
}

.toc-container .hide {
    max-height: 0;
    overflow: hidden;
}
