/* CCDSS / SCSMC — one-row breadcrumbs on phone.
   Apply the single-row layout on xs before JS adds --compact, so a long trail
   cannot wrap to multiple lines and then collapse (page bounce / CLS). */

@media (max-width: 767px) {
    #wb-bc ol.breadcrumb {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0; /* allow flex/grid ancestors to shrink; keep scroll inside the ol */
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox — hide bar; still scrollable if needed */
    }

    #wb-bc ol.breadcrumb::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
        width: 0;
        height: 0;
    }

    #wb-bc ol.breadcrumb > li {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    #wb-bc ol.breadcrumb .ccdss-breadcrumb-ellipsis {
        color: #333;
        pointer-events: none;
    }
}
