/* Reserve the whole wordmark, including its decorative star, in the header grid. */
.site-header {
  grid-template-columns: max-content minmax(0, 1fr) auto;
}

.site-header > .brand {
  box-sizing: border-box;
  padding-inline-end: 24px;
}

.site-header > .brand .brand__star {
  right: 0;
}

@media (min-width: 1181px) {
  .site-header > .mobile-panel {
    display: none;
  }

  .site-header > .desktop-nav {
    gap: clamp(16px, 1.8vw, 32px);
  }

  .site-header .header-btn {
    white-space: nowrap;
  }
}

/* Unfolded phones and tablets need the compact menu before the links get crowded. */
@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
  }

  .site-header > .brand {
    max-inline-size: 100%;
    justify-self: start;
  }

  .site-header > .desktop-nav,
  .site-header > .header-actions {
    display: none;
  }

  .site-header > .menu-btn {
    display: inline-flex;
  }
}
