/**
 * Ebbert — navigation / Astra Pro mega menu.
 */

/* Estate Planning carries 12 links while HOA Law has none, which made the Practice Areas panel
   734px tall. Rather than invent a second heading the content sheet does not have, that column
   gets a double share of the flex row and its list flows into two sub-columns. Purely visual —
   the menu structure still matches the sheet exactly.
   The column is tagged via the menu item's CSS Classes field (set in build-menus.php), not by
   menu-item ID, because rebuilding the menu reassigns IDs.

   SPECIFICITY: Astra sets flex-grow:1 from
     .ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:not([data-megamenu-trigger="click"]):hover .astra-megamenu > .menu-item
   which scores 0-8-0. A shorter override loses, so this mirrors Astra's own selector and adds the
   hook class for 0-9-0. Measured with .claude/scripts/matching-rules.mjs — no !important needed. */
.ast-desktop .ast-mega-menu-enabled .astra-megamenu-li:not([data-megamenu-trigger="click"]):hover .astra-megamenu > .menu-item.ebbert-mega-col-wide {
	flex-grow: 2;
}

.ast-desktop .astra-megamenu > .menu-item.ebbert-mega-col-wide > .sub-menu {
	column-count: 2;
	column-gap: 32px;
}

/* Keep each link whole rather than letting a column break run through it. */
.ast-desktop .astra-megamenu > .menu-item.ebbert-mega-col-wide > .sub-menu > .menu-item {
	break-inside: avoid;
}

/* ---------- Mega menu: tighter vertical rhythm ----------
   Astra ships 16.2px top and bottom on every mega-menu link, which with an 18px/26.1px link made
   each row 59px and left the panel looking sparse. 8px brings a row to ~42px and closes the gaps
   without crowding the text. Column headings keep more air above them so the groups still read
   as groups. */
.ast-desktop .astra-megamenu .menu-item > .menu-link,
.ast-desktop .astra-megamenu-li .sub-menu .menu-link {
	padding-top: 8px;
	padding-bottom: 8px;
}

.ast-desktop .astra-megamenu > .menu-item > .menu-link {
	margin-bottom: 4px;
}

.ast-desktop .astra-megamenu .sub-menu {
	margin-top: 2px;
}
