/**
 * SigmaGraft Quality & Compliance — Regulatory Compliance.
 *
 * A dark band: centred intro, then a grid of numbered requirement cards.
 *
 * Own `sgxa-qc-rg` namespace, entirely separate from the About and Science
 * sets. base.css supplies only .sgxa-icon and .sgxa-reveal.
 *
 * The grid uses the hairline technique from the reference: the track carries a
 * translucent white and a 1px gap, each cell paints itself the card colour, so
 * adjacent cards share one perfectly even rule — including at the outer edge —
 * instead of doubling their borders where they meet.
 */

.sgxa-qc-rg {
	--sgxa-rg-line: rgba(255, 255, 255, 0.18);
	--sgxa-rg-cell: #143867;

	position: relative;
	background-color: #0E2E5C;
	padding: 92px 0;
}

.sgxa-qc-rg__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	margin-inline: auto;
	padding-inline: 24px;
}

.sgxa-qc-rg--container-boxed .sgxa-qc-rg__inner {
	max-width: 1140px;
}

.sgxa-qc-rg__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

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

.sgxa-qc-rg__intro {
	max-width: 760px;
	margin: 0 auto 48px;
	text-align: center;
}

.sgxa-qc-rg__kicker {
	margin: 0 0 15px;
	color: #8FC5FF;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sgxa-qc-rg__title {
	margin: 0;
	color: #FFFFFF;
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.sgxa-qc-rg__lede {
	max-width: 720px;
	margin: 18px auto 0;
	color: #C2CEDE;
	font-size: 16px;
	line-height: 1.75;
	text-wrap: pretty;
}

/* ═════════ Card grid ═════════ */

.sgxa-qc-rg__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background-color: var(--sgxa-rg-line);
	border: 1px solid var(--sgxa-rg-line);
}

/* Separated variant: real gaps, each card outlined on its own. */
.sgxa-qc-rg__grid--separated {
	background-color: transparent;
	border: 0;
	gap: 20px;
}

.sgxa-qc-rg__grid--separated .sgxa-qc-rg__card {
	border: 1px solid var(--sgxa-rg-line);
}

.sgxa-qc-rg__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	min-height: 270px;
	padding: 38px 40px 42px;
	background-color: var(--sgxa-rg-cell);
	transition: background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

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

.sgxa-qc-rg__badge {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border: 1px solid #4D6C94;
	border-radius: 50%;
	color: #9FC8F4;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.sgxa-qc-rg__badge--icon {
	font-size: 18px;
}

/* ═════════ Card text ═════════ */

.sgxa-qc-rg__card-title {
	margin: 22px 0 12px;
	color: #FFFFFF;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
}

.sgxa-qc-rg__text {
	margin: 0;
	color: #C4D0DF;
	font-size: 14px;
	line-height: 1.7;
	text-wrap: pretty;
}

.sgxa-qc-rg__link {
	margin-top: 18px;
	color: #9FC8F4;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: color 200ms ease;
}

.sgxa-qc-rg__link:hover,
.sgxa-qc-rg__link:focus-visible {
	color: #FFFFFF;
}

/* ═════════ Tablet ═════════ */

@media (max-width: 1024px) {

	.sgxa-qc-rg {
		padding: 72px 0;
	}
}

/* ═════════ Mobile ═════════ */

@media (max-width: 767px) {

	.sgxa-qc-rg__inner {
		padding-inline: 20px;
	}

	/* Levelling side-by-side cards is pointless once they stack. */
	.sgxa-qc-rg__card {
		min-height: 0;
		padding: 30px 24px 32px;
	}

	.sgxa-qc-rg__intro {
		margin-bottom: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.sgxa-qc-rg__card {
		transition: none !important;
	}
}
