/* MGM Staff — team cards + profile modal (Kanga palette). */

.mgm-staff {
	--mgm-green: #14568F;
	--mgm-green-deep: #0A2C4E;
	--mgm-gold: #ED6A1F;
	--mgm-red: #C2500F;
	--mgm-ink: #1A2530;
	--mgm-ink-soft: #5B6B7C;
	--mgm-line: #DDE5EE;
	--mgm-card: #FFFFFF;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

/* ---------- Cards ---------- */
.mgm-staff-card {
	background: var(--mgm-card);
	border: 1px solid var(--mgm-line);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(38, 30, 20, 0.07);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mgm-staff-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -14px rgba(10, 44, 78, 0.35);
}

.mgm-staff-card:focus-visible {
	outline: 3px solid #ED6A1F;
	outline-offset: 2px;
}

.mgm-staff-photo {
	display: block;
	aspect-ratio: 1 / 1;
	background: #10406F;
	overflow: hidden;
}

.mgm-staff-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mgm-staff-initials {
	display: grid;
	place-items: center;
	font-size: 52px;
	font-weight: 800;
	color: #ED6A1F;
}

.mgm-staff-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mgm-staff-body strong {
	font-size: 17.5px;
	font-weight: 700;
	color: var(--mgm-ink);
}

.mgm-staff-role {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mgm-red);
}

.mgm-staff-more {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--mgm-green);
	margin-top: 6px;
}

/* ---------- Modal ---------- */
.mgm-staff-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 22, 15, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow-y: auto;
}

.mgm-staff-modal[hidden] {
	display: none;
}

.mgm-staff-modal-card {
	position: relative;
	background: #FFFFFF;
	color: #1A2530;
	width: min(540px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	border-radius: 14px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

@media (prefers-reduced-motion: no-preference) {
	.mgm-staff-modal {
		animation: mgm-staff-fade 0.2s ease;
	}

	.mgm-staff-modal-card {
		animation: mgm-staff-pop 0.24s ease;
	}

	@keyframes mgm-staff-fade {
		from { opacity: 0; }
		to { opacity: 1; }
	}

	@keyframes mgm-staff-pop {
		from { opacity: 0; transform: translateY(16px) scale(0.97); }
		to { opacity: 1; transform: none; }
	}
}

/* Deep-navy header band with an orange base line */
.mgm-staff-modal-top {
	height: 112px;
	border-bottom: 4px solid #ED6A1F;
	background:
		radial-gradient(circle at 50% 0%, rgba(237, 106, 31, 0.18), transparent 65%),
		#0A2C4E;
}

.mgm-staff-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	background: none;
	border: 0;
	color: #EAF2FA;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 10px;
}

.mgm-staff-modal-close:hover {
	color: #ED6A1F;
}

.mgm-staff-modal-close:focus-visible,
.mgm-staff-chip:focus-visible {
	outline: 3px solid #ED6A1F;
	outline-offset: 2px;
	border-radius: 4px;
}

.mgm-staff-modal-photo {
	width: 128px;
	height: 128px;
	margin: -64px auto 0;
	position: relative;
	z-index: 1;
	border-radius: 50%;
	overflow: hidden;
	border: 5px double #ED6A1F;
	background: #10406F;
	box-shadow: 0 10px 24px -10px rgba(10, 44, 78, 0.6);
}

.mgm-staff-modal-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mgm-staff-modal-initials {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: 44px;
	font-weight: 800;
	color: #ED6A1F;
}

.mgm-staff-modal-body {
	padding: 18px 32px 32px;
	text-align: center;
}

.mgm-staff-modal-name {
	font-size: 26px;
	font-weight: 800;
	margin: 8px 0 2px;
	line-height: 1.15;
}

.mgm-staff-modal-role {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #C2500F;
	margin: 0 0 16px;
}

.mgm-staff-modal-bio {
	font-size: 15.5px;
	line-height: 1.65;
	color: #5B6B7C;
	text-align: left;
	margin-bottom: 20px;
}

.mgm-staff-modal-bio p {
	margin: 0 0 0.9em;
}

.mgm-staff-modal-bio p:last-child {
	margin-bottom: 0;
}

.mgm-staff-modal-contact,
.mgm-staff-modal-social {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mgm-staff-modal-contact {
	margin-bottom: 14px;
}

.mgm-staff-modal-contact:empty,
.mgm-staff-modal-social:empty {
	display: none;
}

.mgm-staff-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1.5px solid #DDE5EE;
	border-radius: 99px;
	padding: 9px 14px;
	text-decoration: none;
	color: #1A2530;
	font-size: 14px;
	font-weight: 600;
	background: #FFFFFF;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.mgm-staff-chip svg {
	width: 19px;
	height: 19px;
	color: #14568F;
	flex: none;
}

.mgm-staff-chip:hover {
	border-color: #ED6A1F;
	background: rgba(237, 106, 31, 0.12);
}

/* icon-only chips (socials) become circles */
.mgm-staff-modal-social .mgm-staff-chip {
	width: 44px;
	height: 44px;
	padding: 0;
	justify-content: center;
	border-radius: 50%;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.mgm-staff {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 540px) {
	.mgm-staff {
		grid-template-columns: 1fr;
	}

	.mgm-staff-modal {
		padding: 12px;
	}

	.mgm-staff-modal-body {
		padding: 14px 20px 24px;
	}
}
