/* Clear separation between account access and navigation utilities. */
@media (max-width: 950px) {
  .site-header .locale-bar {
    flex: 0 0 auto;
    gap: 5px;
    margin-inline: 8px 10px;
    padding-inline-end: 11px;
    border-inline-end: 1px solid #ffffff20;
  }

  .site-header .header-actions {
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: max-content;
  }

  .site-header .header-actions .cx-member {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin-inline: 1px 3px;
  }

  .site-header .header-actions .cx-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #8a79565c;
    border-radius: 999px;
    background: linear-gradient(135deg, #d8bc7a16, #d8bc7a08);
    color: #e1c88f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-header .header-actions .cx-signin:hover,
  .site-header .header-actions .cx-signin:focus-visible {
    border-color: #d8bc7a;
    background: #d8bc7a1a;
  }

  .site-header .header-actions .search-toggle,
  .site-header .header-actions .motion-toggle,
  .site-header .header-actions .menu-toggle {
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid #384550;
    border-radius: 12px;
    background: #111a22;
    color: #e5ebed;
    line-height: 1;
  }

  .site-header .header-actions .menu-toggle {
    display: grid !important;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-inline: 16px;
    gap: 0;
  }

  .site-header .locale-bar {
    gap: 4px;
    margin-inline: 7px 8px;
    padding-inline-end: 9px;
  }

  .site-header .locale-bar .locale-icon-control {
    width: 36px;
    height: 38px;
    flex-basis: 36px;
    border-radius: 12px;
  }

  .site-header .header-actions {
    gap: 8px;
  }

  .site-header .header-actions .cx-signin {
    padding-inline: 10px;
    min-height: 38px;
  }

  /* Motion is already governed by the device's reduced-motion preference;
     keep the compact header focused on sign-in, search and navigation. */
  .site-header .header-actions .motion-toggle {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-inline: 12px;
  }

  .site-header .brand {
    gap: 7px;
  }

  .site-header .brand img {
    width: 30px;
    height: 30px;
  }

  .site-header .brand span {
    font-size: 16px;
    letter-spacing: .2em;
  }

  .site-header .locale-bar {
    margin-inline: 5px 6px;
    padding-inline-end: 7px;
  }

  .site-header .locale-bar .locale-icon-control {
    width: 33px;
    flex-basis: 33px;
    height: 36px;
  }

  .site-header .header-actions {
    gap: 6px;
  }

  .site-header .header-actions .search-toggle,
  .site-header .header-actions .menu-toggle {
    flex-basis: 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .site-header .header-actions .cx-signin {
    min-height: 36px;
    padding-inline: 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .header-actions .cx-signin {
    transition: none;
  }
}
