/* IJsbaan-status lichtkrant. Colours from the IJsclub design system:
   ice #dce9fa, ice-deep #0f3b66; traffic-light green/orange are the one functional exception. */
.ijs-bar {
	--ijs-ice: #dce9fa;
	--ijs-ice-deep: #0f3b66;
	--ijs-green: #22a447;
	--ijs-orange: #ff9500;
	--ijs-red: #ff0000;
	--ijs-display: "Bebas Neue", Oswald, Impact, "Arial Narrow", sans-serif;
	--ijs-sans: Montserrat, Arial, Helvetica, sans-serif;
	background: var(--ijs-ice);
	border-top: 3px solid var(--ijs-ice-deep);
	color: var(--ijs-ice-deep);
	font-family: var(--ijs-sans);
	margin: 0;
}
.ijs-bar[hidden] { display: none; }
.ijs-inner {
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 14px 40px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}
.ijs-state { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.ijs-lights { display: flex; gap: 6px; padding: 8px 10px; background: var(--ijs-ice-deep); border-radius: 999px; }
.ijs-light { display: block; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ijs-is-open .ijs-light-open { background: var(--ijs-green); }
.ijs-is-gaat-dicht .ijs-light-gaat-dicht { background: var(--ijs-orange); }
.ijs-is-dicht .ijs-light-dicht { background: var(--ijs-red); }
.ijs-words { display: flex; flex-direction: column; }
.ijs-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.ijs-label { font-family: var(--ijs-display); font-size: 34px; line-height: 1; text-transform: uppercase; }

.ijs-ticker {
	flex: 1 1 320px;
	min-width: 0;
	overflow: hidden;
	border-left: 2px solid var(--ijs-ice-deep);
	padding-left: 20px;
}
.ijs-ticker[hidden] { display: none; }
.ijs-track { display: inline-flex; gap: 80px; white-space: nowrap; font-size: 18px; font-weight: 700; line-height: 1.4; }
.ijs-msg-copy { display: none; }

/* Only when the text does not fit (set by bar.js). */
.ijs-scrolling .ijs-msg-copy { display: inline; }
.ijs-scrolling .ijs-track { animation: ijs-ticker var(--ijs-duration, 20s) linear infinite; }
.ijs-paused .ijs-track { animation-play-state: paused; }
@keyframes ijs-ticker { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 40px)); } }

/* Text that does not move: wrap it instead. */
.ijs-bar:not(.ijs-scrolling) .ijs-track { white-space: normal; display: block; }

.ijs-pause {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 2px solid var(--ijs-ice-deep);
	border-radius: 0;
	color: var(--ijs-ice-deep);
	cursor: pointer;
}
.ijs-pause[hidden] { display: none; }
.ijs-pause:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
/* Pause icon: two bars. Play icon (when paused): a triangle. */
.ijs-pause-icon { display: block; width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; box-sizing: border-box; }
.ijs-paused .ijs-pause-icon { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }

.ijs-updated { font-size: 13px; line-height: 1.3; flex-shrink: 0; }

.ijs-sr {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 700px) {
	.ijs-inner { padding: 12px 16px; }
	.ijs-inner { gap: 10px 12px; }
	.ijs-state { flex-basis: 100%; }
	.ijs-ticker { order: 2; flex-basis: 100%; border-left: 0; padding-left: 0; border-top: 2px solid var(--ijs-ice-deep); padding-top: 10px; }
	.ijs-updated { order: 3; flex: 1 1 auto; }
	.ijs-pause { order: 4; }
	.ijs-label { font-size: 30px; }
	.ijs-track { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.ijs-scrolling .ijs-track { animation: none; }
}
