/* Multi-role portal switcher (Client marketing header, Partner, Admin) */
.portal-role-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-size: 0.8125rem;
	line-height: 1.25;
	z-index: 100002;
}

.portal-role-switch__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
	border-radius: 0.5rem;
	font-weight: 600;
	white-space: nowrap;
	font-family: inherit;
}

.portal-role-switch__chev {
	opacity: 0.85;
	font-size: 0.65rem;
	margin-inline-start: 0.1rem;
}

.portal-role-switch__menu {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 6px);
	min-width: 11.5rem;
	padding: 0.35rem 0;
	margin: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	display: none;
}

.portal-role-switch.is-open .portal-role-switch__menu {
	display: block;
}

.portal-role-switch__item {
	display: block;
	width: 100%;
	text-align: inherit;
	padding: 0.5rem 0.9rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: #111827;
}

.portal-role-switch__item:hover:not(:disabled) {
	background: #f3f4f6;
}

.portal-role-switch__item.is-current {
	color: #5b4d7a;
	font-weight: 700;
	cursor: default;
	background: #f5f3fa;
}

/* Client marketing header — readable on light or purple chrome */
.portal-role-switch--contrast .portal-role-switch__trigger {
	color: #111827;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.55);
	padding: 0.45rem 0.65rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.portal-role-switch--contrast .portal-role-switch__trigger:hover {
	background: #fff;
}

/* Partner + Admin dashboard headers */
.portal-role-switch--dashboard {
	align-self: center;
}

.portal-role-switch--dashboard .portal-role-switch__trigger {
	color: #374151;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	padding: 0.4rem 0.65rem;
}

.portal-role-switch--dashboard .portal-role-switch__trigger:hover {
	background: #f3f4f6;
}
