/* Tiptap wraps each list item's text in a paragraph. Keep the original list spacing
   after editing while retaining paragraph spacing for items with multiple paragraphs. */
.text-section li > p:only-child,
.rich-text-box li > p:only-child {
  margin-bottom: 0;
}

/* A paragraph before a nested list replaces inline list-item text in Tiptap. */
.text-section li > p:has(+ :is(ul, ol)),
.rich-text-box li > p:has(+ :is(ul, ol)) {
  margin-bottom: 0;
}

/* The long Google opt-out URL in the privacy policy overflows narrow viewports. */
.text-section a[href="http://tools.google.com/dlpage/gaoptout"] {
  overflow-wrap: anywhere;
}
