/*---- Notice banner (one line, fixed at the very top) ----*/
.notice-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1040; /* above .navbar-fixed-top (1030) */
	padding: 8px 40px; /* right padding leaves room for the close button */
	background: #2b2b2b;
	color: #fff;
	font-size: 13px;
	line-height: 20px;
}
.notice-banner[hidden] {
	display: none;
}

.notice-banner__viewport {
	overflow: hidden;
	text-align: center;
}
.notice-banner__text {
	display: inline-block;
	margin: 0;
	white-space: nowrap;
}

/* Text too long for the screen (phones): it scrolls right to left once. */
.notice-banner.is-scrolling .notice-banner__viewport {
	text-align: left;
}
/* Fallback for visitors who ask for reduced motion: let the text wrap instead. */
.notice-banner.is-wrapped .notice-banner__text {
	white-space: normal;
}

.notice-banner__close {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
}
.notice-banner__close:hover,
.notice-banner__close:focus {
	opacity: 1;
}

/* Push the fixed navbar down while the notice is showing. */
.navbar-fixed-top {
	transition: top 0.3s ease;
}
body.has-notice .navbar-fixed-top {
	top: var(--notice-h, 0);
}
