/* What's known about an item, in its Info dialog: two lists, one under the other, or side by side where there's room.
   Each line has a label and its value. The lists share their columns, so their values line up when stacked */
.info-lists {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2) var(--space-4);

  @media (min-width: 800px) {
    grid-template-columns: repeat(2, max-content minmax(0, 1fr));
    column-gap: var(--space-6);
  }
}

.info-list {
  display: grid;
  grid-column: span 2;
  grid-template-columns: subgrid;
  align-content: start;
  row-gap: var(--space-2);
  margin: 0;

  .info-row {
    display: contents;
  }

  dt {
    color: var(--meta-text-color);
  }

  /* A value too long for its line, such as a caption, is cut short. Only the names of a list are, keeping its count and
     closing bracket */
  dd {
    display: flex;
    margin: 0;
    white-space: nowrap;
  }
}
