/**
 * Governance Roster — edg-strategy-microsite-june-9-2026 Roster.jsx
 */

.governance-roster {
	--rost-brand: #0760ff;
	--rost-brand-600: #0654e0;
	--rost-brand-700: #0a44b8;
	--rost-ink: #0d0f17;
	--rost-surface: #ffffff;
	--rost-bg: #f7f8fc;
	--rost-section-alt: #f9f9fb;
	--rost-mist: #f2f5fc;
	--rost-line: rgba(15, 23, 51, 0.06);
	--rost-slate: #5a6478;
	--rost-slate-700: #1e253a;
	--rost-shadow: rgba(13, 20, 36, 0.16);
	--rost-ease: cubic-bezier(0.16, 1, 0.3, 1);

	padding-block: 90px;
	background-color: var(--rost-section-alt);
}

html.theme-dark .governance-roster {
	--rost-brand: #4b95e4;
	--rost-brand-600: #6ba9eb;
	--rost-brand-700: #2e7ad6;
	--rost-section-alt: #0e142c;
	--rost-ink: #eef2fb;
	--rost-surface: #141a32;
	--rost-bg: #0c1126;
	--rost-mist: #111733;
	--rost-line: rgba(255, 255, 255, 0.07);
	--rost-slate: #a2adc6;
	--rost-slate-700: #cdd5e6;
	--rost-shadow: rgba(0, 0, 0, 0.5);
	background-color: var(--rost-section-alt);
}

.governance-roster p {
	padding-bottom: 0 !important;
}

.governance-roster__shell {
	width: 100%;
	max-width: 1425px;
	margin-inline: auto;
	padding-inline: 24px;
}



.governance-roster__head--center {
	margin-inline: auto;
	text-align: center;
}

/* .eyebrow */
.governance-roster__eyebrow {
	display: inline-flex;
	align-items: center;
	line-height: normal;
	gap: 0.45rem;
	padding: 0.34rem 0.72rem 0.34rem 0.6rem;
	border-radius: 9999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rost-brand);
	background: color-mix(in srgb, currentColor 10%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
}

.governance-roster__eyebrow-dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

/* .t-section-title — Roster is 2nd section on council page, not page banner */
.governance-roster__title {
	margin:0;
	font-size: clamp(1.875rem, 3.2vw, 2.375rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: var(--rost-ink);
}

.governance-roster__lead {
	margin: 1.25rem 0 0;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.625;
	color: var(--rost-slate);
}

/* Tabs — border-b brand underline, centered under section head */
.governance-roster__tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem 0.25rem;
	margin-top: 4rem;
	border-bottom: 1px solid var(--rost-line);
}

.governance-roster__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-bottom: -1px;
	padding: 0.25rem 0.75rem 0.75rem;
	border: none;
	border-bottom: 2px solid transparent;
	background: none;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	color: var(--rost-slate);
	cursor: pointer;
	border-radius: 0px!important;
	transition: color 0.2s var(--rost-ease), border-color 0.2s var(--rost-ease);
}

.governance-roster__tab:hover {
	color: var(--rost-ink);
}

.governance-roster__tab.is-active {
	border-bottom-color: var(--rost-brand);
	color: var(--rost-brand);
	border-radius: 0px!important;
}

.governance-roster__tab.is-active::after {
	content: none;
}

.governance-roster__tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0.5rem;
	border-radius: 9999px;
	padding: 0.125rem 0.375rem;
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
	background: var(--rost-mist);
	color: var(--rost-slate);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.governance-roster__tab.is-active .governance-roster__tab-count {
	background: color-mix(in srgb, var(--rost-brand) 15%, transparent);
	color: var(--rost-brand);
}

/* Panels */
.governance-roster__panels {
	position: relative;
}

.governance-roster__panel {
	display: none;
}

.governance-roster__panel.is-active {
	display: block;
	animation: rost-tab-fade-in 0.3s ease;
}

@keyframes rost-tab-fade-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.governance-roster__group {
	margin-top: 2.5rem;
}

.governance-roster__group--spaced {
	margin-top: 1.5rem;
}

/* GroupHeader */
.governance-roster__tier-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.governance-roster__tier-head-center {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.governance-roster__tier-label {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rost-ink);
}

.governance-roster__tier-count {
	font-size: 14px;
	font-weight: 600;
	color: var(--rost-slate);
}

.governance-roster__tier-subtitle {
	font-size: 14px;
	color: var(--rost-slate);
}

.governance-roster__tier-rule {
	flex: 1;
	min-width: 2.5rem;
	height: 1px;
	background: var(--rost-line);
}

/* Connector */
.governance-roster__connector {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	margin-top: 2rem;
}

.governance-roster__connector-line {
	display: block;
	width: 1px;
	height: 1.75rem;
	background: var(--rost-line);
}

.governance-roster__connector-label {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--rost-slate);
}

/* Portrait grid — flex wrap centers orphan cards on the last row */
.governance-roster__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.governance-roster__grid .governance-roster__card {
	width: 210px;
	max-width: 100%;
}

/* Person cards — portrait gallery */
.governance-roster__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.governance-roster__card-portrait {
	position: relative;
	display: flex;
	aspect-ratio: 4 / 5;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 1rem;
	background: var(--rost-mist);
	transition: transform 0.2s var(--rost-ease);
}

.governance-roster__card:hover .governance-roster__card-portrait {
	transform: translateY(-4px);
}

.governance-roster__card[data-emphasis="standard"] .governance-roster__card-portrait {
	border: 1px solid var(--rost-line);
}

.governance-roster__card[data-emphasis="highlight"] .governance-roster__card-portrait {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rost-brand) 45%, transparent);
}

.governance-roster__card[data-emphasis="pop"] .governance-roster__card-portrait {
	box-shadow: inset 0 0 0 2px var(--rost-brand);
}

.governance-roster__card-initials {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: color-mix(in srgb, var(--rost-slate) 60%, transparent);
	letter-spacing: 0.02em;
}

.governance-roster__card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.governance-roster__card-body {
	margin-top: 0.75rem;
	padding-inline: 0.125rem;
	text-align: center;
}

.governance-roster__card-name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rost-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.governance-roster__card-name--placeholder {
	color: var(--rost-slate);
}

.governance-roster__card-role {
	margin: 0.125rem 0 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--rost-slate);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Reveal */
.rost-reveal {
	opacity: 0;
	will-change: opacity, transform;
}

.rost-reveal.is-visible {
	animation: rost-reveal-up 0.55s var(--rost-ease) var(--reveal-delay, 0ms) forwards;
}

@keyframes rost-reveal-up {
	from { opacity: 0; transform: translate3d(0, 14px, 0); }
	to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.rost-reveal.reveal-done {
	animation: none;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.governance-roster__tab,
	.governance-roster__card-portrait {
		transition: none;
	}

	.governance-roster__panel.is-active {
		animation: none;
	}

	.rost-reveal {
		opacity: 1;
		animation: none !important;
	}

	.governance-roster__card:hover .governance-roster__card-portrait {
		transform: none;
	}
}
