.itcodewp-native-toc.post-toc {
    margin: 24px 0 30px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dcebe6;
    border-left: 4px solid #00a878;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(18, 62, 50, .06);
}

.itcodewp-native-toc .post-toc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    margin: 0;
    padding: 16px 20px;
    color: #173f35;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0;
    list-style: none;
    text-transform: none;
}

.itcodewp-native-toc .post-toc-title::-webkit-details-marker {
    display: none;
}

.itcodewp-native-toc .post-toc-title:focus-visible {
    outline: 3px solid rgba(0, 168, 120, .22);
    outline-offset: -3px;
}

.itcodewp-native-toc .post-toc-icon {
    display: inline-flex;
    flex: 0 0 22px;
    color: #009c70;
}

.itcodewp-native-toc .post-toc-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.itcodewp-native-toc .post-toc-toggle {
    position: relative;
    width: 28px;
    height: 28px;
    margin-left: auto;
    border-radius: 50%;
    background: #edf8f4;
}

.itcodewp-native-toc .post-toc-toggle::before,
.itcodewp-native-toc .post-toc-toggle::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 8px;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #008f67;
    transition: transform .2s ease;
}

.itcodewp-native-toc .post-toc-toggle::after {
    transform: rotate(90deg);
}

.itcodewp-native-toc .post-toc-details[open] .post-toc-toggle::after {
    transform: rotate(0);
}

.itcodewp-native-toc .post-toc-list {
    display: grid;
    gap: 4px;
    margin: 0 !important;
    padding: 4px 20px 20px 46px;
    counter-reset: toc-item;
}

.itcodewp-native-toc .post-toc-item {
    padding: 0;
    color: #00a878;
    line-height: 1.5;
}

.itcodewp-native-toc .post-toc-item::marker {
    color: #58aa91;
    font-weight: 600;
}

.itcodewp-native-toc .post-toc-item a {
    display: block;
    padding: 7px 10px;
    color: #354b45 !important;
    border-radius: 8px;
    font-size: .98rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}

.itcodewp-native-toc .post-toc-item a:hover,
.itcodewp-native-toc .post-toc-item a.is-active {
    color: #008f67 !important;
    background: #f0f9f6;
}

.itcodewp-native-toc .post-toc-level-3 {
    margin-left: 18px;
    list-style-type: circle;
}

.itcodewp-native-toc .post-toc-level-4 {
    margin-left: 36px;
    list-style-type: square;
}

.the-article-summary h2[id],
.the-article-summary h3[id],
.the-article-summary h4[id],
.entry-content h2[id],
.entry-content h3[id],
.entry-content h4[id] {
    scroll-margin-top: 105px;
}

@media (max-width: 767px) {
    .itcodewp-native-toc.post-toc {
        margin: 18px 0 24px;
        border-radius: 12px;
    }

    .itcodewp-native-toc .post-toc-title {
        min-height: 54px;
        padding: 14px 16px;
    }

    .itcodewp-native-toc .post-toc-list {
        padding: 2px 14px 16px 36px;
    }

    .itcodewp-native-toc .post-toc-level-3 {
        margin-left: 12px;
    }

    .itcodewp-native-toc .post-toc-level-4 {
        margin-left: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itcodewp-native-toc * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
