/* ============================================================
   HOMEPAGE TENANT LOGO SLIDER — .home-slider
   Continuous CSS marquee — no JS. Logo list is duplicated once
   in the markup (.home-slider__set × 2) so the keyframe below
   loops seamlessly at translateX(-50%).
   ============================================================ */

.home-slider {
	background: var(--color-white);
	padding-top: var(--space-7);
}

.home-slider__inner {
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--container-pad);
	overflow: hidden;
	contain: paint;
}

.home-slider__track {
	display: flex;
	width: max-content;
	animation: home-slider-scroll 30s linear infinite;
	backface-visibility: hidden;
}

.home-slider__set {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.home-slider__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	flex-shrink: 0;
	width: 160px;
	height: 72px;
	padding-inline: var(--space-7);
}

.home-slider__logo::after {
	content: "";
	position: absolute;
	inset: 0 var(--space-7);
	border: 2px solid var(--color-white);
	pointer-events: none;
}

.home-slider__logo img {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
}

@keyframes home-slider-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (min-width: 992px) {
	.home-slider__logo {
		width: 210px;
		height: 104px;
		padding-inline: var(--space-8);
	}

	.home-slider__logo::after {
		inset-inline: var(--space-8);
	}
}

/* ---------------------------------------------------------- */
/* Reduced motion — stop the loop, show one static, manually
   scrollable row instead of a moving/clipped one.             */
/* ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.home-slider__inner {
		overflow-x: auto;
	}

	.home-slider__track {
		animation: none;
		width: auto;
	}

	.home-slider__set[aria-hidden="true"] {
		display: none;
	}
}
