/* ==========================================================================
   BILL PIPELINE — Reusable legislative progress tracker
   Used on /issues (landing) and /issues/* (individual bill pages)
   ========================================================================== */

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pipeline-step {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.6rem 0.5rem 1.2rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: #1e1e1e;
  color: #555;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    0 100%,
    10px 50%
  );
  transition: all 0.3s ease;
}
.pipeline-step:first-child {
  padding-left: 0.6rem;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    0 100%
  );
}
.pipeline-step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}

/* States */
.pipeline-step.completed {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}
.pipeline-step.current {
  background: rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-weight: 700;
}
.pipeline-step.danger {
  background: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-weight: 700;
}

/* Large version for individual bill pages */
.pipeline.pipeline-lg .pipeline-step {
  padding: 0.75rem 0.8rem 0.75rem 1.6rem;
  font-size: 0.85rem;
}
.pipeline.pipeline-lg .pipeline-step:first-child {
  padding-left: 0.8rem;
}

/* Sub-label for dates */
.pipeline-step .step-date {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 0.1rem;
}
.pipeline.pipeline-lg .pipeline-step .step-date {
  font-size: 0.7rem;
}

/* Mobile: scroll hint */
@media (max-width: 768px) {
  .pipeline-step {
    min-width: 80px;
    font-size: 0.6rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
  }
  .pipeline-step:first-child {
    padding-left: 0.4rem;
  }
  .pipeline.pipeline-lg .pipeline-step {
    min-width: 100px;
    font-size: 0.75rem;
  }
}
