/**
 * Sticky Column Steps
 *
 * Just the cards. The heading, button and sticky column are Salient's own.
 * Sizes, colours and fonts are written per instance by sticky-steps.php,
 * and only when set; this file holds layout and behaviour.
 */

.cl-sst,
.cl-sst *,
.cl-sst *::before,
.cl-sst *::after {
	box-sizing: border-box;
}

/* ---- Cards --------------------------------------------------------- */

html body .cl-sst .cl-sst__cards {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	min-width: 0;
	width: 100%;
}

html body .cl-sst .cl-sst__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0 !important;
	padding: 48px;
	list-style: none !important;
	background-color: #EFECE8;
	border-radius: 16px;
}

.cl-sst__card::before,
.cl-sst__card::marker {
	content: none;
	display: none;
}

.cl-sst__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	margin-bottom: 24px;
	overflow: hidden;
	border-radius: 10px;
}

html body .cl-sst .cl-sst__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.cl-sst__number {
	display: block;
	margin-bottom: 32px;
	font-size: 64px;
	line-height: 1;
	opacity: 0.5;
}

.cl-sst__icon {
	display: block;
	width: 48px;
	height: 48px;
	margin-bottom: 32px;
}

.cl-sst__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

html body .cl-sst .cl-sst__title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	color: inherit;
	line-height: 1.1;
}

html body .cl-sst .cl-sst__body p {
	margin: 0 0 0.75em;
	padding: 0;
	color: inherit;
}

html body .cl-sst .cl-sst__body p:last-child {
	margin-bottom: 0;
}

/* Fade-up entrance. Only hidden once script.js has marked the section
   ready, so without JavaScript every card is visible. */
.cl-sst--animate.is-ready .cl-sst__card {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
	transition-delay: var(--cl-sst-delay, 0ms);
}

.cl-sst--animate.is-ready .cl-sst__card.is-in {
	opacity: 1;
	transform: none;
}

/* Phones: card titles wrap onto two or three lines at these widths, and the
   desktop 1.1 line-height leaves them almost touching. */
@media (max-width: 600px) {
	html body .cl-sst .cl-sst__title {
		line-height: 1.2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cl-sst--animate.is-ready .cl-sst__card {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
