/* MHV V38: shared breadcrumb styling, based on the product detail page. */
.bgmain .mainpage .topnag {
  box-sizing: border-box;
  clear: both;
  float: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 0 12px;
  padding: 0;
  color: var(--mhv-muted, #5b6670);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bgmain .mainpage .topnag :is(ul, ol) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 5px;
  height: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5;
}

.bgmain .mainpage .topnag li {
  display: block;
  float: none;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-size: inherit;
  overflow-wrap: anywhere;
}

/* V40: the same ordered trail is rendered by the mobile direct template. */
body .mhv-breadcrumb > .mhv-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 5px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
body .mhv-breadcrumb > .mhv-breadcrumb-list > li {
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* The PDP grid already supplies its own row spacing. */
.bgmain .mainpage:has(> .mhv-pdp-column) > .topnag {
  margin: 0;
}

/* Direct renderers, blog and contact use different HTML, but the same palette. */
body :is(.mhv-breadcrumb, .mhv-blog-breadcrumb, .mhv-contact-breadcrumb) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  color: var(--mhv-muted, #5b6670);
  font-size: 12px;
  line-height: 1.5;
  font-weight: normal;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
  gap: 4px 5px;
}

.bgmain .mainpage .topnag a,
body :is(.mhv-breadcrumb, .mhv-blog-breadcrumb, .mhv-contact-breadcrumb) a {
  color: var(--mhv-jade, #186255);
  font-size: inherit;
  text-decoration: none;
}

.bgmain .mainpage .topnag a:hover,
body :is(.mhv-breadcrumb, .mhv-blog-breadcrumb, .mhv-contact-breadcrumb) a:hover {
  text-decoration: underline;
}

body .mhv-contact-breadcrumb strong {
  color: inherit;
  font-weight: normal;
}
