.nimbleaf-toc {
    --naftoc-header-bg: #7c3aed;
    margin: 0 0 28px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .11);
    color: #111827;
    overflow: hidden;
}

.nimbleaf-toc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)),
        var(--naftoc-header-bg);
    color: #ffffff;
}

.nimbleaf-toc__header strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.2;
}

.nimbleaf-toc__header button {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 11px;
}

.nimbleaf-toc__list {
    display: grid;
    gap: 9px;
    margin: 0 !important;
    padding: 18px 22px 20px 28px !important;
    list-style: none !important;
}

.nimbleaf-toc__item {
    margin: 0 !important;
    line-height: 1.35;
}

.nimbleaf-toc__item.depth-1 {
    padding-left: 18px;
}

.nimbleaf-toc__item.depth-2 {
    padding-left: 36px;
}

.nimbleaf-toc__item a {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.nimbleaf-toc__item a::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--naftoc-header-bg);
    vertical-align: .08em;
}

.nimbleaf-toc__item a:hover,
.nimbleaf-toc__item a:focus {
    color: var(--naftoc-header-bg);
    text-decoration: underline;
}

.nimbleaf-toc.is-closed .nimbleaf-toc__list {
    display: none;
}

html {
    scroll-behavior: smooth;
}

@media (max-width: 640px) {
    .nimbleaf-toc__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nimbleaf-toc__header button {
        align-self: flex-start;
    }
}
