/* Wagtail opt-in full-viewport charcoal bands. Unchecked content stays unchanged. */
#main-content .cms-dark-band {
  position: relative;
  isolation: isolate;
  color: #f4f3ef;
  color-scheme: dark;
  --text: #f4f3ef;
  --muted: #bcc3c8;
  --line: #485056;
  --paper-line: #485056;
}
#main-content .cms-dark-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #15191c;
  pointer-events: none;
}
body #main-content .cms-dark-band:is(.technical-section,.technical-split,.technical-image-section,.technical-callout,.technical-process,.service-card-section,.technical-accordion,.cms-table-band,.research-initiatives) {
  background: transparent;
  color: #f4f3ef;
  border-color: #485056;
}
body #main-content .cms-dark-band :is(h2,h3,strong,summary,a,.prose a),
body.capability-overview #main-content .technical-content .cms-dark-band :is(h2,h3,strong) { color: #f4f3ef; }
body #main-content .cms-dark-band :is(.eyebrow,.prose,.prose p,.prose li,.technical-callout p,.technical-process p,.reliability-section-intro),
body.capability-overview #main-content .technical-content .cms-dark-band :is(.eyebrow,.prose,.prose p,.prose li) { color: #bcc3c8; }
body #main-content .cms-dark-band :is(.technical-table th,.technical-table td,.technical-table table) { border-color: #485056; color: #f4f3ef; }
body #main-content .cms-dark-band .technical-table th { background: #1f262a; }
body #main-content .cms-dark-band .reliability-card {
  background: #1f262a;
  color: #f4f3ef;
  border-color: #485056;
}
body #main-content .cms-dark-band .reliability-card :is(h3,.eyebrow,.reliability-icon) { color: #f4f3ef; }
body #main-content .cms-dark-band .reliability-card > p { color: #bcc3c8; }
body #main-content .cms-dark-band .reliability-card:hover { background: #283136; border-color: #94a0a6; }
body #main-content .cms-dark-band .reliability-card-bottom { border-color: #485056; }
body #main-content .cms-dark-band .technical-callout__link { color: #f4f3ef; }
body #main-content .cms-dark-band .technical-accordion { border-color: #485056; }
body #main-content .cms-dark-band.cms-table-band { padding-block: 30px; }
body #main-content .cms-dark-band.research-initiatives { padding-block: clamp(56px,4.5vw,72px); }
body #main-content .technical-content > .research-initiatives > .container {
  padding-inline: 0;
  max-width: none;
  width: 100%;
}
body #main-content .technical-content > .research-initiatives { margin-inline: 0; }
body #main-content .cms-dark-band .research-initiative-card { color: #f4f3ef; }
body #main-content .cms-dark-band .research-initiative-card p { color: #bfc7cb; }
body #main-content .cms-dark-band .research-initiative-card .eyebrow { color: #aeb9c0; }
body #main-content .cms-dark-band .research-initiative-card:hover { background: #1f262a; border-color: #94a0a6; }
body #main-content .cms-dark-band .research-card-link { color: #f4f3ef; }
/* Unchecked directory blocks follow the page's warm or white surface. */
body #main-content .technical-content > .research-initiatives:not(.cms-dark-band) {
  background: transparent;
  color: var(--spacerel-surface-ink, #16191c);
}
body #main-content .technical-content > .research-initiatives:not(.cms-dark-band) .research-initiative-card {
  color: var(--spacerel-surface-ink, #16191c);
  border-color: var(--spacerel-surface-rule, #dbdcd8);
}
body #main-content .technical-content > .research-initiatives:not(.cms-dark-band) :is(.eyebrow,.research-section-intro,.research-initiative-card p) { color: #555d62; }
body #main-content .technical-content > .research-initiatives:not(.cms-dark-band) .research-initiative-card:hover { background: #e8e8e5; }
@media (max-width: 900px) { body #main-content .cms-dark-band.research-initiatives { padding-block: 40px; } }
@media print { #main-content .cms-dark-band::before { display: none; } }

/* Extend the same appearance behaviour to reliability-specific editor blocks. */
body #main-content .cms-dark-band:is(.reliability-sectors,.reliability-references,.reliability-diagram,.reliability-calculators) { background: transparent; color: #f4f3ef; border-color: #485056; }
body #main-content .cms-dark-band :is(.reliability-sector,.reliability-references li,.reliability-reference-link,.reliability-sector-benefit,.reliability-workflow) { color: #bcc3c8; border-color: #485056; }
body #main-content .cms-dark-band :is(.reliability-card,.reliability-sector) h3 { color: #f4f3ef; }
body #main-content .cms-dark-band .technical-accordion .prose { color: #bcc3c8; }


/* The editor-managed Development areas block can be moved anywhere in Body.
   When it finishes the R&D Body, remove the wrapper's trailing light padding
   so the charcoal band joins the following amber enquiry CTA seamlessly.
   Other block positions and light development directories retain normal spacing. */
body.research-page #main-content .research-body > .technical-content:has(> .research-initiatives.cms-dark-band:last-child) {
  padding-bottom: 0;
}
