/**
 * Two-column mega-menu module — internal layout only.
 *
 * Shell + link-row primitives come from `mega.scss`; the section/heading
 * primitives from the shared `_mega-columns` partial; the optional footer band
 * from the shared `_mega-callout` partial. This file (shipped as
 * `build/mega-two-column.css`, enqueued only when the variant is on) adds only
 * the boxed panel size and its two-column section grid.
 */

@use "mega-columns";
@use "mega-callout";

.aureon-mega--two-column {

	/* Exposed for _mega-callout's edge bleed; honours the per-variant padding
	   override so the callout stays flush when padding is customised. */
	--mega-pad: var(--aureon-mega-pad, var(--aureon-space-sm));

	width: var(--aureon-mega-width, min(34rem, calc(100vw - 2rem)));
	max-width: calc(100vw - 2rem);
	padding: var(--mega-pad);

	.aureon-mega__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		/* This variant sits tight by default — no gutter between the two
		   columns or wrapped rows. The admin's Column/Row gap fields override
		   these fallbacks via --aureon-mega-col-gap / --aureon-mega-row-gap. */
		gap:
			var(--aureon-mega-row-gap, 0)
			var(--aureon-mega-col-gap, 0);
	}
}
