/* Region Table of Contents - Horizontal Button Layout */

.region-toc {
    padding: 2.3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.region-toc::after {
    content: "";
    display: block;
    width: 75%;
    border-bottom: 1px solid #e5e5e5;
    margin-top: 2.3rem;
}

.region-toc-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.region-toc-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background-color: #f5f7fa;
    border-radius: 15px;
    font-family: tenon;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 400;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.region-toc-button:hover {
    background-color: #e8ecf1;
    transform: translateY(-1px);
}

.region-toc-button:active {
    transform: translateY(0);
}

.region-toc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.region-toc-icon svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.region-toc-label {
    line-height: 1;
    color: black;
}

/* Tablet and below */
@media (max-width: 768px) {
    .region-toc {
        padding: 2rem 0;
    }

    .region-toc::after {
        margin-top: 2rem;
    }

    .region-toc-buttons {
        gap: 0.5rem;
    }

    .region-toc-button {
        padding: 0.75rem 1.25rem;
        font-size: 14px;
        gap: 0.5rem;
    }

    .region-toc-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .region-toc {
        padding: 1.8rem 0;
    }

    .region-toc::after {
        margin-top: 1.8rem;
        width: 85%;
    }

    .region-toc-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        justify-items: center;
    }

    .region-toc-button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 0.65rem 1rem;
    }

    .region-toc-label {
        font-size: 13px;
    }
}
