/* Keep mdBook's default visual theme; only relocate chapter navigation. */

.nav-wide-wrapper,
.nav-wrapper {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 2rem auto 0;
  max-width: var(--content-max-width);
  padding: 0 var(--page-padding);
  width: 100%;
}

.nav-wide-wrapper .nav-chapters,
.nav-wrapper .mobile-nav-chapters {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 3rem;
  justify-content: center;
  margin: 0;
  max-width: none;
  min-width: 3rem;
  padding: 0;
  position: static;
  width: 3rem;
}

.nav-wide-wrapper .nav-chapters.previous,
.nav-wrapper .mobile-nav-chapters.previous {
  float: none;
  margin-right: auto;
}

.nav-wide-wrapper .nav-chapters.next,
.nav-wrapper .mobile-nav-chapters.next {
  float: none;
  margin-left: auto;
}

.nav-wrapper > div[style*="clear"] {
  display: none;
}

@media only screen and (max-width: 1080px) {
  .nav-wide-wrapper {
    display: none !important;
  }

  .nav-wrapper {
    display: flex;
  }
}

@media only screen and (min-width: 1081px) {
  .nav-wide-wrapper {
    display: flex !important;
  }

  .nav-wrapper {
    display: none;
  }
}
