/* Render Sphinx 7 field lists like the table used by the Sphinx 3 theme. */
.rst-content dl.field-list {
  display: inline-grid;
  grid-template-columns: max-content max-content;
  max-width: 100%;
  margin: 0 0 24px;
}

.rst-content dl.field-list > dt,
.rst-content dl.field-list > dd {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 2px 4px;
  border: 0;
  font-size: 100%;
  line-height: 18px;
}

.rst-content dl.field-list > dt {
  display: block;
  background: #eeddee;
  color: #404040;
  font-weight: bold;
  text-align: right;
  white-space: nowrap;
}

.rst-content dl.field-list > dd {
  background: #eeeeff;
  text-align: left;
  overflow-wrap: anywhere;
}

.rst-content dl.field-list > dd > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 18px;
}

@media screen and (max-width: 600px) {
  .rst-content dl.field-list {
    grid-template-columns: 1fr;
  }

  .rst-content dl.field-list > dt {
    border-bottom: 0;
    text-align: left;
    white-space: normal;
  }
}
