/* Localsewa UI-02 v32.9.26 — surgical header alignment correction.
   Fixes a legacy absolute-positioned nav rule from customer-home-desktop-v32.8.4.css.
   This stylesheet MUST load AFTER v32.9.25. It changes no routes, search logic,
   PHP/API code, or other page components. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine), (min-width: 1440px) {
  /* Real DOM order: brand | nav | actions. Allow Grid to actually place the nav
     in its designated center column. Previous absolute positioning removed it
     from Grid flow and centered it relative to the wrong reference box. */
  #root:has(.ls-public-header) .ls-public-header-inner > .ls-public-main-nav {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    translate: none !important;
    grid-column: 2 !important;
    grid-row: 1;
    justify-self: center;
    margin: 0 !important;
    width: max-content !important;
    min-width: max-content;
  }
  #root:has(.ls-public-header) .ls-public-header-inner > .ls-ui02-brand {
    grid-column: 1 !important;
    grid-row: 1;
    justify-self: start !important;
  }
  #root:has(.ls-public-header) .ls-public-header-inner > .ls-ui02-header-actions {
    grid-column: 3 !important;
    grid-row: 1;
    justify-self: end !important;
    margin: 0 !important;
    min-width: max-content;
  }
  #root:has(.ls-public-header) .ls-ui02-header-actions > .ls-ui02-search-control {order: 1 !important;}
  #root:has(.ls-public-header) .ls-ui02-header-actions > .ls-public-notifications {order: 2 !important; margin: 0 !important;}
  #root:has(.ls-public-header) .ls-ui02-header-actions > .ls-public-desktop-actions {order: 3 !important; margin: 0 !important;}
}
/* For touch tablets and narrow screens, retain the existing two-column mobile
   header: brand left and search/notifications/menu right. */
@media (max-width: 1023.98px), (min-width: 1024px) and (max-width: 1439.98px) and (hover: none) and (pointer: coarse) {
  #root:has(.ls-public-header) .ls-public-main-nav {position: static !important; transform: none !important;}
}
