.docs-page__home {
  position: fixed;
  top: 0;
  left: 0;
  /* Above Scalar's sticky sidebar (z-index 10) */
  z-index: 20;
  box-sizing: border-box;
  width: var(--scalar-sidebar-width, 288px);
  padding: 16px 16px 8px;
  background: #ffffff;
}

.docs-page__home img {
  display: block;
  height: 40px;
  width: auto;
  margin: 0 auto;
}

.docs-switch {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding: 3px;
  border-radius: 8px;
  background: #f3f3f3;
  font:
    500 13px/1 'Inter',
    system-ui,
    sans-serif;
}

.docs-switch a {
  flex: 1;
  padding: 8px 0;
  border-radius: 6px;
  color: #707070;
  text-align: center;
  text-decoration: none;
}

.docs-switch a[aria-current='page'] {
  background: #ffffff;
  color: #1b1b1b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Scalar swaps its sidebar for a menu drawer below 1000px */
@media (max-width: 999px) {
  .docs-page__home {
    position: static;
    width: auto;
    padding-bottom: 12px;
    border-bottom: 1px solid #dfdfdf;
  }

  .docs-switch {
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
  }
}
