/* Shared controls for public site headers. */
.site-header { height: auto; min-height: 72px; }
.header-inner { height: auto; min-height: 72px; }
.header-nav { flex-wrap: wrap; }
.language-selector { position: relative; flex: none; font-size: 13px; font-weight: 800; }
.language-selector summary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 68px; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; list-style: none; cursor: pointer; }
.language-selector summary::-webkit-details-marker { display: none; }
.language-selector summary:hover, .language-selector[open] summary { color: var(--red); border-color: var(--red); }
.language-chevron { width: 7px; height: 7px; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.language-selector[open] .language-chevron { margin-top: 3px; transform: rotate(225deg); }
.language-selector-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: max-content; min-width: 185px; max-width: min(290px, calc(100vw - 32px)); max-height: min(360px, calc(100vh - 110px)); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 14px 35px rgb(56 58 58 / 16%); }
.language-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px; border-radius: 3px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.language-option:hover, .language-option[aria-current="page"] { color: var(--red); background: var(--surface); }
.language-option span:first-child { overflow: hidden; min-width: 0; text-overflow: ellipsis; }
.language-option-code { flex: none; color: var(--muted); font-size: 11px; font-weight: 800; }
.account-link { display: inline-flex; align-items: center; gap: 9px; min-width: 0; max-width: 220px; min-height: 42px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.account-link:hover { border-color: var(--red); }
.account-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #27845c; box-shadow: 0 0 0 3px rgb(39 132 92 / 12%); }
.account-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.account-status { color: var(--muted); font-size: 10px; font-weight: 700; }
.account-copy strong { overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 761px) and (max-width: 900px) {
    .header-nav { gap: 16px; }
}

@media (max-width: 760px) {
    .language-selector summary { min-height: 34px; }
    .account-link { min-height: 36px; }
}

@media (max-width: 520px) {
    .account-link { max-width: min(220px, calc(100% - 85px)); }
}
