/* layout */
.tlg-process {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 24px;
  align-items: start;
  overflow: hidden;
}
.tlg-process-list {
  position: relative;
  overflow: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* hide native scrollbar (right side) */
.tlg-process-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tlg-process-list::-webkit-scrollbar {
  display: none;
}

.tlg-process-item {
  margin-bottom: 0 !important;
}
.tlg-process-item:last-child {
  border-bottom: 0;
}
.tlg-process-title {
    color: var(--Color-Scheme-1-Text, #000);

    /* Heading/H4 */
    font-family: "DM Sans";
    font-size: var(--Typography-Size-H4, 24px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.96px;
    padding: 16px 0;

    border-bottom: 1px solid #CCCDAF;
}
.tlg-process-desc {
  font-size: 16px;
  line-height: 1.6;
  max-width: 72ch;
}

/* LEFT RAIL — only a growing progress shape + the dot */
.tlg-process-rail {
  position: relative;
  height: 100%;
  width: 12px;
  left: 10px;
}
.tlg-rail-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(200, 0, 40, 0.25),
    rgba(200, 0, 40, 0.75)
  );
  -webkit-clip-path: polygon(
    49% 0,
    51% 0,
    62% 100%,
    38% 100%
  ); /* thin → thicker */
  clip-path: polygon(49% 0, 51% 0, 62% 100%, 38% 100%);
  transform-origin: top left;
  transform: scaleY(0); /* JS grows this */
}

.tlg-process-dot {
  position: absolute;
  left: 1px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d80132;
  box-shadow: 0 0 0 4px rgba(200, 50, 70, 0.08);
  transform: translateY(35.75px);
}

.tlg-process-rail > .tlg-process-dot:not([style*="transform"]) {
  display: none;
}

/* active step */
.tlg-process-item.is-active .tlg-process-title {
  opacity: 1;
}
.tlg-process-item .tlg-process-title {
  opacity: 0.85;
  transition: opacity 0.2s;
}

@media (max-width: 900px) {
  .tlg-process {
    grid-template-columns: 20px 1fr;
  }
  .tlg-process-rail,
  .tlg-rail-progress {
    width: 10px;
  }
  .tlg-process-dot {
    width: 14px;
    height: 14px;
    left: -3px;
  }
}
