/* Sticky container layout settings */
.aaitoc-wrapper-ffae4887 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    width: 100%;
}

/* Enable sticky layout only in Desktop/Tablet sidebar columns where width allows */
@media (min-width: 992px) {
    .elementor-widget-article_ai_toc_ffae4887 {
        position: -webkit-sticky;
        position: sticky;
        top: calc(90px + var(--wp-admin--admin-bar--height, 0px));
        align-self: start;
        z-index: 99;
    }
    body.admin-bar .elementor-widget-article_ai_toc_ffae4887 {
        top: calc(90px + 32px);
    }
    @media screen and (max-width: 782px) {
        body.admin-bar .elementor-widget-article_ai_toc_ffae4887 {
            top: calc(90px + 46px);
        }
    }
}

.aaitoc-wrapper-ffae4887.aaitoc-empty {
    display: none !important;
}

.aaitoc-title {
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: #0d1e3d;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.aaitoc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aaitoc-item {
    line-height: 1.4;
    transition: all 0.2s ease;
}

.aaitoc-link {
    display: inline-flex;
    gap: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-family: inherit;
    font-weight: 400;
    transition: color 0.2s ease;
}

.aaitoc-num {
    font-weight: 500;
    opacity: 0.7;
    white-space: nowrap;
}

.aaitoc-text {
    word-break: break-word;
}

/* Indentations for hierarchy */
.aaitoc-h2 {
    padding-left: 0;
}

.aaitoc-h3 {
    padding-left: 18px;
}

.aaitoc-h3 .aaitoc-link {
    font-size: 14px;
}

.aaitoc-h4 {
    padding-left: 36px;
}

.aaitoc-h4 .aaitoc-link {
    font-size: 13.5px;
}

/* Active Highlight Styling */
.aaitoc-item.active > .aaitoc-link {
    color: #0d1e3d;
    font-weight: 500;
}

.aaitoc-link:hover {
    color: #0d1e3d;
}

@media (max-width: 768px) {
    .aaitoc-wrapper-ffae4887 {
        padding: 16px;
    }
}
