/* Site header actions — language globe + actions layout on dark bars
 * Account bar chrome lives in account-bar.css (#accountBarMount overrides)
 */

.site-header__actions {
  justify-self: end;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.site-header__toolbar {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: auto;
  padding: 0.2rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #8b7355;
  line-height: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.site-header__lang-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.site-header__lang-btn:hover {
  color: #a08968;
}

.site-header__lang-btn:focus-visible {
  outline: 2px solid rgba(139, 115, 85, 0.55);
  outline-offset: 2px;
}

.site-header__lang-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 7.5rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #2a221c;
  border: 1px solid rgba(139, 115, 85, 0.45);
  z-index: 220;
}

.site-header__lang-menu[hidden] {
  display: none;
}

.site-header__lang-menu button {
  display: block;
  width: 100%;
  padding: 0.45rem 0.85rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  color: rgba(253, 248, 240, 0.9);
  text-align: left;
  cursor: pointer;
}

.site-header__lang-menu button:hover,
.site-header__lang-menu button[aria-current="true"] {
  background: rgba(139, 115, 85, 0.22);
  color: var(--paper);
}

.site-header__account {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .site-header__actions,
  .topbar .site-header__actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .site-header__toolbar,
  .topbar .site-header__toolbar {
    justify-content: flex-end;
  }
}
