/**
 * EDGE Legal Core — shared team card + bio modal (used by edge/team-teaser and edge/team-grid).
 * Mirrors MemberCard / BioModal in TeamPage.tsx.
 */

/* ---------- Photo card ---------- */
.edge-team-card {
	position: relative;
	width: 100%;
	--edge-card-ratio: 120%;
}
.edge-team-card__button {
	all: unset;
	display: block;
	width: 100%;
	cursor: pointer;
	text-align: left;
	box-sizing: border-box;
}
.edge-team-card__button:focus-visible {
	outline: 2px solid var(--edge-blue, #1e6a95);
	outline-offset: 3px;
}
.edge-team-card__media {
	position: relative;
	display: block;
	padding-bottom: var(--edge-card-ratio);
	overflow: hidden;
	background: #e8eff6;
}
.edge-team-card__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.4s ease;
	display: block;
	margin: 0;
	max-width: none;
}
.edge-team-card:hover .edge-team-card__photo,
.edge-team-card__button:focus-visible .edge-team-card__photo {
	transform: scale(1.04);
}
.edge-team-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--edge-navy, #0c2340);
	color: var(--edge-sky, #93c5d8);
	font-family: var(--edge-font-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: 42px;
	font-weight: 600;
}
.edge-team-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(12, 35, 64, 0.75) 0%, transparent 55%);
	pointer-events: none;
}
.edge-team-card__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px 56px 16px 14px;
	display: flex;
	flex-direction: column;
}
.edge-team-card--no-linkedin .edge-team-card__caption {
	padding-right: 14px;
}
.edge-team-card__name {
	font-family: var(--edge-font-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.2;
	margin-bottom: 3px;
	letter-spacing: -0.01em;
}
.edge-team-card__title {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #a8cde8;
	line-height: 1.3;
}
.edge-team-card__linkedin {
	position: absolute;
	right: 14px;
	bottom: 16px;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background 0.2s;
	text-decoration: none;
}
.edge-team-card__linkedin:hover,
.edge-team-card__linkedin:focus-visible {
	background: #0077b5;
	color: #ffffff;
}
.edge-team-card__linkedin svg {
	display: block;
}

/* ---------- Bio modal ---------- */
.edge-bio-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(12, 35, 64, 0.72);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	overflow-y: auto;
	font-family: var(--edge-font-sans, 'DM Sans', system-ui, sans-serif);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.edge-bio-modal[hidden] {
	display: none;
}
.edge-bio-modal.is-open {
	opacity: 1;
}
.edge-bio-modal__panel {
	background: #ffffff;
	max-width: 720px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	transform: translateY(28px);
	transition: transform 0.25s ease;
	outline: none;
}
.edge-bio-modal.is-open .edge-bio-modal__panel {
	transform: translateY(0);
}
.edge-bio-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--edge-navy, #0c2340);
	font-size: 24px;
	line-height: 1;
	z-index: 2;
	padding: 4px;
	font-family: inherit;
}
.edge-bio-modal__header {
	display: flex;
	flex-direction: row;
	gap: 0;
}
.edge-bio-modal__photo {
	width: 200px;
	flex-shrink: 0;
	position: relative;
	padding-bottom: 240px;
	background: #e8eff6;
}
.edge-bio-modal__img,
.edge-bio-modal__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	margin: 0;
	max-width: none;
}
.edge-bio-modal__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--edge-navy, #0c2340);
	color: var(--edge-sky, #93c5d8);
	font-family: var(--edge-font-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: 48px;
	font-weight: 600;
}
.edge-bio-modal__placeholder[hidden],
.edge-bio-modal__img[hidden] {
	display: none;
}
.edge-bio-modal__intro {
	padding: 32px 56px 24px 32px;
	background: var(--edge-navy, #0c2340);
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.edge-bio-modal__role {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--edge-sky, #93c5d8);
	margin: 0 0 8px;
}
.edge-bio-modal__name-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.edge-bio-modal__name {
	font-family: var(--edge-font-serif, 'Cormorant Garamond', Georgia, serif);
	font-size: 30px;
	font-weight: 600;
	color: #ffffff;
	line-height: 1.15;
	margin: 0;
}
.edge-bio-modal__linkedin {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	text-decoration: none;
}
.edge-bio-modal__linkedin[hidden] {
	display: none;
}
.edge-bio-modal__linkedin:hover,
.edge-bio-modal__linkedin:focus-visible {
	background: #0077b5;
	color: #ffffff;
}
.edge-bio-modal__fun {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.6;
	font-style: italic;
	margin: 0;
}
.edge-bio-modal__fun[hidden] {
	display: none;
}
.edge-bio-modal__sections {
	padding: 28px 32px 36px;
}
.edge-bio-modal__section {
	margin-bottom: 20px;
}
.edge-bio-modal__section:last-child {
	margin-bottom: 0;
}
.edge-bio-modal__label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--edge-blue, #1e6a95);
	margin: 0 0 6px;
}
.edge-bio-modal__value {
	font-size: 14px;
	color: var(--edge-slate, #374f67);
	line-height: 1.7;
	margin: 0;
}

/* Body scroll lock while a modal is open. */
body.edge-modal-open {
	overflow: hidden;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.edge-team-card__caption {
		padding: 12px 44px 12px 10px;
	}
	.edge-team-card__name {
		font-size: 13px;
	}
	.edge-team-card__title {
		font-size: 9px;
	}
	.edge-team-card__linkedin {
		right: 10px;
		bottom: 12px;
	}
	.edge-team-card__placeholder {
		font-size: 32px;
	}
	.edge-bio-modal {
		padding: 16px;
	}
	.edge-bio-modal__header {
		flex-direction: column;
	}
	.edge-bio-modal__photo {
		width: 100%;
		padding-bottom: 60%;
	}
	.edge-bio-modal__intro {
		padding: 20px 24px;
	}
	.edge-bio-modal__name {
		font-size: 24px;
	}
	.edge-bio-modal__sections {
		padding: 20px 24px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.edge-bio-modal,
	.edge-bio-modal__panel,
	.edge-team-card__photo {
		transition: none;
	}
}
