:root {
	--portal-color-primary: #d71920;
	--portal-color-primary-dark: #a91319;
	--portal-color-white: #ffffff;
	--portal-content-width: 1256px;
}

.portal-topbar {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	min-height: 56px;
	background: var(--portal-color-primary);
}

.portal-topbar__inner {
	width: min(var(--portal-content-width), 100%);
	min-height: 56px;
	margin: 0 auto;
	padding: 7px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.portal-topbar__logo {
	overflow: hidden;
	color: var(--portal-color-white);
	font-size: clamp(14px, 2.5vw, 21px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.06em;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.portal-switch {
	padding: 3px;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 3px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.17);
}

.portal-switch__link {
	min-height: 36px;
	padding: 0 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	color: var(--portal-color-white);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.portal-switch__link[aria-current="page"] {
	background: var(--portal-color-white);
	color: var(--portal-color-primary-dark);
}

.portal-switch__link:hover,
.portal-switch__link:focus-visible {
	outline: 2px solid var(--portal-color-white);
	outline-offset: -2px;
}

@media (max-width: 640px) {
	.portal-topbar__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 7px;
		padding: 9px 12px;
	}

	.portal-topbar__logo {
		text-align: center;
	}

	.portal-switch,
	.portal-switch__link {
		flex: 1;
	}
}
