/*
Use !important directives to override styling in FlexedAgain theme.
TODO: add into less/sass toolchain in the theme itself
 */

.toc {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 250px;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(248, 249, 250, 0.2) !important; /* Semi-transparent background */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toc, .toc * {
    font-size: 1.0em !important; /* Body text is 1.02em */
}

.toc ul {
    line-height: 1.2; /* Body text is 1.4 */
}

/* Avoid overlap with content text */
@media (max-width: 1500px) {
    .toc {
        display: none; /* Completely hide on smaller screens */
    }
}