/* Keep the number and its vertical label on the same centerline. */
.c-section-rail nav a {
  display: flex;
  flex-direction: row;
  align-items: center;
}

@media (min-width: 821px) {
  .c-section-rail nav a {
    justify-content: flex-end;
    gap: 10px;
    padding-inline: 0 3px;
  }

  .c-section-rail__label {
    flex: 0 0 auto;
    width: 13px;
    text-align: center;
  }
}

@media (max-width: 820px) {
  .c-section-rail nav {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    justify-content: flex-start;
  }

  .c-section-rail nav a {
    flex: 1 0 auto;
    width: auto;
    gap: 5px;
    padding-inline: 5px;
  }

  .c-section-rail__label {
    width: min-content;
    text-align: start;
    overflow-wrap: normal;
  }
}
