/*
 * Certifications. Desktop: Homepage security block (copy 415px wide, grid of 141px cells with hairlines).
 */

.syb-certs__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.syb-certifications .syb-head {
	gap: 12px;
	margin-bottom: 0;
}

.syb-certifications .syb-head__text {
	max-width: 380px;
	color: #575870;
}

.syb-certs__buttons {
	margin-top: 24px;
}

.syb-certs__grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.syb-certs__row {
	position: relative;
	display: flex;
	justify-content: center;
	width: 100%;
	margin: -1px 0 0;
	padding: 0;
	list-style: none;
}

/* Hairlines above and below each row, fading out towards both ends. */
.syb-certs__row::before,
.syb-certs__row::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(178, 184, 215, 0) 0%, #b2b8d7 22%, #b2b8d7 78%, rgba(178, 184, 215, 0) 100%);
}

.syb-certs__row::before {
	top: 0;
}

.syb-certs__row::after {
	bottom: 0;
}

.syb-certs__item {
	display: flex;
	flex: 0 1 141px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 0;
	min-height: 124px;
	margin-left: -1px;
	padding: 12px 8px;
	border-inline: 1px solid #b2b8d7;
	color: #575870;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-align: center;
}

.syb-certs__item img {
	width: auto;
	max-width: 75px;
	height: 48px;
	object-fit: contain;
}

@media (min-width: 768px) {
	.syb-certs__buttons {
		justify-content: flex-start;
		margin-top: 28px;
	}

	.syb-certifications .syb-head {
		gap: 17px;
	}

	.syb-certs__item {
		min-height: 141px;
		padding: 16px;
		font-size: 16px;
		line-height: 22px;
	}

	.syb-certs__item img {
		height: 55px;
	}
}

@media (min-width: 1000px) {
	/* 1041px block: a 300px copy column and a 741px column of marks. The copy is wider than
	   its column on purpose; it runs over the faded left end of the hairlines. */
	.syb-certs__inner {
		display: grid;
		grid-template-columns: minmax(0, 300fr) minmax(0, 741fr);
		align-items: center;
		gap: 0;
	}

	/* 415px on a 300px column; on narrower screens it shrinks with the column, so the
	   copy never reaches the first marks. */
	.syb-certs__copy {
		position: relative;
		z-index: 1;
		width: min(415px, 138.33%);
		max-width: none;
	}

	.syb-certs__grid {
		padding-left: 40px;
	}
}

/* On the 1440px frame the copy starts 134px inside the content area and the columns are fixed. */
@media (min-width: 1320px) {
	.syb-certs__inner {
		grid-template-columns: 300px 741px;
		padding-left: clamp(0px, (100vw - 1320px) * 1.12, 134px);
	}
}

/* Optional icon above the title */

.syb-certs__icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 21px;
	border-radius: var(--radius);
	background: #e9e8ff;
	color: var(--c-primary);
}

.syb-certifications {
	overflow: hidden;
}

/* Wide copy: Capabilities "Frame 89" (565px copy starting 55px inside the content area). */

@media (min-width: 1320px) {
	.syb-certifications--wide .syb-certs__inner {
		grid-template-columns: 476px 741px;
		padding-left: clamp(0px, (100vw - 1320px) * 0.46, 55px);
	}

	.syb-certifications--wide .syb-certs__copy {
		width: 565px;
	}

	.syb-certifications--wide .syb-head {
		gap: 16px;
	}

	.syb-certifications--wide .syb-head__text {
		max-width: 509px;
		color: var(--c-body);
	}

	.syb-certifications--wide .syb-certs__buttons {
		margin-top: 19px;
	}
}

/* With the wide copy the marks line up with the bottom of the copy block. */
@media (min-width: 1000px) {
	.syb-certifications--wide .syb-certs__inner {
		align-items: end;
	}
}

/* Edge to edge: For Collecting Agents "Security & Compliance" (440px copy left, 741px of marks right). */

@media (min-width: 1320px) {
	.syb-certifications--edge .syb-certs__inner {
		grid-template-columns: 440px 741px;
		justify-content: space-between;
		padding-left: 0;
	}

	.syb-certifications--edge .syb-certs__copy {
		width: 440px;
	}

	.syb-certifications--edge .syb-certs__icon {
		margin-bottom: 20px;
	}

	.syb-certifications--edge .syb-head {
		gap: 20px;
	}

	.syb-certifications--edge .syb-head__text {
		max-width: none;
		color: var(--c-body);
	}

	.syb-certifications--edge .syb-certs__buttons {
		margin-top: 20px;
	}
}
