.header-layout:has(> .header-actions) .site-nav {
  align-items: center;
}

.header-layout:has(> .header-actions) .site-nav > a {
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-happ-download {
  gap: .45rem;
  padding-inline: .7rem;
  font-size: .9rem;
}

.header-happ-download svg { flex: none; }

@media (max-width: 1100px) and (min-width: 761px) {
  .header-layout:has(> .header-actions) {
    grid-template-columns: auto 1fr;
    row-gap: .25rem;
  }

  .header-layout:has(> .header-actions) > .brand { min-height: 44px; }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: .65rem;
  }
}

@media (max-width: 760px) {
  /* Phones: logo, a compact Happ download and the menu share one row. */
  .header-layout:has(> .header-actions) {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }
  .header-layout:has(> .header-actions) > .brand { grid-area: 1 / 1; }
  .header-layout:has(> .header-actions) > .header-actions { grid-area: 1 / 2; }
  .header-layout:has(> .header-actions) > .menu-toggle { grid-area: 1 / 3; }
  .header-layout:has(> .header-actions) > .site-nav { grid-row: 2; }
  .header-actions { gap: .5rem; }
  .header-happ-download { min-height: 44px; padding-inline: .65rem; }
  .happ-download-verb { display: none; }
}

@media (max-width: 360px) {
  .header-layout:has(> .header-actions) .brand { font-size: 1.05rem; }
}

@media (max-width: 480px) {
  .header-layout:has(> .header-actions) .site-nav {
    flex-direction: column;
    align-items: stretch;
  }
}
