/* Flux sections are left-aligned with generous negative space (B3 typography do/don't). */
.rui-section {
  padding: 88px 0;
}

.rui-section-container {
  max-width: 1240px;
}

.rui-section-content {
  max-width: 760px;
}

.rui-section-content > :first-child {
  margin-top: 0;
}

.rui-section-content > :last-child {
  margin-bottom: 0;
}

.rui-section-content h3:first-child {
  margin-bottom: 20px;
}

.rui-section-content h2 {
  margin-bottom: 24px;
}

.rui-section-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* A section block that follows another reads as one panel: tighten the join. */
.rui-section + .rui-section:not(.rui-key-points):not(:last-child) {
  padding-top: 0;
}

/* The last section on a page is the final CTA: give it the Cold field (Ink on Cold, 9.17:1). */
#main-content > .rui-section:not(.rui-key-points):last-child {
  background: var(--flux-cold);
  color: var(--flux-on-cold);
}

@media screen and (max-width: 991px) {
  .rui-section-buttons {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .rui-section {
    padding: 56px 0;
  }

  .rui-section-content h2 {
    margin-bottom: 20px;
  }
}
