/**
 * Simple mega-menu module — internal layout only.
 *
 * The shared flyout shell (positioning, card chrome, hidden/reveal state) lives
 * in `mega.scss` (`build/mega.css`). This file ships as `build/mega-simple.css`,
 * enqueued only when the Simple module is enabled, and owns just the panel's
 * width/padding plus the plain title-only link rows and their hover highlight.
 */

.aureon-mega--simple {
	width: var(--aureon-mega-width, max(16rem, var(--aureon-submenu-width, 15rem)));
	max-width: calc(100vw - 2rem);
	padding: var(--aureon-mega-pad, var(--aureon-space-sm));
}

.aureon-mega__simple {
	display: flex;
	flex-direction: column;
	gap: var(--aureon-mega-gap, 2px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.aureon-mega__simple-item {
	display: block;
	margin: 0;
}

/* Scoped under `.aureon-mega` (0,2,0) so it beats the header menu's
   `.aureon-menu a { display: inline-block }` (0,1,1) — otherwise the row would
   collapse to inline and lose its block padding / hover band. */
.aureon-mega .aureon-mega__simple-link {
	display: block;
	padding: 0.625rem 0.75rem;
	border-radius: var(--aureon-radius-md, 8px);
	font-size: var(--aureon-submenu-font-size, 0.9375rem);
	font-weight: 600;
	line-height: 1.3;
	color: var(--aureon-submenu-text, var(--aureon-color-text));
	text-decoration: none;
	transition:
		background-color 0.15s ease,
		color 0.15s ease;

	&:hover,
	&:focus-visible {
		background: var(--aureon-submenu-hover-bg, color-mix(in srgb, var(--aureon-submenu-text, var(--aureon-color-text)) 6%, transparent));
		color: var(--aureon-menu-link-hover, var(--aureon-color-link));
	}
}
