/* Header-only critical layout. Server emits layout-ready; JS emits mobile-bound. */
.mps-mobile-category-fallback { display: none; }
body > .mps-header.mps-shared-header form.mps-site-search,
body > .mps-header.mps-shared-header form.mps-site-search input[name="keyboard"] { background-color: #f7f7f0 !important; }
@media (max-width: 767px) {
  body > .mps-header.mps-shared-header[data-mps-mobile-ready] {
    display: grid; box-sizing: border-box;
    grid-template-columns: minmax(76px,1fr) minmax(0,auto) auto;
    grid-template-areas: "brand account menu" "search search search" "catalog catalog catalog";
    align-items: center; gap: 7px 6px; width: 100%; height: auto;
    min-height: 0; margin-inline: 0; padding: 7px 12px 0;
  }
  .mps-header.mps-shared-header[data-mps-mobile-ready] :is(.mps-utility,.mps-utility-inner,.mps-masthead) { display: contents !important; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-utility-inner > .mps-contact { display: none !important; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-brand { grid-area: brand; min-width: 0; margin: 0; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-brand img { width: min(100%,144px); max-height: 42px; object-fit: contain; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-utility-inner > .mps-account {
    display: flex; grid-area: account; justify-self: end; align-items: center;
    justify-content: flex-end; flex-wrap: wrap; gap: 0 6px; max-width: 132px;
    min-width: 0; font-size: .75rem;
  }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-account > a { min-height: 42px; width: auto; gap: 3px; white-space: nowrap; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-account[data-member-session] > a:first-child {
    min-width: 0; white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip;
  }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-account > a::before { display: none; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-utility-inner > .mps-company-menu { grid-area: menu; justify-self: end; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-company-menu-trigger { min-height: 42px; min-width: 50px; padding-inline: 8px; font-size: .875rem; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] form.mps-site-search { grid-area: search; min-height: 43px; min-width: 0; width: 100%; margin: 0; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-catalog.mps-catalog-v6 { grid-area: catalog; display: block; width: 100%; min-height: 0; height: auto; border: 0; position: relative !important; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-mobile-category-button {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    min-height: 41px; padding: 5px 1px; border: 0; background: transparent;
    color: #15382c; font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer;
  }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-mobile-category-button::after {
    content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-inline-end: 5px;
  }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-mobile-category-button[aria-expanded="true"]::after { transform: rotate(225deg); }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-catalog.mps-catalog-v6 > .shell { width: 100%; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-catalog.mps-catalog-v6:not([data-mobile-expanded]) > .shell { display: none !important; }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-catalog-v6 .mps-category-row {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-flow: row; grid-auto-columns: auto;
    max-height: none; overflow: visible; scroll-snap-type: none;
  }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-mobile-company-contacts {
    display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 6px 17px 14px; padding-top: 10px;
    border-top: 1px solid #d9e5dd; font-size: .82rem; overflow-wrap: anywhere;
  }
  .mps-header.mps-shared-header[data-mps-mobile-ready] .mps-mobile-company-contacts > a { color: #116448; }
  .mps-header.mps-shared-header[data-mps-mobile-ready]:not([data-mps-mobile-bound]) .mps-mobile-category-fallback {
    display: inline-block; position: absolute; top: 6px; right: 22px; z-index: 1;
    padding: 4px 1px; color: #116448; font-size: .8rem;
  }
}
