.h2-toc-container {
    background: #f9f9f9;
    border-radius: 8px;
    box-sizing: border-box;
}
.h2-toc-container.is-sticky {
    position: fixed;
}
.h2-toc-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
}
.h2-toc-content {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
}
.h2-toc-scroll-area {
    overflow-y: auto;
    /* ensure it doesn't push past viewport */
    max-height: calc(100vh - 80px); 
    padding-right: 10px;
}
.h2-toc-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.h2-toc-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.h2-toc-scroll-area::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.h2-toc-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #999; 
}

.h2-toc-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}
.h2-toc-list li {
    margin-bottom: 10px;
}
.h2-toc-list a {
    text-decoration: none;
    transition: color 0.2s ease;
}
.h2-toc-list li.selected a {
    font-weight: bold;
}

.h2-toc-mobile-wrap {
    display: none;
    width: 100%;
}
.h2-toc-mobile-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}