/* D9000 top navigation r02. Append after the current product CSS only. */
#jp-d9000-lightline > .section-index {
  position: relative;
  z-index: 20;
  max-width: none;
  flex-wrap: nowrap;
  gap: 0 24px;
  padding-block: 12px;
  overflow-x: auto;
  scroll-padding-inline: 20px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  background: #e3eeee;
  box-shadow: 0 1px 0 rgba(28, 61, 71, .12);
}
/* Without JS the navigation stays in normal flow, avoiding an unknown header. */
#jp-d9000-lightline.jp-section-nav-ready > .section-index {
  position: sticky;
  top: var(--jp-section-header-offset, 0px);
}
#jp-d9000-lightline > .section-index a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  white-space: nowrap;
}
#jp-d9000-lightline > .section-index a:first-child { margin-inline-start: auto; }
#jp-d9000-lightline > .section-index a:last-child { margin-inline-end: auto; }
#jp-d9000-lightline > .section-index a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}
#jp-d9000-lightline [id],
#jp-d9000-lightline > section[id],
#jp-d9000-lightline > #d9000-content > section[id] {
  scroll-margin-top: calc(max(90px, var(--jp-section-header-offset, 90px)) + var(--jp-section-nav-height, 64px) + 16px);
}
/* Existing Downloads sits outside the product root. Scope to this route alias. */
body.jp-d9000-alias #jp-product-downloads {
  scroll-margin-top: calc(90px + 64px + 16px);
}
@media (max-width: 767px) {
  #jp-d9000-lightline > .section-index { gap: 0 18px; padding-block: 8px; }
  #jp-d9000-lightline [id],
  #jp-d9000-lightline > section[id],
  #jp-d9000-lightline > #d9000-content > section[id] {
    scroll-margin-top: calc(max(80px, var(--jp-section-header-offset, 80px)) + var(--jp-section-nav-height, 56px) + 16px);
  }
  body.jp-d9000-alias #jp-product-downloads { scroll-margin-top: calc(80px + 56px + 16px); }
}
@media print {
  #jp-d9000-lightline.jp-section-nav-ready > .section-index { position: static; flex-wrap: wrap; overflow: visible; }
}
/* Emphasize only the first-screen product model; preserve its existing size. */
#jp-d9000-lightline .hero h1 { font-weight: 800; }
