/* Running Bug — site header layout (menu centred, consistent spacing). Scoped to .trb-topbar. */

.trb-topbar .trb-topbar__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	min-height: 80px;
}

.trb-topbar .trb-topbar__logo {
	justify-self: start;
	min-width: 0;
}

.trb-topbar .trb-topbar__logo img {
	width: auto;
	height: 52px;
	max-width: 190px;
	object-fit: contain;
}

.trb-topbar .trb-topbar__desktop {
	justify-self: center;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.trb-topbar .trb-topnav {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.trb-topbar .trb-topnav > li {
	margin: 0;
	padding: 0;
}

.trb-topbar .trb-topnav a {
	display: inline-block;
	position: relative;
	padding: 9px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	color: #fff !important;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.trb-topbar .trb-topnav a::after {
	content: "";
	position: absolute;
	left: 9px;
	right: 9px;
	bottom: 3px;
	height: 2px;
	border-radius: 2px;
	background: #c8e83a;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.18s ease;
}

.trb-topbar .trb-topnav a:hover,
.trb-topbar .trb-topnav a:focus-visible,
.trb-topbar .trb-topnav .current-menu-item > a {
	background: rgba(255, 255, 255, 0.1);
	color: #fff !important;
}

.trb-topbar .trb-topnav a:hover::after,
.trb-topbar .trb-topnav a:focus-visible::after,
.trb-topbar .trb-topnav .current-menu-item > a::after {
	transform: scaleX(1);
}

.trb-topbar .trb-topbar__tools {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 10px;
}

@media (max-width: 1280px) {
	.trb-topbar .trb-topnav a {
		padding: 8px 7px;
		font-size: 11.5px;
		letter-spacing: 0.02em;
	}

	.trb-topbar .trb-topnav a::after {
		left: 7px;
		right: 7px;
	}
}

@media (max-width: 960px) {
	.trb-topbar .trb-topbar__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		min-height: 72px;
	}

	.trb-topbar .trb-topbar__desktop {
		display: none;
	}

	.trb-topbar .trb-topbar__logo img {
		height: 50px;
	}
}
