/**
 * MediaOne Widgets — Case studies grid.
 *
 * Two-up cards, each with a header, a metrics strip, a result list and a link.
 * Values transcribed from the original `.v4-cs-*` rules.
 *
 * The original had five cards in a two-column grid, leaving the last card
 * half-width and orphaned on its own row. That is reproduced rather than
 * "fixed" — matching the current design is the brief — but the card stretches
 * to full width only if the client sets an odd count, which is handled by the
 * grid itself.
 */

.mow-cs {

	/* One value drives every alignment in this section — `text-align`,
	   `align-items` and `justify-content` all accept start/center/end, so the
	   alignment control writes this once and the whole block follows. */
	--mow-align: center;
}

.mow-cs__head {
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: var(--mow-align);
	text-align: var(--mow-align);
}

.mow-cs__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mow-blue);
	background: var(--mow-sky);
	padding: 5px 16px;
	border-radius: 100px;
	margin-bottom: 14px;
}

.mow-cs__title {
	font-weight: 900;
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
	line-height: 1.25;
	margin: 0.75rem 0;
}

.mow-cs__hl {
	color: var(--mow-orange);
}

.mow-cs__sub {
	color: var(--mow-muted);
	line-height: 1.7;
}

/* ── Grid ─────────────────────────────────────────────────────────────── */

.mow-cs__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 701px) {

	.mow-cs__grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ── Card ─────────────────────────────────────────────────────────────── */

.mow-cs__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 20px;
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mow-cs__card:hover {
	border-color: var(--mow-blue);
	box-shadow: 0 12px 24px -10px rgba(0, 14, 62, 0.18);
}

.mow-cs__card-head {
	padding: 24px 24px 16px;
	background: #f8fafc;
}

.mow-cs__tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 12px;
	border-radius: 100px;
	margin-bottom: 12px;
}

.mow-cs__card-title {
	font-family: var(--mow-font-head);
	font-size: 17px;
	font-weight: 800;
	color: var(--mow-deep);
	margin-bottom: 4px;
	line-height: 1.3;
}

.mow-cs__card-sub {
	font-size: 12px;
	color: var(--mow-faint);
	line-height: 1.5;
}

/* ── Metrics strip ────────────────────────────────────────────────────── */

.mow-cs__metrics {
	display: flex;
	border-bottom: 1px solid #e5e7eb;
}

.mow-cs__metric {
	flex: 1;
	padding: 16px;
	text-align: center;
	border-right: 1px solid #e5e7eb;
}

.mow-cs__metric:last-child {
	border-right: none;
}

.mow-cs__metric-num {
	font-family: var(--mow-font-head);
	font-size: 22px;
	font-weight: 900;
	color: var(--mow-blue);
	line-height: 1;
	margin-bottom: 3px;
}

.mow-cs__metric-label {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--mow-faint);
}

/* ── Body ─────────────────────────────────────────────────────────────── */

.mow-cs__card-body {
	flex: 1;
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
}

.mow-cs__results {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1;
}

.mow-cs__results li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mow-text);
}

.mow-cs__results svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	margin-top: 2px;
	fill: var(--mow-blue);
}

/* The original highlights the headline number in each bullet. */
.mow-cs__results strong {
	color: var(--mow-orange);
}

.mow-cs__link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--mow-blue);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mow-cs__link:hover,
.mow-cs__link:focus-visible {
	color: var(--mow-orange);
}

.mow-cs__link svg {
	width: 11px;
	height: 11px;
	fill: currentColor;
}
