/* Mobile-only presentation. Existing navigation content and desktop styles remain owned by WordPress. */
@media (max-width: 781px) {
  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part {
    --spc-mobile-logo-width: clamp(68px, 21.22vw, 119px);
    --spc-mobile-flag-width: clamp(22px, 7.3vw, 32px);
    background: #091f36 !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part > header.wp-block-group {
    background: #091f36 !important;
    top: 0 !important;
  }

  body.admin-bar.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part,
  body.admin-bar.home.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part {
    top: var(--spc-mobile-admin-offset, 46px) !important;
  }

  body.admin-bar.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part > header.wp-block-group {
    top: 0 !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part > header.wp-block-group > .wp-block-group {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    justify-content: space-between !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part figure.wp-block-image,
  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part figure.wp-block-image img {
    flex-shrink: 0 !important;
    height: auto !important;
    width: var(--spc-mobile-logo-width) !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part .wp-block-group:has(> nav.wp-block-navigation) {
    align-items: center !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    gap: clamp(9px, 3.1vw, 14px) !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container-open {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    display: flex !important;
    height: 44px !important;
    justify-content: center !important;
    min-width: 24px !important;
    padding: 0 !important;
    position: relative !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part ul:has(> li.lang-item) {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: clamp(5px, 1.9vw, 10px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part li.lang-item {
    display: flex !important;
    flex: 0 0 var(--spc-mobile-flag-width) !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    width: var(--spc-mobile-flag-width) !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part li.lang-item > a {
    align-items: center !important;
    display: inline-flex !important;
    height: 44px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    width: var(--spc-mobile-flag-width) !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part li.lang-item > a::before {
    flex: 0 0 var(--spc-mobile-flag-width) !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part li.lang-item > a::before,
  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part li.lang-item img {
    background-size: 100% 100% !important;
    height: calc(var(--spc-mobile-flag-width) * .6279) !important;
    max-height: none !important;
    max-width: none !important;
    width: var(--spc-mobile-flag-width) !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready > header.wp-block-group {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    min-height: 110px !important;
    padding: clamp(19.68px, 6.15vw, 26px) clamp(11.424px, 3.57vw, 24px) !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready > header.wp-block-group > .spc-mnav-header-row {
    align-items: center !important;
    display: grid !important;
    gap: clamp(4px, 1.5vw, 6px) !important;
    grid-template-columns: 44px auto minmax(0, 1fr) !important;
    justify-content: normal !important;
    margin-block: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .spc-mnav-header-navigation {
    align-items: center !important;
    display: flex !important;
    gap: 0 !important;
    justify-content: center !important;
    margin: 0 !important;
    min-width: 44px !important;
    padding: 0 !important;
    width: 44px !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .spc-mnav-logo-block {
    align-items: center !important;
    display: flex !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .spc-mnav-language-block {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-self: end !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready figure.wp-block-image img,
  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready li.lang-item > a::before,
  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready li.lang-item img {
    transform: scale(.92) !important;
    transform-origin: center !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .wp-block-navigation__responsive-container-open {
    min-width: 44px !important;
    width: 44px !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .wp-block-navigation__responsive-container-open svg {
    visibility: hidden !important;
  }

  body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .wp-block-navigation__responsive-container-open::before {
    background: linear-gradient(to bottom, currentColor 0 3px, transparent 3px 10.5px, currentColor 10.5px 13.5px, transparent 13.5px 21px, currentColor 21px 24px) !important;
    content: '' !important;
    height: 24px !important;
    left: 50% !important;
    pointer-events: none;
    position: absolute !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: 32px !important;
  }

  html.spc-mobile-nav-open,
  html.spc-mobile-nav-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  html.spc-mobile-nav-open body .wp-site-blocks > header.spc-mobile-nav-source,
  html.spc-mobile-nav-open body .wp-site-blocks > header.spc-mobile-nav-source > * {
    z-index: 10030 !important;
  }

  html.spc-mobile-nav-open .spc-mobile-nav-source .wp-block-navigation__responsive-container-open svg {
    visibility: hidden !important;
  }

  html.spc-mobile-nav-open .spc-mobile-nav-source .wp-block-navigation__responsive-container-open::before,
  html.spc-mobile-nav-open .spc-mobile-nav-source .wp-block-navigation__responsive-container-open::after {
    background: currentColor;
    content: '';
    height: 1.5px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 18px;
  }

  html.spc-mobile-nav-open .spc-mobile-nav-source .wp-block-navigation__responsive-container-open::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  html.spc-mobile-nav-open .spc-mobile-nav-source .wp-block-navigation__responsive-container-open::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  html.spc-mobile-nav-open body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .wp-block-navigation__responsive-container-open::before,
  html.spc-mobile-nav-open body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .wp-block-navigation__responsive-container-open::after {
    background: currentColor !important;
    content: '' !important;
    height: 2.8px !important;
    left: 50% !important;
    pointer-events: none;
    position: absolute !important;
    top: 50% !important;
    width: 28px !important;
  }

  html.spc-mobile-nav-open body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .wp-block-navigation__responsive-container-open::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  html.spc-mobile-nav-open body.spc-mobile-navigation-enabled .wp-site-blocks > header.wp-block-template-part.spc-mnav-header-ready .wp-block-navigation__responsive-container-open::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  html.spc-mobile-nav-open .spc-sticky-rfq {
    visibility: hidden !important;
  }

  #spc-mobile-nav[hidden] { display: none !important; }

  #spc-mobile-nav {
    background: #f1f5f8;
    box-sizing: border-box;
    color: #102c3c;
    display: block;
    font-family: inherit;
    font-size: 16px;
    inset-inline: 0;
    line-height: 1.45;
    margin: 0;
    overscroll-behavior: contain;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    position: fixed;
    -webkit-overflow-scrolling: touch;
    z-index: 10020;
  }

  #spc-mobile-nav *, #spc-mobile-nav *::before, #spc-mobile-nav *::after { box-sizing: border-box; }
  #spc-mobile-nav [hidden] { display: none !important; }
  #spc-mobile-nav .spc-mnav-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
  #spc-mobile-nav .spc-mnav-tile { background: #fff; border: 1px solid #dce5eb; border-radius: 12px; display: block; list-style: none; margin: 0 !important; padding: 0 !important; }
  #spc-mobile-nav .spc-mnav-row { align-items: stretch; display: flex; min-height: 52px; }
  #spc-mobile-nav .spc-mnav-link { align-items: center; color: #143448; display: flex; flex: 1; font-size: 16px; font-weight: 600; gap: 12px; line-height: 1.4; min-width: 0; padding: 13px 16px; text-decoration: none; white-space: normal; }
  #spc-mobile-nav .spc-mnav-link:hover { color: #167cab; }
  #spc-mobile-nav .spc-mnav-submenu { background: #f3f7fa; border-radius: 0 0 11px 11px; display: block; list-style: none; margin: 0; padding: 0; }
  #spc-mobile-nav .spc-mnav-submenu > li { background: transparent; border: 0; border-radius: 0; list-style: none; margin: 0 !important; padding: 0 !important; }
  #spc-mobile-nav .spc-mnav-submenu .spc-mnav-row { min-height: 44px; }
  #spc-mobile-nav .spc-mnav-submenu .spc-mnav-link { color: #345b70; font-size: 14px; font-weight: 400; justify-content: space-between; line-height: 1.5; min-height: 44px; overflow-wrap: anywhere; padding: 10px 16px 10px 34px; }
  #spc-mobile-nav .spc-mnav-submenu .spc-mnav-link:hover { background: #e6f1f7; color: #164d6a; }
  #spc-mobile-nav .spc-mnav-submenu > li:last-child > .spc-mnav-row:last-child > .spc-mnav-link { border-radius: 0 0 11px 11px; }
  #spc-mobile-nav .spc-mnav-bottom { margin-top: 16px; }
  #spc-mobile-nav .spc-mnav-rfq { align-items: center; background: #237db2; border: 0; border-radius: 12px; color: #fff; display: flex; font-size: 16px; font-weight: 600; gap: 16px; justify-content: center; line-height: 1.4; min-height: 52px; padding: 14px 17px; text-decoration: none; }
  #spc-mobile-nav .spc-mnav-social { align-items: center; border-top: 1px solid #dce5eb; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 14px; padding-top: 10px; }
  #spc-mobile-nav .spc-mnav-social a { align-items: center; color: #426477; display: inline-flex; font-size: 13px; font-weight: 500; gap: 6px; min-height: 44px; text-decoration: none; }
  #spc-mobile-nav a:focus-visible, #spc-mobile-nav button:focus-visible { outline: 3px solid #1599d2; outline-offset: 2px; }
}

@media (min-width: 782px) {
  #spc-mobile-nav { display: none !important; }
}
