/* Shared page rail: breadcrumb left + section anchors right (CE + product-line). */

.nw-page-rail {
  position: sticky;
  top: var(--nw-header-main-h, 100px);
  /* Below headers (.nw-site-header / .nw-m-header = 100). Same 90 as before for
     desktop mega; phone logo bar must stay above this rail. */
  z-index: 90;
  background: #fff;
  box-shadow: inset 0 -1px 0 #e4e8f2;
  isolation: isolate;
}

.nw-page-rail__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 64px;
}

.nw-page-rail__crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  min-width: 0;
  font-family: "Inter", "DM Sans", system-ui, sans-serif;
  font-size: var(--nw-fs-secondary);
  font-weight: 500;
  line-height: 1;
  color: #5d6b82;
}
.nw-page-rail__crumb > .icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 1;
  opacity: .65;
  flex: none;
}
.nw-page-rail__crumb a {
  color: inherit;
  text-decoration: none;
}
.nw-page-rail__crumb a:hover {
  color: var(--main-color, var(--main-color));
}
.nw-page-rail__crumb [aria-current="page"] {
  color: #3a4256;
  font-weight: 500;
}

.nw-page-rail__anchors {
  display: flex;
  align-items: stretch;
  gap: 30px;
  min-width: 0;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nw-page-rail__anchors::-webkit-scrollbar { display: none; }
.nw-page-rail__anchors > a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 64px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #3a4256;
  font-family: "Inter", "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.nw-page-rail__anchors > a:hover,
.nw-page-rail__anchors > a:focus,
.nw-page-rail__anchors > a:active {
  color: var(--main-color, var(--main-color));
  background: transparent;
  text-decoration: none;
}
.nw-page-rail__anchors > a.active,
.nw-page-rail__anchors > a.is-active,
.nw-page-rail__anchors > a[aria-current="location"] {
  color: var(--main-color, var(--main-color));
  background: transparent;
  border-bottom-color: var(--main-color, var(--main-color));
}

@media (max-width: 1279px) {
  .nw-page-rail {
    top: var(--nw-header-mobile-h, 70px);
  }
  .nw-page-rail__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding-block: 10px 0;
  }
  .nw-page-rail__crumb {
    padding-bottom: 8px;
  }
  .nw-page-rail__anchors {
    margin-left: 0;
    width: 100%;
  }
  .nw-page-rail__anchors > a {
    flex: 1 0 auto;
    min-width: 88px;
    min-height: 56px;
    padding-inline: 10px;
    font-size: var(--nw-fs-meta);
  }
}
