/*
 * Landing pages in Divi editing mode (php/divi.php): each page section sits in
 * Divi Section .mq-dsec > Row .mq-drow > Column > Code module .mq-dcode.
 * These wrappers must not change the layout: no padding / width / background / stacking context.
 */
.mq-page .et-l--post,
.mq-page .et_builder_inner_content {
	z-index: auto;
}

.mq-page .et_pb_section.mq-dsec,
.mq-page .et_pb_section.mq-dsec > .et_pb_row.mq-drow,
.mq-page .mq-drow > .et_pb_column,
.mq-page .mq-drow > .et_pb_column > .et_pb_module.mq-dcode,
.mq-page .mq-dcode > .et_pb_code_inner {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	min-height: 0 !important;
}

/* On the page (not in the Divi Builder, which needs its own outlines / positioning). */
body:not(.et-fb) .mq-page .et_pb_section.mq-dsec,
body:not(.et-fb) .mq-page .mq-dsec > .et_pb_row.mq-drow,
body:not(.et-fb) .mq-page .mq-drow > .et_pb_column,
body:not(.et-fb) .mq-page .mq-dcode,
body:not(.et-fb) .mq-page .mq-dcode > .et_pb_code_inner {
	position: static !important;
	background: none !important;
	box-shadow: none !important;
	border: 0 !important;
	overflow: visible !important;
	z-index: auto !important;
}

body.et-fb .mq-page .et_pb_section.mq-dsec {
	background-color: transparent;
}

.mq-page .mq-dsec > .et_pb_row.mq-drow::after {
	display: none;
}

/* Modules the client adds next to a Code module (Text, Button, Image, ...): page width + spacing. */
.mq-page .mq-drow > .et_pb_column > .et_pb_module:not(.mq-dcode) {
	box-sizing: border-box;
	width: 100% !important;
	max-width: calc(var(--mq-container) + var(--mq-gutter) * 2) !important;
	margin: 0 auto 32px !important;
	padding-left: var(--mq-gutter) !important;
	padding-right: var(--mq-gutter) !important;
}

.mq-page .mq-drow > .et_pb_column > .et_pb_module.et_pb_text:not(.mq-dcode) {
	font-family: var(--mq-font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--mq-text);
}

.mq-page .et_pb_text:not(.mq-dcode) a {
	color: var(--mq-blue);
	text-decoration: underline;
}

/* Sections the client builds with normal Divi rows (not .mq-dsec): keep the page font. */
.mq-page .et_pb_section:not(.mq-dsec) {
	font-family: var(--mq-font-body);
}

/* The page style block is not a visible section. */
body:not(.et-fb) .mq-page .mq-dsec--styles {
	display: none !important;
}

body.et-fb .mq-page .mq-dsec--styles {
	display: block;
	min-height: 24px;
}

/* Headings in modules / sections the client builds in Divi (not the Code modules): normal heading spacing. */
.mq-page .et_pb_module:not(.mq-dcode) :is(h1, h2, h3, h4, h5, h6) {
	line-height: 1.25;
	padding-bottom: 10px;
}
