.lexxy-content p,
.lexxy-editor__content p {
  margin-block: 0 1rem;
}

.lexxy-content > :last-child,
.lexxy-editor__content > :last-child {
  margin-block-end: 0;
}

.lexxy-editor__content {
  block-size: auto;
  overflow: visible;
}

/* Tailwind's preflight strips list markers, indentation and link underlines */
.lexxy-content ul,
.lexxy-editor__content ul {
  list-style: disc;
  padding-inline-start: 1.5em;
}

.lexxy-content ol,
.lexxy-editor__content ol {
  list-style: decimal;
  padding-inline-start: 1.5em;
}

.lexxy-content ul ul,
.lexxy-editor__content ul ul {
  list-style-type: circle;
}

/* Nested lists are wrapped in their own <li>; hide its marker and spacing */
.lexxy-content li:has(> ul, > ol),
.lexxy-editor__content li:has(> ul, > ol) {
  list-style-type: none;
}

.lexxy-content li > :is(ul, ol),
.lexxy-editor__content li > :is(ul, ol) {
  margin-block: 0;
}

.lexxy-content a,
.lexxy-editor__content a {
  text-decoration: underline;
}
