/* HFD Mega Menu v1.0.1 */

/* v1.0.1 FIX: GeneratePress hides EVERY nested ul under the nav with
   height 0 plus overflow hidden (.main-navigation ul ul in main.min.css),
   and only reveals one when its parent li is hovered. v1.0.0 reset
   position, display, visibility and opacity on the inner lists, but never
   height, overflow, pointer events or float, so the inner lists stayed
   zero height with their links clipped away and unclickable, at every
   width. The panel, headings and footer sit outside the inner lists, so
   they rendered fine while the links were invisible. This version resets
   every hiding property on the inner lists. Colour was not the cause: the
   site header snippet already makes submenu links white on the dark blue
   panel; the explicit colours below only make the menu self contained if
   that snippet ever changes. */

/* Panel background at every width, so the white links always sit on the
   dark blue the live header snippet uses. */
#menu-item-29 > ul.sub-menu.hfd-mm {
	background-color: #123a63;
}

/* Group headings: shown at every width, so the stacked mobile list is
   labelled too. The mega column layout only applies at desktop width. */
#menu-item-29 > ul.sub-menu.hfd-mm .hfd-mm-heading {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #c9d8e8;
	padding: 6px 14px 6px 14px;
}

#menu-item-29 > ul.sub-menu.hfd-mm .hfd-mm-group {
	padding: 0;
	margin: 0;
}

#menu-item-29 > ul.sub-menu.hfd-mm ul.hfd-mm-list {
	position: static;
	display: block;
	visibility: visible;
	opacity: 1;
	height: auto;
	overflow: visible;
	pointer-events: auto;
	left: auto;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	transition: none;
}

#menu-item-29 > ul.sub-menu.hfd-mm ul.hfd-mm-list li a {
	white-space: normal;
	line-height: 1.35;
	color: #ffffff;
}

#menu-item-29 > ul.sub-menu.hfd-mm .hfd-mm-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	margin-top: 10px;
	padding-top: 4px;
}

#menu-item-29 > ul.sub-menu.hfd-mm .hfd-mm-footer a {
	font-weight: 700;
	color: #ffffff;
}

/* Desktop mega panel: 1025px and up. Below that the native GeneratePress
   single column dropdown is left alone, with the group headings above it. */
@media (min-width: 1025px) {
	#menu-item-29 {
		position: relative;
	}

	#menu-item-29 > ul.sub-menu.hfd-mm {
		top: 100%;
		width: max-content;
		max-width: min(980px, calc(100vw - 24px));
		min-width: 520px;
		padding: 16px 12px 12px 12px;
		display: grid;
		gap: 2px 26px;
		border-radius: 10px;
		box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
		z-index: 200;
	}

	#menu-item-29 > ul.sub-menu.hfd-mm[data-cols="1"] {
		grid-template-columns: minmax(240px, 1fr);
	}

	#menu-item-29 > ul.sub-menu.hfd-mm[data-cols="2"] {
		grid-template-columns: repeat(2, minmax(230px, 1fr));
	}

	#menu-item-29 > ul.sub-menu.hfd-mm[data-cols="3"] {
		grid-template-columns: repeat(3, minmax(210px, 1fr));
	}

	#menu-item-29 > ul.sub-menu.hfd-mm[data-cols="4"] {
		grid-template-columns: repeat(4, minmax(190px, 1fr));
	}

	#menu-item-29 > ul.sub-menu.hfd-mm .hfd-mm-group {
		min-width: 0;
	}

	#menu-item-29 > ul.sub-menu.hfd-mm .hfd-mm-heading {
		padding-left: 14px;
		padding-right: 14px;
		margin-bottom: 2px;
	}

	#menu-item-29 > ul.sub-menu.hfd-mm .hfd-mm-footer {
		grid-column: 1 / -1;
	}
}
