/**
 * Detail cards, the platform pages' role cards (PlatformPage.tsx's
 * "Get involved"): `grid gap-6 md:grid-cols-2`, three across from 1024px
 * when asked; a card `flex flex-col rounded-lg border-border/50 bg-card p-6`
 * with the 48px icon tile `mb-5`, the title `text-2xl font-bold`, the claim
 * `mt-2 font-bold`, the text `mt-4 leading-relaxed` muted, the checklist
 * `mt-5 space-y-2.5 text-sm`, the closing line `mt-4` in the foreground,
 * the note `mt-5 text-sm` with the info icon; the actions pushed to the
 * foot (`mt-auto pt-8`), a primary button and text links `gap-x-4
 * gap-y-3`, the hint `mt-3 text-xs`.
 */

.sba-c .sba-c-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.sba-c .sba-c-detail-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
	border: 1px solid hsl(220 14% 90% / 0.5);
	border-radius: var(--sba-radius);
	background-color: var(--sba-surface);
}

.sba-c .sba-c-detail-card > * {
	margin-top: 0;
	margin-bottom: 0;
}

.sba-c .sba-c-detail-card > .sba-c-icon-tile {
	margin-bottom: 20px;
}

/* A picture in place of the icon tile: the print edition's cover, 160px
   tall, its own width, with the card's border. */
.sba-c .sba-c-detail-card .sba-c-detail-image {
	display: block;
	width: auto;
	height: 160px;
	max-width: 100%;
	border: 1px solid var(--sba-border);
	border-radius: 4px;
	object-fit: contain;
}

.sba-c .sba-c-detail-card > :is(.sba-c-detail-image, .sba-c-detail-image-link) {
	margin-bottom: 20px;
}

.sba-c .sba-c-detail-image-link {
	display: inline-block;
}

.sba-c .sba-c-detail-title {
	color: var(--sba-charcoal);
	font-family: var(--sba-font-sans);
	font-size: 24px;
	font-weight: var(--sba-heading-weight);
	letter-spacing: var(--sba-heading-tracking);
	line-height: 32px;
}

.sba-c .sba-c-detail-claim {
	margin-top: 8px;
	color: var(--sba-charcoal);
	font-size: 16px;
	font-weight: var(--sba-heading-weight);
	line-height: 24px;
}

.sba-c .sba-c-detail-card .sba-c-detail-text {
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.625;
}

.sba-c .sba-c-detail-card .sba-c-detail-text > * + * {
	margin-top: 16px;
}

.sba-c .sba-c-detail-text strong {
	color: var(--sba-charcoal);
}

.sba-c .sba-c-detail-card .sba-c-detail-checklist {
	gap: 10px;
	margin-top: 20px;
}

.sba-c .sba-c-detail-checklist li {
	font-size: 14px;
	line-height: 20px;
}

.sba-c .sba-c-detail-checklist .sba-i {
	margin-top: 2px;
}

.sba-c .sba-c-detail-closing {
	margin-top: 16px;
	color: var(--sba-charcoal);
	font-size: 16px;
	line-height: 1.625;
}

.sba-c .sba-c-detail-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 20px;
	color: var(--sba-slate);
	font-size: 14px;
	line-height: 20px;
}

.sba-c .sba-c-detail-note .sba-i {
	flex: none;
	margin-top: 2px;
	font-size: 16px;
	line-height: 1;
}

.sba-c .sba-c-detail-foot {
	margin-top: auto;
	padding-top: 32px;
}

.sba-c .sba-c-detail-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.sba-c .sba-c-detail-hint {
	margin: 12px 0 0;
	color: var(--sba-slate);
	font-size: 12px;
	line-height: 16px;
}

/* Under the cards: the buttons `mt-8`, the links, the note `mt-8` in the
   muted foreground at body size. */
.sba-c .sba-c-detail-grid + .sba-c-detail-actions {
	margin-top: 32px;
}

.sba-c .sba-c-detail-note-under {
	max-width: 48rem;
	margin-top: 32px;
	font-size: 16px;
	line-height: 1.625;
}

@media (min-width: 768px) {
	.sba-c .sba-c-detail-grid-2,
	.sba-c .sba-c-detail-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.sba-c .sba-c-detail-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
