/*
 * Main menu in Fira Sans; it was made of images (fr-navigation-{public,private,admin}.css
 * and images/fr/n_bar_*.png on the legacy site). As the images, the items fill the 470px
 * line under the menu, in the size of each variant; the active and the hovered items are
 * underlined in red, as by the *_active.png images.
 */
#mainmenu ul {
	display: flex;
	justify-content: space-between;
	width: 470px;
}

#mainmenu li,
#mainmenu li.inactive {
	margin: 0;
}

#mainmenu a {
	font-family: 'Fira Sans', 'Trebuchet MS', sans-serif;
	font-weight: 500;
	letter-spacing: 0.05em;
	line-height: 16px;
	color: #003867;
}

#mainmenu a#nav-account,
#mainmenu a#nav-admin {
	color: #E32118;
}

#mainmenu a.active,
#mainmenu a.inactive:hover {
	background: linear-gradient(#E32118, #E32118) no-repeat 0 25px / 100% 4px;
}

/* anonymous user */
#mainmenu.public a {
	font-size: 13px;
}

/* logged-in user */
#mainmenu.private a {
	font-size: 11px;
}

#mainmenu.private a.active,
#mainmenu.private a.inactive:hover {
	background-position: 0 24px;
}

/* admin */
#mainmenu.admin a {
	font-size: 12px;
}
