/*
 * FRS Arlo Courses: main menu third level (v1.11). Builds on the theme's desktop menu
 * rules (Customizer CSS: .desktop-menu-wrapper ul is absolutely placed under its item and
 * shown on hover).
 */

/* Third level: beside the second level, not on top of it. */
.desktop-menu-wrapper ul ul {
	top: 0;
	left: 100%;
}

/* A second-level item with its own list: room for an arrow pointing to it. */
.desktop-menu-wrapper ul li.menu-item-has-children > a {
	padding-right: 2.25rem;
}

.desktop-menu-wrapper ul li.menu-item-has-children > a::after {
	content: "\25B8";
	position: absolute;
	right: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.8em;
	pointer-events: none;
}

/*
 * Open on keyboard focus as well as hover, at every level. display is forced because the
 * theme's click script slides a list shut (inline display: none), which would otherwise
 * stop hover opening it again.
 */
.desktop-menu-wrapper li:hover > ul,
.desktop-menu-wrapper li:focus-within > ul {
	display: block !important;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Menu jump targets on /courses/: clear the fixed header. */
#course-dates,
#frsac-az-heading,
#frsac-tiles-heading {
	scroll-margin-top: 9rem;
}
