/*
 * Tab strip for the "Downloads & Catalogs" section.
 * Only styles .downloads-tabs itself -- the .downloads-grid / .download-card
 * markup inside each panel reuses the existing rules in style.css.
 */

.downloads-tabs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 24px;
    padding: 0;
    list-style: none;
}

.downloads-tabs__tab {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.downloads-tabs__tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.downloads-tabs__tab.is-active {
    background: #ffffff;
    color: #00615c;
    border-color: #ffffff;
}

.downloads-tabs__tab:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.downloads-tabs__panel {
    /* Belt and braces: some Divi/global resets neutralize the native
       [hidden] attribute, so also hide explicitly via the JS-toggled state. */
    display: block;
}

.downloads-tabs__panel[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .downloads-tabs__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .downloads-tabs__list::-webkit-scrollbar {
        display: none;
    }

    .downloads-tabs__tab {
        flex: 0 0 auto;
    }
}
