/* Styles for Posts Table of Content plugin */
.posts-toc-container {
    border: 1px solid #e0e0e0;
    padding: 1rem;
    margin: 1rem 0;
    /* Further increase the base font size for readability */
    font-size: 1.1rem;
    background: #f9f9f9;
    max-height: 80vh;
    overflow-y: auto;
}
.posts-toc-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    /* Larger, bolder title for better visibility */
    font-size: 1.4rem;
    font-weight: 700;
}
.posts-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.posts-toc-item {
    margin: 0.2rem 0;
    line-height: 1.4;
}
.posts-toc-item > a {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}
.posts-toc-number {
    margin-right: 0.5rem;
    font-weight: 500;
}
/* Nested list indentation */
.posts-toc-list.level-2 {
    margin-left: 1rem;
}
.posts-toc-list.level-3 {
    margin-left: 2rem;
}
/* Collapse styles */
.posts-toc-item.has-children > a::before {
    content: '\25B6'; /* right-pointing triangle */
    display: inline-block;
    margin-right: 0.3rem;
    transform: rotate(0deg);
    transition: transform 0.2s ease;
}
.posts-toc-item.has-children:not(.collapsed) > a::before {
    transform: rotate(90deg);
}
.posts-toc-item.collapsed > ol {
    display: none;
}
/* Highlight current section */
.posts-toc-item > a.active {
    font-weight: bold;
    color: #0073aa;
}

/*
 * Differentiated typography and colour for various heading levels in the table of contents.
 * Top-level items (H1) are boldest and largest; deeper levels decrease in size.
 * Colour palette uses professional shades of blue and green.
 */
.posts-toc-item.level-1 > a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A4FA3; /* Navy blue: reliability and trust */
}
.posts-toc-item.level-2 > a {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007A8C; /* Deep teal: balanced blue‑green */
}
.posts-toc-item.level-3 > a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2CA58D; /* Sea green: fresh accent */
}
/* Hide TOC on mobile */
@media (max-width: 768px) {
    .posts-toc-container {
        display: none;
    }
}