/* Hub template — section overview pages built from groups of link cards. */

.hl-hub-intro .hl-inner { max-width: 900px; }
.hl-hub-intro + .hl-hub { padding-top: 0; }

.hl-hub__title { margin: 18px 0 0; }

.hl-hub__lead {
	margin: 20px 0 0;
	max-width: 75ch;
}

.hl-hub__grid {
	display: grid;
	/* min(100%, …) so a card can shrink below its ideal width on a phone
	   instead of overflowing the container. */
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
	margin-top: 40px;
}

.hl-hub__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	min-height: 168px;
	padding: 28px 30px;
	background: var(--hl-white);
	border: 1px solid var(--hl-line);
	border-top: 3px solid var(--hl-blue);
	border-radius: var(--hl-radius);
	box-shadow: 0 14px 32px -18px rgba(11, 34, 51, 0.22);
	color: var(--hl-navy);
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hl-hub__card:hover,
.hl-hub__card:focus-visible {
	border-color: var(--hl-blue);
	color: var(--hl-navy);
	box-shadow: 0 20px 40px -18px rgba(11, 34, 51, 0.32);
	transform: translateY(-2px);
}

.hl-hub__num {
	font-family: var(--hl-serif);
	font-size: 15px;
	color: var(--hl-blue);
}

.hl-hub__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.hl-hub__label {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	text-wrap: pretty;
}

.hl-hub__arrow {
	font-size: 18px;
	color: var(--hl-blue);
	transition: transform 0.2s ease;
}

.hl-hub__card:hover .hl-hub__arrow { transform: translateX(3px); }

@media (max-width: 600px) {
	.hl-hub__card { min-height: 0; padding: 24px 22px; gap: 20px; }
	.hl-hub__label { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.hl-hub__card,
	.hl-hub__arrow { transition: none; }
	.hl-hub__card:hover { transform: none; }
	.hl-hub__card:hover .hl-hub__arrow { transform: none; }
}
