/* Shared Who FORGE Is For styles. */
.editor-styles-wrapper .is-root-container > [data-type="kadence/rowlayout"]:has(.kb-row-id-forge-who-section),
.editor-styles-wrapper .is-root-container > .wp-block-kadence-rowlayout.kb-row-id-forge-who-section {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.editor-styles-wrapper .is-root-container > [data-type="kadence/rowlayout"]:has(.kb-row-id-forge-who-section) > .wp-block-kadence-rowlayout,
.editor-styles-wrapper .is-root-container > .wp-block-kadence-rowlayout.kb-row-id-forge-who-section {
  width: 100% !important;
}

/*
 * Gutenberg gives nested blocks automatic horizontal margins. Inside the
 * section column's flex wrapper those margins make this Row Layout shrink to
 * its max-content width, even though Kadence renders it full-width on the
 * frontend. Let the existing Kadence grid use the full parent width in the
 * editor as well.
 */
.editor-styles-wrapper .kb-row-id-forge-who-section
  .wp-block-kadence-rowlayout.kb-row-id-forge-who-intro-row {
  width: 100% !important;
  margin-inline: 0 !important;
}

.wp-block-kadence-image.kb-imageforge-who-feature-image .kb-is-ratio-image {
  padding-bottom: 86.666667%;
}

.wp-block-kadence-image.kb-imageforge-who-beginner-image .kb-is-ratio-image,
.wp-block-kadence-image.kb-imageforge-who-restart-image .kb-is-ratio-image,
.wp-block-kadence-image.kb-imageforge-who-athlete-image .kb-is-ratio-image,
.wp-block-kadence-image.kb-imageforge-who-committed-image .kb-is-ratio-image {
  padding-bottom: 128.461538%;
}

.kt-adv-headingforge-who-eyebrow {
  white-space: nowrap;
}

/* The frontend heading itself is compact, while Gutenberg wraps it in a
 * full-width block. Limit only the editor wrapper so the saved Kadence
 * max-width, padding and responsive typography remain authoritative. */
.editor-styles-wrapper
  [data-type="kadence/advancedheading"]:has(.kt-adv-headingforge-who-eyebrow) {
  width: fit-content !important;
  max-width: 100% !important;
  min-width: max-content;
  align-self: flex-start;
}

.editor-styles-wrapper
  [data-type="kadence/advancedheading"]:has(.kt-adv-headingforge-who-eyebrow)
  :is(
    .kadence-advancedheading-text,
    .kb-adv-heading-inner,
    .kt-adv-headingforge-who-eyebrow
  ) {
  box-sizing: border-box;
  width: fit-content !important;
  white-space: nowrap;
}
