/* FBM Core: department team block and member cards.
 * Uses the theme's colour tokens when present, with fallbacks. */

.fbm-team {
	margin: 2.5rem 0;
}

.fbm-team__head {
	margin-bottom: 1.75rem;
}

.fbm-team__head h2 {
	margin: 0 0 .5rem;
	font-family: var(--font-head, Georgia, serif);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	line-height: 1.15;
	color: var(--ink, #0e1512);
}

.fbm-team__desc {
	color: var(--ink-soft, #3b4540);
	max-width: 66ch;
}

.fbm-team__desc p {
	margin: 0 0 .75em;
}

.fbm-team__empty {
	color: var(--ink-soft, #3b4540);
	font-style: italic;
}

.fbm-team__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

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

@media (min-width: 960px) {
	.fbm-team__grid {
		grid-template-columns: repeat(var(--fbm-cols, 3), 1fr);
	}
}

.fbm-member {
	background: var(--white, #fff);
	border: 1px solid var(--line, rgba(14, 21, 18, .14));
	border-radius: var(--radius, 14px);
	overflow: hidden;
	box-shadow: 0 10px 30px -12px rgba(8, 41, 28, .25);
	display: flex;
	flex-direction: column;
}

.fbm-member.is-head {
	border-top: 3px solid var(--red, #b42a22);
}

.fbm-member__photo {
	aspect-ratio: 4 / 5;
	background: var(--paper-2, #ece6d8);
	overflow: hidden;
}

.fbm-member__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fbm-member__body {
	padding: 1.25rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	flex: 1;
}

.fbm-member__name {
	margin: 0;
	font-family: var(--font-head, Georgia, serif);
	font-size: 1.2rem;
	line-height: 1.2;
	color: var(--ink, #0e1512);
}

.fbm-member__role {
	margin: 0;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--red, #b42a22);
}

.fbm-member.is-head .fbm-member__role {
	color: var(--green, #0f4a33);
}

.fbm-member__bio {
	color: var(--ink-soft, #3b4540);
	font-size: .95rem;
}

.fbm-member__bio p {
	margin: 0 0 .6em;
}

.fbm-member__links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .4rem .9rem;
	margin: .5rem 0 0;
	padding: 0;
	font-size: .9rem;
	font-weight: 600;
}

.fbm-member__links a {
	color: var(--green, #0f4a33);
}
