/* Production final overrides: navigation, mobile header order, and multilingual text resilience. */
html body :where(
  h1,
  h2,
  h3,
  h4,
  p,
  a,
  button,
  .button,
  strong,
  small,
  span,
  li,
  th,
  td
) {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

@media (min-width: 1181px) {
  html body header.site-header.nav-redesigned nav.nav.nav-center.nav-flat > a,
  html body header.site-header.nav-redesigned nav.nav.nav-center.nav-flat > a:link,
  html body header.site-header.nav-redesigned nav.nav.nav-center.nav-flat > a:visited {
    font-weight: 500 !important;
  }

  html body header.site-header.nav-redesigned nav.nav.nav-center.nav-flat > a:hover,
  html body header.site-header.nav-redesigned nav.nav.nav-center.nav-flat > a:focus-visible,
  html body header.site-header.nav-redesigned nav.nav.nav-center.nav-flat > a[aria-current="page"] {
    font-weight: 560 !important;
  }
}

@media (max-width: 1180px) {
  html body .site-header.nav-redesigned,
  html body .site-header.nav-redesigned.light-header,
  html body .site-header.nav-redesigned.scrolled,
  html body .site-header.nav-redesigned.open {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    grid-template-rows: 64px !important;
    align-items: center !important;
    column-gap: 8px !important;
    min-height: 64px !important;
    height: 64px !important;
    padding: 0 16px !important;
  }

  html body .site-header.nav-redesigned .brand-center,
  html body .site-header.nav-redesigned a.brand.brand-center {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .site-header.nav-redesigned .brand-logo {
    width: clamp(132px, 38vw, 172px) !important;
    max-height: 48px !important;
  }

  html body .site-header.nav-redesigned .header-actions {
    display: contents !important;
  }

  html body .site-header.nav-redesigned .language-switch,
  html body .site-header.nav-redesigned.open .language-switch {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body .site-header.nav-redesigned .menu-button {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    display: grid !important;
    place-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  html body .site-header.nav-redesigned.open .nav-left,
  html body .site-header.nav-redesigned.open .nav-right {
    top: 72px !important;
    left: 16px !important;
    right: 16px !important;
  }
}

@media (max-width: 430px) {
  html body .site-header.nav-redesigned,
  html body .site-header.nav-redesigned.light-header,
  html body .site-header.nav-redesigned.scrolled,
  html body .site-header.nav-redesigned.open {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    grid-template-rows: 58px !important;
    min-height: 58px !important;
    height: 58px !important;
    padding-inline: 12px !important;
  }

  html body .site-header.nav-redesigned .language-switch,
  html body .site-header.nav-redesigned.open .language-switch,
  html body .site-header.nav-redesigned .menu-button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  html body .site-header.nav-redesigned .brand-logo {
    width: clamp(126px, 40vw, 150px) !important;
  }
}

@media (max-width: 360px) {
  html body .site-header.nav-redesigned,
  html body .site-header.nav-redesigned.light-header,
  html body .site-header.nav-redesigned.scrolled,
  html body .site-header.nav-redesigned.open {
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
    padding-inline: 10px !important;
  }

  html body .site-header.nav-redesigned .language-switch,
  html body .site-header.nav-redesigned.open .language-switch,
  html body .site-header.nav-redesigned .menu-button {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

@media (max-width: 760px) {
  html body .button,
  html body button,
  html body .hero-actions a,
  html body .cta-actions a {
    max-width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.2 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  html body .cloud-hero-metrics {
    grid-template-columns: 1fr !important;
    margin-top: 26px !important;
  }

  html body .cloud-hero-metrics span {
    min-width: 0 !important;
    padding: 16px 0 !important;
  }

  html body .cloud-hero-metrics strong {
    min-width: 0 !important;
    font-size: clamp(22px, 6.5vw, 28px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
  }

  html body .cloud-hero-metrics small {
    min-width: 0 !important;
    white-space: normal !important;
  }

  html body .product-system-suite .spec-table th,
  html body .product-system-suite .spec-table td {
    min-width: 0 !important;
    white-space: normal !important;
  }

  html body .whatsapp-float,
  html body .yao-chat,
  html body.home-page .whatsapp-float,
  html body.home-page .yao-chat,
  html body.about-page .whatsapp-float,
  html body.about-page .yao-chat,
  html body.product-page .whatsapp-float,
  html body.product-page .yao-chat,
  html body.cooking-methods-page .whatsapp-float,
  html body.cooking-methods-page .yao-chat,
  html body.case-studies-page .whatsapp-float,
  html body.case-studies-page .yao-chat,
  html body.media-page .whatsapp-float,
  html body.media-page .yao-chat,
  html body.contact-page .whatsapp-float,
  html body.contact-page .yao-chat,
  html body .yao-chat-toggle {
    right: 12px !important;
    left: auto !important;
  }

  html body .whatsapp-float,
  html body .yao-chat-toggle {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }
}

@media (max-width: 360px) {
  html body .whatsapp-float,
  html body .yao-chat,
  html body.home-page .whatsapp-float,
  html body.home-page .yao-chat,
  html body.about-page .whatsapp-float,
  html body.about-page .yao-chat,
  html body.product-page .whatsapp-float,
  html body.product-page .yao-chat,
  html body.cooking-methods-page .whatsapp-float,
  html body.cooking-methods-page .yao-chat,
  html body.case-studies-page .whatsapp-float,
  html body.case-studies-page .yao-chat,
  html body.media-page .whatsapp-float,
  html body.media-page .yao-chat,
  html body.contact-page .whatsapp-float,
  html body.contact-page .yao-chat,
  html body .yao-chat-toggle {
    right: 10px !important;
  }
}
