.hdr-menus { flex-wrap: nowrap; }
.acct-menu { position: relative; flex: 0 0 auto; }
.acct-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  font-family: inherit;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #0a0d12;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.acct-login-link:hover { border-color: #fb8c3c; background: #fb8c3c; }
.acct-control { position: relative; }
.acct-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 140px;
  min-height: 38px;
  padding: 3px 10px 3px 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.acct-trigger:hover, .acct-trigger[aria-expanded="true"] { border-color: var(--accent); }
.acct-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.acct-name {
  overflow: hidden;
  max-width: 88px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-dropdown {
  position: absolute;
  z-index: 50;
  inset-inline-end: 0;
  top: calc(100% + 9px);
  width: min(260px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  animation: menu-in .14s ease-out;
}
.acct-dropdown-heading {
  display: grid;
  gap: 4px;
  padding: 10px 11px 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.acct-dropdown-heading strong { color: var(--text); font-size: 14px; }
.acct-dropdown-heading span { color: var(--muted); font-size: 12px; }
.acct-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.acct-dropdown-item:hover, .acct-dropdown-item:focus-visible {
  background: rgba(255, 255, 255, .05);
  color: var(--text);
}
.acct-dropdown-item:focus-visible, .acct-trigger:focus-visible, .acct-login-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (min-width: 901px) {
  .site-header {
    flex-wrap: nowrap;
    gap: clamp(10px, 1.25vw, 18px);
  }
  .site-header .brand { flex: 0 0 auto; }
  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: clamp(9px, 1vw, 15px);
    font-size: clamp(12px, .98vw, 14px);
  }
  .site-nav a { flex: 0 0 auto; white-space: nowrap; }
  .hdr-menus { flex: 0 0 auto; gap: 6px; }
  .hdr-menus .lang-toggle {
    gap: 5px;
    padding: 7px 9px;
    font-size: 12px;
    white-space: nowrap;
  }
  .hdr-menus .lang-toggle .icon-globe { width: 15px; height: 15px; }
  .hdr-menus .lang-toggle .icon-chevron { order: 3; width: 12px; height: 12px; }
  #region-current, #lang-current {
    display: block !important;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  #region-toggle::after, #lang-toggle::after {
    order: 2;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    content: attr(data-short-code);
  }
  .reset-site-header .site-nav,
  .reset-site-header .nav-toggle,
  .reset-site-header .region-menu { display: none !important; }
  .reset-site-header #lang-toggle .icon-globe { display: none; }
}
@media (min-width: 761px) and (max-width: 1199px) {
  .acct-name { display: none; }
  .acct-trigger { width: 38px; padding: 3px; justify-content: center; }
}
@media (max-width: 900px) {
  .site-header:not(.nav-open) { flex-wrap: nowrap; }
  #region-current, #lang-current {
    display: block !important;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .hdr-menus .lang-toggle { gap: 4px; padding-inline: 6px; white-space: nowrap; }
  .hdr-menus .lang-toggle .icon-globe { order: 1; }
  .hdr-menus .lang-toggle .icon-chevron { order: 3; }
  #region-toggle::after, #lang-toggle::after {
    order: 2;
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    content: attr(data-short-code);
  }
}
@media (max-width: 760px) {
  .acct-name { display: none; }
  .acct-trigger { width: 38px; padding: 3px; justify-content: center; }
  .acct-dropdown { top: calc(100% + 8px); }
  .acct-login-link { min-height: 36px; padding: 0 14px; font-size: 12px; }
  .site-header,
  .site-header:not(.nav-open) {
    flex-wrap: nowrap;
    min-height: 60px;
    gap: 6px;
    padding: 8px 12px;
  }
  .site-header .brand { font-size: 14px; }
  .site-header .hdr-menus {
    order: 2;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 4px;
  }
  .hdr-menus .lang-toggle {
    min-height: 36px;
    gap: 4px;
    padding: 0 7px;
    font-size: 11px;
    box-shadow: none;
  }
  .hdr-menus .lang-toggle .icon-globe { width: 14px; height: 14px; }
  .hdr-menus .lang-toggle .icon-chevron { width: 10px; height: 10px; }
  #lang-toggle { min-height: 36px; padding: 0 7px; font-size: 11px; box-shadow: none; }
  #lang-toggle .icon-globe { width: 14px; height: 14px; }
  #lang-toggle .icon-chevron,
  #region-toggle .icon-chevron { display: block; width: 10px; height: 10px; }
  .site-header .nav-toggle { order: 3; flex: 0 0 40px; width: 40px; height: 40px; margin-inline-start: 0; }
  #region-toggle {
    min-height: 40px;
    padding: 0 10px;
    border-color: var(--border);
    background: rgba(255, 255, 255, .03);
    box-shadow: none;
  }
  #region-toggle:hover { background: rgba(255, 255, 255, .05); box-shadow: none; }
  .site-header.nav-open .site-nav .region-menu {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .site-header.nav-open .site-nav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    margin-inline-start: 0;
    align-items: stretch;
  }
  .site-header.nav-open { flex-wrap: wrap; }
  .site-header.nav-open .site-nav #region-toggle {
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    gap: 8px;
    padding: 13px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    font: inherit;
    font-size: 16px;
    line-height: inherit;
    text-align: start;
  }
  .site-header.nav-open .site-nav #region-toggle:hover { background: transparent; box-shadow: none; }
  .site-header.nav-open .site-nav #region-toggle .icon-globe { order: 1; flex: 0 0 18px; width: 18px; height: 18px; }
  .site-header.nav-open .site-nav #region-toggle::after { order: 2; color: inherit; font: inherit; content: attr(data-short-code); }
  .site-header.nav-open .site-nav #region-toggle .icon-chevron { order: 3; flex: 0 0 16px; width: 16px; height: 16px; margin-inline-start: auto; }
}
