/* Hianma commercial header — brand scale only.
   Goal: let the logo + brand copy use the existing header height better
   without changing the header height, nav layout, anchors, routes or product logic. */

@media (min-width: 1121px) {
  body .hm-marketing .hm-brand {
    min-height: 72px !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: center !important;
    justify-self: start !important;
    grid-row: 1 / -1 !important;
    margin-block: 0 !important;
    gap: 14px !important;
  }

  body .hm-marketing .hm-brand > span {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  body .hm-marketing .hm-header .hm-brand img {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    display: block !important;
    align-self: center !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  body .hm-marketing .hm-brand strong {
    font-size: 1.38rem !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -0.035em !important;
  }

  body .hm-marketing .hm-brand small {
    display: block !important;
    margin-top: 6px !important;
    font-size: 0.72rem !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    letter-spacing: 0.055em !important;
    white-space: nowrap !important;
  }
}

/* Keep the larger brand balanced on compact desktop widths. */
@media (min-width: 1121px) and (max-width: 1365px) {
  body .hm-marketing .hm-brand {
    gap: 12px !important;
  }

  body .hm-marketing .hm-header .hm-brand img {
    width: 52px !important;
    height: 52px !important;
    flex-basis: 52px !important;
  }

  body .hm-marketing .hm-brand strong {
    font-size: 1.24rem !important;
  }

  body .hm-marketing .hm-brand small {
    margin-top: 5px !important;
    font-size: 0.64rem !important;
  }
}
