/* Process Timeline element.
   Colors are set inline by the element via custom properties; the values below
   are fallbacks. Full-bleed background with a centered track. */

.awm-timeline {
  --awm-tl-bg: #0A0545;
  --awm-tl-accent: #731FE3;
  --awm-tl-title: #FFFFFF;
  --awm-tl-text: #B4B0C6;
  --awm-tl-line: rgba(255, 255, 255, 0.12);
  --awm-tl-marker-bg: rgba(255, 255, 255, 0.06);
  --awm-tl-marker-border: rgba(255, 255, 255, 0.14);
  --awm-tl-marker-idle: #C6BEF5;
  --awm-tl-track: 920px;

  position: relative;
  background: var(--awm-tl-bg);
  color: var(--awm-tl-text);
  padding: 64px max(24px, calc((100% - var(--awm-tl-track)) / 2)) 80px;
}

/* Vertical center line + scroll progress fill */
.awm-timeline__line {
  position: absolute;
  left: 50%;
  top: 64px;
  bottom: 80px;
  width: 2px;
  background: var(--awm-tl-line);
  transform: translateX(-50%);
  pointer-events: none;
}
.awm-timeline__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--awm-tl-accent);
  transition: height 0.25s ease;
}

/* Step row */
.awm-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  gap: 0;
  padding: 22px 20px;
  border-radius: 20px;
  transition: background 0.35s ease;
}
.awm-timeline__step.is-active {
  background: rgba(255, 255, 255, 0.06);
}

/* Marker (number or icon) */
.awm-timeline__marker {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
}
.awm-timeline__marker > * {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--awm-tl-marker-bg);
  border: 1px solid var(--awm-tl-marker-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: var(--awm-tl-marker-idle);
  flex-shrink: 0;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.awm-timeline__marker svg { width: 22px; height: 22px; }
.awm-timeline__step.is-active .awm-timeline__marker > * {
  background: var(--awm-tl-accent);
  border-color: var(--awm-tl-accent);
  color: #fff;
}

/* Center dot on the line */
.awm-timeline__dot {
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--awm-tl-bg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
  transition: border-color 0.35s ease, background 0.35s ease;
}
.awm-timeline__step.is-active .awm-timeline__dot {
  background: var(--awm-tl-accent);
  border-color: var(--awm-tl-accent);
}

/* Body */
.awm-timeline__body { padding-left: 24px; }
.awm-timeline__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--awm-tl-title);
}
.awm-timeline__desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--awm-tl-text);
}

/* Alternating (flip) rows: body on the left, marker on the right */
.awm-timeline--alternate .awm-timeline__step.is-flip .awm-timeline__body {
  order: 1;
  padding-left: 0;
  padding-right: 24px;
  text-align: right;
}
.awm-timeline--alternate .awm-timeline__step.is-flip .awm-timeline__dot { order: 2; }
.awm-timeline--alternate .awm-timeline__step.is-flip .awm-timeline__marker {
  order: 3;
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 14px;
}

/* Mobile: single left-aligned rail, no center dots */
@media (max-width: 860px) {
  .awm-timeline { padding: 48px 20px 56px; }
  .awm-timeline__line { display: none; }
  .awm-timeline__step {
    grid-template-columns: 52px 1fr;
    padding: 18px 4px 18px 0;
  }
  .awm-timeline__marker,
  .awm-timeline--alternate .awm-timeline__step.is-flip .awm-timeline__marker {
    grid-column: 1;
    order: 0;
    justify-content: center;
    padding: 0;
  }
  .awm-timeline__body,
  .awm-timeline--alternate .awm-timeline__step.is-flip .awm-timeline__body {
    grid-column: 2;
    order: 0;
    padding-left: 16px;
    padding-right: 0;
    text-align: left;
  }
  .awm-timeline__dot { display: none; }
}

/* Motion-reduction */
@media (prefers-reduced-motion: reduce) {
  .awm-timeline__progress,
  .awm-timeline__step,
  .awm-timeline__marker > *,
  .awm-timeline__dot { transition: none; }
}
