/* [satm_team] — member cards (grid) or rows (list). */

.satm-team {
	--satm-accent: #1a7f83;
	--satm-accent-bright: #32bcc1;
	--satm-dark: #1d2731;
	--satm-border: #e2e5ea;
	--satm-muted: #6b7280;
	--satm-radius: 4px;
}

.satm-team__intro {
	max-width: 720px;
	margin-bottom: 36px;
	font-size: 16px;
	line-height: 1.65;
}

.satm-team__group {
	margin-bottom: 44px;
}

.satm-team__group-title {
	margin: 0 0 20px;
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--satm-dark);
	border-left: 4px solid var(--satm-accent-bright);
	padding-left: 12px;
}

/* ---------- Photo ---------- */

/* Editorial portrait: square, soft corners (not a social-media circle).
   object-fit keeps landscape uploads from squashing; object-position
   favours the top of the frame, where faces usually are. */
.satm-team__avatar {
	display: block;
	width: 120px;
	height: 120px;
	border-radius: 6px;
	object-fit: cover;
	object-position: center 20%;
	background: #f0f2f5;
}

/* ---------- Common member bits ---------- */

.satm-team__name {
	margin: 0 0 4px;
	font-size: 18px;
	color: var(--satm-dark);
}

.satm-team__role {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--satm-accent);
}

.satm-team__org {
	font-weight: 400;
	color: var(--satm-muted);
}

.satm-team__bio {
	font-size: 14px;
	line-height: 1.55;
	color: #3d434a;
}

.satm-team__bio p { margin: 0 0 8px; }
.satm-team__bio > :last-child { margin-bottom: 0; }

.satm-team__bio--excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.satm-team__bio--clamped {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.satm-team .satm-team__more {
	margin: 10px 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--satm-accent);
	background: none;
	border: none;
	box-shadow: none;
	cursor: pointer;
	text-decoration: underline;
}

.satm-team .satm-team__more:hover,
.satm-team .satm-team__more:focus {
	color: var(--satm-accent);
	background: none;
}

.satm-team__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.satm-team__link {
	display: inline-block;
	padding: 5px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--satm-accent) !important;
	border: 1px solid var(--satm-accent);
	border-radius: var(--satm-radius);
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.satm-team__link:hover,
.satm-team__link:focus {
	color: #fff !important;
	background: var(--satm-accent);
}

/* ---------- Grid layout (cards) ---------- */

.satm-team--grid .satm-team__members {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 22px;
}

/* Plain cards: the teal accent belongs to the group title alone — a rule
   on every card right below it just repeated the same stroke. */
.satm-team--grid .satm-team__member {
	padding: 24px 20px 20px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--satm-border);
	border-radius: var(--satm-radius);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.satm-team--grid .satm-team__member--no-photo {
	padding-top: 22px;
}

.satm-team--grid .satm-team__member:hover {
	box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12);
	transform: translateY(-2px);
}

.satm-team--grid .satm-team__avatar {
	margin: 0 auto 16px;
}

/* In cards the org sits on its own line, so hide the "·" separator. */
.satm-team--grid .satm-team__org {
	display: block;
}

.satm-team--grid .satm-team__org::first-letter {
	font-size: 0;
}

.satm-team--grid .satm-team__links {
	justify-content: center;
}

/* ---------- List layout (rows) ---------- */

/* Rows are cards too (border + teal rule), so short bios and photo-less
   rows still read as deliberate blocks rather than loose text. */
.satm-team--list .satm-team__members {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.satm-team--list .satm-team__member {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--satm-border);
	border-radius: var(--satm-radius);
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* Photo column: fixed width whether or not there is a photo, so names
   line up across rows. */
.satm-team--list .satm-team__avatar-wrap {
	flex: none;
	width: 100px;
}

.satm-team--list .satm-team__avatar {
	width: 100px;
	height: 100px;
}

.satm-team--list .satm-team__member--no-photo {
	padding-left: 22px;
}

.satm-team--list .satm-team__body {
	flex: 1;
	min-width: 0;
}

.satm-team--list .satm-team__name {
	margin-top: 2px;
}

@media (max-width: 560px) {
	.satm-team--list .satm-team__member {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.satm-team--list .satm-team__avatar-wrap {
		width: auto;
	}
	.satm-team--list .satm-team__links {
		justify-content: center;
	}
}

/* ---------- Bio modal (grid layout) ---------- */

.satm-team-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.satm-team-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 20, 0.82);
	cursor: pointer;
}

.satm-team-modal__dialog {
	position: relative;
	width: min(760px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.satm-team-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 22px;
	line-height: 1;
	color: #1d2731;
	background: rgba(10, 14, 20, 0.08);
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

.satm-team-modal__head {
	display: flex;
	gap: 22px;
	align-items: center;
	padding: 30px 30px 20px;
	border-bottom: 1px solid #e2e5ea;
}

.satm-team-modal__head .satm-team__avatar {
	flex: none;
	width: 110px;
	height: 110px;
	margin: 0;
}

.satm-team-modal__avatar:empty {
	display: none;
}

.satm-team-modal__name {
	margin: 0;
	font-size: 26px;
	color: #1d2731;
}

.satm-team-modal__role {
	margin: 2px 0 0;
	font-weight: 600;
	color: #1a7f83;
}

.satm-team-modal__org {
	font-weight: 400;
	color: #6b7280;
	font-size: 13.5px;
}

.satm-team-modal__body {
	padding: 22px 30px 30px;
	font-size: 15px;
	line-height: 1.65;
	color: #2c3338;
}

.satm-team-modal__body p { margin: 0 0 12px; }
.satm-team-modal__body a { color: #1a7f83; text-decoration: underline; }

.satm-team-modal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

@media (max-width: 600px) {
	.satm-team-modal__head {
		flex-direction: column;
		text-align: center;
	}
}
