/* Keep reference tables readable without horizontal scrolling. */
.rst-content .wy-table-responsive {
  overflow-x: visible;
}

.rst-content .wy-table-responsive table.docutils {
  display: table;
  table-layout: auto;
  width: 100%;
}

.rst-content table.docutils th,
.rst-content table.docutils td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: top;
}

.rst-content table.docutils code.literal {
  white-space: nowrap;
  overflow-wrap: normal;
}

.rst-content table.docutils th:first-child,
.rst-content table.docutils td:first-child {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Keep display math inside the readable content column. */
.rst-content div.math,
.rst-content .math {
  max-width: 100%;
}

.rst-content mjx-container[display="true"] {
  max-width: 100%;
  overflow: visible;
  text-align: center;
}

.rst-content mjx-container[display="true"] mjx-math {
  max-width: 100%;
}

/* Visually separate complete model equation systems from surrounding prose. */
.rst-content .ode-system {
  margin: 0 0 24px;
  padding: 14px 20px;
  max-width: 100%;
  overflow: visible;
  background: #f3f4f5;
  border: 1px solid #d9dde1;
  border-left: 4px solid #9aa4ad;
  box-sizing: border-box;
}

.rst-content .ode-system .math {
  margin: 0;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .rst-content .ode-system {
    padding: 12px 14px;
  }
}
