/* Keep the compact mobile header inside narrow viewports without hiding controls. */
@media (max-width: 560px) {
  .homepage-body .site-header-stack .topbar {
    gap: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .homepage-body .site-header-stack .tb-logo {
    min-width: 0;
    min-height: 44px;
    gap: 6px;
  }

  .homepage-body .site-header-stack .tb-logo > img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .homepage-body .site-header-stack .tb-logo-txt {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .homepage-body .site-header-stack .tb-right {
    gap: 7px;
  }

  .homepage-body .site-header-stack .tb-right .btn-in {
    padding-left: 7px;
    padding-right: 7px;
  }

  .homepage-body .site-header-stack .site-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    padding: 0 8px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    box-shadow: 0 2px 8px rgba(30,41,59,.12);
  }
}

@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  .homepage-body .site-header-stack .tb-logo {
    min-height: 44px;
  }
}
