/**
 * Spiro Downloads page — 2026 redesign (24-downloads-desktop.pdf).
 */

#downloads.section {
	background-color: var(--spiro-color-bg, #f6f6f6);
}

/* CMS title row — rendered inside .spiro-downloads instead (same .container as list) */
#downloads > div:first-child {
	display: none;
}

#downloads .spacer-bott-90.max-width-1260 {
	padding-top: clamp(56px, 7vw, 110px);
	padding-bottom: clamp(56px, 7vw, 110px);
}

#downloads .spacer-bott-90 .row.flex_container,
#downloads .spacer-bott-90 .cell_1_1 {
	min-width: 100%;
	max-width: 100%;
}

/* --------------------------------------------------------------------------
   Page title + list
   -------------------------------------------------------------------------- */

.spiro-downloads {
	margin: 0;
}

.spiro-downloads__page-title {
	margin: 0 0 clamp(32px, 4vw, 56px);
	padding: 0;
	color: var(--spiro-color-ink, #000);
	font-family: var(--spiro-font-family, "Outfit", Arial, sans-serif);
	/* PDF 24: DOWNLOADS 63 ExtraBold @ 1920 */
	font-size: var(--spiro-type-hero);
	font-weight: var(--spiro-font-weight-extrabold, 800);
	line-height: 1;
	text-align: left;
	text-transform: uppercase;
}

.spiro-downloads__groups {
	display: flex;
	flex-direction: column;
}

.spiro-downloads__group {
	display: grid;
	grid-template-columns: minmax(120px, 22%) 1fr;
	gap: 0 clamp(24px, 4vw, 64px);
	align-items: start;
	padding: clamp(22px, 2.5vw, 34px) 0;
	border-top: 1px solid #d9d9d9;
}

.spiro-downloads__group:first-child {
	border-top: 0;
	padding-top: 0;
}

.spiro-downloads__category {
	margin: 0;
	padding: 4px 0 0;
	color: var(--spiro-color-blue, #007ec1);
	font-family: var(--spiro-font-family, "Outfit", Arial, sans-serif);
	/* PDF 24: category labels 28 ExtraBold @ 1920 */
	font-size: var(--spiro-type-card-title-lg);
	font-weight: var(--spiro-font-weight-extrabold, 800);
	line-height: 1.3;
	text-transform: uppercase;
}

.spiro-downloads__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.spiro-downloads__item {
	margin: 0;
	padding: 0;
}

.spiro-downloads__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	color: var(--spiro-color-ink, #000);
	text-decoration: none;
	transition: color 0.2s ease;
}

.spiro-downloads__link:hover,
.spiro-downloads__link:focus {
	color: var(--spiro-color-blue, #007ec1);
}

.spiro-downloads__icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #000;
	overflow: hidden;
}

.spiro-downloads__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.spiro-downloads__arrow-motion {
	transform-box: fill-box;
	transform-origin: center;
	transform: translateY(0);
}

/* Hover: enter → pause → exit → quick snap → restart (steps 1–4 unchanged) */
.spiro-downloads__link:hover .spiro-downloads__arrow-motion,
.spiro-downloads__link:focus-visible .spiro-downloads__arrow-motion {
	animation: spiro-download-arrow-hover 1.8s ease-in-out infinite;
}

@keyframes spiro-download-arrow-hover {
	0% {
		transform: translateY(-7px);
		opacity: 0;
	}

	17.5% {
		opacity: 1;
	}

	38.6% {
		transform: translateY(0);
		opacity: 1;
	}

	66.7% {
		transform: translateY(0);
		opacity: 1;
	}

	96.5% {
		transform: translateY(7px);
		opacity: 0;
	}

	98% {
		transform: translateY(-7px);
		opacity: 0;
	}

	100% {
		transform: translateY(-7px);
		opacity: 0;
	}
}

.spiro-downloads__label {
	font-family: var(--spiro-font-family, "Outfit", Arial, sans-serif);
	font-size: clamp(15px, 1.1vw, 18px);
	font-weight: var(--spiro-font-weight-bold, 700);
	line-height: 1.35;
	text-transform: uppercase;
}

.spiro-downloads__label em {
	font-style: normal;
}

@media (max-width: 767px) {
	.spiro-downloads__group {
		grid-template-columns: 1fr;
		gap: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spiro-downloads__link:hover .spiro-downloads__arrow-motion,
	.spiro-downloads__link:focus-visible .spiro-downloads__arrow-motion {
		animation: none;
	}

	.spiro-downloads__arrow-motion {
		transform: none;
		opacity: 1;
	}
}
