/* hm-brand-fix.css — applied 2026-05-27 to prevent long-domain
   text truncation in the site header. Adds explicit min-content brand
   sizing so the brand column never collapses below its natural width. */
body.hm-gnuboard-site .hm-site-brand {
    max-width: none !important;
    min-width: max-content !important;
    overflow: visible !important;
    text-overflow: clip !important;
    flex-shrink: 0 !important;
}
body.hm-gnuboard-site .hm-header-inner {
    flex-wrap: nowrap !important;
    column-gap: 16px !important;
}
/* For per-site grid overrides we widen the brand track regardless of which
   minmax() values the per-site profile.css declared. */
body.hm-gnuboard-site .hm-header-inner {
    grid-template-columns: max-content minmax(0, 1fr) max-content !important;
}
body.hm-gnuboard-site .hm-primary-nav {
    min-width: 0 !important;
    flex-wrap: nowrap !important;
}
body.hm-gnuboard-site .hm-primary-nav a {
    white-space: nowrap !important;
}

/* HM_RESPONSIVE_HEADER_FIX_20260527
   Keep generated headers inside narrow mobile/fold viewports. */
@media (max-width: 900px) {
  body.hm-gnuboard-site.hm-gnuboard-site .hm-site-header {
    min-height: auto !important;
    overflow-x: clip !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-header-inner {
    width: min(100% - 20px, 1180px) !important;
    min-height: auto !important;
    padding: 8px 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px 10px !important;
    grid-template-columns: none !important;
    overflow: visible !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-site-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-site-brand > span:last-child {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-primary-nav {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    overflow: visible !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-primary-nav a,
  body.hm-gnuboard-site.hm-gnuboard-site .hm-auth-link,
  body.hm-gnuboard-site.hm-gnuboard-site .hm-auth-button {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-auth-nav {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-mobile-toggle {
    display: none !important;
  }
}
@media (max-width: 520px) {
  body.hm-gnuboard-site.hm-gnuboard-site .hm-header-inner {
    width: calc(100% - 16px) !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-site-brand {
    flex-basis: 100% !important;
    width: 100% !important;
    font-size: 14px !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-primary-nav {
    flex-basis: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-primary-nav a {
    width: 100% !important;
    justify-content: center !important;
    min-height: 32px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-auth-nav {
    flex-basis: 100% !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-left: 0 !important;
  }
  body.hm-gnuboard-site.hm-gnuboard-site .hm-auth-link,
  body.hm-gnuboard-site.hm-gnuboard-site .hm-auth-button {
    width: 100% !important;
    justify-content: center !important;
  }
}
/* END_HM_RESPONSIVE_HEADER_FIX_20260527 */
