/* ============================
   GENERIC BREADCRUMB SYSTEM
   ============================ */

.breadcrumb {
  width: 100%;
  padding: 6px 2px;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  font-size: 0.85rem;
  color: #444;
  box-sizing: border-box;
}

.breadcrumb__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

/* breadcrumb item */

.breadcrumb__item {
  display: flex;
  align-items: center;
  max-width: 100px;  /* or unset */
  //min-width: 0; /* needed for children to ellipsis */
}

/* Separator */
.breadcrumb__sep {
  padding: 0 0.5rem;
  color: #aaa;
  user-select: none;
}

/* Link style */

.breadcrumb__link {
  color: #005fcc;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75px;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

/* Current/last breadcrumb */
.breadcrumb__link--current {
  font-weight: 600;
  color: #222;
  text-decoration: none;
  cursor: default;
}

/* Optional subtle hover disabled on current */
.breadcrumb__link--current:hover {
  text-decoration: none;
}

/* Stronger ellipsis for slugs */
.breadcrumb__slug {
  text-transform: none;
}

/* Responsive: stack on narrow screens */
@media (max-width: 600px) {
  .breadcrumb {
    padding: 8px 0;
  }

  .breadcrumb__list {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .breadcrumb__sep {
    padding: 0 0.3rem;
  }
}
