/* Static-site replacements for behaviour the WordPress/Divi JavaScript provided. */

/* --- Modules Divi made clickable with JS: full-size anchor overlay --- */
.snav-has-cover { position: relative; }
.snav-has-cover > .snav-cover { position: absolute; inset: 0; z-index: 3; }
.snav-logo-link { display: contents; color: inherit; }

/* --- Features mega menu (was a tippy.js popup attached to <body>), desktop only.
       Opens while the Features item or the panel itself is hovered / focused. --- */
li.divimegapro-539 > .sub-menu { display: none !important; }
@media (min-width: 981px) {
	#divimegapro-container-539[data-snav] {
		display: block;
		visibility: hidden;
		opacity: 0;
		position: absolute;
		left: 5%;
		width: 90%;
		top: 64px;          /* bottom of the Features item */
		padding-top: 20px;  /* + the container's own 30px = tippy's 50px offset; keeps hover while moving down */
		z-index: 99999;
		transition: opacity .2s ease, visibility 0s linear .2s;
	}
	body:has(li.divimegapro-539:hover) #divimegapro-container-539[data-snav],
	body:has(li.divimegapro-539:focus-within) #divimegapro-container-539[data-snav],
	#divimegapro-container-539[data-snav]:hover,
	#divimegapro-container-539[data-snav]:focus-within {
		visibility: visible;
		opacity: 1;
		transition: opacity .2s ease;
	}
	#divimegapro-container-539[data-snav] .divimegapro { display: block; }
	#divimegapro-container-539[data-snav] .divimegapro-close-container { display: none; }
}
@media (max-width: 980px) {
	#divimegapro-container-539[data-snav] { display: none !important; }
}

/* --- Mobile hamburger menu (was a jQuery slide toggle) --- */
.snav-mm-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.snav-mm-label { cursor: pointer; display: contents; }
.mobile_nav .et_mobile_menu { display: none; }
.mobile_nav .snav-mm-toggle:checked ~ .et_mobile_menu { display: block; }

/* --- Per-device content Divi swapped with JS (data-et-multi-view) --- */
.snav-mv { display: contents; }
.snav-mv-t, .snav-mv-p { display: none; }
@media (min-width: 768px) and (max-width: 980px) {
	.snav-mv-d, .snav-mv-p { display: none; }
	.snav-mv-t { display: contents; }
}
@media (max-width: 767px) {
	.snav-mv-d, .snav-mv-t { display: none; }
	.snav-mv-p { display: contents; }
}

/* --- Blog post sidebar box Divi pinned with JS on scroll --- */
@media (min-width: 981px) {
	.et_pb_row_inner_1_tb_body { position: sticky; top: 20px; }
}

/* --- Contact form honeypot: off-screen for people, bots fill it in --- */
.et_pb_contact_form .snav-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --- Search boxes on WordPress archive pages: no server to search --- */
.wp-block-search__button[disabled] { cursor: default; }
