/*
 * iLaunch to real Divi: reset for modules the converter made (class ils-piece) and nothing else.
 * A converted text module must look exactly like the code module it replaced. Divi 4.27.6 gives
 * text modules a few styles code modules do not have; these rules take them back.
 * Measured against the served Tropic Towers CSS on 23 Nov 2026; to be re-measured on the test site.
 */

/* Divi's gutter margin between modules (2.75% desktop, 30px mobile). The site's kit already
   zeroes it for code modules (body.tt-site .et_pb_code { margin: 0 !important }). */
.et_pb_section .et_pb_module.ils-piece {
	margin: 0 !important;
	padding: 0 !important;
}

/* text.css: .et_pb_text { word-wrap: break-word } and .et_pb_module.et_pb_text_align_left
   { text-align: left }. A code module sets neither, so it inherits; so does this. */
.et_pb_section .et_pb_text.ils-piece {
	word-wrap: inherit;
	overflow-wrap: inherit;
	text-align: inherit;
}

.et_pb_section .et_pb_text.ils-piece > .et_pb_text_inner {
	margin: 0;
	padding: 0;
}

/* Seams inside the wrappers (ils-seam-after-3 / ils-seam-before-3: both pieces repeat the whole
   #content > .innercontent > .inner-wrapper chain, so the inner wrapper continues across the
   seam). Measured on the test copy 24 Nov 2026, 1440 wide:
   1. Each piece would close its wrappers with the space meant for the end of the page:
      .inner-wrapper bottom padding (50px desktop, 40px and 28px mobile), .innercontent bottom
      margin (2px) and the divider drawn by .inner-wrapper::after (+108px per seam). That space
      belongs only after the last piece, so the piece before the seam drops it.
   2. In one block the margins either side of the seam collapse to the larger one (a p's 15px
      bottom against the next p's 5px top gives 15px), inside the beige .innercontent. Split,
      they cannot collapse across the two pieces: they would add up (+5px), or, once they can
      escape the inner wrapper, sit outside the beige panel (a 15px stripe of page colour).
      So both inner wrappers at the seam contain their own margins (display: flow-root, no
      height of its own) and the first block after the seam drops its top margin: the gap is
      the bottom margin alone, inside the panel. This equals the original whenever that bottom
      margin is at least the top margin it meets; the test copy proves each page.
   Seams at a shallower level (a page with two regions, e.g. -1) are left alone: there the
   inner wrapper really ends, and its closing space is part of the original look. */
.et_pb_section .et_pb_module.ils-piece.ils-seam-after-3 #content .innercontent {
	margin-bottom: 0 !important;
}
.et_pb_section .et_pb_module.ils-piece.ils-seam-after-3 #content .innercontent .inner-wrapper {
	padding-bottom: 0 !important;
}
.et_pb_section .et_pb_module.ils-piece.ils-seam-after-3 #content .innercontent .inner-wrapper::after {
	content: none !important;
	display: none !important;
}
.et_pb_section .et_pb_module.ils-piece.ils-seam-after-3 #content .innercontent .inner-wrapper,
.et_pb_section .et_pb_module.ils-piece.ils-seam-before-3 #content .innercontent .inner-wrapper {
	display: flow-root !important;
}
.et_pb_section .et_pb_module.ils-piece.ils-seam-before-3 #content .innercontent .inner-wrapper > :first-child {
	margin-top: 0 !important;
}
