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

.governance-roles {
	--gr-brand: #0760ff;
	--gr-brand-600: #0654e0;
	--gr-ink: #0d0f17;
	--gr-surface: #ffffff;
	--gr-surface-2: #fafbff;
	--gr-bg: #f7f8fc;
	--gr-section: #ffffff;
	--gr-mist: #f2f5fc;
	--gr-line: rgba(15, 23, 51, 0.06);
	--gr-slate: #5a6478;
	--gr-slate-700: #1e253a;
	--gr-cloud: #c8d2e5;
	--gr-good: #16b27a;
	--gr-violet: #7c5cff;
	--gr-shadow: rgba(13, 20, 36, 0.16);
	--gr-ease: cubic-bezier(0.16, 1, 0.3, 1);

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

html.theme-dark .governance-roles {
	--gr-brand: #4b95e4;
	--gr-brand-600: #6ba9eb;
	--gr-section: #141a32;
	--gr-ink: #eef2fb;
	--gr-surface: #141a32;
	--gr-surface-2: #1a2240;
	--gr-bg: #0c1126;
	--gr-mist: #111733;
	--gr-line: rgba(255, 255, 255, 0.07);
	--gr-slate: #a2adc6;
	--gr-slate-700: #cdd5e6;
	--gr-cloud: #a2adc6;
	--gr-good: #3dd99a;
	--gr-violet: #9d86ff;
	--gr-shadow: rgba(0, 0, 0, 0.5);
	background-color: var(--gr-section);
}

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

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



/* .eyebrow */
.governance-roles__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(--gr-brand);
	background: color-mix(in srgb, currentColor 10%, transparent);
	border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
}

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

/* Page banner — first section on roles route (main > section:first-of-type .t-section-title) */
.governance-roles__title {
	margin:0;
	font-size: clamp(2.7rem, 6.4vw, 4.6rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.03em;
	text-wrap: balance;
	color: var(--gr-ink);
}

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

/* Explorer — mt-16 gap-6 */
.governance-roles__explorer {
	display: grid;
	gap: 1.5rem;
	margin-top: 4rem;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.governance-roles__explorer {
		grid-template-columns: 340px 1fr;
		align-items: stretch;
	}
}

/* Rail */
.governance-roles__rail {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.governance-roles__rail-btn {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem;
	border-radius: 1rem;
	border: 1px solid var(--gr-line);
	text-align: left;
	cursor: pointer;
	font: inherit;
	color: inherit;
	background: color-mix(in srgb, var(--gr-surface) 60%, transparent);
	transition: border-color 0.25s var(--gr-ease), box-shadow 0.25s var(--gr-ease), background 0.25s var(--gr-ease);
}

.governance-roles__rail-btn:hover {
	border-color: color-mix(in srgb, var(--gr-brand) 35%, var(--gr-line));
}

.governance-roles__rail-btn.is-active {
	border-color: color-mix(in srgb, var(--gr-brand) 60%, var(--gr-line));
	background: var(--gr-surface);
	box-shadow: 0 18px 50px -30px rgba(125, 155, 255, 0.55);
}

.governance-roles__rail-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: 0.75rem;
	color: var(--gr-ink);
	background: var(--gr-mist);
	transition: background 0.25s var(--gr-ease), color 0.25s var(--gr-ease);
}

.governance-roles__rail-btn.is-active .governance-roles__rail-icon {
	color: var(--gr-brand);
	background: color-mix(in srgb, var(--gr-brand) 10%, transparent);
}

.governance-roles__rail-icon i,
.governance-roles__rail-icon svg {
	width: 1.5rem;
	height: 1.5rem;
	color: inherit;
	stroke: currentColor;
}

.governance-roles__rail-text {
	min-width: 0;
	flex: 1;
}

.governance-roles__rail-name {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gr-ink);
}

.governance-roles__rail-tag {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.75rem;
	line-height: 1.25;
	color: var(--gr-slate);
}

.governance-roles__rail-arrow {
	flex-shrink: 0;
	margin-left: auto;
	color: var(--gr-brand);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.25s var(--gr-ease), transform 0.25s var(--gr-ease);
}

.governance-roles__rail-btn:hover .governance-roles__rail-arrow {
	opacity: 0.6;
	transform: translateX(0);
}

.governance-roles__rail-btn.is-active .governance-roles__rail-arrow {
	opacity: 1;
	transform: translateX(0);
}

.governance-roles__rail-arrow i,
.governance-roles__rail-arrow svg {
	width: 1.25rem;
	height: 1.25rem;
	stroke: currentColor;
}

/* Detail panel — rounded-3xl bg-mist */
.governance-roles__panel-wrap {
	position: relative;
	min-height: 12.5rem;
	height: 100%;
	border-radius: 1.5rem;
	border: 1px solid var(--gr-line);
	background: var(--gr-mist);
	padding: 2rem;
}

@media (min-width: 640px) {
	.governance-roles__panel-wrap {
		padding: 2.5rem;
	}
}

.governance-roles__panel {
	display: none;
}

.governance-roles__panel.is-active {
	display: block;
}

.governance-roles__panel-head {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.governance-roles__panel-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	flex-shrink: 0;
	border-radius: 1rem;
	border: 1px solid var(--gr-line);
	color: var(--gr-ink);
	background: var(--gr-surface);
}

.governance-roles__panel-icon i,
.governance-roles__panel-icon svg {
	width: 1.75rem;
	height: 1.75rem;
	stroke: currentColor;
}

.governance-roles__panel-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gr-ink);
}

.governance-roles__panel-tag {
	margin: 0.25rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--gr-brand);
}

.governance-roles__panel-focus {
	margin: 1.5rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--gr-slate);
}

/* .t-overline */
.governance-roles__panel-label {
	margin: 2rem 0 0;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gr-slate);
}

.governance-roles__panel-label--gov {
	margin-top: 1.75rem;
}

.governance-roles__duties {
	display: grid;
	gap: 0.75rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.governance-roles__duties {
		grid-template-columns: repeat(2, 1fr);
	}
}

.governance-roles__duties li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--gr-line);
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--gr-slate-700);
	background: var(--gr-surface);
}

.governance-roles__duty-icon {
	flex-shrink: 0;
	margin-top: 0.125rem;
	color: var(--gr-brand);
}

.governance-roles__duty-icon i,
.governance-roles__duty-icon svg {
	width: 1rem;
	height: 1rem;
	stroke: currentColor;
}

.governance-roles__gov {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}

.governance-roles__gov li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--gr-slate-700);
}

.governance-roles__gov li:first-child {
	margin-top: 0;
}

.governance-roles__gov-icon {
	flex-shrink: 0;
	margin-top: 0.125rem;
	color: var(--gr-brand);
}

.governance-roles__gov-icon i,
.governance-roles__gov-icon svg {
	width: 1rem;
	height: 1rem;
	stroke: currentColor;
}

/* RACI — mt-12 rounded-3xl */
.governance-roles__raci {
	margin-top: 3rem;
	overflow: hidden;
	border-radius: 1.5rem;
	border: 1px solid var(--gr-line);
	background: var(--gr-surface);
}

.governance-roles__raci-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--gr-line);
	background: linear-gradient(118deg, var(--gr-surface-2) 0%, color-mix(in srgb, var(--gr-brand) 7%, var(--gr-surface)) 100%);
}

.governance-roles__raci-head-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.governance-roles__raci-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: 0.75rem;
	color: var(--gr-ink);
	background: var(--gr-mist);
}

.governance-roles__raci-icon i,
.governance-roles__raci-icon svg {
	width: 1.25rem;
	height: 1.25rem;
	stroke: currentColor;
}

.governance-roles__raci-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
}

.governance-roles__raci-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--gr-ink);
}

.governance-roles__raci-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.625rem;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gr-slate);
	background: var(--gr-surface);
	border: 1px solid var(--gr-line);
}

.governance-roles__raci-subtitle {
	margin: 0;
	font-size: 11px;
	line-height: 1.25;
	color: var(--gr-slate);
}

.governance-roles__raci-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.875rem;
	padding: 0.375rem 0.875rem;
	border-radius: 9999px;
	border: 1px solid var(--gr-line);
	background: var(--gr-surface);
}

.governance-roles__raci-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: var(--gr-slate);
}

.governance-roles__raci-note {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--gr-slate);
	border-bottom: 1px solid var(--gr-line);
	background: color-mix(in srgb, var(--gr-surface) 3%, transparent);
}

body .governance-roles__raci-note {
	padding: 0.5rem 1.5rem !important;
}

.governance-roles__raci-scroll {
	overflow-x: auto;
}

.governance-roles__raci-table {
	width: 100%;
	min-width: 760px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.875rem;
}

.governance-roles__raci-table thead tr {
	border-bottom: 1px solid var(--gr-line);
}

.governance-roles__raci-table th {
	padding: 0.875rem 0.625rem;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
	color: var(--gr-slate);
	background-color: var(--gr-surface-2);
	border-bottom: 1px solid var(--gr-line);
}

.governance-roles__raci-table th:first-child {
	position: sticky;
	left: 0;
	z-index: 2;
	padding-left: 1.5rem;
	text-align: left;
	border-right: 1px solid var(--gr-line);
}

.governance-roles__raci-table td {
	border-bottom: 1px solid var(--gr-line);
	border-color: var(--gr-line);
	vertical-align: middle;
}

/* Override Salient .post table td/th { text-align: center } */
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table th:first-child,
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table td.governance-roles__raci-activity {
	text-align: left !important;
}

body:not(.woocommerce-cart) .main-content .governance-roles__raci-table th:not(:first-child),
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table td.governance-roles__raci-cell {
	text-align: center !important;
}

/* Override Salient .main-content table grid borders (#ececec) */
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table,
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table th,
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table td,
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table tr th:first-child,
body:not(.woocommerce-cart) .main-content .governance-roles__raci-table tr td:first-child {
	border-color: var(--gr-line) !important;
}

.governance-roles__raci-table tbody tr:last-child td {
	border-bottom: none;
}

/* Table — override global Salient zebra */
.governance-roles__raci-table,
.governance-roles__raci-table tbody tr {
	background-color: var(--gr-surface);
}

.governance-roles__raci-table thead tr,
.governance-roles__raci-table thead th {
	background-color: var(--gr-surface-2) !important;
}

.governance-roles__raci-table tbody tr:nth-child(2n+1) {
	background-color: var(--gr-surface) !important;
}

html.theme-dark .governance-roles__raci-table,
html.theme-dark .governance-roles__raci-table tbody tr {
	background-color: var(--gr-surface) !important;
}

html.theme-dark .governance-roles__raci-table thead tr,
html.theme-dark .governance-roles__raci-table thead th {
	background-color: var(--gr-surface-2) !important;
	color: var(--gr-slate) !important;
}

html.theme-dark .governance-roles__raci-table tbody tr:nth-child(2n+1) {
	background-color: var(--gr-surface) !important;
}

html.theme-dark .governance-roles__raci-head {
	background: linear-gradient(118deg, var(--gr-surface-2) 0%, color-mix(in srgb, var(--gr-brand) 7%, var(--gr-surface)) 100%) !important;
}

html.theme-dark .governance-roles__raci,
html.theme-dark body:not(.woocommerce-cart) .main-content .governance-roles__raci-table,
html.theme-dark body:not(.woocommerce-cart) .main-content .governance-roles__raci-table th,
html.theme-dark body:not(.woocommerce-cart) .main-content .governance-roles__raci-table td,
html.theme-dark body:not(.woocommerce-cart) .main-content .governance-roles__raci-table tr th:first-child,
html.theme-dark body:not(.woocommerce-cart) .main-content .governance-roles__raci-table tr td:first-child,
html.theme-dark .governance-roles__raci-table thead tr {
	border-color: var(--gr-line) !important;
}

.governance-roles__raci-activity {
	position: sticky;
	left: 0;
	z-index: 1;
	padding: 0.75rem 1.5rem;
	font-weight: 700;
	text-align: left;
	vertical-align: middle;
	color: var(--gr-ink);
	background-color: var(--gr-surface);
	border-right: 1px solid var(--gr-line);
}

.governance-roles__raci-cell {
	padding: 0.75rem 0.625rem;
	text-align: center;
	vertical-align: middle;
}

.governance-roles__raci-cell--empty {
	color: transparent;
}

.governance-roles__raci-badges {
	display: flex;
	width: 100%;
	gap: 0.375rem;
	justify-content: center;
	align-items: center;
}

.governance-roles__raci-badge-cell {
	--chip: var(--gr-brand);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	min-width: 1.75rem;
	border-radius: 0.6rem;
	font-size: 0.6875rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(160deg, color-mix(in srgb, var(--chip) 72%, white) 0%, var(--chip) 100%);
	box-shadow:
		0 4px 10px -3px color-mix(in srgb, var(--chip) 55%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.governance-roles__raci-badge-cell--r {
	--chip: var(--gr-good);
}

.governance-roles__raci-badge-cell--a {
	--chip: var(--gr-brand);
}

.governance-roles__raci-badge-cell--c {
	--chip: var(--gr-violet);
}

.governance-roles__raci-badge-cell.is-accountable {
	box-shadow:
		0 4px 10px -3px color-mix(in srgb, var(--chip) 55%, transparent),
		0 0 0 2px color-mix(in srgb, var(--chip) 26%, transparent),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.governance-roles__raci-badge-cell--informed {
	--chip: var(--gr-slate);
	color: var(--gr-slate);
	background: color-mix(in srgb, var(--gr-slate) 8%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gr-slate) 28%, transparent);
}

.governance-roles__raci-badge-cell--legend {
	width: 1.25rem;
	height: 1.25rem;
	min-width: 1.25rem;
	border-radius: 0.5rem;
	font-size: 0.625rem;
}

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

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

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

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

@media (prefers-reduced-motion: reduce) {
	.governance-roles__rail-btn,
	.governance-roles__rail-arrow {
		transition: none;
	}

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