/* Heartland NWS Alert Ticker */

.hnf-nws-alert-ticker {
	display: grid;
	grid-template-columns: 180px 220px minmax(0, 1fr) 260px 260px;
	width: 100%;
	min-height: 68px;
	overflow: hidden;
	box-sizing: border-box;
	background: #111;
	border-top: 2px solid #444;
	border-bottom: 2px solid #444;
	color: #fff;
	font-family: "Arial Narrow", Arial, sans-serif;
	font-weight: 700;
	text-transform: uppercase;
}

.hnf-nws-alert-ticker *,
.hnf-nws-alert-ticker *::before,
.hnf-nws-alert-ticker *::after {
	box-sizing: border-box;
}

.hnf-nws-alert-ticker__label {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	background: #da020e;
	border-right: 2px solid #000;
	color: #fff;
	font-size: 20px;
	line-height: 1.1;
	text-align: center;
}

.hnf-nws-alert-ticker__event {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
	background: #333;
	border-right: 2px solid #000;
	color: #fff;
	font-size: 20px;
	line-height: 1.1;
	text-align: center;
}

.hnf-nws-alert-ticker__scroll {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	padding-left: 20px;
	background: #151515;
	border-left: 1px solid #333;
}

.hnf-nws-alert-ticker__text {
	min-width: 0;
	overflow: hidden;
	color: #fff;
	font-size: 22px;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hnf-nws-alert-ticker__main {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hnf-nws-alert-ticker__expires {
	display: block;
	margin-top: 2px;
	color: #fff;
	font-size: 14px;
	line-height: 1.1;
}

.hnf-nws-alert-ticker__office {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0 10px;
	overflow: hidden;
	background: #151515;
	border-right: 2px solid #000;
	border-left: 1px solid #333;
	color: #fff;
	font-size: 14px;
	line-height: 1.1;
	text-align: center;
}

.hnf-nws-alert-ticker__office-link {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hnf-nws-alert-ticker__office-link a {
	color: #66c2ff;
	text-decoration: none;
}

.hnf-nws-alert-ticker__office-link a:hover,
.hnf-nws-alert-ticker__office-link a:focus {
	color: #9bd8ff;
	text-decoration: underline;
}

.hnf-nws-alert-ticker__clock {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	background: #151515;
	border-left: 2px solid #000;
	color: #fff;
	text-align: center;
}

.hnf-nws-alert-ticker__time {
	font-size: 20px;
	line-height: 1.1;
	white-space: nowrap;
}

.hnf-nws-alert-ticker__date {
	margin-top: 2px;
	font-size: 14px;
	line-height: 1.1;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.hnf-nws-alert-ticker {
		grid-template-columns: 145px 180px minmax(0, 1fr) 200px;
	}

	.hnf-nws-alert-ticker__clock {
		display: none;
	}

	.hnf-nws-alert-ticker__label,
	.hnf-nws-alert-ticker__event {
		font-size: 16px;
	}

	.hnf-nws-alert-ticker__text {
		font-size: 18px;
	}
}

@media (max-width: 640px) {
	.hnf-nws-alert-ticker {
		grid-template-columns: 120px minmax(0, 1fr);
		min-height: 58px;
	}

	.hnf-nws-alert-ticker__event,
	.hnf-nws-alert-ticker__office,
	.hnf-nws-alert-ticker__clock {
		display: none;
	}

	.hnf-nws-alert-ticker__label {
		padding: 0 6px;
		font-size: 14px;
	}

	.hnf-nws-alert-ticker__scroll {
		padding-left: 12px;
	}

	.hnf-nws-alert-ticker__text {
		font-size: 16px;
	}

	.hnf-nws-alert-ticker__expires {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hnf-nws-alert-ticker,
	.hnf-nws-alert-ticker * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}