/* Download Center Stats */
.mp-downloadstats .mp-ds-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em 1em;
	margin-bottom: 1.5em;
}

.mp-downloadstats .mp-ds-summary {
	flex: 0 0 auto;
	margin: 0;
	white-space: nowrap;
}

.mp-ds-ticker {
	position: relative;
	flex: 1 1 18em;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.mp-ds-track {
	display: flex;
	width: max-content;
}

.mp-ds-animated .mp-ds-track {
	animation: mp-ds-scroll var(--mp-ds-duration, 40s) linear infinite;
}

.mp-ds-animated:hover .mp-ds-track,
.mp-ds-animated:focus-within .mp-ds-track {
	animation-play-state: paused;
}

@keyframes mp-ds-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.mp-ds-list {
	display: flex;
	gap: 0.5em;
	margin: 0;
	padding: 0.2em 0.5em 0.2em 0;
	list-style: none;
}

.mp-ds-item a {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.2em 0.75em;
	border: 1px solid #d3dde5;
	border-radius: 999px;
	background-color: #f4f8fb;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mp-ds-item a:hover,
.mp-ds-item a:focus {
	border-color: #105289;
	background-color: #e3eef7;
	text-decoration: none;
}

.mp-ds-item a:focus-visible {
	outline: 2px solid #4b8ec0;
	outline-offset: 1px;
}

.mp-ds-version {
	color: #5b6b7c;
	font-size: 0.92em;
}

.mp-ds-count {
	display: inline-flex;
	align-items: center;
	color: #5b6b7c;
}

.mp-ds-count .icon {
	color: inherit;
	font-size: 1em;
}

.mp-ds-trending a {
	border-color: #f0b58a;
	background-color: #fff5ec;
}

.mp-ds-trending .fa-fire {
	color: #e8590c;
}

/* Fewer than three items, or reduced motion: a still strip the visitor scrolls by hand. */
.mp-ds-ticker:not(.mp-ds-animated) {
	overflow-x: auto;
	-webkit-mask-image: none;
	mask-image: none;
}

@media (prefers-reduced-motion: reduce) {
	.mp-ds-animated {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.mp-ds-animated .mp-ds-track {
		animation: none;
	}

	.mp-ds-animated .mp-ds-list[aria-hidden="true"] {
		display: none;
	}
}

@media (max-width: 700px) {
	.mp-downloadstats .mp-ds-summary {
		white-space: normal;
	}

	.mp-ds-ticker {
		flex-basis: 100%;
	}
}
