/**
 * Designed dropdown panels for the header navigation. Opt-in.
 *
 * Core's submenu container ships as a bare bordered box; this restyles it
 * as a floating panel — rounded, shadowed, padded, with rounded hover
 * states on items. Token-based throughout so child skins recolor it.
 * Loaded on the frontend AND the editor canvas (editor = frontend).
 *
 * Not loaded unless the child theme asks for it:
 *
 *     add_filter( 'launchpad_nav_dropdown_panel', '__return_true' );
 *
 * These rules use !important to beat core and load after the child's
 * style.css, so a child cannot override them one property at a time. A
 * child that wants a different dropdown leaves this off and styles its own.
 */

.wp-block-navigation .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base) !important;
	border: 1px solid var(--wp--preset--color--outline) !important;
	border-radius: 12px !important;
	box-shadow: var(--wp--preset--shadow--console);
	padding: 0.5rem !important;
	min-width: 220px !important;
	margin-top: 0.75rem;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 8px;
	padding: 0.5rem 0.75rem !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background-color: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}
