/* Header language switcher + help utility */

.it-nav__utils {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 2px;
}

.it-nav__util-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--it-muted);
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.it-nav__util-btn:hover {
	color: var(--it-text);
	background: rgba(255, 255, 255, 0.06);
}

.it-nav__util-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

.it-nav__utils-divider {
	width: 1px;
	height: 18px;
	margin: 0 6px 0 4px;
	background: rgba(255, 255, 255, 0.14);
	flex-shrink: 0;
}

.xsis-lang {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.xsis-lang__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 10px 0 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--it-text);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.xsis-lang__trigger:hover,
.xsis-lang__trigger[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
}

.xsis-lang__icon {
	width: 16px;
	height: 16px;
	display: block;
	color: var(--it-text);
	opacity: 0.92;
}

.xsis-lang__code {
	line-height: 1;
}

.xsis-lang__chevron {
	width: 12px;
	height: 12px;
	color: var(--it-muted);
	transition: transform 0.15s ease;
}

.xsis-lang__trigger[aria-expanded="true"] .xsis-lang__chevron {
	transform: rotate(180deg);
}

.xsis-lang__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 1300;
	min-width: 180px;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: #17181d;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.xsis-lang__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--it-text);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.xsis-lang__option:hover {
	background: rgba(255, 255, 255, 0.06);
}

.xsis-lang__option.is-active {
	color: #7c9cff;
	background: rgba(62, 100, 255, 0.1);
}

.xsis-lang__option-code {
	min-width: 1.5rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--it-muted);
}

.xsis-lang__option.is-active .xsis-lang__option-code {
	color: #7c9cff;
}

.xsis-lang__option-check {
	width: 16px;
	height: 16px;
	margin-left: auto;
	opacity: 0;
	color: #7c9cff;
}

.xsis-lang__option.is-active .xsis-lang__option-check {
	opacity: 1;
}

@media (max-width: 720px) {
	.it-nav__util-btn--help {
		display: none;
	}

	.it-nav__utils-divider {
		display: none;
	}

	.xsis-lang__trigger {
		padding: 0 8px;
	}
}
