.editor-rich-text {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.editor-rich-text > :first-child,
.editor-rich-text > .rich-text > :first-child {
  margin-block-start: 0;
}

.editor-rich-text > :last-child,
.editor-rich-text > .rich-text > :last-child {
  margin-block-end: 0;
}

.editor-rich-text p + p {
  margin-block-start: 0.75em;
}

.editor-rich-text :is(ul, ol) {
  padding-inline-start: 1.5em;
}

.editor-rich-text ul {
  list-style-type: disc;
}
.editor-rich-text ol {
  list-style-type: decimal;
}
.editor-rich-text li {
  padding-inline-start: 0;
}

.editor-rich-text :is(img, iframe, video) {
  max-inline-size: 100%;
  block-size: auto;
}

.hero__box--text.editor-rich-text p,
.hero__service--text.editor-rich-text p {
  color: inherit;
  font: inherit;
}

.easm-hero__description,
.easm-section__header > .editor-rich-text,
.easm-cta__description {
  color: var(--easm-muted);
  font-size: 1.12rem;
  line-height: 1.55;
  margin-block-start: 1.2rem;
}

.easm-card .editor-rich-text {
  color: var(--easm-muted);
}
.easm-card .editor-rich-text > :last-child {
  margin-block-end: 0;
}
.easm-card__icon:last-child {
  margin-block-end: 0;
}
.easm-card__subtitle:first-child {
  margin-block-start: 0;
}

.easm-column.editor-surface:is(.editor-surface--dark, .editor-surface--light) {
  border: 1px solid var(--editor-accent);
  border-radius: 1rem;
  padding: 1.5rem;
}

.easm-column .editor-rich-text + .easm-column__items {
  margin-block-start: 1.25rem;
}

body .editor-surface.editor-surface--dark {
  --easm-accent: #5effb5;
  --easm-muted: #fff;
  --editor-text-muted: #a8afb5;
}

body .editor-surface.editor-surface--light {
  --easm-accent: #086b43;
  --easm-muted: #182b25;
  --editor-text-muted: #52616b;
}

body
  .editor-surface:is(.editor-surface--dark, .editor-surface--light)
  .easm-card__subtitle {
  color: var(--editor-ink);
}

body
  .editor-surface:is(
    .editor-surface--dark,
    .editor-surface--light,
    .editor-surface--transparent
  )
  :is(h4, h5, h6, blockquote) {
  color: var(--editor-ink);
}

body .editor-surface :is(h2, h3, h4, h5, h6)[data-heading-style="accent"] {
  color: var(--easm-accent, var(--editor-text-green, #07e8bd));
}

body .easm-page :is(h2, h3, h4, h5, h6)[data-heading-style="accent"] {
  overflow-wrap: anywhere;
  white-space: normal;
}
