/* monolith-translate — EN | ไทย switcher.
 *
 * Mounted by switcher.php as the LAST <li> of .tp-menu, so it inherits the
 * menu-item flex/height rules from tp-components.css and reads as a fourth
 * menu item. Colours follow the nav's own grammar: gold for idle links,
 * cream (the nav's white) for the active language and on hover. Hex
 * fallbacks keep it legible on the dark bar if the directory tokens are
 * ever absent. */

.mt-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	padding: 0 24px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1;
	text-transform: uppercase;
}

.mt-lang-switch .mt-lang {
	color: var(--tp-nav-gold, #c5a065);
	text-decoration: none;
	transition: color 0.3s ease;
}

.mt-lang-switch .mt-lang:hover,
.mt-lang-switch .mt-lang:focus-visible {
	color: var(--tp-nav-cream, #f7f9f4);
}

.mt-lang-switch .mt-lang:focus-visible {
	outline: 2px solid var(--tp-nav-cream, #f7f9f4);
	outline-offset: 4px;
	border-radius: 8px;
}

.mt-lang-switch .mt-lang.is-active {
	color: var(--tp-nav-cream, #f7f9f4);
}

.mt-lang-switch .mt-lang-sep {
	color: rgba(197, 160, 101, 0.45);
}

/* Inside the mobile drawer (.tp-menu goes off-canvas at 768px): render as a
 * full-width row matching the other drawer items. */
@media (max-width: 768px) {
	.tp-menu .mt-lang-switch {
		width: 100%;
		box-sizing: border-box;
		padding: 20px 24px;
		font-size: 14px;
		letter-spacing: 0.12em;
		border-bottom: 1px solid rgba(197, 160, 101, 0.1);
	}
}
