/* Hero slider: fills the .tdcvn-hero box behind its overlay (z-index 1) and headline (z-index 2);
   only the arrows and caption sit above them. */
.tps-hero-slider {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.tps-hero-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.tps-hero-slide.is-active {
	opacity: 1;
}
.tps-hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tps-hero-slide figcaption {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 3;
	max-width: calc(100% - 32px);
	padding: 4px 10px;
	background: rgba(0, 0, 0, 0.55);
	font-size: 0.9rem;
}
.tps-hero-slide figcaption a {
	color: #fff;
	text-decoration: none;
}
.tps-hero-slide:not(.is-active) figcaption {
	visibility: hidden;
}
.tps-hero-prev,
.tps-hero-next {
	position: absolute;
	top: 50%;
	z-index: 3;
	width: 44px;
	height: 44px;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 28px;
	line-height: 44px;
	cursor: pointer;
}
.tps-hero-prev { left: 12px; }
.tps-hero-next { right: 12px; }
.tps-hero-prev:hover,
.tps-hero-next:hover,
.tps-hero-prev:focus-visible,
.tps-hero-next:focus-visible {
	background: rgba(0, 0, 0, 0.75);
}

/* Partner orbit: logos travel an ellipse (box is 2:1, positions are % of it, so a % radius is
   wider than tall). showcase.js moves left/top each frame; logos stay upright on their own. */
.tps-orbit {
	position: relative;
	width: 100%;
	max-width: 760px;
	aspect-ratio: 2 / 1;
	margin: 24px auto;
	/* Semi-axes in % of the box, read by showcase.js; PHP's ORBIT_*_PCT only seed the no-JS layout. */
	--rx: 40;
	--ry: 36;
}
.tps-orbit-ring {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tps-orbit-ring li {
	position: absolute;
	width: clamp(70px, 14%, 110px);
	aspect-ratio: 11 / 6;
	transform: translate(-50%, -50%);
	cursor: pointer;
}
.tps-orbit-ring li img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.2s ease;
}
.tps-orbit-ring li:hover img,
.tps-orbit-ring li:focus img,
.tps-orbit-ring li.is-current img {
	transform: scale(1.15);
}
.tps-orbit-center {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44%;
	transform: translate(-50%, -50%);
	text-align: center;
}
.tps-orbit-center h3 {
	margin: 0 0 8px;
	font-size: 1.15rem;
}
.tps-orbit-center p {
	margin: 0;
}
.tps-orbit-hint {
	opacity: 0.6;
	font-size: 0.9rem;
	line-height: 1.3;
}

/* Phones keep the orbit, just in a taller box (a 2:1 ellipse would squeeze 9 logos into ~180px of
   height) with smaller logos. Reduced-motion users still get it moving (the owner asked for it);
   hovering, focusing or tapping a logo pauses it. */
@media (max-width: 480px) {
	.tps-orbit {
		aspect-ratio: 4 / 3;
		/* Narrower so the widest logos (Jotun, Wagner) stay inside the screen at the sides. */
		--rx: 36;
		--ry: 38;
	}
	.tps-orbit-ring li {
		width: clamp(48px, 16%, 70px);
	}
	.tps-orbit-center {
		width: 50%;
	}
	.tps-orbit-center h3 {
		font-size: 0.95rem;
	}
	.tps-orbit-center p,
	.tps-orbit-hint {
		font-size: 0.8rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tps-hero-slide {
		transition: none;
	}
}
