/* CCDSS / SCSMC only — horizontal section tabs below md (.ccdss-tab-nav-mobile). */

.ccdss-tab-nav-shell {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 44px; /* stable before JS injects arrow buttons */
}

.ccdss-tab-nav-arrow {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 0.35rem;
    border: 0;
    border-radius: 0;
    background-color: #f5f5f5;
    color: #26374a;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.ccdss-tab-nav-arrow:hover:not(:disabled),
.ccdss-tab-nav-arrow:focus:not(:disabled) {
    background-color: #26374a;
    color: #fff;
}

.ccdss-tab-nav-arrow:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}

.ccdss-tab-nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ccdss-tab-nav-mobile {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    min-height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ccdss-tab-nav-mobile::-webkit-scrollbar {
    display: none;
}

.ccdss-tab-nav-mobile > li {
    flex: 0 0 auto;
    margin: 0;
}

.ccdss-tab-nav-mobile .ccdss-tab-link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    background-color: #f5f5f5;
    color: #26374a;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
    border-radius: 0;
    padding: 0.65rem 0.9rem;
    white-space: nowrap;
    min-height: 44px;
}

.ccdss-tab-nav-mobile .ccdss-tab-link:hover,
.ccdss-tab-nav-mobile .ccdss-tab-link:focus {
    background-color: #26374a;
    color: #fff;
    text-decoration: none;
}

.ccdss-tab-nav-mobile .ccdss-tab-link:focus-visible {
    outline: 3px solid #1d5a96;
    outline-offset: 2px;
}

.ccdss-tab-nav-mobile .ccdss-tab-link.active,
.ccdss-tab-nav-mobile .ccdss-tab-link[aria-current="page"] {
    background-color: #26374a;
    color: #fff;
}

/* Phone: tab bar flush to section/screen edges */
@media (max-width: 767px) {
    .tabNav .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Tighter blue-header title: drop container mrgn-tp-sm; h1 md → sm (5px). */
    .blue-header > .container.mrgn-tp-sm {
        margin-top: 0;
    }
    .blue-header > .container > h1.mrgn-tp-md {
        margin-top: 5px;
    }

    /* Last updated / Dernière mise à jour: lg → sm; drop tour link’s right margin. */
    .blue-header #list-inline-desktop-only > li.mrgn-rght-lg {
        margin-right: 5px;
    }
    .blue-header #list-inline-desktop-only > li.mrgn-rght-lg:has(#ccdss-take-tour) {
        margin-right: 0;
    }
}

/* Tablet+: keep horizontal strip, hide prev/next */
@media (min-width: 768px) {
    .ccdss-tab-nav-arrow {
        display: none;
    }
}

/* md+: shell wraps a ul that is hidden-md/hidden-lg — hide the empty 44px flex strip */
@media (min-width: 992px) {
    .ccdss-tab-nav-shell {
        display: none;
    }
}
