/* Site header (desktop) - additions on top of the legacy header rules in styleComplete.css */

/* Accent line under the header, the same one footer.css draws above the footer. */
body > header::after {
	content: "";
	align-self: stretch;
	display: block;
	height: 3px;
	background: linear-gradient(90deg, #1d61a1 0%, #3183d4 50%, #D0A650 80%, #fec736 100%);
}

/* ------- Language switcher (top bar) -------
   A globe + current code button opening SQ / EN / SR. The options keep the
   .translate class and language ids, so site.js switches the language and marks
   the current one .active exactly as before. */

/* The bar used to get its height from the margins of the old "Gjuha:" paragraph. */
.top-bar {
	min-height: 46px;
}

.lang-switch {
	position: relative;
}

.lang-switch-btn {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	height: 32px;
	padding: 0 .75em 0 .6em;
	font-family: inherit;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .02em;
	/* Sits on the yellow bar itself: no fill of its own, white outline, white globe and code. */
	color: #fff;
	background: transparent;
	border: 1px solid #fff;
	border-radius: 10px;
	cursor: pointer;
	transition: background .15s ease;
}

	.lang-switch-btn:hover,
	.lang-switch-btn[aria-expanded="true"] {
		background: rgba(255, 255, 255, .18);
	}

	.lang-switch-btn svg {
		flex-shrink: 0;
		width: 16px;
		height: 16px;
		color: #fff;
	}

.lang-switch-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 1100;
	min-width: 170px;
	padding: .35em;
	background: #fff;
	border: 1px solid #dbe4ee;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(6, 28, 57, .16);
}

	.lang-switch-menu[hidden] {
		display: none;
	}

	/* Overrides the top bar's white link text and hover underline. */
	.top-bar .lang-switch-menu a {
		display: flex;
		align-items: center;
		gap: .65em;
		margin: 0;
		padding: .55em .7em;
		font-size: .85rem;
		color: #0a2a4f;
		text-decoration: none;
		border: 0;
		border-radius: 8px;
	}

		.top-bar .lang-switch-menu a:hover {
			background: #eef6ff;
		}

		.top-bar .lang-switch-menu a.active {
			color: #1d61a1;
			font-weight: 700;
			background: #eef6ff;
		}

.lang-switch-code {
	display: inline-grid;
	place-items: center;
	min-width: 28px;
	height: 22px;
	padding: 0 .3em;
	font-size: .72rem;
	font-weight: 700;
	color: #1d61a1;
	background: rgba(29, 97, 161, .1);
	border-radius: 6px;
}

.top-bar .lang-switch-menu a.active .lang-switch-code {
	color: #fff;
	background: #1d61a1;
}

.lang-switch .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lang-switch-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.top-bar .lang-switch-menu a:focus-visible {
	outline: 3px solid #1d61a1;
	outline-offset: 2px;
}
