.widget_wm_single_toc:has(.wm-single-toc.is-loading) {
    visibility: hidden;
}

.wm-single-toc {
    direction: inherit;
}

.wm-single-toc.is-loading {
    visibility: hidden;
}

.wm-single-toc__title {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.wm-single-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wm-single-toc.is-numbered .wm-single-toc__list {
    counter-reset: wm-toc;
}

.wm-single-toc__item {
    margin: 0;
    padding: 0;
    counter-increment: wm-toc;
}

.wm-single-toc__link {
    display: block;
    padding: 8px 0;
    padding-inline-start: calc(var(--wm-toc-depth, 0) * 14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 14px;
    line-height: 1.7;
    text-decoration: none;
    transition: color .2s ease, padding-inline-start .2s ease;
}

.wm-single-toc.is-numbered .wm-single-toc__link::before {
    content: counters(wm-toc, ".") ". ";
    opacity: .65;
}

.wm-single-toc__link:hover,
.wm-single-toc__link.is-active {
    color: var(--wd-primary-color, #83b735);
}

.wm-single-toc__link.is-active {
    font-weight: 700;
}

.wm-toc-heading-target {
    scroll-margin-top: 110px;
}
