/**
 * Advisory Board page (page 59374) only.
 * Scoped with .page-id-59374 so the shared [team] shortcode used on
 * /about-us-contact/ (page 1106) is not affected.
 */

.page-id-59374 .team-section { margin: 0 0 3.5rem; }

.page-id-59374 .team-section > h2 {
	margin: 0 0 .35rem;
	font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
	line-height: 1.2;
}

.page-id-59374 .team-section-intro {
	margin: 0 0 1.75rem;
	max-width: 62ch;
	color: #5a6b78;
}

/* The shortcode emits .wp-block-query > ul.meso_team */
.page-id-59374 ul.meso_team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.page-id-59374 ul.meso_team > li { display: flex; margin: 0; }

/* Card. Inline style="padding:30px" on the group needs overriding. */
.page-id-59374 ul.meso_team > li > .wp-block-group {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 1.75rem !important;
	background: #fff !important;
	border: 1px solid #e2e9ee;
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(16, 42, 67, .04);
	transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.page-id-59374 ul.meso_team > li > .wp-block-group:hover {
	border-color: #cbd8e2;
	box-shadow: 0 8px 24px rgba(16, 42, 67, .09);
	transform: translateY(-2px);
}

.page-id-59374 ul.meso_team .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* Head: portrait beside the name */
.page-id-59374 ul.meso_team .wp-block-columns {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: .75rem;
}

.page-id-59374 ul.meso_team .wp-block-column { flex-basis: auto !important; margin: 0; }

.page-id-59374 ul.meso_team figure { margin: 0; }

.page-id-59374 ul.meso_team img {
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px #e2e9ee;
	display: block;
}

/* Names must not hyphenate. "Terri Heimann Oppenheimer" was breaking mid-word. */
.page-id-59374 ul.meso_team h3.wp-block-post-title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.3;
	hyphens: none;
	-webkit-hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
}

.page-id-59374 ul.meso_team h3.wp-block-post-title a {
	color: #16324f;
	text-decoration: none;
}
.page-id-59374 ul.meso_team h3.wp-block-post-title a:hover { text-decoration: underline; }

/* Role line */
.page-id-59374 ul.meso_team .wp-block-group__inner-container > p:first-of-type,
.page-id-59374 ul.meso_team p.has-blue-color {
	margin: 0 0 .85rem;
	font-size: .75rem;
	font-style: normal !important;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #3d6fa3 !important;
}
.page-id-59374 ul.meso_team p.has-blue-color em { font-style: normal; }

.page-id-59374 ul.meso_team .bio {
	flex: 1 1 auto;
	font-size: .9375rem;
	line-height: 1.6;
	color: #46545f;
}
.page-id-59374 ul.meso_team .bio p:last-child { margin-bottom: 0; }

/* Pin the link to the bottom so ragged bios still align */
.page-id-59374 ul.meso_team p.git-link {
	margin: 1.15rem 0 0;
	padding-top: .9rem;
	border-top: 1px solid #edf1f4;
	font-size: .875rem;
	line-height: 1.4;
}

.page-id-59374 ul.meso_team p.git-link a {
	display: inline-flex;
	align-items: baseline;
	gap: .45rem;
	font-weight: 600;
	text-decoration: none;
}
.page-id-59374 ul.meso_team p.git-link a:hover { text-decoration: underline; }

@media (max-width: 480px) {
	.page-id-59374 ul.meso_team { grid-template-columns: 1fr; }
	.page-id-59374 ul.meso_team > li > .wp-block-group { padding: 1.35rem !important; }
	.page-id-59374 ul.meso_team img { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
	.page-id-59374 ul.meso_team > li > .wp-block-group { transition: none; }
	.page-id-59374 ul.meso_team > li > .wp-block-group:hover { transform: none; }
}

/* Intro panel. The theme caps .not-full-width at max-width:70%, which left a
   347px empty gutter inside a 966px tinted box. The panel is nested inside
   .scrollspy, not directly under .entry-content. */
.page-id-59374 .scrollspy > .wp-block-group.has-background {
	padding: 2rem 2.25rem;
	border-radius: 14px;
	margin-bottom: 3rem;
}

.page-id-59374 .scrollspy .wp-block-group.not-full-width {
	max-width: 80ch !important;
	margin-left: 0;
}

.page-id-59374 .scrollspy > .wp-block-group.has-background h2 { margin-top: 0; }

.page-id-59374 .entry-content .lead { font-size: 1.0625rem; line-height: 1.65; }

@media (max-width: 480px) {
	.page-id-59374 .scrollspy > .wp-block-group.has-background { padding: 1.35rem; }
	.page-id-59374 .scrollspy .wp-block-group.not-full-width { max-width: 100% !important; }
}

/* Five board members have no headshot yet (still outstanding from Dave). The
   shortcode emits <img src=""> unconditionally, which renders as a broken image.
   Hide it and collapse its column so the name takes the full card width.
   No placeholder face: we never synthesise a likeness of a real person. */
.page-id-59374 ul.meso_team img[src=""],
.page-id-59374 ul.meso_team img:not([src]) { display: none; }

.page-id-59374 ul.meso_team .wp-block-column:has(figure:empty),
.page-id-59374 ul.meso_team .wp-block-column:has(img[src=""]) { display: none; }

.page-id-59374 ul.meso_team figure:has(img[src=""]) { display: none; }
