/**
 * Single Post Styles - Table of Contents
 * Extracted from single.php for caching
 */

#toc {
    font-family: sans-serif;
    max-width: 100%;
    position: sticky;
    top: 120px;
}

#toc .h2-item {
    margin-bottom: 10px;
}

#toc .h2-header {
    cursor: pointer;
    font-weight: bold;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#toc>div {
    border-bottom: 1px solid #eee;
    margin: 0 !important;
    padding: 15px;
}

#toc>div.active {
    background: #E9E8FC;
    border-radius: 8px;
}

#toc .h2-header.no-children {
    cursor: pointer;
    justify-content: flex-start;
}

#toc .h3-list {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
    display: none;
}

#toc .h3-list li {
    margin: 4px 0;
}

.site-wrapper {
    overflow: visible;
}

#toc a {
    text-decoration: none;
    color: #333;
}

#toc>div>div {
    padding: 0;
}

.post-content ul {
    padding-left: 0;
}

#toc a.active {
    font-weight: bold;
    color: #0066ff;
}

#toc .open .h3-list {
    display: block;
    padding: 0;
}

#toc>div.has-children.active {
    background: transparent;
}

#toc .h3-list li {
    margin: 4px 0;
    padding: 3px 12px;
    border-radius: 10px;
    line-height: 26px;
    font-size: 17px;
    list-style: none;
    padding-left: 25px;
    position: relative;
}

#toc .h3-list li.active {
    background: #E9E8FC;
}

#toc .h3-list li::before {
    position: absolute;
    content: "";
    top: 12px;
    left: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #24284d;
}

@media (max-width: 767px) {
    #toc {
        margin-bottom: 30px;
    }
}