/*
 * Styling floor for CMS-authored content sections on legacy service pages.
 *
 * Agents write body sections into service_pages.legacyHtml. Several shipped
 * class names that do not exist in the Webflow export (how-it-works-list,
 * trust-signal-list, section-amazon-2026-change, ...) or misused the
 * decorative centered heading wrapper (companies-heading-width) for body
 * prose. Until that content moves to structured blocks rendered by the
 * template, this file gives those patterns a readable baseline.
 *
 * Every selector targets only agent-authored patterns verified absent from
 * the rest of the site — nothing defined in the Webflow CSS is restyled.
 */

/* Body prose wrongly wrapped in the decorative centered heading container
   (only occurs in CMS-authored sections): restore left-aligned readable
   prose and drop the ellipse background. Falls back harmlessly where :has
   is unsupported. */
.companies-heading-width:has(> p) {
  display: block;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0;
  background-image: none;
  text-align: left;
}
.companies-heading-width > p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Agent-invented list classes + bare lists dropped directly into the
   vertical-padding flow: constrain to a readable measure and give items
   breathing room. */
ol.how-it-works-list,
ul.trust-signal-list,
.padding-vertical > ol,
.padding-vertical > ul {
  max-width: 46rem;
  margin: 1rem auto 0;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.7rem;
}
ol.how-it-works-list li,
ul.trust-signal-list li,
.padding-vertical > ol li,
.padding-vertical > ul li {
  line-height: 1.65;
}

/* Section headings dropped as direct children of the injected flow: center
   them to match the site's section-heading pattern. */
.padding-vertical > h2.heading-medium {
  display: block;
  text-align: center;
  max-width: 52rem;
  margin: 3rem auto 1.25rem;
}

/* Agent-authored FBA-prep sections: full-container text lines are unreadable
   at desktop widths; give prose and lists the same measure. */
.section-amazon-2026-change p,
.section-fba-prep-checklist p,
.section-why-switch-to-simpl p {
  max-width: 46rem;
  margin: 0 auto 1.15rem;
  line-height: 1.7;
}
.section-amazon-2026-change ol,
.section-amazon-2026-change ul,
.section-fba-prep-checklist ol,
.section-fba-prep-checklist ul,
.section-why-switch-to-simpl ol,
.section-why-switch-to-simpl ul {
  max-width: 46rem;
  margin: 1rem auto 0;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.7rem;
}
