[data-component-id='ecore_common:step_item'] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 24px 16px;

  /* Marker (number circle or icon). */
  .marker {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Number mode: black outline circle with a bold numeral, auto-numbered via
     CSS counter when empty. Used by the homepage program-steps section. */
  &.number {
    /* Drop the horizontal padding so the circle sits flush-left with the
       heading and the text uses the full column width. */
    padding-left: 0;
    padding-right: 0;

    .marker {
      /* Let the circle size the marker so it aligns flush with the text. */
      width: auto;
      height: auto;
    }

    .numeral {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 88px;
      height: 88px;
      border-radius: 50%;
      border: 2px solid #1a1a1a;
      font-family: Geomanist, sans-serif;
      font-weight: 600;
      font-size: 32px;
      line-height: 1;
      color: #1a1a1a;

      &:empty::before {
        counter-increment: step;
        content: counter(step);
      }
    }

    /* Slightly larger headline to match the design. */
    .headline {
      font-size: 28px;
      color: #1a1a1a;
    }
  }

  /* Icon mode: size the image. */
  &.icon .marker img {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }

  .headline {
    margin: 0;
    font-family: Geomanist, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #363940;
  }

  .body {
    font-family: Silka, sans-serif;
    font-size: 16px;
    line-height: 1.625;
    color: #54555a;
    margin: 0;

    /* Inherit the body colour so it wins over global element rules
       (e.g. a theme-wide `p { color: #000 }`). Without this the text is
       invisible in the dark theme. */
    p,
    a {
      color: inherit;
    }

    p:first-child {
      margin-top: 0;
    }

    p:last-child {
      margin-bottom: 0;
    }
  }

  .ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
  }
}
