/*
 * Per-section spacing overrides (Settings tab of a section in wt_sections' builder).
 * WtSectionsRenderer::wrapSection() puts a wrapper div around the block with a marker class
 * and, for paddings, the value as a custom property; the wrapper's own margin is inline.
 * These rules pass the override on to the block's root element, whose spacing the leaf modules
 * set themselves (e.g. .wt-uvplist { margin: 2rem 0; padding: 2.5rem 0 }).
 *
 * Deliberately NOT in a cascade layer: the leaf modules' CSS lives in `wt-modules`, and
 * unlayered rules beat layered ones — so an explicit admin value always wins, no !important.
 */
.wt-section--pt > :first-child {
  padding-top: var(--wt-section-padding-top);
}

.wt-section--pb > :last-child {
  padding-bottom: var(--wt-section-padding-bottom);
}

.wt-section--mt > :first-child {
  margin-top: 0;
}

.wt-section--mb > :last-child {
  margin-bottom: 0;
}
