.eoy26-steps {
  --eoy26-steps-r: 1.75rem;        /* radius of the step circle on mobile */
  --eoy26-steps-gap: 1.5rem;       /* space between the steps */
  --eoy26-steps-space: .5rem;      /* space between a circle and the line */
  --eoy26-steps-icon-size: 55%;    /* icon size inside the circle */
}
@media (min-width: 768px) {
  .eoy26-steps { --eoy26-steps-r: 2.25rem; --eoy26-steps-gap: 1.5rem; }
}

.eoy26-steps__heading { margin: 0 0 1rem; }
.eoy26-steps__heading > * { margin: 0 !important; color: inherit !important; }
.eoy26-steps__intro { margin: 0 0 2rem; max-width: 44rem; font-size: 1rem; line-height: 1.5; }
.eoy26-steps__intro, .eoy26-steps__intro * { color: inherit !important; }
.eoy26-steps__intro > * { margin: 0 0 .5rem; }
.eoy26-steps__intro > *:last-child { margin-bottom: 0; }

/* ---------- List: vertical timeline on mobile ---------- */
.eoy26-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--eoy26-steps-gap); }
.eoy26-steps__item {
  position: relative; margin: 0; padding: 0;
  display: grid; grid-template-columns: calc(var(--eoy26-steps-r) * 2) minmax(0, 1fr); column-gap: 1rem; align-items: start;
}
.eoy26-steps__item::marker { content: none; }

/* Dashed line from this circle to the next one */
.eoy26-steps__item:not(:last-child)::after {
  content: ""; position: absolute;
  left: calc(var(--eoy26-steps-r) - 1px);
  top: calc(var(--eoy26-steps-r) * 2 + var(--eoy26-steps-space));
  bottom: calc(-1 * var(--eoy26-steps-gap) + var(--eoy26-steps-space));
  border-left: 2px dashed currentColor; opacity: .35;
}

/* ---------- Circle, icon, number ---------- */
.eoy26-steps__marker { position: relative; width: calc(var(--eoy26-steps-r) * 2); height: calc(var(--eoy26-steps-r) * 2); }
.eoy26-steps__circle { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 9999px; }
/* Light tint of the text colour; the highlighted step keeps the theme colour classes (bg-lilac) instead */
.eoy26-steps__item:not(.is-highlight) .eoy26-steps__circle {
  background-color: rgba(0,114,206,.1);                                                     /* fallback for old browsers */
  background-color: color-mix(in srgb, currentColor 12%, transparent);
}
.eoy26-steps__circle--num { font-weight: 700; font-size: calc(var(--eoy26-steps-r) * .8); line-height: 1; }
.eoy26-steps__icon {
  display: block; width: var(--eoy26-steps-icon-size); height: var(--eoy26-steps-icon-size);
  background-color: currentColor;
  -webkit-mask: var(--eoy26-steps-icon) center / contain no-repeat;
          mask: var(--eoy26-steps-icon) center / contain no-repeat;
}
/* Small number on the top left of the circle */
.eoy26-steps__badge {
  position: absolute; top: -.2rem; left: -.2rem;
  display: grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .3rem; box-sizing: border-box;
  border-radius: 9999px; font-size: .8rem; font-weight: 700; line-height: 1;
}
/* Highlighted step: the circle classes do the colours. A soft halo in the text colour of the block makes it stand out
   (the marker inherits that colour: white on dark backgrounds, blue on light ones). */
.eoy26-steps__item.is-highlight .eoy26-steps__marker { border-radius: 9999px; }
.eoy26-steps__item.is-highlight .eoy26-steps__circle {
  box-shadow: 0 0 0 .35rem rgba(255,255,255,.2);                                            /* fallback for old browsers */
}
@supports (color: color-mix(in srgb, red, blue)) {
  .eoy26-steps__item.is-highlight .eoy26-steps__marker { box-shadow: 0 0 0 .35rem color-mix(in srgb, currentColor 20%, transparent); }
  .eoy26-steps__item.is-highlight .eoy26-steps__circle { box-shadow: none; }
}
/* Its number badge gets a thin ring in its own text colour, so it does not melt into the filled circle */
.eoy26-steps__item.is-highlight .eoy26-steps__badge { box-shadow: 0 0 0 2px currentColor; }

/* ---------- Text ---------- */
.eoy26-steps__body { padding-top: .2rem; min-width: 0; }
.eoy26-steps__title { margin: 0 0 .3rem !important; font-size: 1.0625rem !important; line-height: 1.3 !important; font-weight: 700; color: inherit !important; }
.eoy26-steps__text { margin: 0; font-size: .95rem; line-height: 1.45; }
/* The text is a rich text field: its paragraphs follow the block colour and size, without extra spacing */
.eoy26-steps__text, .eoy26-steps__text * { color: inherit !important; }
.eoy26-steps__text > * { margin: 0 0 .35rem !important; font-size: inherit !important; line-height: inherit !important; }
.eoy26-steps__text > *:last-child { margin-bottom: 0 !important; }
@media (max-width: 767px) {
  /* Title centred on the circle when the text is short */
  .eoy26-steps__body { padding-top: calc(var(--eoy26-steps-r) - .8rem); }
}

/* ---------- Tablet and desktop: horizontal, one column per step ---------- */
@media (min-width: 768px) {
  .eoy26-steps__list { grid-template-columns: repeat(var(--eoy26-steps-n, 4), minmax(0, 1fr)); column-gap: var(--eoy26-steps-gap); }
  /* align-content: start keeps the titles on the same line in every column, whatever the text length */
  .eoy26-steps__item { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; row-gap: 1rem; }
  .eoy26-steps__item:not(:last-child)::after {
    top: calc(var(--eoy26-steps-r) - 1px); bottom: auto; height: 0;
    left: calc(50% + var(--eoy26-steps-r) + var(--eoy26-steps-space));
    right: calc(-50% - var(--eoy26-steps-gap) + var(--eoy26-steps-r) + var(--eoy26-steps-space));
    border-left: 0; border-top: 2px dashed currentColor;
  }
  .eoy26-steps__body { padding-top: 0; max-width: 16rem; }
}

/* ---------- Button ---------- */
.eoy26-steps__cta { margin-top: 2rem; display: flex; justify-content: center; }
.eoy26-steps__cta .c-button p { color: inherit; }
@media (max-width: 767px) { .eoy26-steps__cta .c-button { width: 100%; justify-content: center; } }