/* Shared icon controls; loaded after the page-specific header rules. */
.client-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c9002f;
  border-radius: 999px;
  background: #c9002f;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.client-login:hover { background: #b00029; border-color: #b00029; }
.client-login:focus-visible { outline: 2px solid var(--foreground); outline-offset: 5px; }
.client-login svg { flex: 0 0 auto; }
.page .masthead .theme-toggle,
.page .masthead .magic-menu-toggle,
.intro-actions .theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  gap: 0;
}
.page .masthead .magic-menu-toggle svg { width: 20px; height: 20px; }
.page .masthead-actions { gap: 16px; }

@media (min-width: 901px) and (max-width: 1100px) {
  .page .masthead { gap: 16px; }
  .page .masthead-actions { gap: 12px; }
}

@media (max-width: 900px) {
  .page .masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px auto 44px;
    grid-template-rows: 48px;
    align-content: center;
    column-gap: 8px;
    min-height: 110px;
    padding: 0;
  }
  .page .masthead-actions { display: contents; }
  .page .masthead-home { grid-column: 1; grid-row: 1; width: min(120px, 100%); }
  .page .masthead-actions .theme-toggle { grid-column: 2; grid-row: 1; width: 44px; padding: 0; }
  .page .masthead-actions .client-login { grid-column: 3; grid-row: 1; justify-self: end; }
  .page .masthead-actions .bundle-toggle { grid-column: 4; grid-row: 1; justify-self: end; }
  .page .masthead-actions .magic-menu-toggle { grid-column: 5; grid-row: 1; justify-self: end; }
}

@media (max-width: 600px) {
  .page .masthead-home { width: min(90px, 100%); }
}

@media (max-width: 360px) {
  .page .masthead { left: 12px; right: 12px; column-gap: 4px; }
  .page .masthead-home { width: min(60px, 100%); }
  .page .masthead-actions .bundle-toggle { padding-inline: 8px; gap: 6px; font-size: 11px; }
}
