/* One size system for the CMS and its published writing.
   Change these four values together if the studio's reading sizes change. */
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy) {
  --cms-text-small: 14px;
  --cms-text-normal: 16px;
  --cms-text-large: 20px;
  --cms-text-xl: 24px;
  font-size: var(--cms-text-normal);
  line-height: 1.6;
}
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy) h2 { font-size: var(--cms-text-xl); }
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy) h3 { font-size: var(--cms-text-large); }
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy) h4 { font-size: var(--cms-text-normal); }
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  :is(.journal-text-small, font[size="1"], font[size="2"]) { font-size: var(--cms-text-small); line-height: inherit; }
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  :is(.journal-text-normal, font[size="3"]) { font-size: var(--cms-text-normal); line-height: inherit; }
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  :is(.journal-text-large, font[size="4"]) { font-size: var(--cms-text-large); line-height: inherit; }
:is(.journal-body-editor, .legal-rich-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  :is(.journal-text-xl, font[size="5"], font[size="6"]) { font-size: var(--cms-text-xl); line-height: inherit; }

/* Use the same line-height rules in the writing panel and published content.
   Unitless heights scale with font size, so Small does not retain a tall
   Normal-size line box. Paragraph separation also follows its text size. */
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  :is(p, li, h2, h3, h4, blockquote) { line-height: 1.6; }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  p { margin: 0 0 0.65em; }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  :is(.journal-text-small, .journal-text-normal, .journal-text-large, .journal-text-xl) { line-height: inherit; }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-line-small { font-size: var(--cms-text-small); }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-line-normal { font-size: var(--cms-text-normal); }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-line-large { font-size: var(--cms-text-large); }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-line-xl { font-size: var(--cms-text-xl); }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-leading-tight { line-height: 1.2; }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-leading-close { line-height: 1.4; }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-leading-normal { line-height: 1.6; }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-leading-relaxed { line-height: 1.8; }
:is(.journal-body-editor .ql-editor, .legal-rich-editor .ql-editor, .news-reading-column, .legal-rich-content, .faq-answer-copy)
  .journal-leading-double { line-height: 2; }
