/* ==== Chevron trail band ==== */

.chevron-trail-band {
  display: block;
  position: static;
  background: var(--bs-body-bg);
}
@media (min-width: 992px) {
  .chevron-trail-band {
    position: sticky;
    top: var(--navbar-h, 56px);
    z-index: 1018;
  }
}
.chevron-trail-band.chevron-trail-empty {
  display: none;
}

.chevron-trail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: var(--width-normal);
  margin-inline: auto;
  padding: 4px var(--gutter);
  border-bottom: 1px solid var(--bs-border-color);
}

body:not(.no-chevron-tint) .chevron-trail-band {
  background-color: var(--bs-tertiary-bg);
}
body:not(.no-chevron-tint) .chevron-trail-row {
  border-top: 1px solid var(--bs-border-color);
}

body.no-chevron-tint .chevron-trail-band {
  display: none !important;
}

.chevron-trail-inner {
  display: flex;
  align-items: stretch;
  gap: 5px;
  min-width: 0; 
  flex: 1;
  font-size: 0.74rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.chevron-trail-inner::-webkit-scrollbar {
  display: none;
}
.chevron-trail-inner.is-scrolled {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28px);
  mask-image: linear-gradient(to right, transparent, #000 28px);
}

.chevron-trail-inner .chev-step {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
  color: var(--bs-secondary-color);
  background: var(--bs-secondary-bg);
  padding: 0px 16px 0px 12px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 8px 50%);
  max-width: 18vw;
  min-width: 0;
  flex: none;
}
.chevron-trail-inner .chev-step:last-child {
  max-width: 34vw;
}
.chevron-trail-inner .chev-step-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.chevron-trail-inner .chev-step:first-child {
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
  padding-left: 12px;
}
@media (max-width: 991.98px) {
  .chevron-trail-row {
    padding-block: 4px;
  }
  .chevron-trail-inner {
    gap: 4px;
    font-size: 0.8rem;
  }
  .chevron-trail-inner .chev-step:last-child {
    max-width: 75vw;
  }
  .chevron-trail-inner .chev-step {
    max-width: 55vw;
    min-height: 28px;
    padding: 0 18px 0 14px;
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%, 10px 50%);
  }
  .chevron-trail-inner .chev-step:first-child {
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
    padding-left: 12px;
  }
  .chevron-trail-inner .chev-step + .chev-step {
    margin-left: -6px;
  }
}
.chevron-trail-inner a.chev-step:hover {
  background: var(--bs-border-color);
  color: var(--bs-body-color);
}
.chevron-trail-inner a.chev-step:focus-visible {
  outline: 2px solid var(--bs-body-color);
  outline-offset: -3px;
}
.chevron-trail-inner .chev-step.current {
  background: var(--bs-border-color);
  color: var(--bs-body-color);
  font-weight: 600;
  cursor: default;
}

/* ==== Reset button ==== */
.chevron-trail-reset {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 17px;
  height: 17px;
  margin-right: -3px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--bs-secondary-color);
  border-radius: 4px;
  cursor: pointer;
}
.chevron-trail-reset svg {
  width: 14px;
  height: 14px;
}
.chevron-trail-reset:hover {
  background: var(--bs-secondary-bg);
  color: var(--bs-body-color);
}
.chevron-trail-reset:focus-visible {
  outline: 2px solid var(--bs-body-color);
  outline-offset: 1px;
}
@media (max-width: 991.98px) {
  .chevron-trail-reset {
    width: 28px;
    height: 28px;
  }
  .chevron-trail-reset svg {
    width: 16px;
    height: 16px;
  }
}
