:where(ul, ol)[class] {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Hide bullet/number on li that only contains a nested list */
li:has(> ul:only-child),
li:has(> ol:only-child) {
  list-style-type: none;
}

/* Remove margin from nested lists inside li */
li > ul,
li > ol {
  margin-block-end: 0;
}

dl {
  dt { font-weight: var(--font-weight--regular); }

  dd {
    margin-left: 0;
    &:not(:last-of-type) {
      /* margin-bottom: var(--space--smal); */
    }
  }
}
