/* NewsCrest mobile category navigation: independent of Bootstrap's collapse. */
.newscrest-mobile-scroll-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .mg-headwidget .newscrest-mobile-scroll-nav {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mg-headwidget .newscrest-mobile-scroll-nav::-webkit-scrollbar {
        display: none;
    }

    .mg-headwidget .newscrest-mobile-scroll-nav .newscrest-mobile-scroll-list {
        display: flex;
        flex-flow: row nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 24px;
        box-sizing: border-box;
        width: max-content;
        min-width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 16px;
        list-style: none;
    }

    .mg-headwidget .newscrest-mobile-scroll-list > li {
        display: block;
        position: relative;
        flex: 0 0 auto;
        width: auto;
        margin: 0;
        padding: 0;
        list-style: none;
        white-space: nowrap;
    }

    .mg-headwidget .newscrest-mobile-scroll-list > li > a {
        display: flex;
        position: relative;
        align-items: center;
        min-height: 52px;
        padding: 12px 0;
        border: 0;
        background: transparent;
        color: #222;
        font-family: var(--menuFont, inherit);
        font-size: 17px;
        font-weight: 700;
        line-height: 1.4;
        text-decoration: none;
        text-transform: none;
        white-space: nowrap;
    }

    .mg-headwidget .newscrest-mobile-scroll-list > li > a:hover,
    .mg-headwidget .newscrest-mobile-scroll-list > li > a:focus {
        background: transparent;
        color: #222;
        text-decoration: none;
    }

    .mg-headwidget .newscrest-mobile-scroll-list > li > a:focus-visible {
        outline: 2px solid #ad0d13;
        outline-offset: -2px;
    }

    .mg-headwidget .newscrest-mobile-scroll-list > li.current-menu-item > a::after,
    .mg-headwidget .newscrest-mobile-scroll-list > li.current-menu-ancestor > a::after,
    .mg-headwidget .newscrest-mobile-scroll-list > li.current-menu-parent > a::after,
    .mg-headwidget .newscrest-mobile-scroll-list > li.current_page_item > a::after,
    .mg-headwidget .newscrest-mobile-scroll-list > li.current_page_ancestor > a::after,
    .mg-headwidget .newscrest-mobile-scroll-list > li > a[aria-current="page"]::after {
        position: absolute;
        inset-inline: 0;
        bottom: 6px;
        height: 3px;
        background: #f20b2b;
        content: "";
    }
}
