/**
 * MediaOne Widgets — Industries grid.
 *
 * Values transcribed from the original `.v4-industry-*` rules.
 * Grid: 2 columns, 3 from 640px, 4 from 1024px.
 */

.mow-ind {

	/* 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-ind__head {
	max-width: 36rem;
	margin: 0 auto 3rem;
	display: flex;
	flex-direction: column;
	align-items: var(--mow-align);
	text-align: var(--mow-align);
}

.mow-ind__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-ind__title {
	font-weight: 900;
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
	line-height: 1.25;
	margin: 0.75rem 0;
}

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

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

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

.mow-ind__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 640px) {

	.mow-ind__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {

	.mow-ind__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

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

.mow-ind__card {
	display: flex;
	flex-direction: column;
	padding: 22px 20px;
	align-items: var(--mow-card-align, center);
	text-align: var(--mow-card-align, center);
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mow-ind__card:hover,
/* Keyboard users get the same affordance as the mouse hover. */
.mow-ind__card:focus-within {
	border-color: var(--mow-blue);
	box-shadow: 0 10px 32px rgba(33, 90, 239, 0.12);
}

.mow-ind__icon {
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 14px;
	border-radius: 50%;
	font-size: 18px;
}

.mow-ind__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

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

/* The whole card reads as one target; the link keeps the card's colour. */
.mow-ind__card-title a {
	color: inherit;
	text-decoration: none;
}

.mow-ind__card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.mow-ind__card {
	position: relative;
}

.mow-ind__card-text {
	font-size: 12px;
	line-height: 1.55;
	color: var(--mow-muted);
	margin: 0;
}

/* ── Footer link ──────────────────────────────────────────────────────── */

.mow-ind__foot {
	margin-top: 2rem;
	text-align: var(--mow-align);
}

.mow-ind__foot-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--mow-blue);
	text-decoration: none;
}

.mow-ind__foot-link:hover,
.mow-ind__foot-link:focus-visible {
	text-decoration: underline;
}

.mow-ind__foot-link svg {
	width: 0.75rem;
	height: 0.75rem;
	flex: 0 0 auto;
	fill: currentColor;
}
