/* Desktop sidebar width overrides — must not apply on mobile or the theme's
   collapsible sidebar behaviour is suppressed. The RTD theme collapses below 768px. */
@media screen and (min-width: 769px) {
  .wy-nav-side {
    width: 20% !important;
  }

  .rst-versions {
    width: 20% !important;
  }

  .wy-nav-content-wrap {
    margin-left: 20% !important;
  }
}

.wy-side-scroll {
  width: 100% !important;
}

.wy-side-nav-search {
  width: 100% !important;
  background-color: #fcfcfc;
}

.wy-menu-vertical {
  width: 100% !important;
}

.wy-nav-content {
  max-width: none !important;
}

img.logo {
  max-height: 180px !important;
}

/* Prevent fixed-width images from overflowing on small screens */
.wy-nav-content img {
  max-width: 100%;
  height: auto;
}

/* Allow wide tables and code blocks to scroll horizontally on mobile */
.wy-nav-content table {
  display: block;
  overflow-x: auto;
}
