/**
 * AI CoE Focus Cards — same visual tokens as RL What New (rwn-*), acfc-* class names
 */

/* ── Section ──────────────────────────────────────────── */

.acfc-section-head {
	margin-bottom: 3.5rem;
}

.acfc-section-head--center {
	text-align: center;
}

.acfc-section-title {
	font-size: clamp(1.75rem, 4vw, 2.625rem);
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #0f172a;
	margin: 0 0 1rem;
}

.acfc-section-lead {
	font-size: 18px;
	line-height: 1.65;
	color: #64748b;
	max-width: 36rem;
	margin: 0 auto;
}

/* ── Feature grid (4 columns from large screens up) ─── */
.acfc-feature-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.acfc-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.acfc-feature-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.acfc-feature-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acfc-feature-card:hover {
	border-color: #93c5fd;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.acfc-feature-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	margin-bottom: 1.3rem;
	gap: 0.75rem;
}

.acfc-feature-card--no-icon .acfc-feature-card-top {
	display: none;
	margin-bottom: 0;
}

.acfc-feature-card--no-icon .acfc-feature-title {
	margin-bottom: 0.5rem;
}

.acfc-feature-icon-wrap {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	flex-shrink: 0;
}

.acfc-feature-icon-wrap svg {
	width: 24px;
	height: 24px;
	color: #2563eb;
	stroke-width: 2;
}

.acfc-feature-title {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 0.5rem;
	transition: color 0.2s ease;
}

.acfc-feature-card:hover .acfc-feature-title {
	color: #2563eb;
}

.acfc-feature-desc {
	font-size: 14px;
	line-height: 1.65;
	color: #64748b;
	margin: 0;
	flex-grow: 1;
}

/* ── Dark theme (same as RL What New) ───────────────── */
@media (prefers-color-scheme: dark) {
	html:not(.theme-light) .acfc-wrap .acfc-section-title {
		color: #f8fafc;
	}

	html:not(.theme-light) .acfc-wrap .acfc-section-lead {
		color: #94a3b8;
	}

	html:not(.theme-light) .acfc-wrap .acfc-feature-card {
		background: #0f172a;
		border-color: #1e293b;
	}

	html:not(.theme-light) .acfc-wrap .acfc-feature-card:hover {
		border-color: rgba(59, 130, 246, 0.45);
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	}

	html:not(.theme-light) .acfc-wrap .acfc-feature-icon-wrap {
		background: rgba(37, 99, 235, 0.2);
		border-color: #1e3a8a;
	}

	html:not(.theme-light) .acfc-wrap .acfc-feature-icon-wrap svg {
		color: #60a5fa;
	}

	html:not(.theme-light) .acfc-wrap .acfc-feature-title {
		color: #f8fafc;
	}

	html:not(.theme-light) .acfc-wrap .acfc-feature-card:hover .acfc-feature-title {
		color: #60a5fa;
	}

	html:not(.theme-light) .acfc-wrap .acfc-feature-desc {
		color: #94a3b8;
	}
}

html.theme-dark .acfc-wrap .acfc-section-title,
.salient .dark .acfc-wrap .acfc-section-title {
	color: #f8fafc;
}

html.theme-dark .acfc-wrap .acfc-section-lead,
.salient .dark .acfc-wrap .acfc-section-lead {
	color: #94a3b8;
}

html.theme-dark .acfc-wrap .acfc-feature-card,
.salient .dark .acfc-wrap .acfc-feature-card {
	background: #1e293b;
	border-color: #334155;
}

html.theme-dark .acfc-wrap .acfc-feature-card:hover,
.salient .dark .acfc-wrap .acfc-feature-card:hover {
	border-color: rgba(59, 130, 246, 0.45);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html.theme-dark .acfc-wrap .acfc-feature-icon-wrap,
.salient .dark .acfc-wrap .acfc-feature-icon-wrap {
	background: rgba(37, 99, 235, 0.2);
	border-color: #1e3a8a;
}

html.theme-dark .acfc-wrap .acfc-feature-icon-wrap svg,
.salient .dark .acfc-wrap .acfc-feature-icon-wrap svg {
	color: #60a5fa;
}

html.theme-dark .acfc-wrap .acfc-feature-title,
.salient .dark .acfc-wrap .acfc-feature-title {
	color: #f8fafc;
}

html.theme-dark .acfc-wrap .acfc-feature-card:hover .acfc-feature-title,
.salient .dark .acfc-wrap .acfc-feature-card:hover .acfc-feature-title {
	color: #60a5fa;
}

html.theme-dark .acfc-wrap .acfc-feature-desc,
.salient .dark .acfc-wrap .acfc-feature-desc {
	color: #94a3b8;
}
