.selective-toc-container {
    background-color: #0C1014;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #272727;
}

.toc-main-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
    color: #FFFFFF;
    font-size: 16px;
}

.toc-block {
    margin-bottom: 12px;
    border-bottom: 1px solid #17181E;
    padding-bottom: 10px;
}

.toc-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Indent H3 Headings */
.toc-block.toc-level-h3 {
    padding-left: 20px;
}

/* Indent H4 Headings */
.toc-block.toc-level-h4 {
    padding-left: 40px;
}

/* Indent H5 Headings */
.toc-block.toc-level-h5 {
    padding-left: 60px;
}

/* Indent H6 Headings */
.toc-block.toc-level-h6 {
    padding-left: 80px;
}

.toc-link {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.toc-link:hover {
    color: #FF4122;
}

.toc-empty {
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* Landscape orientation */
.selective-toc-dir-landscape .selective-toc-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.selective-toc-dir-landscape .toc-main-title {
    margin-bottom: 0;
    margin-right: 15px;
}

.selective-toc-dir-landscape .toc-dynamic-content-3c343386 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.selective-toc-dir-landscape .toc-block {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    padding-left: 0; /* Override indent for landscape */
}

.selective-toc-dir-landscape .toc-block::after {
    content: "|";
    color: #888;
    margin-left: 10px;
}

.selective-toc-dir-landscape .toc-block:last-child::after {
    content: "";
    margin-left: 0;
}
