/* ========================
   PIPELINE LIST COMPONENT
   ======================== */

/* The component's own root, from its mock: the host element every page gives it. */
[data-pipeline-list] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #f3efe6;
}
/* display above would otherwise defeat the `hidden` attribute the pipeline page toggles. */
[data-pipeline-list][hidden] {
  display: none;
}

.plist__stage {
  display: flex;
  flex-direction: column;
}

.plist__stage-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #232424;
  border: none;
  border-left: 3px solid var(--stage);
  cursor: pointer;
  color: var(--text);
  width: 100%;
  text-align: left;
  font: inherit;
}

.plist__stage-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font: 400 16px 'Peace Sans';
  color: var(--on-accent);
  background: var(--stage);
  flex: none;
}

.plist__stage-title {
  font: 400 17px 'Peace Sans';
  text-transform: uppercase;
  letter-spacing: .02em;
}

.plist__stage-sub {
  font: 400 12px 'IBM Plex Mono';
  color: var(--text-muted);
}

.plist__stage-count {
  margin-left: auto;
  font: 400 12px 'IBM Plex Mono';
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--line);
}

.plist__stage-chev {
  font: 400 14px 'IBM Plex Mono';
  color: var(--text-muted);
  transition: transform .2s;
}

.plist__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px 12px;
  background: #202121;
  border-left: 3px solid var(--stage);
}

.plist__step {
  display: flex;
  flex-direction: column;
}

.plist__step-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
}

.plist__step-num {
  font: 400 11px 'IBM Plex Mono';
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--role);
  color: var(--on-accent);
  flex: none;
}

.plist__step-title {
  flex: 1;
  font: 500 14px/1.25 'IBM Plex Sans';
  min-width: 0;
}

.plist__step-role {
  font: 400 11px 'IBM Plex Mono';
  color: var(--role);
  border: 1px solid var(--role);
  padding: 1px 7px;
  opacity: .9;
}

.plist__step-chev {
  font: 400 14px 'IBM Plex Mono';
  color: var(--text-muted);
  transition: transform .2s;
}

.plist__detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 10px 16px 43px;
}

.plist__desc {
  font: 400 13.5px/1.6 'IBM Plex Sans';
  color: var(--text-2);
}

.plist__detail-inner {
  font: 400 14px/1.65 'IBM Plex Sans';
  color: var(--text-desc);
  padding: 14px 16px;
  background: #232424;
}

.plist__detail-inner b {
  font-weight: 600;
  color: var(--text);
}

.plist__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plist__chip {
  font: 400 12px 'IBM Plex Sans';
  color: var(--text-desc);
  background: var(--line-muted);
  padding: 5px 10px;
}

.plist__guide {
  align-self: flex-start;
  font: 400 12px 'IBM Plex Mono';
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.plist__guide::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(232, 150, 46, .4);
}
/* No mobile mock: under ~400px a stage header's number, title, duration, counter and chevron do not
   fit one line, so the duration drops to a second line under the title. */
@media (max-width: 999.98px) {
  .plist__stage-header {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .plist__stage-sub {
    order: 1;
    flex-basis: 100%;
    padding-left: 44px;
  }
}
