/* FoxiWorld V819 — FINAL shared header rail alignment.
   Desktop source of truth = the same geometry as .container from ui-scale-v28.css:
   width:min(100% - 44px, 1440px); margin-inline:auto.
   Therefore logo/search/cart, primary menu and FOXI LIVE share the exact same rails. */

@media (min-width: 1201px) {
  body:not(.admin-body) .fw-nav-wrap > .fw-nav.fw-mega-nav {
    display: block !important;
    width: min(calc(100% - 44px), 1440px) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body:not(.admin-body) .fw-nav.fw-mega-nav .fw-nav__links {
    width: 100% !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    gap: 16px !important;
  }

  body:not(.admin-body) .fx-page-signal {
    width: min(calc(100% - 44px), 1440px) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

/* Keep existing responsive navigation logic; only align the signal with standard gutters. */
@media (min-width: 768px) and (max-width: 1200px) {
  body:not(.admin-body) .fx-page-signal {
    width: min(calc(100% - 24px), 1440px) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}
