/* Shared hierarchy for editable templates and previews: H1 title, H2 section. */
:is(.richtext-editor, .richtext-preview) { font-family: "Times New Roman", "Liberation Serif", serif; font-size: 12pt; line-height: 1.15; color: #111; }
:is(.richtext-editor, .richtext-preview) h1 { font: bold 16pt/1.25 "Times New Roman", "Liberation Serif", serif; text-align: center; margin: 10pt 0 6pt; }
:is(.richtext-editor, .richtext-preview) h2 { font: bold 14pt/1.25 "Times New Roman", "Liberation Serif", serif; margin: 10pt 0 6pt; }
:is(.richtext-editor, .richtext-preview) :is(h3,h4) { font: bold 12pt/1.25 "Times New Roman", "Liberation Serif", serif; margin: 10pt 0 6pt; }
:is(.richtext-editor, .richtext-preview) p { margin: 0 0 6pt; text-align: justify; }
:is(.richtext-editor, .richtext-preview) :is(ul,ol) { margin: 0 0 6pt; padding-left: 24pt; }
:is(.richtext-editor, .richtext-preview) table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10pt; }
:is(.richtext-editor, .richtext-preview) :is(th,td) { min-width: 0; padding: 3pt; border: 0.5pt solid #888; vertical-align: top; overflow-wrap: anywhere; }
:is(.richtext-editor, .richtext-preview) tr:first-child { background: #d9e2f3; font-weight: bold; }
:is(.richtext-editor, .richtext-preview) td p { text-align: left; }
:is(.richtext-editor, .richtext-preview) [data-align="center"] { text-align: center; }
:is(.richtext-editor, .richtext-preview) [data-align="right"] { text-align: right; }
:is(.richtext-editor, .richtext-preview) [data-align="left"] { text-align: left; }
:is(.richtext-editor, .richtext-preview) [data-align="justify"] { text-align: justify; }
