/**
 * SigmaGraft Elements — Compliance Badges.
 *
 * Defaults only: every value here is overridable by the widget's controls.
 * Badge layout comes from the shared .sgx-grid system; dividers use the same
 * leading-edge + inline clip technique as the other sections.
 */

.sgx-cmp {
	position: relative;
	overflow-x: clip;
	isolation: isolate;
	padding: 64px 0;
	background-color: #FFFFFF;
}

.sgx-cmp__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.sgx-cmp__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 48px;
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 24px;
}

.sgx-cmp--container-full .sgx-cmp__inner {
	max-width: none;
}

/* ═════════ Intro column ═════════ */

.sgx-cmp__intro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 0 0 34%;
	max-width: 34%;
	min-width: 0;
	text-align: start;
}

.sgx-cmp__eyebrow {
	margin: 0 0 14px;
	color: #1A62C4;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.sgx-cmp__heading {
	margin: 0 0 14px;
	color: #0E2E5C;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.28;
}

.sgx-cmp__text {
	margin: 0 0 20px;
	max-width: 46ch;
	color: #5A6B7D;
	font-size: 14px;
	line-height: 1.7;
	text-wrap: pretty;
}

.sgx-cmp__link {
	--sgx-nudge: 4px;

	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #1A4C9B;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: color 220ms ease;
}

.sgx-cmp__link .sgx-icon {
	font-size: 11px;
	width: 11px;
	height: 11px;
	transition: transform 220ms ease;
}

.sgx-cmp__link--icon-after:hover .sgx-icon,
.sgx-cmp__link--icon-after:focus-visible .sgx-icon {
	transform: translateX(var(--sgx-nudge));
}

.sgx-cmp__link--icon-before:hover .sgx-icon,
.sgx-cmp__link--icon-before:focus-visible .sgx-icon {
	transform: translateX(calc(-1 * var(--sgx-nudge)));
}

[dir="rtl"] .sgx-cmp__link--icon-after:hover .sgx-icon {
	transform: translateX(calc(-1 * var(--sgx-nudge)));
}

[dir="rtl"] .sgx-cmp__link--icon-before:hover .sgx-icon {
	transform: translateX(var(--sgx-nudge));
}

/* ═════════ Badge grid ═════════ */

.sgx-cmp__grid-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.sgx-cmp-div-on .sgx-cmp__grid-wrap {
	overflow-x: clip;
	overflow-y: visible;
}

.sgx-cmp__grid {
	--sgx-div-w: 1px;
	--sgx-div-v: var(--sgx-div-w);
	--sgx-div-h: 0px;
	--sgx-div-color: #E1E8F0;
	--sgx-div-style: solid;
	--sgx-div-inset: 2px;
}

/* Pulls the leading rule of every row out of the clip. */
.sgx-cmp-div-on .sgx-cmp__grid {
	margin-inline-start: calc(-1 * var(--sgx-div-w));
}

.sgx-cmp__cell {
	position: relative;
	display: flex;
}

.sgx-cmp-div-on .sgx-cmp__cell::before {
	content: "";
	position: absolute;
	inset-inline-start: calc(-1 * var(--sgx-col-gap) / 2);
	top: var(--sgx-div-inset);
	bottom: var(--sgx-div-inset);
	border-inline-start: var(--sgx-div-v) var(--sgx-div-style) var(--sgx-div-color);
	pointer-events: none;
}

.sgx-cmp-div-on .sgx-cmp__cell::after {
	content: "";
	position: absolute;
	top: calc(-1 * var(--sgx-row-gap) / 2);
	inset-inline: var(--sgx-div-inset);
	border-top: var(--sgx-div-h) var(--sgx-div-style) var(--sgx-div-color);
	pointer-events: none;
}

.sgx-cmp-div-on .sgx-cmp__cell:first-child::after {
	content: none;
}

/* ═════════ Badge ═════════ */

.sgx-cmp__badge {
	--sgx-b-t: 240ms;
	--sgx-b-lift: 0px;

	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	min-width: 0;
	padding: 4px 16px;
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition:
		background-color var(--sgx-b-t) ease,
		border-color var(--sgx-b-t) ease,
		transform var(--sgx-b-t) ease;
}

.sgx-cmp__badge:hover {
	transform: translateY(var(--sgx-b-lift));
}

a.sgx-cmp__badge:focus-visible {
	outline: 2px solid #1A4C9B;
	outline-offset: 4px;
}

/* Fixed min height keeps logos and word marks on one baseline. */
.sgx-cmp__mark-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.sgx-cmp__mark {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	color: #1A4C9B;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.4px;
	transition: color var(--sgx-b-t) ease;
}

.sgx-cmp__mark-sub {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.1;
}

.sgx-cmp__logo {
	display: block;
	width: auto;
	max-width: 110px;
	max-height: 44px;
	object-fit: contain;
	transition: filter var(--sgx-b-t) ease;
}

.sgx-cmp__caption {
	display: block;
	color: #5A6B7D;
	font-size: 12px;
	line-height: 1.5;
	text-wrap: pretty;
	transition: color var(--sgx-b-t) ease;
}

/* ═════════ Responsive fallbacks ═════════ */

@media (max-width: 1024px) {

	.sgx-cmp__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.sgx-cmp__intro {
		flex: 1 1 auto;
		max-width: none;
	}

	.sgx-cmp__heading {
		font-size: 28px;
	}
}

@media (max-width: 767px) {

	.sgx-cmp__badge {
		padding: 4px 8px;
	}

	.sgx-cmp__heading {
		font-size: 24px;
	}

	.sgx-cmp__mark {
		font-size: 22px;
	}
}
