/* Show pages: stack labels above values in narrow cards (sidebars).
   Use a horizontal label/value pair only when the card itself is wide enough. */
body.show .card-body {
  container-type: inline-size;
}

body.show dl.row {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 1.5rem;
  row-gap: 0.2rem;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin-left: 0;
  margin-right: 0;
}

body.show dl.row > dt,
body.show dl.row > dd {
  flex: none !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

body.show dl.row > dt {
  margin-top: 0.85rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: #6c757d;
}

body.show dl.row > dt:first-child {
  margin-top: 0;
}

body.show dl.row > dd {
  min-width: 0;
  margin-bottom: 0.15rem;
}

body.show dl.row > dd > p:last-child {
  margin-bottom: 0;
}

@container (min-width: 36rem) {
  body.show dl.row {
    grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr);
    row-gap: 0.75rem;
    align-items: start;
  }

  body.show dl.row > dt {
    margin-top: 0;
    font-size: inherit;
  }

  body.show dl.row > dd {
    margin-bottom: 0;
  }
}

body.show .table th {
  hyphens: none;
  -webkit-hyphens: none;
  white-space: nowrap;
}
