.doc-history {
  width: 100%;
  margin: 0rem 0 0.65rem;
  padding: 10px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.doc-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: fit-content;
  max-width: 100%;
}

.doc-history-item {
  display: grid;
  grid-template-columns: 7.25rem 1.25rem minmax(0, max-content);
  column-gap: 0.7rem;
  align-items: center;
  min-height: 1.85rem;
  color: #222;
}

.doc-history-item.is-latest {
  color: #b71c1c;
}

.doc-history-date {
  justify-self: end;
  border: 1px solid currentColor;
  color: inherit;
  background: #fff;
  padding: 0.08rem 0.4rem;
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.doc-history-axis {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-history-axis::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #b71c1c;
  transform: translateX(-50%);
}

.doc-history-item:first-child .doc-history-axis::before {
  top: 50%;
}

.doc-history-item:last-child .doc-history-axis::before {
  bottom: 50%;
}

.doc-history-item:only-child .doc-history-axis::before {
  display: none;
}

.doc-history-marker {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 2px solid #b71c1c;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.doc-history-item.is-latest .doc-history-marker {
  width: 14px;
  height: 14px;
  background: #b71c1c;
  box-shadow: inset 0 0 0 3px #fff;
}

.doc-history-name {
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a.doc-history-name:hover {
  color: #b71c1c;
  text-decoration: underline;
}

.doc-history-item.is-latest .doc-history-name {
  font-weight: 600;
}

.doc-history-item.is-current .doc-history-name {
  cursor: default;
}

.article-history {
  padding: 0 32px;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  .doc-history {
    margin: 0rem 0 0.65rem;
    justify-content: stretch;
    overflow-x: hidden;
  }

  .doc-history-list {
    width: 100%;
    max-width: 100%;
  }

  .doc-history-item {
    grid-template-columns: max-content 1.1rem minmax(0, 1fr);
    column-gap: 0.45rem;
    align-items: start;
    min-height: 0;
    padding: 0.22rem 0;
  }

  .doc-history-date {
    font-size: 12px;
    padding: 0.04rem 0.28rem;
    margin-top: 0.12rem;
  }

  .doc-history-axis {
    padding-top: 0.28rem;
  }

  .doc-history-item:first-child .doc-history-axis::before {
    top: 0.72rem;
  }

  .doc-history-item:last-child .doc-history-axis::before {
    bottom: calc(100% - 0.72rem);
  }

  .doc-history-marker {
    width: 10px;
    height: 10px;
  }

  .doc-history-item.is-latest .doc-history-marker {
    width: 12px;
    height: 12px;
    box-shadow: inset 0 0 0 2px #fff;
  }

  .doc-history-name {
    font-size: 14px;
    line-height: 1.45;
  }
}
