/* -----------------------------------------
   BREADCRUMBS -  /source/scss/cagov/breadcrumbs.scss
----------------------------------------- */

#page-container .breadcrumbs ul,
#page-container .breadcrumbs ol {
  padding: 0.5em 1rem;
  padding-left: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  list-style: none;

  // @include font-size(1);
  font-size: $font-size-sm;

  @include media-breakpoint-up(sm) {
    font-size: calc(#{$font-size-sm} + #{$ratio});
  }

  li {
    position: relative;
    padding-left: 0.75rem;
    padding-right: 0.75rem;

    &:first-child {
      padding-left: 0;
    }

    &::after {
      content: "";
      color: var(--bs-gray-900, $gray-900);
      border: none;
      margin: 0 calc($grid-gutter-width / 2);
      font-size: 1.125rem;
      font-weight: 200;
      position: absolute;
      border-left: 1px solid;
      height: 70%;
      top: 5px;
      right: -12px;
      transform: rotate(15deg);
    }

    &:last-child {
      &::after {
        content: "";
        border-left: none; // Removes the border from the first item in the breadcrumb
        margin: 0;
      }
    }
  }
}
