#header-secondary-outer .nectar-center-text .sub-head > a:last-child {
  order: -1;
  display: flex;
  align-items: center;
}
#header-secondary-outer .nectar-center-text .sub-head {
  display: flex;
  align-items: center;
  justify-content: center; /* keeps the whole group centered */
  gap: 14px;
  position: relative;
  height: auto !important;  /* overrides the inline height:100% */
}

/* Kill the overlap-causing absolute positioning */
#header-secondary-outer .nectar-center-text .sub-head img {
  position: static !important;
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

/* Keep the text from wrapping into the logo (optional) */
#header-secondary-outer .nectar-center-text .sub-head > a:first-child {
  display: inline-block;
  line-height: 1.1;
}

/* Mobile: stack logo above text (prevents cramped overlap) */
@media (max-width: 768px) {
  #header-secondary-outer .nectar-center-text .sub-head {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  #header-secondary-outer .nectar-center-text .sub-head > a:first-child {
    font-size: 18px; /* optional: helps fit */
    white-space: normal;
  }
}
/* =========================
   MOBILE SLIDE-OUT MENU FIX
   ========================= */
#slide-out-widget-area .secondary-header-text .sub-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  position: relative;
  padding: 0 48px 12px; /* space so text doesn't collide with the close X */
  height: auto !important; /* overrides inline height:100% */
}

/* Put logo first in the stack */
#slide-out-widget-area .secondary-header-text .sub-head > a:last-child {
  order: -1;
  display: flex;
  justify-content: center;
}

/* Stop the inline absolute positioning from breaking layout */
#slide-out-widget-area .secondary-header-text .sub-head img {
  position: static !important;
  height: 45px;  /* slightly smaller works better in the menu */
  width: auto;
}

/* Make the long tagline wrap cleanly */
#slide-out-widget-area .secondary-header-text .sub-head > a:first-child {
  display: block;
  font-size: 24px !important;   /* reduce from 24px for mobile */
  line-height: 1.2;
  white-space: normal;
  max-width: 260px;             /* prevents super-wide lines */
}

/* Optional: keep the tiny  pieces readable */
#slide-out-widget-area .secondary-header-text .sub-head small {
  font-size: 0.75em;
}