.os-section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  text-align: left;
  margin-block: 0 !important;
}

.os-section-heading--center {
  align-items: center;
  text-align: center;
}

.os-section-heading__eyebrow,
.os-section-heading__title,
.os-section-heading__body :where(p, ul, ol) {
  margin: 0;
}

.os-section-heading__eyebrow {
  color: var(--primary);
  font-size: var(--text-m);
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.6;
  text-transform: uppercase;
}

.os-section-heading__title {
  color: inherit;
  font-size: var(--h2);
}

.os-section-heading__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  color: var(--base-semi-dark);
  font-size: var(--text-m);
  font-weight: 400;
  line-height: 1.4;
  max-width: 70ch;
}

.os-section-heading__body :where(p, li) {
  color: inherit;
  font: inherit;
}

.os-section-wrapper--dark .os-section-heading__body {
  color: var(--base-light);
}

.os-section-heading--center .os-section-heading__title {
  max-width: 24ch;
}

@media (max-width: 767px) {
  .os-section-heading--left.os-section-heading--mobile-center {
    align-items: center;
    text-align: center;
  }

  .os-section-heading--left.os-section-heading--mobile-center .os-section-heading__title {
    max-width: 24ch;
  }
}

.editor-styles-wrapper .block-editor-block-list__block.wp-block-custom-blocks-section-heading {
  margin-block: 0 !important;
}
