/*
 * NPU Logo Band block.
 * Figma reference: 0277aepgvQrSa8qJCDLosA — node 293:251.
 *
 * Figma layout:
 *   - section padding 40px top/bottom
 *   - wrapper gap 20px between eyebrow row and logos row
 *   - 6 cells, flex 1 1 0 (equal share of the 1400px inner width)
 *   - each logo-box is 100px tall; logo centered at its natural viewBox size
 *
 * Logos export from Figma with width="100%" height="100%" — the render.php
 * parses each SVG's viewBox and emits explicit width/height HTML attributes
 * so the browser renders at the real Figma pixel size.
 */

.npu-logo-band {
	background: #f7f7f7;
	--npu-block-padding-top: 2.5rem;
	--npu-block-padding-bottom: 2.5rem;
	padding: var(--npu-block-padding-top) 0 var(--npu-block-padding-bottom);
}

.npu-logo-band__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
}

.npu-logo-band__eyebrow {
	font-family: var(--npu-font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.4;
	color: var(--npu-text-muted);
	text-align: center;
	margin: 0;
	width: 100%;
}

.npu-logo-band__grid {
	display: grid;
	width: 100%;
	align-items: center;
	justify-content: center;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	column-gap: 24px;
	row-gap: 12px;
}

.npu-logo-band__cell {
	height: 100px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.npu-logo-band__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	padding: 0 12px;
}

.npu-logo-band__item.is-active {
	opacity: 1;
	animation-name: fadeIn;
	animation-duration: 1s;
	animation-delay: 0s;
	animation-timing-function: cubic-bezier(.77,0,.175,1);
	animation-fill-mode: both;
	animation-iteration-count: 1;
	pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
	.npu-logo-band__item.is-active {
		animation: none;
	}
}

.npu-logo-band__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

/* Render at intrinsic (HTML width/height) by default, but cap so any
   edge-case logo can never exceed the 50px cap or its cell width. */
.npu-logo-band__cell img,
.npu-logo-band__link img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 50px;
}

@media (max-width: 980px) {
	.npu-logo-band__grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}
}

@media (max-width: 600px) {
	.npu-logo-band__cell {
		height: 120px;
	}
}
