#toc {
    margin-top: 20px;
    padding-top: 10px;
    width: max-content;
    max-width: 95%;
    min-height: 2rem;
    padding: 0.5rem;
    outline: 1px solid #ddd;
    position: relative;
    border-radius: 0.4rem;
}
#toc-heading {
    display: inline-block;
    font-size: 2rem;
    color: var(--heading-font-color);
    margin-bottom: 0.5rem;
    margin-left: 1rem;
    padding-right: 100px
}
#toc #toc-checkbox {
    display: inline-block;
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    opacity: 0.4;
}
#toc #toc-checkbox:hover {
    cursor: pointer;
}
#toc input:not(:checked) ~ ol {
    display: none;
}
#toc ol {
    list-style-position: inside;
    line-height: 1.6em;
}
#toc ol ul {
    margin-left: 1.8rem;
    list-style-position: inside;
    list-style-type: disc;
    line-height: 1.6em;
}
#toc li::marker {
    color: #c8c8c8;
}

#toc a {
    font-size: 1em;
    padding-left: 0.4rem;
    line-height: 1.6em;
}
#toc ul a {
    padding: 0;
}

.darkmode * #toc {
    background-color: var(--dark-mode-1, #2A2C38);
    color: var(--neutrals-0, #FFF);
}