/* MGIT Flash News ticker - all sizes in px (CBIT theme root font-size safe). */

.mfn-ticker {
	--mfn-label-bg: #ffff00;
	--mfn-label-color: #000000;
	--mfn-link-color: #0000cc;
	--mfn-bar-bg: #f7f7f7;
	--mfn-font-size: 15px;
	--mfn-height: 40px;

	display: flex;
	align-items: stretch;
	width: 100%;
	height: var(--mfn-height);
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--mfn-bar-bg);
	font-size: var(--mfn-font-size);
	line-height: var(--mfn-height);
	box-sizing: border-box;
}

.mfn-ticker * {
	box-sizing: border-box;
}

/* ---- Label ("Flash:") ---- */
.mfn-ticker .mfn-label {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: var(--mfn-label-bg);
	color: var(--mfn-label-color);
	font-weight: 700;
	white-space: nowrap;
}

/* ---- Scrolling area ---- */
.mfn-ticker .mfn-viewport {
	flex: 1 1 auto;
	position: relative;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.mfn-ticker .mfn-track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	height: 100%;
	will-change: transform;
}

.mfn-ticker.mfn-ready.mfn-dir-ltr .mfn-track {
	animation: mfn-scroll-ltr linear infinite;
}

.mfn-ticker.mfn-ready.mfn-dir-rtl .mfn-track {
	animation: mfn-scroll-rtl linear infinite;
}

/* Pause on hover / keyboard focus, unless "scroll permanently" is on. */
.mfn-ticker:not(.mfn-continuous):hover .mfn-track,
.mfn-ticker:not(.mfn-continuous):focus-within .mfn-track {
	animation-play-state: paused;
}

@keyframes mfn-scroll-ltr {
	from { transform: translate3d(calc(-1 * var(--mfn-distance, 0px)), 0, 0); }
	to   { transform: translate3d(0, 0, 0); }
}

@keyframes mfn-scroll-rtl {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(calc(-1 * var(--mfn-distance, 0px)), 0, 0); }
}

/* ---- Items (reset theme ul/li styling with scoped selectors) ---- */
.mfn-ticker ul.mfn-group {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	align-items: center;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
}

.mfn-ticker ul.mfn-group li.mfn-item {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin: 0;
	padding: 0 0 0 18px;
	list-style: none;
	background: none;
	border: 0;
	white-space: nowrap;
	line-height: var(--mfn-height);
}

.mfn-ticker ul.mfn-group li.mfn-item::before,
.mfn-ticker ul.mfn-group li.mfn-item::after {
	content: none;
	display: none;
}

.mfn-ticker .mfn-item a.mfn-link,
.mfn-ticker .mfn-item span.mfn-link {
	color: var(--mfn-link-color);
	font-size: var(--mfn-font-size);
	text-decoration: none;
	border: 0;
	box-shadow: none;
	background: none;
}

.mfn-ticker .mfn-item a.mfn-link:hover,
.mfn-ticker .mfn-item a.mfn-link:focus {
	color: var(--mfn-link-color);
	text-decoration: underline;
}

.mfn-ticker .mfn-item .mfn-sep {
	display: inline-block;
	padding-left: 18px;
	color: var(--mfn-link-color);
	opacity: 0.55;
}

/* ---- NEW starburst badge ---- */
.mfn-ticker .mfn-item .mfn-new {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 52px;
	height: 28px;
	margin-right: 8px;
	background: #9cb31a;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1;
	clip-path: polygon(50.0% 0.0%, 58.0% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42.0%, 100.0% 50.0%, 90.2% 58.0%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58.0% 90.2%, 50.0% 100.0%, 42.0% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58.0%, 0.0% 50.0%, 9.8% 42.0%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42.0% 9.8%);
	animation: mfn-pulse 1.6s ease-in-out infinite;
}

@keyframes mfn-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.08); }
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
	.mfn-ticker {
		font-size: 13px;
	}
	.mfn-ticker .mfn-label {
		padding: 0 8px;
	}
	.mfn-ticker .mfn-item a.mfn-link,
	.mfn-ticker .mfn-item span.mfn-link {
		font-size: 13px;
	}
	.mfn-ticker .mfn-item .mfn-new {
		width: 44px;
		height: 24px;
		font-size: 10px;
	}
}
