.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-sm);
}

.breadcrumbs__item {
  white-space: nowrap;
  text-decoration: none;
}

a.breadcrumbs__item { color: var(--muted); }
a.breadcrumbs__item:hover { color: var(--text); }

a.breadcrumbs__item:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.breadcrumbs__item--current {
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  margin: 0;
  color: var(--text);
  white-space: normal;
}

.breadcrumbs__sep { color: var(--muted); }

@media (max-width: 767px) {
  .breadcrumbs > * { display: none; }
  .breadcrumbs > :nth-last-child(3) {
    display: inline-block;
    white-space: normal;
    padding-block: 13px;
    margin-block: -13px;
  }
  .breadcrumbs > :nth-last-child(3)::before {
    content: "";
    display: inline-block;
    width: 1em; height: 1em;
    margin-right: var(--space-1);
    vertical-align: -0.125em;
    background: currentColor;
    -webkit-mask: var(--icon-chevron) no-repeat center / contain;
    mask: var(--icon-chevron) no-repeat center / contain;
    transform: rotate(180deg);
  }
  .breadcrumbs > .breadcrumbs__item--current {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
