/* stylelint-disable-next-line selector-class-pattern */
.hlist dl,
.hlist ol,
.hlist ul {
  margin: 0;
  padding: 0;
}
.hlist dl dl,
.hlist ol dl,
.hlist ul dl,
.hlist dl ol,
.hlist ol ol,
.hlist ul ol,
.hlist dl ul,
.hlist ol ul,
.hlist ul ul {
  display: inline;
}
.hlist dd,
.hlist dt,
.hlist li {
  margin: 0;
  display: inline;
}

/*!
 * Stylesheet for mediawiki.hlist module
 * @author [[User:Edokter]]
 */
/* stylelint-disable selector-class-pattern */
/* Generate interpuncts */
.hlist dt::after {
  content: ': ';
}
.hlist dd::after,
.hlist li::after {
  /* @todo FIXME: Hard coded " .". Is there a message for this? Should there be? */
  content: ' ·';
  font-weight: bold;
}
.hlist dd:last-child::after,
.hlist dt:last-child::after,
.hlist li:last-child::after {
  content: none;
}
.hlist dd dd:first-child::before,
.hlist dt dd:first-child::before,
.hlist li dd:first-child::before,
.hlist dd dt:first-child::before,
.hlist dt dt:first-child::before,
.hlist li dt:first-child::before,
.hlist dd li:first-child::before,
.hlist dt li:first-child::before,
.hlist li li:first-child::before {
  content: '(';
  font-weight: normal;
}
.hlist dd dd:last-child::after,
.hlist dt dd:last-child::after,
.hlist li dd:last-child::after,
.hlist dd dt:last-child::after,
.hlist dt dt:last-child::after,
.hlist li dt:last-child::after,
.hlist dd li:last-child::after,
.hlist dt li:last-child::after,
.hlist li li:last-child::after {
  content: ')';
  font-weight: normal;
}
.hlist dd ol > li:first-child::before,
.hlist dt ol > li:first-child::before,
.hlist li ol > li:first-child::before {
  content: '(' counter(list-item) ' ';
}
.hlist ol {
  counter-reset: list-item;
}
.hlist ol > li {
  counter-increment: list-item;
}
.hlist ol > li::before {
  content: counter(list-item) ' ';
}
/* Support hlist styles inside `mw-message-box-*`es */
.mw-message-box-error .hlist,
.mw-message-box-warning .hlist,
.mw-message-box-success .hlist {
  margin-left: 0;
}
.mw-message-box-error .hlist li::after,
.mw-message-box-warning .hlist li::after,
.mw-message-box-success .hlist li::after {
  margin-right: 3px;
}
