/**
 * Tyler's Hope — [th_leadership] shortcode styles.
 *
 * Option A: Square 1:1 photos, uniform card sizing, clean grid.
 *
 * Colours match Tyler's Hope brand:
 *   primary orange: #E8942A
 *   accent blue:    #5a8fc2
 *   text:           #333
 *   muted:          #666
 */

/* ── Container ────────────────────────────────────────────────── */
.th-leadership {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 0 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.th-leadership__title {
	text-align: center;
	font-size: 2rem;
	font-weight: 600;
	color: #E8942A;
	margin: 0 0 2rem;
}

/* ── Grid ─────────────────────────────────────────────────────── */
.th-leadership__grid {
	display: grid;
	grid-template-columns: repeat(var(--th-lead-cols, 3), 1fr);
	gap: 2rem;
}

/* ── Single member card ──────────────────────────────────────── */
.th-leadership__member {
	text-align: center;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0,0,0,.06);
	transition: box-shadow .2s, transform .2s;
	display: flex;
	flex-direction: column;
}

.th-leadership__member:hover {
	box-shadow: 0 4px 20px rgba(0,0,0,.1);
	transform: translateY(-2px);
}

/* ── Photo (square, 1:1 aspect) ──────────────────────────────── */
.th-leadership__photo-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f0f0f0;
}

.th-leadership__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.th-leadership__photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 700;
	color: #fff;
	background: #E8942A;
}

/* ── Card body (text content below photo) ────────────────────── */
.th-leadership__body {
	padding: 1.25rem 1.25rem 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ── Name ─────────────────────────────────────────────────────── */
.th-leadership__name {
	font-size: 1.1rem;
	font-weight: 600;
	color: #E8942A;
	margin: 0 0 .15rem;
	line-height: 1.3;
}

/* Underline accent */
.th-leadership__name::after {
	content: '';
	display: block;
	width: 40px;
	height: 2px;
	background: #5a8fc2;
	margin: .45rem auto .5rem;
	border-radius: 1px;
}

/* ── Subtitle (title + company) ───────────────────────────────── */
.th-leadership__subtitle {
	font-size: .85rem;
	color: #555;
	margin: 0 0 .4rem;
	line-height: 1.45;
}

/* ── Bio ──────────────────────────────────────────────────────── */
.th-leadership__bio {
	font-size: .82rem;
	color: #666;
	line-height: 1.55;
	margin: .4rem 0 0;
}

/* ── Contact links ────────────────────────────────────────────── */
.th-leadership__links {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: auto;
	padding-top: .75rem;
}

.th-leadership__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	color: #fff;
	background: #5a8fc2;
	text-decoration: none;
	transition: background .15s, transform .15s;
}

.th-leadership__link:hover {
	background: #E8942A;
	transform: translateY(-1px);
}

.th-leadership__link--linkedin {
	background: #0A66C2;
}

.th-leadership__link--linkedin:hover {
	background: #004182;
}

/* ── Default style (no cards, lighter look) ──────────────────── */
.th-leadership--default .th-leadership__member {
	box-shadow: none;
	background: transparent;
	border-radius: 0;
}

.th-leadership--default .th-leadership__member:hover {
	box-shadow: none;
	transform: none;
}

.th-leadership--default .th-leadership__photo-wrap {
	border-radius: 8px;
}

.th-leadership--default .th-leadership__body {
	padding: 1rem 0;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.th-leadership__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 820px) {
	.th-leadership__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 540px) {
	.th-leadership__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		max-width: 360px;
		margin: 0 auto;
	}
}
