/* Match the drawer to the control that opened it, even on short landscape screens. */
.mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible,
.mm-detail-video-watch:focus-visible, .mm-detail-video-player:focus-visible,
.v141-spec-table:focus-visible {
  outline: 3px solid #08869b;
  outline-offset: 2px;
}
.v141-spec-table, .mm-privacy-table-wrap, .mm-r6-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
@media (max-width: 980px) {
  .use-cases .usecase-hero { grid-template-columns: minmax(0, 1fr); }
  .usecase-hero > div, .usecase-hero > img, .mmvc-stage-shell > * { min-width: 0; }
  .usecase-hero h3, .mmvc-info-card h2 { overflow-wrap: anywhere; }
  .mmvc-watch-page .mmvc-stage-shell { grid-template-columns: minmax(0, 1fr); }
  .mm-sc-field { min-width: 0; }
  .mm-sc-field input, .mm-sc-field select, .mm-sc-field textarea {
    box-sizing: border-box;
    max-width: 100%;
    font-size: max(16px, 1em);
  }
  .mm-fan-video-pro__actions, .mm-context-video-embed__link { max-width: 100%; }
  .mm-fan-video-pro__actions { flex-wrap: wrap; }
  .mm-fan-video-pro__actions a, .mm-context-video-embed__link {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-height: 520px) and (max-width: 1260px) {
  .mobile-drawer .mobile-menu { min-height: 0; overflow-y: auto; }
  .mm-search-window__surface { max-height: 100%; overflow-y: auto; }
}
@media (max-width: 980px) {
  .mmcat-hero .mmcat-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .mmcat-hero-grid > * { min-width: 0; }
}
@media (max-width: 640px) {
  .mmcat-hero .mmcat-hero-visual { width: 100%; min-height: clamp(265px, 80vw, 390px); }
  .mmcat-hero-visual .mmcat-stack-main { width: 48%; height: 80%; }
  .mmcat-hero-visual .mmcat-stack-one { width: 35%; height: 39%; left: 3%; }
  .mmcat-hero-visual .mmcat-stack-two { width: 35%; height: 39%; right: 3%; }
  .ref-gallery.reference-logo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .reference-logo-grid .ref-item { min-width: 0; }
}

/* Closed navigation must not consume descendant layout before opening. */
/* Prepare hidden drawer layout before a tap; visibility and inert control access. */
html body #mm-mobile-drawer.mobile-drawer{content-visibility:visible!important}
@media(max-width:1260px){
  html body #mm-mobile-drawer.mobile-drawer{
    transition:transform .22s cubic-bezier(.2,.8,.2,1)!important;
    transform:translate3d(104%,0,0)!important;
    visibility:hidden!important;
  }
  html[dir=rtl] body #mm-mobile-drawer.mobile-drawer,
  html body [dir=rtl]#mm-mobile-drawer.mobile-drawer{transform:translate3d(-104%,0,0)!important}
  html body #mm-mobile-drawer.mobile-drawer.is-open{
    visibility:visible!important;
    transform:translate3d(0,0,0)!important;
  }
  html body #mm-mobile-drawer.mobile-drawer.is-closing{
    visibility:visible!important;
    content-visibility:visible!important;
    pointer-events:none!important;
    transform:translate3d(104%,0,0)!important;
  }
  html[dir=rtl] body #mm-mobile-drawer.mobile-drawer.is-closing,
  html body [dir=rtl]#mm-mobile-drawer.mobile-drawer.is-closing{transform:translate3d(-104%,0,0)!important}
  html body #mm-mobile-drawer.mobile-drawer[data-mm-menu-state="opening"],
  html body #mm-mobile-drawer.mobile-drawer.is-closing{will-change:transform}
  html body #mm-mobile-menu-backdrop:not([hidden]){
    display:block!important;
    pointer-events:auto!important;
    transition:opacity .2s ease!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body #mm-mobile-drawer.mobile-drawer,
  html body #mm-mobile-menu-backdrop:not([hidden]){transition:none!important}
}

/* Targeted WCAG AA text contrast; existing palette, layout unchanged. */
.mm-pulverize-page .mm-dust-technical__grid > article > span,
.mm-pulverize-page .mm-pulverize-field__cases > div > article > span,
.v141-ultra-page .section-heading > span,
.v141-automation-page .section-heading > span,
.v220-panel-product-main .section-heading > span,
.mm-refresh-page--warranty .mm-warranty-grid > article > span,
.mm-refresh-page--warranty .mm-service-panel .mm-refresh-kicker,
.mm-corporate-hub .mmch-card__num,
.mm-corporate-hub .mmch-process__copy > .mmch-eyebrow,
.bank-v127-page .bank-v127-head > span{color:#08758b!important}
.v220-panel-product-main .v220-feature-grid > article > b{color:#247347!important}
.v220-panel-product-main .v220-spec > span{color:#536861!important}
.bank-v127-page .bank-v127-bank-name small,
.bank-v127-page .bank-v127-row > .muted,
.bank-v127-page .bank-v127-security-card > p,
.mm-refresh-page--online .mm-platform-card small{color:#526b79!important}
.mm-refresh-page--warranty .mm-service-panel > div > a,
.mm-refresh-page--online .mm-online-advice > a,
.bank-v127-page .bank-v127-btn{background-color:#08758b!important;color:#fff!important}
.mmg-blog .mmg-video-link{color:#fff!important}
/* Desktop navigation has an explicit dismissal state. Focus return and an
   unmoved pointer must not override Escape or an outside click. */
@media (min-width:1261px) {
  :root .main-menu > .menu-item[data-mm-desktop-menu-state="closed"] > .mega-menu,
  :root .main-menu > .menu-item[data-mm-desktop-menu-state="closed"] > .dropdown {
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}
