/* Content-page prose normalization. See README.md. */
.xp-content-page li > p {
  margin: 0;
}

.xp-content-page li > p > i:empty {
  vertical-align: top;
}

.xp-content-page article > p:has(> img:only-child),
.xp-content-page section > p:has(> img:only-child),
.xp-content-page aside > p:has(> img:only-child),
.xp-content-page header > p:has(> img:only-child),
.xp-content-page footer > p:has(> img:only-child),
.xp-content-page nav > p:has(> img:only-child),
.xp-content-page main > p:has(> img:only-child) {
  display: contents;
}

.xp-content-page p:empty {
  display: none;
}

.xp-content-page p:has(> a[name]:only-child:empty) {
  display: contents;
}

.xp-content-page p:has(> .btn:only-child) {
  display: contents;
}
