//@use '../base/colors' as *;
// @use 'link' as *;
// @use 'button' as *;

.cbp-breadcrumb {
  align-items: center;
  display: flex;
  list-style-type: none;
  margin-top: 8px;
  margin-bottom: 8px; // override from uswds
  padding-left: 0;
}

.cbp-breadcrumb__item {
  margin-bottom: 0;

  &:not(:first-child) {
    margin-left: 8px;
  }

  & > a {
    // @extend .cbp-link__inline;
    letter-spacing: unset;
  }

  &::after {
    // @extend .cbp-text-subhead;
    color: var(--cbp-color-text-darker);
    content: '/';
    font-style: italic;
    margin-left: 4px;
  }
  
  /* First breadcrumb icon should not have underline on hover */
  &:first-child {
    align-items: center;
    display: inherit;

    & > a:hover {
      text-decoration: none;
    }

    &::after {
      height: 16px;
      margin-left: 8px;
    }
  }

  /* Last breadcrumb should not have separator */
  &:last-child::after {
    content: '';
  }
}

.cbp-breadcrumb--condensed > li:nth-child(2) > a {
  color:  var(--cbp-color-black);
}

.cbp-breadcrumb__btn {
  // @extend .cbp-btn;
  // @extend .cbp-btn__square; 
  // @extend .cbp-btn__square-primary--ghost;
}

/* Header (Might not be part of actual breadcrumb */
.cbp-lastcrumb {
  color: var(--cbp-color-black);
  border-bottom: 4px solid var(--cbp-color-base-neutral-light);
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  padding-bottom: 16px;
  margin: 0;
}

.d-lg-none {
  @media screen and (min-width: 768px) {
    display: none;
  }
}

.d-sm-none {
  @media screen and (max-width: 768px) {
    display: none;
  }
}