.wy-nav-content {
  max-width: initial;
}

#postgrest-documentation > h1 {
  display: none;
}

div.wy-menu.rst-pro {
  display: none !important;
}

div.highlight {
  background: #fff !important;
}

div.line-block {
  margin-bottom: 0px !important;
}

#sponsors {
  text-align: center;
}

#sponsors h2 {
  text-align: left;
}

#sponsors img{
  margin: 10px;
  width: 13em; /* ".. image::" does not apply width properly to SVGs */
}

#thanks{
  text-align: center;
}

#thanks img{
  margin: 10px;
}

#thanks h2{
  text-align: left;
}

#thanks p{
  text-align: left;
}

#thanks ul{
  text-align: left;
}

.image-container {
  max-width: 800px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

.wy-table-responsive table td {
    white-space: normal !important;
}

.wy-table-responsive {
    overflow: visible !important;
}

#tutorials span.caption-text {
    display: none;
}

#references span.caption-text {
    display: none;
}

#explanations span.caption-text {
    display: none;
}

#how-tos span.caption-text {
    display: none;
}

#ecosystem span.caption-text {
    display: none;
}

#integrations span.caption-text {
    display: none;
}

#api span.caption-text {
    display: none;
}

/* Tweaks for dark mode from extension: sphinx-rtd-dark-theme */

html[data-theme="dark"] .highlight {
  background-color: #17181c !important;
}

html[data-theme="dark"] .sphinx-tabs-tab {
  color: var(--dark-link-color);
}

html[data-theme="dark"] .sphinx-tabs-panel {
  border: 1px solid #404040;
  border-top: 0;
  background: #141414;
}

html[data-theme="dark"] .sphinx-tabs-tab[aria-selected="true"] {
  border: 1px solid #404040;
  border-bottom: 1px solid #141414;
  background-color: #141414;
}

html[data-theme="dark"] [role="tablist"] {
  border-bottom: 1px solid #404040;
}

html[data-theme="dark"] .btn-neutral {
  color: white !important;
}

html[data-theme="dark"] .img-dark {
  display: inline;
}

html:not([data-theme="dark"]) .img-dark {
  display: none;
}

html[data-theme="dark"] .img-light {
  display: none;
}

html:not([data-theme="dark"]) .img-light {
  display: inline;
}

html[data-theme="dark"] .img-translucent img {
  background-color: #cccccc;
}

.img-translucent img {
  transition: background-color 0.3s;
  margin-bottom: 24px;
}

.svg-container-md {
  max-width: 400px;
}
