.os-number-cards.hgp-number-cards-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: count 0;
}

.os-number-cards .hgp-number-cards__card {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: var(--space-s);
  width: 100%;
  margin: 0;
  padding: var(--space-m) var(--space-l) var(--space-m) var(--space-m);
  border-radius: var(--radius-l);
  background: var(--white);
  box-shadow: var(--box-shadow-1);
  counter-increment: count 1;
}

/* Continuous layout follows the Platform page's connected step list. */
.os-number-cards--continuous.hgp-steps-numbers-list {
  display: block;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.os-number-cards--continuous .hgp-steps-numbers-list__item.brxe-div {
  --animate-range-start: entry 300px;
  --animate-range-end: entry 500px;
  display: flex;
  flex-direction: row;
  column-gap: var(--container-gap);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.os-number-cards--continuous .hgp-step-numbers-list__item-step.brxe-div {
  position: relative;
  flex: 0 0 auto;
}

.os-number-cards--continuous .hgp-step-numbers-list__item-step-text.brxe-text-basic {
  position: relative;
  z-index: 1;
  display: block;
  padding-block: var(--space-xs);
  background-color: transparent;
  color: var(--primary);
  font-size: var(--h4);
  font-weight: 900;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.os-number-cards--continuous .hgp-steps-numbers-list__divider.brxe-div {
  position: absolute;
  font-size: var(--h4);
  top: calc(1.6em + var(--space-xs) + var(--space-xs));
  right: 50%;
  bottom: 0;
  width: 1px;
  background-color: color-mix(in oklch, var(--base-light) 50%, transparent);
}

.os-number-cards--continuous .hgp-steps-numbers-list__item-content.brxe-div {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  row-gap: var(--space-xs);
  min-width: 0;
  padding-top: var(--space-xs);
  padding-bottom: var(--space-l);
}

.os-number-cards--continuous .hgp-step-numbers-list__item-heading.brxe-heading {
  margin: 0;
  color: var(--base);
  font-size: var(--h4);
  font-weight: 900;
  line-height: 1.4;
}

.os-number-cards--continuous .hgp-step-numbers-list__item-text.brxe-text-basic {
  max-width: 60ch;
  color: var(--base-semi-dark);
  font-size: var(--text-m);
  line-height: 1.6;
}

.os-number-cards--continuous .hgp-step-numbers-list__item-text > :where(p, ul, ol) {
  margin-block: 0;
}

.os-number-cards--continuous .hgp-steps-numbers-list__item:last-child .hgp-steps-numbers-list__item-content {
  padding-bottom: 0;
}

.os-number-cards .hgp-number-cards__card::before {
  position: absolute;
  top: 2.8rem;
  left: 2.4rem;
  display: flex;
  width: 3.4rem;
  height: 3.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  content: counter(count);
  font-size: 1.8rem;
  font-weight: 900;
}

.os-number-cards .hgp-number-cards__card-inner {
  display: flex;
  flex-direction: column;
  row-gap: var(--space-xs);
  min-width: 0;
  padding-left: 5rem;
}

.os-number-cards .hgp-number-cards__preheading {
  margin: 0;
  padding-top: 3px;
  color: var(--primary);
  font-size: var(--text-s);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.6;
  text-transform: uppercase;
}

.os-number-cards .hgp-number-cards__title {
  margin: 0;
  color: var(--base);
  font-size: calc(var(--h3) * 0.7);
  font-weight: 900;
  line-height: 1.3;
}

.os-number-cards .hgp-number-cards__text {
  color: var(--base-semi-dark);
  font-size: var(--text-m);
  line-height: 1.6;
}

.os-number-cards .hgp-number-cards__text > :where(p, ul, ol) {
  margin-block: 0;
}

.os-number-cards .hgp-number-cards__text a {
  color: var(--base-semi-dark);
  font-size: inherit;
}

.os-number-cards .hgp-number-cards__card {
  --animate-range-start: entry 300px;
  --animate-range-end: entry 500px;
}

.editor-styles-wrapper .block-editor-block-list__block.wp-block-custom-blocks-number-cards {
  margin-block: 0 !important;
}
