/** Layout fixes for the Devi Foundation Divi Theme Builder header. */
.et-l--header .header-section.et_pb_section {
	padding: 0 !important;
	background-color: #fff !important;
	overflow: visible;
}

.et-l--header .header-section > .et_pb_row {
	position: relative;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 auto !important;
	transform: none !important;
}

.et-l--header .header-section > .top-menu {
	display: flex;
	align-items: center;
	padding: 14px max(10%, calc((100% - 1200px) / 2)) !important;
	min-height: 0 !important;
	border: 0 !important;
	background: #242424 !important;
}

/* Full-width row backgrounds avoid stepped edges and viewport overflow. */
.et-l--header .header-section > .top-menu::before,
.et-l--header .header-section > .top-menu::after,
.et-l--header .header-section > .et_pb_row--with-menu::before,
.et-l--header .header-section > .et_pb_row--with-menu::after {
	content: none !important;
	display: none !important;
}

.et-l--header .header-section .top-menu > .et_pb_column {
	margin-bottom: 0 !important;
}

.et-l--header .header-section .top-menu .et_pb_social_media_follow {
	margin-bottom: 0 !important;
}

.et-l--header .header-section > .et_pb_row--with-menu {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 13px max(10%, calc((100% - 1200px) / 2)) !important;
	min-height: 0 !important;
	border: 0 !important;
	background: #fff !important;
}

.et-l--header .header-section > .et_pb_row--with-menu > .et_pb_column {
	float: none;
	margin: 0 !important;
	min-width: 0;
}

.et-l--header .header-section > .et_pb_row--with-menu > .et_pb_column--with-menu {
	flex: 1;
	width: auto !important;
}

.et-l--header .header-section > .et_pb_row--with-menu > .et-last-child {
	flex: 0 0 auto;
	width: auto !important;
}

.et-l--header .header-section .header-top-menu {
	margin: 0 !important;
	background: transparent;
}

.et-l--header .header-section .header-top-menu .et_pb_menu_inner_container {
	display: flex;
	align-items: center;
	position: relative;
	top: auto !important;
	transform: none !important;
	min-height: 0;
}

.et-l--header .header-section .header-top-menu .et_pb_menu__logo-wrap {
	position: static !important;
	flex: 0 0 auto;
	margin: 0 24px 0 0 !important;
	transform: none !important;
}

.et-l--header .header-section .header-top-menu .et_pb_menu__logo img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 180px !important;
	max-height: 104px !important;
	object-fit: contain;
	transform: none !important;
}

.et-l--header .header-section .header-top-menu .et_pb_menu__wrap {
	flex: 1;
	align-items: center;
}

.et-l--header .header-section .et_pb_button_module_wrapper {
	margin: 0 !important;
}

.et-l--header .header-section .et_pb_button {
	white-space: nowrap;
}

/* Ignore the legacy script's Home highlight; use WordPress's current page. */
body .et-l--header .header-section .header-top-menu li:not(.current-menu-item) > a.header-menu-active:not([aria-current="page"]):not(:hover):not(:focus-visible) {
	color: #000 !important;
}

body .et-l--header .header-section .header-top-menu li.current-menu-item > a,
body .et-l--header .header-section .header-top-menu a[aria-current="page"] {
	color: #f74f22 !important;
}

@media (max-width: 980px) {
	.et-l--header .header-section > .top-menu {
		padding: 14px 5% !important;
		flex-wrap: wrap;
		gap: 8px;
	}
	.et-l--header .header-section .top-menu > .et_pb_column {
		width: 100% !important;
		margin-right: 0 !important;
	}
	.et-l--header .header-section > .et_pb_row--with-menu {
		padding: 14px 5% !important;
		gap: 16px;
	}
	.et-l--header .header-section .header-top-menu .et_pb_menu__logo img {
		max-width: 120px !important;
		max-height: 72px !important;
	}
	.et-l--header .header-section .header-top-menu .et_pb_menu__logo-wrap {
		margin-right: 16px !important;
	}
}

@media (max-width: 480px) {
	.et-l--header .header-section > .et_pb_row--with-menu {
		gap: 12px;
	}
	.et-l--header .header-section .header-top-menu .et_pb_menu__logo img {
		max-width: 90px !important;
		max-height: 64px !important;
	}
	.et-l--header .header-section .et_pb_button {
		font-size: 12px !important;
		padding: 12px 20px !important;
	}
}
