/* Component: topbar — green fixed bar (60px desktop, 40px < 768px). */

.hg-topbar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: var(--hg-z-topbar);
	width: 100%;
	background: var(--hg-green);
}

.hg-topbar--static {
	position: relative;
}

.hg-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	max-width: 70vw;
	margin: 0 auto;
	padding: 17px 0;
	color: var(--hg-text-inverse);
	font-size: var(--hg-fs-base);
}

.hg-topbar__date,
.hg-topbar__info {
	width: 50%;
}

.hg-topbar__info {
	display: flex;
	flex-wrap: wrap;
}

.hg-topbar__cell {
	width: 33.333%;
	list-style: none;
}

.hg-topbar__cell--center {
	text-align: center;
}

.hg-topbar__link {
	color: var(--hg-text-inverse);
}

.hg-topbar__social {
	display: none;
	justify-content: space-evenly;
	border-left: 1px solid;
}

.hg-topbar__social-item {
	line-height: var(--hg-lh-base);
}

@media (min-width: 960px) {
	.hg-topbar__cell {
		width: 25%;
	}
}

/*
 * Bug-for-bug: the live CSS defines the UIkit "medium" widths inside @media (max-width: 768px), so from 769 to
 * 959px the cells are 100% wide and stack (the bar grows to 112px and covers the top of the navbar).
 */
@media (min-width: 769px) and (max-width: 959px) {
	.hg-topbar__cell {
		width: 100%;
	}
}

@media (min-width: 1025px) {
	.hg-topbar__social {
		display: flex;
	}
}

@media (max-width: 1440px) {
	.hg-topbar__inner {
		max-width: 80vw;
	}
}

@media (max-width: 1280px) {
	.hg-topbar__inner {
		max-width: 90vw;
	}
}

@media (max-width: 1024px) {
	.hg-topbar__inner {
		text-align: center;
	}

	.hg-topbar__inner * {
		font-size: var(--hg-fs-sm);
	}

	.hg-topbar__date {
		width: 45%;
	}

	.hg-topbar__info {
		width: 55%;
	}
}

@media (max-width: 767px) {
	.hg-topbar__inner {
		max-width: 100vw;
		padding: 7px 0;
	}

	.hg-topbar__date {
		display: none;
	}

	.hg-topbar__info {
		width: 100%;
		padding: 0 10px;
	}
}
