/**
 * Teacher portal shared shell: user bar.
 */

.ete-portal-user-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	box-sizing: border-box;
	margin: 0 0 1.25rem;
	padding: 0.35rem 0 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

.ete-portal-user-bar__identity {
	display: flex;
	flex: 1 1 30rem;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.ete-portal-user-bar__name {
	display: block;
	overflow-wrap: anywhere;
	font-weight: 600;
	color: #1a3a5a;
}

.ete-portal-user-bar__plan-status {
	display: block;
	overflow-wrap: anywhere;
	color: #475569;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.ete-portal-user-bar__logout {
	display: inline-flex;
	align-items: center;
	align-self: center;
	box-sizing: border-box;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0.5rem 0.35rem;
	color: #1f2937;
	font-weight: 500;
	text-decoration: none;
}

.ete-portal-user-bar__logout:hover {
	color: #0f172a;
	text-decoration: underline;
}

.ete-portal-user-bar__logout:focus {
	color: #0f172a;
	text-decoration: underline;
}

.ete-portal-user-bar__logout:focus-visible {
	color: #0f172a;
	outline: 2px solid #1a3a5a;
	outline-offset: 2px;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.ete-portal-user-bar {
		align-items: flex-start;
		gap: 0.35rem 0.75rem;
	}

	.ete-portal-user-bar__identity {
		flex-basis: 100%;
	}

	.ete-portal-user-bar__logout {
		align-self: flex-start;
	}
}
