/**
 * Table of Contents - Simple Clean Design
 */

nav.ffd-toc,
.ffd-toc {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 20px 24px 40px;
    background: #f8f7f6;
    border-radius: 8px;
    border-left: 3px solid var(--ff-color-primary, #F8740E);
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    position: relative;
    z-index: 1;
}

.ffd-toc,
.ffd-toc *,
.ffd-toc__list,
.ffd-toc__item,
.ffd-toc__item:last-child {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    clip: auto !important;
}

.ffd-toc__header {
    margin-bottom: 0.75rem;
}

.ffd-toc__title {
    font-family: var(--ffd-heading-font, inherit);
    font-size: 1rem;
    font-weight: 600;
    color: #1a1817;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ffd-toc__list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    counter-reset: none;
    overflow: visible;
    max-height: none;
}

.ffd-toc__list li {
    list-style: none !important;
    padding-left: 0;
}

.ffd-toc__list li::before {
    display: none !important;
    content: none !important;
}

.ffd-toc__item {
    margin: 0;
}

.ffd-toc__link {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.375rem 0;
    color: #4a4540;
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.ffd-toc__link:hover {
    color: var(--ff-color-primary, #F8740E);
}

.ffd-toc__number {
    font-weight: 600;
    color: var(--ff-color-primary, #F8740E);
    flex-shrink: 0;
}

.ffd-toc__text {
    flex: 1;
}

/* Active state */
.ffd-toc__item.is-active .ffd-toc__link {
    color: var(--ff-color-primary, #F8740E);
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .ffd-toc {
        margin: 0 1rem 1.5rem;
        padding: 1rem 1.25rem;
    }

    .ffd-toc__link {
        font-size: 0.875rem;
    }
}
