/* QsBreadcrumbs component + legacy Yoast (#breadcrumbs) */
.qs-breadcrumb-wrap,
.breadcrumbsWrapper {
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.qs-breadcrumb,
.qs-main-screen .qs-breadcrumb {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 0;
}

.qs-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-breadcrumb__list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qs-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  min-height: calc(1em + 12px);
  max-width: 100%;
  min-width: 0;
}

.qs-breadcrumb__item a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  color: #946500;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease;
}

.qs-breadcrumb__item a:hover {
  color: #c88900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qs-breadcrumb__item[aria-current="page"] {
  display: inline-flex;
  align-items: center;
  color: #0d0d0d;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  background: linear-gradient(180deg, rgba(255, 200, 74, 0.22), rgba(246, 177, 26, 0.14));
  box-shadow: inset 0 0 0 1px rgba(246, 177, 26, 0.28);
  border-radius: 999px;
}

.qs-breadcrumb__item:not(:last-child)::after {
  content: "/";
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 100%;
  margin: 0 9px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

/* Legacy Yoast output before JS enhancement */
.breadcrumbsWrapper:not(:has(.qs-breadcrumb)) #breadcrumbs {
  margin: 0;
  padding: 0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 0;
}

.breadcrumbsWrapper:not(:has(.qs-breadcrumb)) #breadcrumbs a {
  color: #946500 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.breadcrumbsWrapper:not(:has(.qs-breadcrumb)) #breadcrumbs a:hover {
  color: #c88900 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.breadcrumbsWrapper:not(:has(.qs-breadcrumb)) #breadcrumbs .breadcrumb_last {
  display: inline-flex;
  align-items: center;
  color: #0d0d0d !important;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  background: linear-gradient(180deg, rgba(255, 200, 74, 0.22), rgba(246, 177, 26, 0.14));
  box-shadow: inset 0 0 0 1px rgba(246, 177, 26, 0.28);
  border-radius: 999px;
  vertical-align: middle;
}

@media (max-width: 782px) {
  .qs-breadcrumb-wrap,
  .breadcrumbsWrapper {
    margin: 0 0 20px;
    padding: 14px 0 0;
  }

  .qs-breadcrumb,
  .breadcrumbsWrapper:not(:has(.qs-breadcrumb)) #breadcrumbs {
    font-size: 12px !important;
  }

  .qs-breadcrumb__list {
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-bottom: 2px;
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }

  .qs-breadcrumb__list::-webkit-scrollbar {
    display: none;
  }

  .qs-breadcrumb__item {
    flex: 0 0 auto;
  }

  .qs-breadcrumb__item:not(:last-child)::after {
    margin: 0 7px;
    font-size: 11px;
  }

  .qs-breadcrumb__item[aria-current="page"],
  .breadcrumbsWrapper:not(:has(.qs-breadcrumb)) #breadcrumbs .breadcrumb_last {
    max-width: min(72vw, 280px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (min-width: 783px) {
  .qs-breadcrumb__item[aria-current="page"] {
    max-width: min(100%, 520px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
