/**
 * Homepage 03: Who We Serve.
 * Desktop (1024px+): design C card grid. Phone: peek card carousel (round-4 A).
 * Markup is shared: .s03c-rail > ul.s03c-grid > li.s03c-slide > article.s03c-card.
 */

/* ---------- Shared ---------- */

.gs-home .gh-03.s03c-band {
	background: var(--surface-brand-accent-1);
	border-top: 1px solid var(--outline-low-em);
}

.gs-home .gh-03 .s03c-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.gs-home .gh-03 .s03c-h2 {
	margin-top: 16px;
}

.gs-home .gh-03 .s03c-intro {
	margin-top: 14px;
	color: var(--text-med-em);
	text-wrap: pretty;
}

.gs-home .gh-03 .s03c-grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gs-home .gh-03 .s03c-card {
	position: relative;
	min-width: 0;
	background: var(--card-bg);
	border: 1px solid var(--outline-high-em);
	border-radius: var(--radius-20);
	transition: border-color .2s ease;
}

.gs-home .gh-03 .s03c-card:focus-within {
	border-color: var(--outline-brand-high-em);
}

.gs-home .gh-03 .s03c-tile {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-12);
	background: var(--surface-2);
	color: var(--brand-tan);
}

.gs-home .gh-03 .s03c-tile svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.gs-home .gh-03 .s03c-tab {
	position: absolute;
	top: -1px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	border-radius: 0 0 12px 12px;
	background: var(--stat-cream);
	color: var(--text-black);
	font-weight: 700;
	line-height: 16px;
	letter-spacing: .14em;
	text-transform: uppercase;
	box-shadow: 0 6px 12px -4px #000000a3, 0 1px 2px #0000007a;
}

.gs-home .gh-03 .s03c-tab svg {
	width: 12px;
	height: 12px;
	flex: none;
	fill: var(--brand-primary-main);
}

.gs-home .gh-03 .s03c-h3 {
	font-family: var(--font-body);
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--text-high-em);
}

.gs-home .gh-03 .s03c-line {
	color: var(--text-med-em);
	text-wrap: pretty;
}

/* ---------- Desktop (design C) ---------- */

@media (min-width: 1024px) {
	.gs-home .gh-03.s03c-band {
		min-height: 880px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 160px 0;
	}

	.gs-home .gh-03 .s03c-head {
		max-width: 1000px;
	}

	.gs-home .gh-03 .s03c-h2 {
		font-size: 44px;
		line-height: 1.15;
	}

	.gs-home .gh-03 .s03c-intro {
		max-width: 580px;
		font-size: 18px;
		line-height: 28px;
	}

	.gs-home .gh-03 .s03c-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 20px;
		margin-top: 40px;
	}

	.gs-home .gh-03 .s03c-slide {
		display: block;
	}

	.gs-home .gh-03 .s03c-card {
		display: flex;
		align-items: flex-start;
		gap: 20px;
		height: 100%;
		padding: 58px 30px;
	}

	.gs-home .gh-03 .s03c-card:hover {
		border-color: var(--outline-brand-high-em);
	}

	.gs-home .gh-03 .s03c-tab {
		left: 29px;
		padding: 9px 16px 9px 14px;
		font-size: 12px;
	}

	.gs-home .gh-03 .s03c-txt {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		min-width: 0;
		height: 100%;
	}

	.gs-home .gh-03 .s03c-h3 {
		font-size: 20px;
		line-height: 26px;
	}

	.gs-home .gh-03 .s03c-line {
		margin-top: 6px;
		font-size: 15px;
		line-height: 23px;
	}

	.gs-home .gh-03 .s03c-go {
		margin-top: auto;
		padding-top: 16px;
	}
}

/* ---------- Phone (round-4 A: peek carousel) ---------- */

@media (max-width: 1023px) {
	.gs-home .gh-03.s03c-band {
		padding: 112px 0;
	}

	.gs-home .gh-03 .w {
		width: 100%;
		max-width: 600px;
		margin: 0 auto;
		padding: 0 24px;
	}

	.gs-home .gh-03 .s03c-head {
		max-width: 100%;
	}

	.gs-home .gh-03 .s03c-h2 {
		font-size: 31px;
		line-height: 36px;
	}

	.gs-home .gh-03 .s03c-intro {
		max-width: 100%;
		font-size: 16px;
		line-height: 26px;
	}

	.gs-home .gh-03 .s03c-rail {
		position: relative;
		display: flex;
		margin: 36px -24px 0;
		padding: 0 24px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 24px;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		container-type: inline-size;
		cursor: grab;
	}

	.gs-home .gh-03 .s03c-rail::-webkit-scrollbar {
		display: none;
	}

	.gs-home .gh-03 .s03c-rail.s03c-grab {
		scroll-snap-type: none;
		cursor: grabbing;
		-webkit-user-select: none;
		user-select: none;
	}

	.gs-home .gh-03 .s03c-rail:focus-visible {
		outline: 2px solid var(--focus-ring);
		outline-offset: -2px;
		border-radius: 22px;
	}

	.gs-home .gh-03 .s03c-grid {
		flex: none;
		display: flex;
		align-items: stretch;
		gap: 12px;
	}

	.gs-home .gh-03 .s03c-slide {
		flex: none;
		display: flex;
		width: min(calc(100cqw - 14px), 340px);
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.gs-home .gh-03 .s03c-card {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 22px 10px;
	}

	/* the text wrapper only groups the desktop column; on phone its children flow in the card */
	.gs-home .gh-03 .s03c-txt {
		display: contents;
	}

	.gs-home .gh-03 .s03c-tab {
		right: 20px;
		padding: 9px 14px 9px 12px;
		font-size: 11px;
		white-space: nowrap;
	}

	.gs-home .gh-03 .s03c-h3 {
		margin: 22px 0 0;
		font-size: 18px;
		line-height: 24px;
		text-wrap: balance;
	}

	.gs-home .gh-03 .s03c-line {
		margin: 8px 0 0;
		font-size: 14px;
		line-height: 22px;
	}

	.gs-home .gh-03 .s03c-go {
		margin: auto 0 0;
		padding-top: 14px;
	}

	.gs-home .gh-03 .s03c-go .lnk {
		min-height: 44px;
		font-size: 15px;
		line-height: 22px;
		-webkit-user-drag: none;
	}

	.gs-home .gh-03 .s03c-go .lnk svg {
		width: 17px;
		height: 17px;
	}

	.gs-home .gh-03 .s03c-nav {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-top: 20px;
	}

	.gs-home .gh-03 .s03c-nav .s03c-arw {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid #595959;
		border-radius: 100px;
		background: #20222b;
		color: var(--brand-tan);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		transition: opacity .2s ease, border-color .2s ease, transform .15s ease;
	}

	.gs-home .gh-03 .s03c-nav .s03c-arw:hover,
	.gs-home .gh-03 .s03c-nav .s03c-arw:focus {
		background: #20222b;
		color: var(--brand-tan);
	}

	.gs-home .gh-03 .s03c-arw svg {
		width: 18px;
		height: 18px;
		display: block;
	}

	.gs-home .gh-03 .s03c-nav .s03c-arw:active {
		transform: scale(.94);
	}

	.gs-home .gh-03 .s03c-nav .s03c-arw:disabled {
		opacity: .35;
		cursor: default;
		transform: none;
	}

	.gs-home .gh-03 .s03c-nav .s03c-arw:focus-visible {
		outline: 2px solid var(--focus-ring);
		outline-offset: 2px;
		border-radius: 100px;
	}

	/* without JS the arrows can't work; the rail still scrolls natively */
	html:not(.gh-js) .gs-home .gh-03 .s03c-nav {
		visibility: hidden;
	}
}

/* wider phone layout (tablet): the rail bleeds to the viewport edges, cards line up with the text column */
@media (min-width: 601px) and (max-width: 1023px) {
	.gs-home .gh-03 .s03c-rail {
		margin-inline: calc(276px - 50vw);
		padding-inline: calc(50vw - 276px);
		scroll-padding-inline: calc(50vw - 276px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gs-home .gh-03 .s03c-rail {
		scroll-behavior: auto;
	}
}
