/* ===== TV3 Breadcrumb ===== */
.tv3-breadcrumb {
  color: var(--wp--preset--color--white);
  font-size: 0.875rem;
  line-height: normal;
  font-weight: 400;
  letter-spacing: -0.5px;
  text-decoration: none;
  padding-top: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tv3-breadcrumb__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  list-style: none;
  padding-inline-start: 0;
  overflow: hidden;
}

.tv3-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: fit-content;
}

/* Let the LAST item (current page) take remaining width and shrink */
.tv3-breadcrumb__item:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

/* Links */
.tv3-breadcrumb
  .tv3-breadcrumb__list
  .tv3-breadcrumb__item
  .tv3-breadcrumb__link {
  text-decoration: none;
  min-width: fit-content;
}
.tv3-breadcrumb__link:hover {
  color: var(--wp--preset--color--accent);
}

/* Current page */
.tv3-breadcrumb__current {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tv3-breadcrumb-current, #fff);
  font-weight: 700;
  cursor: auto;
}

/* Separator (chevron) */
.tv3-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  min-width: fit-content;
}
.tv3-breadcrumb__chevron {
  width: 20px;
  height: 12px;
  display: block;
  color: var(--wp--preset--color--white);
}

/* Long labels: clamp to one line on small screens */
.tv3-breadcrumb__link,
.tv3-breadcrumb__current {
  max-width: 40ch;
  overflow: hidden;
  white-space: nowrap;
}

.tv3-breadcrumb__current {
  text-overflow: ellipsis;
}

@media (max-width: 781px) {
  .tv3-breadcrumb {
    padding-top: 24px;
    padding-bottom: 15px;
  }
}
