/* ==========================================================================
   Talento — header language button
   One button, showing the language you are NOT currently reading. On the
   English site it reads العربية; on the Arabic site it reads English.
   Loads on both languages. Brand palette: #93DEFF accent, #323643 slate.
   ========================================================================== */

.talento-lang {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	line-height: 1;
	white-space: nowrap;
}

/* Floats into the header's right-hand cluster, beside the search.
   The Arabic header mirrors wholesale, so this follows to the left. */
.talento-lang.alignright {
	float: right;
	margin-top: 0.2rem;
	margin-inline-end: 0.9rem;
}

[dir="rtl"] .talento-lang.alignright {
	float: left;
}

.talento-lang__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	background-color: #93deff;
	color: #1e212b;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 1px solid transparent;
	box-shadow: 0 1px 2px rgba(30, 33, 43, 0.08);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.talento-lang__btn:hover {
	background-color: #7ed3fb;
	color: #1e212b;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(30, 33, 43, 0.14);
}

.talento-lang__btn:active {
	transform: translateY(1px);
}

.talento-lang__btn:focus-visible {
	outline: 2px solid #0e6e8c;
	outline-offset: 2px;
}

/* The label carries its own script's font. */
.talento-lang__btn[hreflang="ar"] .talento-lang__label {
	font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
}

.talento-lang__globe {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	display: block;
}

/* Never mirror the globe — it is a symbol, not a direction. */
[dir="rtl"] .talento-lang__globe {
	transform: none;
}

@media (max-width: 781px) {
	.talento-lang.alignright {
		margin-inline-end: 0.5rem;
	}
	.talento-lang__btn {
		padding: 0.45rem 0.8rem;
		font-size: 0.78rem;
		gap: 0.3rem;
	}
	.talento-lang__btn[hreflang="ar"] .talento-lang__label {
		font-size: 0.86rem;
	}
	.talento-lang__globe {
		width: 13px;
		height: 13px;
	}
}
