/**
 * BHN Team Manager — frontend team layout.
 * Loaded only on the About BHN page or a page using [bhn_team].
 */
.bhn-team-section-managed {
	background: linear-gradient(145deg, #faf7ff 0%, #fffdf4 100%);
	border: 1px solid #e9e2f3;
	border-radius: 26px;
	box-shadow: 0 18px 50px rgba(59, 37, 91, 0.07);
	margin: 34px 0;
	overflow: hidden;
	padding: clamp(30px, 5vw, 60px);
}

.bhn-team-section-managed .bhn-team-heading {
	margin: 0 auto clamp(30px, 5vw, 48px);
	max-width: 760px;
	text-align: center;
}

.bhn-team-section-managed .bhn-team-heading h2 {
	color: #5b2caf;
	margin: 4px 0 12px;
}

.bhn-team-section-managed .bhn-team-heading > p:last-child {
	color: #5f5868;
	font-size: 1.06rem;
	margin: 0;
}

.bhn-team-rows {
	display: grid;
	gap: 26px;
}

.bhn-team-row {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	width: 100%;
}

.bhn-team-align-left { justify-content: flex-start; }
.bhn-team-align-center { justify-content: center; }
.bhn-team-align-right { justify-content: flex-end; }

.bhn-team-row .bhn-team-card {
	align-items: center;
	background: linear-gradient(180deg, #faf7ff 0, #ffffff 210px) !important;
	border: 1px solid #e8e0f1;
	border-radius: 22px;
	box-shadow: 0 14px 34px rgba(59, 37, 91, 0.09);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	padding-top: 30px;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.bhn-team-columns-1 .bhn-team-card { flex: 0 1 370px; max-width: 370px; }
.bhn-team-columns-2 .bhn-team-card { flex: 0 1 calc(50% - 13px); max-width: calc(50% - 13px); }
.bhn-team-columns-3 .bhn-team-card { flex: 0 1 calc(33.3333% - 18px); max-width: calc(33.3333% - 18px); }
.bhn-team-columns-4 .bhn-team-card { flex: 0 1 calc(25% - 20px); max-width: calc(25% - 20px); }

.bhn-team-row .bhn-team-card:hover {
	border-color: rgba(91, 44, 175, 0.34);
	box-shadow: 0 22px 46px rgba(59, 37, 91, 0.15);
	transform: translateY(-5px);
}

.bhn-team-section-managed .bhn-team-photo-wrap {
	aspect-ratio: 1 / 1 !important;
	background: #eee8f5;
	border: 5px solid #fff;
	border-radius: 50% !important;
	box-shadow: 0 0 0 3px #5b2caf, 0 14px 30px rgba(59, 37, 91, 0.20);
	box-sizing: border-box;
	flex: 0 0 auto;
	height: clamp(150px, 13vw, 176px) !important;
	margin: 0 auto !important;
	overflow: hidden !important;
	position: relative;
	width: clamp(150px, 13vw, 176px) !important;
}

.bhn-team-section-managed .bhn-team-photo {
	border-radius: 50% !important;
	display: block;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: 50% 28% !important;
	transition: transform 0.35s ease;
	width: 100% !important;
}

.bhn-team-section-managed .bhn-team-card:hover .bhn-team-photo { transform: scale(1.04); }

.bhn-team-section-managed .bhn-team-photo-placeholder {
	align-items: center;
	background: linear-gradient(135deg, #5b2caf, #8b61d4);
	color: #fff;
	display: flex;
	font-size: 3.25rem;
	font-weight: 800;
	justify-content: center;
}

.bhn-team-section-managed .bhn-team-content {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-start;
	padding: 24px 20px;
	text-align: center;
	width: 100%;
}

.bhn-team-section-managed .bhn-team-content h3 {
	color: #241c2c;
	font-size: 1.12rem;
	line-height: 1.25;
	margin: 0 0 6px;
	width: 100%;
}

.bhn-team-section-managed .bhn-team-role {
	color: #5b2caf !important;
	font-size: 0.89rem;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 4px;
	width: 100%;
}

.bhn-team-section-managed .bhn-team-unit {
	color: #6d6675 !important;
	font-size: 0.8rem;
	line-height: 1.35;
	margin: 0 0 9px;
	width: 100%;
}

.bhn-team-section-managed .bhn-team-email {
	align-items: center;
	color: #494251 !important;
	display: flex;
	font-size: 0.74rem;
	gap: 7px;
	justify-content: center;
	line-height: 1.3;
	margin: 0 0 12px;
	max-width: 100%;
	overflow-wrap: anywhere;
	text-decoration: none !important;
}

.bhn-team-section-managed .bhn-team-email:hover,
.bhn-team-section-managed .bhn-team-email:focus {
	color: #5b2caf !important;
	text-decoration: underline !important;
}

.bhn-team-section-managed .bhn-team-action {
	align-items: center;
	align-self: center;
	background: #5b2caf;
	border: 2px solid #5b2caf;
	border-radius: 999px;
	box-shadow: none;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.81rem;
	font-weight: 800;
	gap: 7px;
	justify-content: center;
	line-height: 1.2;
	margin-top: auto;
	min-height: 38px;
	padding: 6px 16px;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bhn-team-section-managed .bhn-team-action:hover,
.bhn-team-section-managed .bhn-team-action:focus {
	background: #f2b705;
	border-color: #f2b705;
	color: #241c2c !important;
	transform: translateY(-2px);
}

.bhn-team-dialog {
	background: #fff;
	border: 0;
	border-radius: 22px;
	box-shadow: 0 28px 80px rgba(24, 13, 44, 0.35);
	box-sizing: border-box;
	color: #3f3847;
	max-height: min(82vh, 760px);
	max-width: min(92vw, 680px);
	overflow: auto;
	padding: clamp(26px, 5vw, 46px);
	width: 100%;
}

.bhn-team-dialog::backdrop { background: rgba(24, 13, 44, 0.72); backdrop-filter: blur(3px); }
.bhn-team-dialog h3 { color: #241c2c; font-size: clamp(1.55rem, 3vw, 2rem); margin: 0 44px 5px 0; }
.bhn-team-dialog-role { color: #5b2caf !important; font-weight: 800; margin: 0 0 20px; }
.bhn-team-dialog-copy { color: #4f4858; font-size: 1rem; line-height: 1.7; }
.bhn-team-dialog-copy > :last-child { margin-bottom: 0; }
.bhn-team-dialog-profile { color: #5b2caf !important; display: inline-flex; font-weight: 800; margin-top: 20px; }

.bhn-team-dialog-close {
	align-items: center;
	background: #f4effc;
	border: 0;
	border-radius: 50%;
	color: #5b2caf;
	cursor: pointer;
	display: flex;
	font-size: 1.75rem;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0 0 3px;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 38px;
}

@media (max-width: 991px) {
	.bhn-team-columns-3 .bhn-team-card,
	.bhn-team-columns-4 .bhn-team-card {
		flex-basis: calc(50% - 13px);
		max-width: calc(50% - 13px);
	}
}

@media (max-width: 680px) {
	.bhn-team-section-managed { border-radius: 20px; padding: 28px 18px; }
	.bhn-team-row { justify-content: center; }
	.bhn-team-columns-1 .bhn-team-card,
	.bhn-team-columns-2 .bhn-team-card,
	.bhn-team-columns-3 .bhn-team-card,
	.bhn-team-columns-4 .bhn-team-card {
		flex-basis: min(100%, 420px);
		max-width: 420px;
	}
	.bhn-team-section-managed .bhn-team-card { padding-top: 26px; }
	.bhn-team-section-managed .bhn-team-photo-wrap { height: 156px !important; width: 156px !important; }
	.bhn-team-section-managed .bhn-team-content { padding: 22px 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.bhn-team-section-managed .bhn-team-card,
	.bhn-team-section-managed .bhn-team-photo,
	.bhn-team-section-managed .bhn-team-action { transition: none; }
}
