/* This bar stays in document flow and scrolls away above the sticky header. */
#site-topbar {
	position: relative;
	background: #f5f5f5;
}

#site-topbar .site-topbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	width: 100%;
	max-width: 1400px;
	box-sizing: border-box;
	margin-inline: auto;
	padding: 5px 10px;
}

#site-topbar .site-topbar-column {
	min-width: 0;
	overflow-wrap: anywhere;
}

#site-top2 { text-align: center; }
#site-top3 { text-align: right; }

/* Absolute positioning would cover the topbar before scrolling. */
body.has-topbar #sp-header:not(.header-sticky) {
	position: relative;
	top: auto;
}

@media (min-width: 992px) {
	body.has-sidebar #site-topbar .site-topbar-inner {
		max-width: calc(var(--site-width) - var(--sidebar-width));
		margin-inline: 0;
	}
}

@media (max-width: 760px) {
	#site-top2 {
		display: none;
	}

	#site-top1 {
		flex: 0 0 66.666667%;
		width: 66.666667%;
		max-width: 66.666667%;
	}

	#site-top3 {
		flex: 0 0 33.333333%;
		width: 33.333333%;
		max-width: 33.333333%;
	}
}
