.journal-year-chart {
  display: flex;
  align-items: end;
  gap: .45rem;
  min-height: 18rem;
  overflow-x: auto;
  padding: 1rem .25rem .25rem;
}

.journal-year-column {
  display: grid;
  flex: 0 0 2.5rem;
  grid-template-rows: 1.5rem 11rem 3.5rem;
  text-align: center;
}

.journal-year-value {
  align-self: end;
  font-size: .75rem;
  font-weight: 600;
}

.journal-year-bar {
  align-items: end;
  background: var(--bs-tertiary-bg);
  border-radius: .25rem .25rem 0 0;
  display: flex;
  overflow: hidden;
}

.journal-year-bar > span {
  background: var(--bs-primary);
  display: block;
  min-height: 2px;
  width: 100%;
}

.journal-year-bar-stacked {
  flex-direction: column;
  justify-content: end;
}

.journal-year-bar-stacked > span {
  flex: 0 0 auto;
  min-height: 0;
}

.journal-year-bar .journal-year-segment-total {
  background: var(--bs-primary);
}

.journal-year-bar .journal-year-segment-distinct,
.journal-year-bar .journal-year-segment-new {
  background: var(--bs-success);
}

.journal-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}

.journal-chart-legend > span {
  align-items: center;
  display: inline-flex;
  font-size: .875rem;
  gap: .4rem;
}

.journal-chart-swatch {
  border-radius: .15rem;
  display: inline-block;
  height: .8rem;
  width: .8rem;
}

.journal-chart-swatch-total {
  background: var(--bs-primary);
}

.journal-chart-swatch-distinct {
  background: var(--bs-success);
}

.journal-year-label {
  font-size: .75rem;
  font-weight: 700;
  justify-self: center;
  left: -.3rem;
  padding-top: .75rem;
  position: relative;
  transform: rotate(-45deg);
  transform-origin: top center;
  width: max-content;
}
