/**
 * CoreFusion OS — public Leadership Directory ([cf_leadership_directory]).
 *
 * Theme-agnostic: scoped under .cf-ld with its own light palette so it sits
 * cleanly on any public WordPress theme. Responsive grid, grouped by role.
 *
 * @package Chamber_CRM
 * @since   1.78.0
 */

.cf-ld {
	--cf-ld-ink: #1f2937;
	--cf-ld-muted: #6b7280;
	--cf-ld-border: #e5e7eb;
	--cf-ld-surface: #ffffff;
	--cf-ld-accent: #0b6bcb;
	max-width: 1080px;
	margin: 0 auto;
	box-sizing: border-box;
}

.cf-ld *,
.cf-ld *::before,
.cf-ld *::after {
	box-sizing: border-box;
}

.cf-ld__group {
	margin: 0 0 40px;
}

.cf-ld__group-title {
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var( --cf-ld-border );
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var( --cf-ld-ink );
}

.cf-ld__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media ( min-width: 560px ) {
	.cf-ld__grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 880px ) {
	.cf-ld__grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

.cf-ld__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 26px 20px;
	background: var( --cf-ld-surface );
	border: 1px solid var( --cf-ld-border );
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba( 15, 23, 42, 0.05 );
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cf-ld__card:hover {
	transform: translateY( -3px );
	box-shadow: 0 12px 28px rgba( 15, 23, 42, 0.12 );
}

.cf-ld__avatar {
	margin-bottom: 4px;
}

.cf-ld__photo {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.cf-ld__initial {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var( --cf-ld-color, #0b6bcb );
	color: #ffffff;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
}

.cf-ld__name {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: var( --cf-ld-ink );
}

.cf-ld__biz {
	font-size: 14px;
	font-weight: 600;
	color: var( --cf-ld-accent );
	text-decoration: none;
}

.cf-ld__biz:hover {
	text-decoration: underline;
}

.cf-ld__bio {
	margin: 6px 0 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: var( --cf-ld-muted );
}

.cf-ld__social {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

.cf-ld__sociallink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var( --cf-ld-border );
	color: var( --cf-ld-muted );
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cf-ld__sociallink:hover {
	color: var( --cf-ld-accent );
	border-color: var( --cf-ld-accent );
	transform: translateY( -1px );
}

.cf-ld__empty {
	padding: 48px 20px;
	text-align: center;
	font-size: 15px;
	color: var( --cf-ld-muted );
}

@media ( prefers-reduced-motion: reduce ) {
	.cf-ld__card,
	.cf-ld__sociallink {
		transition: none;
	}
}
