/* codit-i18n — language switcher + "available in your language" hint. Loaded on every page that has a translation. */

.codit-lang-switch {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #ffffff;
	color: #1f2937;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
	font-size: 14px;
	line-height: 1;
	font-family: inherit;
}
.codit-lang-switch a {
	color: #0b7a3d;
	text-decoration: none;
	font-weight: 600;
	padding: 4px 2px;
}
.codit-lang-switch a:hover,
.codit-lang-switch a:focus {
	text-decoration: underline;
}
.codit-lang-switch a[aria-current="true"] {
	color: #6b7280;
	font-weight: 500;
	pointer-events: none;
}
.codit-lang-switch__icon {
	font-size: 16px;
}
.codit-lang-switch__sep {
	color: #9ca3af;
}
/*
 * Oct 2026: the full fixed bar (≈450px) covered headings on desktop and the hero
 * buttons on phones, and was wider than a 390px screen.
 * Desktop: collapse to the globe + current language, expand on hover / keyboard focus.
 * Mobile: drop the fixed position — the nav is printed after the footer, so it becomes
 * a normal full-width row at the very bottom of the page.
 */
@media (min-width: 992px) {
	.codit-lang-switch a:not([aria-current="true"]),
	.codit-lang-switch .codit-lang-switch__sep {
		display: none;
	}
	.codit-lang-switch:hover a,
	.codit-lang-switch:focus-within a,
	.codit-lang-switch:hover .codit-lang-switch__sep,
	.codit-lang-switch:focus-within .codit-lang-switch__sep {
		display: inline;
	}
}
@media (max-width: 991px) {
	.codit-lang-switch {
		position: static;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px 10px;
		width: 100%;
		box-sizing: border-box;
		margin: 0;
		padding: 14px 16px 18px;
		border-radius: 0;
		box-shadow: none;
		border-top: 1px solid #e5e7eb;
		font-size: 14px;
	}
	.codit-lang-switch a {
		padding: 8px 4px; /* 40px+ tap target */
	}
}

/* Hint bar: shown only by codit-i18n.js when the browser prefers a language this page exists in. Never redirects. */
.codit-lang-hint {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 10px 44px 10px 16px;
	background: #0b7a3d;
	color: #ffffff;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.codit-lang-hint a.codit-lang-hint__cta {
	color: #0b7a3d;
	background: #ffffff;
	border-radius: 6px;
	padding: 6px 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.codit-lang-hint a.codit-lang-hint__cta:hover {
	background: #e6f4ec;
}
.codit-lang-hint__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	appearance: none;
	border: 0;
	background: transparent;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}
body.codit-lang-hint-open {
	padding-top: 48px;
}
