/**
 * Breadcrumb — MUD (Figma: breadcrumb-figma.css).
 * Markup: nav.asp-breadcrumb > ol > li > a | text
 */

/* Nav wraps core’s visually-hidden title + list; only the list is a flex row. */
.asp-breadcrumb {
  display: block;
  padding: 0;
  margin: 0;
}

.asp-breadcrumb ol,
.asp-breadcrumb .breadcrumb {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.asp-breadcrumb li {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #757575;
}

/* Chevron between segments (16×16, #757575) */
.asp-breadcrumb li + li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath stroke='%23757575' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M6 4l4 4-4 4'/%3E%3C/svg%3E")
    center / 16px 16px no-repeat;
}

.asp-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.asp-breadcrumb a:hover {
  color: var(--gray-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.asp-breadcrumb a:focus-visible {
  outline: 2px solid var(--gray-700);
  outline-offset: 2px;
}

/* Current page: Body/Small 500, #121212 */
.asp-breadcrumb li:last-child {
  font-weight: 500;
  color: var(--gray-900);
}

.asp-breadcrumb li:last-child a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.asp-breadcrumb li:last-child a:hover {
  color: var(--gray-900);
  text-decoration: none;
}
