/* ============================================================
   Building Systems Optimization 1 (page 1017) — managed CSS
   ------------------------------------------------------------
   Only what Elementor has no control for. The single html widget on this
   page is the savings calculator, which needs JavaScript; its own styles
   are scoped inside that widget, not here.
   ============================================================ */

/* Hello Elementor's reset.css sets p{margin-block-end:.9rem} and Elementor
   never resets it for the text-editor widget, so each paragraph adds ~14px
   below itself and inflates every section. fig-body is on the text-editor
   WIDGETS, and _css_classes does emit on widgets here. */
.elementor-1017 .fig-body p {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Several blocks hold more than one paragraph (It Controls, Why We Chose
   This, Why Open Systems Matter). Zeroing every margin above would run them
   together, so put the gap back for those. */
.elementor-1017 .fig-body-gap p + p {
  margin-block-start: 16px !important;
}

/* Anchor offset. The site header is sticky and 82px tall, so a jump link
   lands with the heading tucked underneath it. scroll-margin-top is not an
   Elementor control. #calculator and #contact are the anchor ids carried
   over from the approved source file. */
#calculator,
#contact {
  scroll-margin-top: 100px;
}

/* Correction: one of the four "under development" agent cards was written
   with an invalid border colour (a malformed hex), so it fell back to
   currentColor and read differently from its three siblings. Setting it on
   the grid's direct children fixes that one and harmlessly reasserts the
   other three, which avoids a round trip through an element edit. */
.elementor-1017 .elementor-element-26c984f > .e-con {
  border-color: #1C4666 !important;
}
