/*
 * Breadcrumbs (NO.151)
 *
 * Visual approach: no own background — the trail sits directly on the page's
 * --offwhite canvas like the navigation above it, so there is no hard color
 * break between nav / breadcrumb / first content section. Container width,
 * gutters and breakpoints mirror NavigationTop (1200px, 1rem → 2rem @900px).
 */

.breadcrumbs {
  background-color: transparent;
  font-family: var(--body-font-family);
}

.breadcrumbs__wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

/* For tablet landscape up */
@media (min-width: 900px) {
  .breadcrumbs__wrapper {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.breadcrumbs__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  min-width: 0;
  /* Long article/member titles wrap instead of overflowing the container */
  overflow-wrap: anywhere;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "›";
  margin-left: 0.375rem;
  margin-right: 0.375rem;
  color: var(--gray);
  font-size: 0.875em;
  line-height: 1;
}

.breadcrumbs__item a {
  color: var(--black);
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.2s ease;
}

.breadcrumbs__item a:hover,
.breadcrumbs__item a:focus-visible {
  color: var(--primary-color-darkened);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs__item a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.breadcrumbs__item--current {
  color: var(--black);
  opacity: 0.7;
}

/*
 * Mobile (client feedback 2026-10-12): the trail stays on ONE line. The
 * current page name shrinks and truncates with an ellipsis instead of
 * wrapping to a second line; parent labels are short nav names and are never
 * truncated. Desktop keeps the wrapping behaviour above.
 */
@media (max-width: 899.98px) {
  .breadcrumbs__list {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .breadcrumbs__item {
    flex: 0 0 auto;
  }

  .breadcrumbs__item--current {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
