/**
 * Value Props — bordered variant
 *
 * Opt-in per section via the "Item Style" field on the Value Propositions layout.
 * The base items carry a single `border-left: 1px solid`
 * (resources/assets/styles/layouts/_sections.scss); this extends that one rule into a full
 * box so each item reads as a discrete card. Sections left on the default keep the
 * existing hairline treatment untouched.
 *
 * Border colour is deliberately unset so it keeps inheriting `currentColor`, and the
 * `.style-blue` / `.style-light-gray` modifiers carry on overriding it as before.
 *
 * Ships standalone because the theme's build pipeline (node_modules) is not on the server.
 * Source: resources/assets/styles/layouts/_value-props-borders.scss — fold into main.scss
 * and drop the enqueue in app/setup.php on the next build.
 */

.value-props-bordered .value-proposition {
  border: 1px solid;
  border-radius: 4px;
  /* !important is required: the markup carries Bootstrap `px-4 pr-lg-6` utilities, which are
     themselves !important and would otherwise leave the box padded 72px right vs 28px left. */
  padding: 1.5rem !important;
}

/**
 * Vertical rhythm — a consistent 24px gap at every breakpoint.
 *
 * The columns carry Bootstrap `my-3 my-xl-0`. Below xl those margins are live, so a
 * blanket row-gap stacked on top of them and produced a 56px gap (16 + 16 + 24). Below xl
 * we therefore tighten the margins themselves; at xl the margins are already zero, so the
 * gap comes from row-gap instead.
 */
@media (max-width: 1199.98px) {
  .value-props-bordered > [class*="col-"] {
    margin-top: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }
}

@media (min-width: 1200px) {
  .value-props-bordered {
    row-gap: 1.5rem;
  }
}
