.section-head > .eyebrow,
.section-head > .badge,
.intro-heading-group > .eyebrow,
.assessment-copy > .eyebrow {
  display: block !important;
  width: auto !important;
  margin: 0 0 2rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
}

.section-head > .eyebrow + h1,
.section-head > .eyebrow + h2,
.section-head > .badge + h1,
.section-head > .badge + h2,
.intro-heading-group > .eyebrow + h1,
.intro-heading-group > .eyebrow + h2,
.assessment-copy > .eyebrow + h1,
.assessment-copy > .eyebrow + h2 {
  margin-top: 0 !important;
}

.intro-heading-group {
  min-width: 0;
}

/* Module pages, Controls visual: on phones the three floating status cards
   overlapped ("Flow status" text was hidden behind "Recovery"/"Outcome").
   Stagger them down the visual instead. */
@media (max-width: 620px) {
  #controls .control-visual > .node {
    min-width: 0 !important;
    max-width: 68% !important;
    padding: 12px 14px !important;
  }
  #controls .control-visual > .node.a { top: 8% !important; left: 6% !important; right: auto !important; bottom: auto !important; }
  #controls .control-visual > .node.c { top: 36% !important; right: 6% !important; left: auto !important; bottom: auto !important; }
  #controls .control-visual > .node.b { top: 64% !important; left: 12% !important; right: auto !important; bottom: auto !important; }
}

/* Module page heroes on phones: the copy was vertically centred in a fixed
   535px grid, leaving a large empty band under the navbar. Start the copy just
   below the navbar and let the hero background fill the rest. */
@media (max-width: 620px) {
  section.hero:has(> .hero-grid.has-hero-right-visual) {
    align-items: flex-start !important;
    min-height: 640px !important;
    height: auto !important;
  }
  section.hero > .hero-grid.has-hero-right-visual {
    height: auto !important;
    min-height: 0 !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    margin-top: 76px !important;
  }
}

/* Module pages, Architecture cards on phones and small tablets: the illustration was squeezed
   into a narrow strip on the right and overlapped the text. Stack it instead:
   text on top, full-width illustration below. */
@media (max-width: 819px) {
  .arch-grid > .arch-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .arch-grid > .arch-card > .card-content {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 24px 22px 8px !important;
  }
  .arch-grid > .arch-card > .card-content > * {
    width: auto !important;
    max-width: none !important;
  }
  .arch-grid > .arch-card > .card-image {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    margin-top: auto !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    transform: none !important;
  }
}
