/* Lighthouse Network Header Level Fix v3.1.0
   The desktop header uses a single positioning row so the menu cannot drop below the logo. */

@media (min-width: 901px) {
  body.ln-fullscreen-page .ln-home .ln-nav {
    position: relative !important;
    height: 108px !important;
    min-height: 108px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.ln-fullscreen-page .ln-home .ln-nav-inner {
    position: relative !important;
    display: block !important;
    width: min(1180px, calc(100% - 48px)) !important;
    max-width: 1180px !important;
    height: 108px !important;
    min-height: 108px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Logo: centered vertically in the same header row, with enough top clearance. */
  body.ln-fullscreen-page .ln-home .ln-brand {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 220px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
  }

  body.ln-fullscreen-page .ln-home .ln-brand img {
    display: block !important;
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Navigation: same horizontal row as the logo, never underneath it. */
  body.ln-fullscreen-page .ln-home .ln-menu {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: calc(100% - 245px) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: clamp(12px, 1.15vw, 20px) !important;
    white-space: nowrap !important;
    z-index: 4 !important;
  }

  body.ln-fullscreen-page .ln-home .ln-menu a {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(11px, .88vw, 14px) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  body.ln-fullscreen-page .ln-home .ln-menu .ln-gold-btn {
    min-height: 44px !important;
    padding: 11px 17px !important;
    font-size: clamp(11px, .82vw, 13px) !important;
    line-height: 1 !important;
    border-radius: 8px !important;
  }

  /* Start the hero immediately beneath the corrected header. */
  body.ln-fullscreen-page .ln-home .ln-hero {
    margin-top: 0 !important;
  }
}

/* Medium desktop: preserve one row by tightening spacing rather than allowing a wrap. */
@media (min-width: 901px) and (max-width: 1200px) {
  body.ln-fullscreen-page .ln-home .ln-nav-inner {
    width: calc(100% - 32px) !important;
  }
  body.ln-fullscreen-page .ln-home .ln-brand,
  body.ln-fullscreen-page .ln-home .ln-brand img {
    width: 185px !important;
    max-width: 185px !important;
  }
  body.ln-fullscreen-page .ln-home .ln-menu {
    max-width: calc(100% - 205px) !important;
    gap: 8px !important;
  }
  body.ln-fullscreen-page .ln-home .ln-menu a {
    font-size: 10px !important;
  }
  body.ln-fullscreen-page .ln-home .ln-menu .ln-gold-btn {
    padding: 9px 11px !important;
    font-size: 10px !important;
  }
}

/* Mobile keeps the existing responsive navigation behavior. */
@media (max-width: 900px) {
  body.ln-fullscreen-page .ln-home .ln-nav {
    height: auto !important;
    min-height: 72px !important;
  }
  body.ln-fullscreen-page .ln-home .ln-nav-inner {
    height: auto !important;
    min-height: 72px !important;
  }
}
