/* Keep the desktop navigation compact and center its labels in the blue bar. */
@media only screen and (min-width: 992px) {
  body.sticky-header {
    --afem-menu-height: 56px !important;
  }

  body.sticky-header #sp-main-menu,
  body.sticky-header #sp-main-menu.menu-fixed,
  body.sticky-header #sp-main-menu.menu-fixed-out {
    height: 56px !important;
  }

  body.sticky-header #sp-main-menu .sp-megamenu-parent {
    display: flex !important;
    align-items: center;
    float: none !important;
    height: 56px !important;
  }

  body.sticky-header #sp-main-menu .sp-megamenu-parent > li {
    display: flex;
    align-items: center;
    height: 56px !important;
  }

  body.sticky-header #sp-main-menu .sp-megamenu-parent > li > a,
  body.sticky-header #sp-main-menu .sp-megamenu-parent > li > span {
    display: flex;
    align-items: center;
    height: 56px !important;
    line-height: 1.2 !important;
  }
}

/* Keep mobile independent: its existing 56px horizontal bar is unchanged. */
@media only screen and (max-width: 991px) {
  body.sticky-header #sp-main-menu,
  body.sticky-header #sp-main-menu.menu-fixed,
  body.sticky-header #sp-main-menu.menu-fixed-out {
    height: 56px !important;
  }

  body.sticky-header #sp-main-menu .sp-megamenu-parent {
    display: flex !important;
    align-items: stretch !important;
    float: none !important;
    width: max-content !important;
    min-width: 100% !important;
    height: 56px !important;
    white-space: nowrap;
  }

  body.sticky-header #sp-main-menu .sp-megamenu-parent > li {
    display: block !important;
    flex: 0 0 auto !important;
    height: 56px !important;
  }

  body.sticky-header #sp-main-menu .sp-megamenu-parent > li > a,
  body.sticky-header #sp-main-menu .sp-megamenu-parent > li > span {
    display: flex !important;
    align-items: center !important;
    height: 56px !important;
    line-height: 1 !important;
  }
}
