/* Standard full-width agency rows keep their own internal editorial measure. */
.fx-agency-layout :where(.fx-agency-row.vc_row) { margin: 0; }
.fx-agency-layout .fx-agency-row > .wpb_column > .vc_column-inner { padding: 0; }
.fx-agency-layout .fx-agency-row.vc_row { margin-left: 0; margin-right: 0; }
.fx-fallback-row { display: flex; flex-wrap: wrap; }
.fx-fallback-row > .wpb_column { width: var(--fx-col-width, 100%); min-width: 0; }
@media (max-width: 767px) {
  .fx-fallback-row > .wpb_column { width: 100%; }
}

/* The section inherits the outer row's chosen background across its entire width. */
.fx-row-painted { color: var(--fx-row-ink); }
.fx-row-painted[style*="--fx-row-paint:"] { background-color: var(--fx-row-paint); }
.fx-row-dark-ink { --fx-row-ink: #000; --fx-row-reverse: #fff; --fx-torus-filter: brightness(0); }
.fx-row-light-ink { --fx-row-ink: #fff; --fx-row-reverse: #000; --fx-torus-filter: brightness(0) invert(1); }
.fx-row-painted [data-fx-section] {
  --fx-surface: transparent;
  --fx-text: var(--fx-row-ink);
  --fx-secondary: var(--fx-row-ink);
  --fx-label: var(--fx-row-ink);
  --fx-accent: var(--fx-row-ink);
  --fx-rule: currentColor;
  --fx-line: currentColor;
  --fx-cta: var(--fx-row-ink);
  --fx-cta-text: var(--fx-row-reverse);
  --fx-focus: var(--fx-row-ink);
  background-color: transparent;
  color: var(--fx-row-ink);
}
.fx-row-painted .fx-hero[data-fx-surface] { background: transparent; }
.fx-row-painted .fx-hero[data-fx-surface] .fx-torus :is(.fx-torus-we, .fx-torus-verbs, .fx-torus-wire) {
  filter: var(--fx-torus-filter);
}
.fx-row-painted .fx-hero[data-fx-surface] .fx-torus-wire { opacity: .48; }

/* A named solid colour takes precedence over a colour previously saved in Design Options. */
.fx-surface-preset.vc_row, .fx-surface-preset.wpb_column > .vc_column-inner {
  background-color: var(--fx-row-paint) !important;
  background-image: none !important;
  color: var(--fx-row-ink);
}
.fx-surface-preset.wpb_column { color: var(--fx-row-ink); }
.fx-agency-layout .fx-native-story.fx-row-painted {
  max-width: none;
  padding-inline: max(calc(var(--fx-gutter) - 15px), calc((100% - 105rem) / 2 + var(--fx-gutter) - 15px));
}
