/* UNSAERO mobile header normalization: keep desktop unchanged, fix logo/flags/menu on small screens. */
@media (max-width: 760px) {
  html body .unsaero-global-header-wrap {
    background: #fff !important;
  }

  html body .unsaero-global-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "logo lang"
      "nav nav" !important;
    align-items: center !important;
    justify-content: initial !important;
    row-gap: 0.55rem !important;
    column-gap: 0.75rem !important;
    min-height: 0 !important;
    padding: 0.7rem 0.85rem 0.62rem !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  }

  html body .unsaero-global-logo {
    grid-area: logo !important;
    justify-self: start !important;
    min-width: 0 !important;
    font-size: clamp(1.05rem, 5.2vw, 1.32rem) !important;
    letter-spacing: 0.7px !important;
    line-height: 1 !important;
  }

  html body .unsaero-global-lang-switch {
    grid-area: lang !important;
    justify-self: end !important;
    align-self: center !important;
    gap: 0.42rem !important;
  }

  html body .unsaero-global-lang-option {
    gap: 0.23rem !important;
    padding: 0 0 1px !important;
    font-size: 0.68rem !important;
    line-height: 1 !important;
    border-bottom-width: 1px !important;
  }

  html body .unsaero-global-lang-option svg {
    width: 18px !important;
    height: 12px !important;
    flex: 0 0 18px !important;
    display: block !important;
  }

  html body .unsaero-global-nav {
    grid-area: nav !important;
    width: 100% !important;
    order: initial !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.38rem 0.5rem !important;
    overflow: visible !important;
    padding: 0.04rem 0 0 !important;
    margin: 0 !important;
  }

  html body .unsaero-global-nav a,
  html body .unsaero-global-nav a:visited {
    font-size: clamp(0.72rem, 3.15vw, 0.82rem) !important;
    line-height: 1.05 !important;
    padding: 0.08rem 0 !important;
  }

  html body .unsaero-global-nav-sep {
    font-size: 0.72rem !important;
    line-height: 1 !important;
  }
}

@media (max-width: 430px) {
  html body .unsaero-global-header {
    padding-left: 0.72rem !important;
    padding-right: 0.72rem !important;
    row-gap: 0.5rem !important;
  }

  html body .unsaero-global-logo {
    font-size: clamp(0.98rem, 5.8vw, 1.16rem) !important;
  }

  html body .unsaero-global-lang-option {
    font-size: 0.62rem !important;
  }

  html body .unsaero-global-lang-option svg {
    width: 16px !important;
    height: 10.7px !important;
    flex-basis: 16px !important;
  }

  html body .unsaero-global-nav {
    gap: 0.32rem 0.42rem !important;
  }

  html body .unsaero-global-nav-sep {
    display: none !important;
  }
}

/* Final logo normalization: prevent any page-local link hover animation from affecting the UNSAERO wordmark. */
html body .unsaero-global-logo,
html body .unsaero-global-logo:visited,
html body .unsaero-global-logo:hover,
html body .unsaero-global-logo:focus,
html body .unsaero-global-logo:active,
html body .unsaero-global-logo * {
  transform: none !important;
  scale: 1 !important;
  animation: none !important;
  text-decoration: none !important;
}

html body .unsaero-global-logo {
  font-family: 'Syncopate', Arial, sans-serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
  text-transform: none !important;
  transition: color .18s ease !important;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

html body .unsaero-global-logo:hover {
  font-size: 1.6rem !important;
  letter-spacing: 1px !important;
  line-height: 1 !important;
}

html body .unsaero-global-wordmark,
html body .unsaero-global-uns,
html body .unsaero-global-aero {
  font: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
}

@media (max-width: 760px) {
  html body .unsaero-global-logo,
  html body .unsaero-global-logo:visited,
  html body .unsaero-global-logo:hover,
  html body .unsaero-global-logo:focus,
  html body .unsaero-global-logo:active {
    font-size: 1.35rem !important;
    letter-spacing: 0.7px !important;
    line-height: 1 !important;
    transform: none !important;
    scale: 1 !important;
  }
}

@media (max-width: 430px) {
  html body .unsaero-global-logo,
  html body .unsaero-global-logo:visited,
  html body .unsaero-global-logo:hover,
  html body .unsaero-global-logo:focus,
  html body .unsaero-global-logo:active {
    font-size: 1.16rem !important;
    letter-spacing: 0.6px !important;
    line-height: 1 !important;
    transform: none !important;
    scale: 1 !important;
  }
}

/* Index alignment patch: ensure every page, including index.html, uses the same header geometry. */
html body .unsaero-global-header-wrap {
  background: #fff !important;
}

html body .unsaero-global-logo,
html body .unsaero-global-logo:visited,
html body .unsaero-global-logo:hover,
html body .unsaero-global-logo:focus,
html body .unsaero-global-logo:active,
html body .unsaero-global-logo * {
  transform: none !important;
  scale: 1 !important;
  animation: none !important;
}

html body .unsaero-global-lang-option svg {
  max-width: 24px !important;
  max-height: 16px !important;
}
