/**
 * Full-width mega-menu module — internal layout only.
 *
 * Shell + link-row primitives come from `mega.scss`; section/heading primitives
 * from the shared `_mega-columns` partial; the optional action-bar footer from
 * the shared `_mega-actions` partial. This file (shipped as
 * `build/mega-full-width.css`, enqueued only when the variant is on) stretches
 * the panel across the header, flows the sections into an auto-fitting grid, and
 * styles the optional featured rail beside them.
 *
 * The edge-to-edge shell is shared with the two-column variant — see
 * `_mega-full-bleed`.
 */

@use "mega-columns";
@use "mega-actions";
@use "mega-full-bleed";
@include mega-full-bleed.shell( "full-width" );

.aureon-mega--full-width {

	/* Grid + featured rail sit side by side; the action footer stacks below. */
	.aureon-mega__fw-body {
		display: flex;
		gap: var(--aureon-space-lg, 2rem);
	}

	.aureon-mega__cols {
		flex: 1 1 auto;
		grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	}

	/* Highlighted rail for featured items, alongside the section grid. */
	.aureon-mega__featured {
		flex: 0 0 clamp(14rem, 22vw, 18rem);
		padding: var(--aureon-space-sm);
		border-radius: var(--aureon-radius-md, 8px);
		background: color-mix(in srgb, var(--aureon-color-border) 22%, transparent);
	}
}
