
/* * Table of Contents on side */
.toc {
    display: block;
    position: fixed;
    left: 45%;
    top: 25%;
    width: 250px;
    margin-left: 570px;
    overflow-y: auto;
    max-height: 60%;
    padding: 0;
}
.toc li {
    display: list-item;
    list-style: none;
}

.toc ul>li {
    display: list-item;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.toc ul>li>ul {
    display: list-item;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.toc ul>li>ul>li {
    display: list-item;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}
.toc ul>li>ul>li>ul>li {
    display: list-item;
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
}
.toc ul {              /* Add left padding for headings in TOC */
    display: list-item;
    padding-left: 1rem;
    margin: 0;
}
.toc nav>ul {           /* The highest level heading in a blog post is level-2 */
    padding-left: 0;    /* The level-1 heading is reserved for the blog title. */
    display: inline-item;
    /* So do not add any padding for level-1 heading, as that will never show*/
    /* up in the TOC. */
}
.toc a {
    text-decoration: none;
}
.toc a:hover {
    color: gray;
}
.toc a.current {
    color: gray;
    font-weight: bold;
}
/* Override the bullets customization done above, just for list items*/
/* in .toc class */
.toc ul:not(.catlist):not(.navbar):not(.post-list) li:before {
    content: '';
}
.toc .back-to-top {             /* Back to top link */
    font-size: 0.8rem;
    padding-left: 1rem;
}

@media screen and (min-width: 1400px) {
    .toc {
        display: block;
    }
}
