/* Add Columns – Steps Row (Figma: "The steps towards individualized support").
   Widths need !important + :not(#_) to beat the theme's default column rules and
   Concrete's per-layout generated stylesheet. */
#pagewrap .steps-row { margin: 0 0 56px; }
#pagewrap .steps-row .steps-row__grid {
  counter-reset: step;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 48px 32px; 
    align-items: center;
}
#pagewrap .steps-row .steps-row__grid > .steps-row__step:not(#_) {
  flex: 0 0 auto;
  width: 100% !important;
  max-width: 340px;
}

#pagewrap .steps-row .steps-row__step {
  position: relative;
  counter-increment: step;
  text-align: center;
}
#pagewrap .steps-row .steps-row__step .ccm-layout-column-inner { margin: 0; }

/* Number badge: 48px lime circle overlapping the top-left of the 160px icon */
#pagewrap .steps-row .steps-row__step::before {
  content: counter(step);
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(50% - 80px - 23.5px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-900);
}

#pagewrap .steps-row .steps-row__step :is(img, svg, picture) {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  object-fit: contain;
  border-radius: 0;
}
#pagewrap .steps-row .steps-row__step :is(h2, h3, h4, h5) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--brand-600);
  margin: 0 0 16px;
}
#pagewrap .steps-row .steps-row__step p { font-size: 15px; line-height: 1.6; margin-bottom: 0.75em; }
#pagewrap .steps-row .steps-row__step p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  #pagewrap .steps-row .steps-row__grid > .steps-row__step:not(#_) { width: calc((100% - 32px) / 2) !important; }
}

/* One row from 1024px, with an arrow centred in each gap at icon height */
@media (min-width: 1024px) {
  #pagewrap .steps-row .steps-row__grid { flex-wrap: nowrap; }
  #pagewrap .steps-row .steps-row__grid > .steps-row__step:not(#_) { flex: 1 1 0; width: auto !important; max-width: none; }
  #pagewrap .steps-row .steps-row__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 66px;
    right: -44.5px;            /* centre of the 32px gap: 16px + half the 57px arrow */
    width: 57px;
    height: 27px;
    background: url("../../../../themes/pclass/images/icons/step-arrow.svg") center / contain no-repeat;
    pointer-events: none;
  }
}

/* Edit mode: no arrows, and the badge sits above the column instead of over
   Concrete's area boxes and labels; columns use the full width so they're easy to edit */
#pagewrap.is-edit-mode .steps-row .steps-row__step::after { display: none; }
#pagewrap.is-edit-mode .steps-row .steps-row__step::before { position: static; margin: 0 auto 8px; }
#pagewrap.is-edit-mode .steps-row .steps-row__grid > .steps-row__step:not(#_) { max-width: none; }
