body {
  font-size: 16px;
  line-height: 1.65;
  background: #f3efe7;
}

div.document {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 40px;
  max-width: 1240px;
}

div.documentwrapper {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
  background: #fffdf8;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(64, 42, 27, 0.08);
}

div.bodywrapper {
  margin: 0;
}

div.body {
  max-width: 900px;
  padding: 2rem 2.4rem 2.6rem;
}

div.related,
div.sphinxsidebar {
  background: #f7f2ea;
}

div.sphinxsidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 1rem;
  width: 280px;
  float: none;
  border-radius: 18px;
  padding: 1.2rem 0.8rem;
}

div.sphinxsidebar h3,
div.sphinxsidebar h4,
div.body h1,
div.body h2,
div.body h3 {
  letter-spacing: -0.01em;
}

div.body h1 {
  font-size: 2.3rem;
}

div.body h2 {
  margin-top: 2.2rem;
  padding-top: 0.3rem;
  border-top: 1px solid #eadfce;
}

div.body a,
div.sphinxsidebar a {
  color: #8a4b2a;
}

div.body code,
div.body tt,
code,
pre {
  border-radius: 8px;
}

div.body pre {
  padding: 0.95rem 1rem;
  border: 1px solid #e4d6c5;
  background: #fcf8f2;
}

div.body table.docutils {
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 1080px) {
  div.document {
    display: block;
  }

  div.sphinxsidebar {
    position: static;
    float: none;
    width: auto;
    margin-bottom: 1rem;
  }
}
