/* ElevateHR information-architecture tree and admin journey rail.
   Both stay horizontally scrollable rather than collapsing into illegibility. */

.ia {
  display: flex;
  flex-direction: column;
  align-items: center;
  --line: #3a2f4a;
}

.ia__root {
  background: #4B2E83;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 24px;
}

.ia__stem { width: 2px; background: var(--line); height: 28px; }
.ia__stem--short { height: 20px; }
.ia__stem--tick { height: 16px; }
.ia__bar { width: 100%; height: 2px; background: var(--line); }

.ia__branches { display: flex; width: 100%; justify-content: space-around; gap: 1.5rem; }
.ia__branch { display: flex; flex-direction: column; align-items: center; flex: 1; }

.ia__portal {
  background: #1e1a24;
  border: 1px solid #4B2E83;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
}

.ia__leaves { display: grid; gap: 12px; width: 100%; }
.ia__leaves--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ia__leaves--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ia__leaf { display: flex; flex-direction: column; align-items: center; }

.ia__leaf span {
  background: var(--surface-3);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: var(--fs-2xs);
  color: var(--text-2);
  text-align: center;
  width: 100%;
}

/* Left-to-right journey of five stages */
.journey { display: flex; align-items: center; }

.journey__stage {
  min-width: 170px;
  background: #1e1a24;
  border: 1px solid #4B2E83;
  border-radius: var(--r-xs);
  padding: 1rem;
  text-align: center;
}

.journey__title { font-size: var(--fs-sm); font-weight: 600; margin-block-end: 0.25rem; }
.journey__meta { font-size: var(--fs-2xs); color: var(--text-4); }

.journey__arrow {
  flex: 0 0 32px;
  height: 2px;
  background: #4B2E83;
  position: relative;
}

.journey__arrow::after {
  content: '→';
  position: absolute;
  right: -1px;
  top: -12px;
  color: #4B2E83;
  font-size: var(--fs-sm);
}
