/* ============================================================================
   Coursecheck app header (cc-header.css) - the slim header of the logged-in
   pages and the login page (prototype SiteHeader: 64px, brand grey, logo left,
   account action right). Applies only to #header.rw-header (_Layout/shared.xsl
   stdHeader adds the class), so the public site's header is unchanged.
   Loaded by _Layout/Default.xsl and Account/Logon.xsl.
   ========================================================================== */
#header.rw-header {
	--hd-height: 64px;
	height: var(--hd-height);
	overflow: visible;
	background: #404040;
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
	font-family: 'Inter', system-ui, -apple-system, 'Open Sans', sans-serif;
}
/* full width with a 24px gutter, as in the logged-in shell (cc-rework.css body.rw-shell) */
#header.rw-header .container {
	width: 100%;
	max-width: none;
	padding-left: 24px;
	padding-right: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 100%;
}
#header.rw-header .container::before,
#header.rw-header .container::after {
	display: none; /* Bootstrap's clearfix would take a flex slot */
}

/* logo: in the flow rather than absolutely placed, sized to the slimmer bar */
#header.rw-header #site_title {
	position: static;
	flex: none;
	padding: 0;
}
#header.rw-header #site_title a {
	width: 148px;
	height: 37px;
}

/* "Admin portal" badge next to the logo on admin pages (shared.xsl stdHeader); margin-right:auto keeps it
   beside the logo and the account action on the right */
#header.rw-header .rw-portal-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: #ffc50b;
	color: #1f2429;
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}
#header.rw-header .rw-portal-badge:hover,
#header.rw-header .rw-portal-badge:focus-visible {
	background: #ffd440;
	color: #1f2429;
	text-decoration: none;
}

/* account action */
#header.rw-header #nav {
	flex: none;
	width: auto;
	margin: 0;
	padding: 0;
}
#header.rw-header #nav ul.top-menu {
	display: flex;
	align-items: center;
	height: auto;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 20px;
}
#header.rw-header #nav ul.top-menu li {
	margin: 0;
}
/* the prototype's blue, as a rounded rectangle rather than a pill */
#header.rw-header #nav ul.top-menu li.account a.account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	height: 36px;
	padding: 0 14px;
	overflow: visible;
	border: 0;
	border-radius: 8px;
	background: #0083CA;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #FFFFFF;
	transition: background-color 0.15s;
}
#header.rw-header #nav ul.top-menu li.account a.account:hover,
#header.rw-header #nav ul.top-menu li.account a.account:focus-visible {
	background: #0074B3;
}
#header.rw-header #nav ul.top-menu li.account a.account .icon {
	display: block;
	width: auto;
	margin: 0;
	font-size: 13px;
	line-height: 1;
	opacity: 0.85;
}
#header.rw-header #nav ul.top-menu li.account a.account .txt {
	position: static;
	opacity: 1;
}

@media (max-width: 767px) {
	#header.rw-header #site_title a {
		width: 128px;
		height: 32px;
	}
	#header.rw-header #nav ul.top-menu li.account a.account {
		height: 34px;
		padding: 0 12px;
	}
}
