.toc-block {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 20px 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.toc-header {
    font-weight: 700;
    font-size: 1.1em;
    color: #414141;
    margin-bottom: 25px;
    cursor: default;
    text-transform: uppercase;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin: 6px 0;
}

.toc-item a {
    text-decoration: underline;
    color: #414141;
    transition: color 0.2s;
    font-weight: 400;
}

.toc-item a:hover {
    color: #22409A;
}

.toc-item.active a {
    font-weight: 700;
    color: #dc2626;
}

@media (max-width: 767px) {
    .toc-header {
        cursor: pointer;
        position: relative;
        padding-right: 20px;
        margin-bottom: 0;
    }
    .toc-header::after {
        content: '▼';
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.2s;
        font-size: 0.8em;
        color: #6b7280;
    }
    .toc-block.open .toc-header::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .toc-list {
        display: none;
    }
    .toc-block.open .toc-list {
        display: block;
    }
}