/* Horizontal tab strips share one touch-scroll behavior; vertical menus stay unchanged. */
@media screen and (max-width:1199.98px) {
    html body :is(.nav-tabs,.nav-pills,[role="tablist"],.tab-container:has(>.tab),.editor-tabs,.rpp-tabs,#kp-tabs-container):where(:not(.flex-column):not([aria-orientation="vertical"]):not(.admin-tab-menu):not(#unitProfileTabs):not(.d-none):not([hidden])) {
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        justify-content:flex-start !important;
        box-sizing:border-box;
        min-width:0;
        max-width:100%;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        overscroll-behavior-x:contain;
        -webkit-overflow-scrolling:touch;
    }

    html body :is(.nav-tabs,.nav-pills,[role="tablist"],.tab-container:has(>.tab),.editor-tabs,.rpp-tabs,#kp-tabs-container):where(:not(.flex-column):not([aria-orientation="vertical"]):not(.admin-tab-menu):not(#unitProfileTabs):not(.d-none):not([hidden])) > :where(:not(script):not(style)),
    html body :is(.nav-tabs,.nav-pills,[role="tablist"]):where(:not(.flex-column):not([aria-orientation="vertical"]):not(.admin-tab-menu):not(#unitProfileTabs):not(.d-none):not([hidden])) .nav-link {
        flex-shrink:0 !important;
        flex-basis:auto !important;
        white-space:nowrap !important;
        overflow-wrap:normal;
    }
}
