/* Compact, touch-friendly header for phones. */
@media (max-width: 520px) {
  header {
    height: auto;
    min-height: 66px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'brand community account'
      'cta cta cta';
    align-items: center;
    gap: 8px;
    padding: 11px 14px 13px;
  }

  .brand { grid-area: brand; white-space: nowrap; font-size: 22px; line-height: 1.2; }
  .community-header-entry { grid-area: community !important; margin: 0 !important; justify-self: stretch; min-width: 0; padding: 8px 4px !important; font-size: 12px !important; line-height: 1.25; white-space: nowrap; }
  .account-button { grid-area: account; white-space: nowrap; padding: 8px 10px !important; font-size: 12px; line-height: 1.25; }
  .nav-cta { grid-area: cta; width: 100%; padding: 11px 12px !important; font-size: 14px !important; line-height: 1.35; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(38px, 11vw, 46px); }
}
