/* Manuscript milestones use the existing paper, serif type, green and gold. */
.manuscript-pipeline {
  padding-block: 1.6rem;
  border-block: 1px solid var(--line);
}

.pipeline-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.pipeline-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: .65rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .13em;
}

.pipeline-heading > span {
  font-size: .68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.pipeline-scroll {
  overflow-x: auto;
  padding: .5rem 0 .65rem;
  scrollbar-color: #a9af9f var(--paper);
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  min-width: 31.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pipeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding-inline: .2rem;
  text-align: center;
}

.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 1rem;
  left: calc(50% + 1.05rem);
  width: calc(100% - 2.1rem);
  border-top: 1px solid #bfb5a0;
}

.pipeline-step.pipeline-complete::after {
  border-color: #cccdc0;
}

.pipeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  border: 1px solid #bfb5a0;
  border-radius: 50%;
  background: var(--paper);
  color: #606c64;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
}

.pipeline-label {
  max-width: 6rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .83rem;
  line-height: 1.25;
  color: #46564b;
}

.pipeline-nowrap {
  white-space: nowrap;
}

.pipeline-complete .pipeline-marker {
  background: #e7e8df;
  border-color: #c7cabd;
  color: #657461;
  font-size: .9rem;
}

.pipeline-complete .pipeline-label {
  color: #606c64;
}

.pipeline-current .pipeline-marker {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px #b2c5b4;
}

.pipeline-current .pipeline-label {
  color: var(--green);
  font-weight: 700;
}

.pipeline-current:last-child .pipeline-marker {
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold);
}

.pipeline-current {
  margin: 0;
}

.pipeline-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.reader-scroll .pipeline-heading h2 {
  font-family: inherit;
  font-size: .65rem;
  margin-bottom: 0;
}

.reader-scroll .manuscript-pipeline {
  margin-top: 0;
  border-top: 0;
}

@media (max-width: 740px) {
  .pipeline-heading {
    margin-bottom: 1.2rem;
  }

  .pipeline-scroll:focus-visible {
    outline-offset: 2px;
  }
}

@media print {
  .pipeline-scroll {
    overflow: visible;
  }

  .pipeline-track {
    min-width: 0;
  }
}
