/* Match the final contact banner's upper rule to the footer's 1px gray rule. */
/* The contact banner owns the shared edge; never stack two adjacent borders. */
body:is(.editorial-site,.aitria-panel) main > section:has(+ :is(#contact.cta,#contact-cta.cta,#contact.home-contact)) {
  border-bottom: 0 !important;
}
body:is(.editorial-site,.aitria-panel) main :is(#contact.cta,#contact-cta.cta,#contact.home-contact) {
  border-top: 1px solid #8a8f95 !important;
  /* The footer owns the lower edge, including on the homepage. */
  border-bottom: 0 !important;
}
/* Sprint's full-width section rule occupies this same edge. */
body.aitria-panel.page-ai-ux-sprint main > #contact.cta::before {
  content: none;
}
/* The stopped menu meets CONTACT at the same edge; only the banner paints it. */
body:is(.editorial-site,.aitria-panel) .sprint-section-navigation[data-at-end="true"] {
  border-bottom-color: transparent !important;
}

/* Contact rails use the same measured canvas as Sprint and the footer. */
body.editorial-site[data-site-page] main > :is(#contact.home-contact,.cta[data-sprint-contact]) > .ap-rule-bridges {
  position: absolute;
  top: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
body.editorial-site[data-site-page] main > :is(#contact.home-contact,.cta[data-sprint-contact]) > .ap-rule-bridges line {
  stroke: #8a8f95;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Match the homepage's optical centering and visible logo/text baseline. */
body:is(.editorial-site,.aitria-panel)[data-site-page] main > :is(#contact.home-contact,#contact.cta,#contact-cta.cta) .cta-heading-tail {
  margin-inline-end: -.5em;
  position: relative;
  top: .14em;
}
