/* Shared narrow-screen header. Keep the original desktop and vendor search behavior. */
.mc-header-menu-toggle, .mc-header-search-toggle { display: none; }
@media (min-width: 1100px) and (max-width: 1440px) {
    body.mc-web:has(.nav-layoutcontainer) { --navheight: 104px; }
    .mc-web .horizontal-menu-navbar { display: grid !important; grid-template-columns: minmax(132px, 1fr) auto; grid-template-rows: 60px 44px; height: 104px !important; padding: 0 16px !important; gap: 0 12px; box-sizing: border-box; }
    .mc-web .horizontal-menu-navbar-logo { grid-area: 1 / 1; height: 60px !important; min-width: 0; }
    .mc-web .horizontal-menu-navbar-search { grid-area: 1 / 2; min-width: 0; }
    .mc-web .horizontal-menu-navbar-container { grid-area: 2 / 1 / 3 / 3; width: 100%; }
    .mc-web .horizontal-menu-navbar .horizontal-container-navbar { margin: 0 !important; }
    .mc-web .horizontal-menu-navbar .menu-container-left, .mc-web .horizontal-menu-navbar .menu-container-right { display: none !important; }
    .mc-web .horizontal-menu-navbar .horizontal-menu-navbar-menu-container { width: 100%; overflow: visible !important; }
    .mc-web .horizontal-menu-navbar .horizontal-menu-navbar-menu { width: 100%; min-width: 0; transform: none !important; gap: 8px; }
    .mc-web .horizontal-menu-navbar .horizontal-menu-navbar-menu > li { margin-left: 0 !important; flex: 0 0 auto; line-height: 44px !important; }
    .mc-web .horizontal-menu-navbar-menu > li > a { padding: 0 12px !important; }
    .mc-web .horizontal-menu-navbar-menu .navbar-menu-tag { display: none; }
    .mc-web .menu-dropdown-container { max-height: calc(100dvh - var(--navheight)); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 1440px) {
    .mc-web .horizontal-menu-navbar .horizontal-menu-navbar-search .mc-header-actions .nav-search {
        position: fixed !important; left: 50% !important; right: auto !important;
        top: calc(var(--navheight, 104px) + 8px) !important; transform: translateX(-50%) !important;
        max-width: calc(100vw - 24px) !important; min-width: 0 !important;
        max-height: calc(100dvh - var(--navheight, 104px) - 24px);
        overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
        box-sizing: border-box; z-index: 120;
    }
    .mc-web .horizontal-menu-navbar .nav-search .nav-search-body { width: 100%; min-width: 0; box-sizing: border-box; padding: 20px !important; }
    .mc-web .horizontal-menu-navbar .nav-search .nav-search-tabs { flex-wrap: wrap; padding-right: 28px; gap: 12px; }
    .mc-web .horizontal-menu-navbar .nav-search .nav-search-input-wrapper { width: 100%; min-width: 0; box-sizing: border-box; }
    .mc-web .horizontal-menu-navbar .nav-search .nav-search-input { width: 100%; min-width: 0; box-sizing: border-box; }
    .mc-web .horizontal-menu-navbar .nav-search .nav-search-recommendation { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
    body.mc-web:has(.nav-layoutcontainer) { --navheight: 198px; }
    .mc-web .horizontal-menu-navbar { grid-template-rows: 56px 54px 88px; height: 198px !important; padding: 0 12px !important; }
    .mc-web .horizontal-menu-navbar-logo { justify-content: space-between; width: 100%; }
    .mc-web .horizontal-menu-navbar-container { display: block; min-width: 0; }
    .mc-web .horizontal-menu-navbar .horizontal-menu-navbar-menu-container { width: 100%; overflow: visible !important; }
    .mc-web .horizontal-menu-navbar .horizontal-menu-navbar-menu {
        display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100% !important; min-width: 0; gap: 0; padding: 0;
    }
    .mc-web .horizontal-menu-navbar .horizontal-menu-navbar-menu > li { width: 100%; min-width: 0; text-align: center; }
    .mc-web .horizontal-menu-navbar-menu > li > a { display: flex !important; justify-content: center; align-items: center; min-height: 44px; padding: 0 4px !important; white-space: normal; }
    .mc-web .horizontal-menu-navbar-menu-container > .underline { display: none; }
    body.mc-web.mc-header-enhanced:has(.nav-layoutcontainer) { --navheight: 110px; }
    body.mc-web.mc-header-enhanced.mc-header-menu-open:has(.nav-layoutcontainer) { --navheight: 198px; }
    .mc-web.mc-header-enhanced .horizontal-menu-navbar { grid-template-rows: 56px 54px; height: 110px !important; }
    .mc-web.mc-header-enhanced .horizontal-menu-navbar-container { display: none; }
    .mc-web.mc-header-enhanced:not(.mc-header-menu-open) .nav-layoutcontainer > .menu-dropdown-container { display: none !important; }
    .mc-web.mc-header-menu-open .horizontal-menu-navbar { grid-template-rows: 56px 54px 88px; height: 198px !important; }
    .mc-web.mc-header-menu-open .horizontal-menu-navbar-container { display: block; }
    .mc-web.mc-header-enhanced .mc-header-menu-toggle {
        display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px;
        padding: 0 10px; border: 1px solid #dce5f4; border-radius: 9px; background: #fff; color: #284364; font: inherit; font-size: 13px; cursor: pointer;
    }
    .mc-web.mc-header-enhanced .mc-header-search-toggle {
        display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 38px;
        border: 1px solid #dce5f4; border-radius: 9px; background: #f7f9fd; color: #41618b; cursor: pointer;
    }
    .mc-web.mc-header-enhanced .horizontal-menu-navbar-search .mc-header-actions .input-inner-wrapper > .input-label {
        position: absolute; width: 1px !important; height: 1px !important; padding: 0 !important;
        overflow: hidden; opacity: 0; pointer-events: none;
    }
    .mc-web .mc-header-menu-toggle:focus-visible, .mc-web .mc-header-search-toggle:focus-visible { outline: 3px solid #abc0f0; outline-offset: 2px; }
    .mc-web .horizontal-menu-navbar-search .mc-header-actions { gap: 4px !important; }
}
@media (max-width: 860px) {
    .mc-web .menu-dropdown-container .Submenu-container.product_services.mc-product-menu { height: auto !important; max-height: none; }
    .mc-web .menu-dropdown-container .mc-product-menu > .Submenu-left,
    .mc-web .menu-dropdown-container .mc-product-menu > .Submenu-middle-right { flex: 0 0 auto !important; height: auto !important; }
    .mc-web .menu-dropdown-container .mc-product-menu .Submenu-left-container { width: 100%; min-width: 0; padding: 0 !important; box-sizing: border-box; }
    .mc-web .menu-dropdown-container .mc-product-menu .Submenu-product-tab { margin: 12px 0 0; }
    .mc-web .menu-dropdown-container .mc-product-menu .Submenu-product-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; max-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
    .mc-web .menu-dropdown-container .mc-product-menu .Submenu-product-name { min-width: 0; }
    .mc-web .menu-dropdown-container .mc-product-menu .Submenu-product-name > a { white-space: normal; overflow-wrap: anywhere; }
    body.mc-web .mc-storage-comparison, body.mc-web #mc-storage-guide-title { scroll-margin-top: calc(var(--navheight, 62px) + 56px); }
    .mc-web .nav-head-m .menuB .nav-list-right { min-width: 0; width: auto; flex: 1 1 0; }
    .mc-web .nav-head-m .menuB .nav-list-left { flex-shrink: 0; }
    .mc-web .nav-head-m .menuB .label-1-name { min-width: 0; max-width: 100%; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
    .mc-web .nav-head-m .menuB .label-1-name > span:first-child { min-width: 0; overflow-wrap: anywhere; }
    .mc-web .nav-head-m .menuB .list-label-1 .label-1-name.urlB { width: 100%; min-height: 64px; padding: 12px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; line-height: 1.5; }
    .mc-web .nav-head-m .menuB .label-1-name.urlB > .label-tag { position: static; max-width: 100%; margin: 0; flex-shrink: 0; white-space: nowrap; line-height: 16px; font-size: 11px; }
}

/* Empty article banners still need to clear the fixed native mobile header. */
body.mc-web:has(> .nav-head-m) > .globalBanner:not(:has(.pagebanner)) + .et-main {
    margin-top: calc(var(--wapnavheight, 62px) + 24px) !important;
}
@media (max-width: 600px) {
    .mc-web .swiper-wrapper-container .home-button-prev,
    .mc-web .swiper-wrapper-container .home-button-next {
        top: calc(var(--navheight, 110px) + 60px);
        left: auto;
        margin-top: 0;
        width: 28px;
        height: 28px;
        background-size: 35px 35px;
    }
    .mc-web .swiper-wrapper-container .home-button-prev { right: 56px; }
    .mc-web .swiper-wrapper-container .home-button-next { right: 16px; }
}
