/* ──────────────────────────────────────────
 * Incotec Table of Contents
 * ────────────────────────────────────────── */

.incotec-toc {
    font-family: "Montserrat", sans-serif;
    background-color: #f8faf9;
    border: 1px solid #e8eeeb;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 24px 0;
    position: relative;
    z-index: 0;
}

/* Title (supports h2-h6 and div with identical appearance) */
.incotec-toc__title {
    font-size: 16px;
    font-weight: 700;
    color: #002D47;
    margin: 0 0 16px;
    padding: 0;
    line-height: 1.3;
}

.incotec-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.incotec-toc__item {
    counter-increment: toc;
}

.incotec-toc__item + .incotec-toc__item {
    margin-top: 8px;
}

.incotec-toc__link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #3E5B75;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.incotec-toc__link::before {
    content: counter(toc) ".";
    color: #7AD3C1;
    font-weight: 700;
    flex-shrink: 0;
}

.incotec-toc__link:hover {
    color: #002D47;
}

/* H3 items indented */
.incotec-toc__item--h3 {
    padding-left: 24px;
}

.incotec-toc__item--h3 .incotec-toc__link {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 767px) {
    .incotec-toc {
        padding: 20px;
    }

    .incotec-toc__link {
        font-size: 14px;
    }

    .incotec-toc__item--h3 .incotec-toc__link {
        font-size: 13px;
    }
}
