/* Shared by Tiptap and saved HTML, including the guide's isolated iframe.
   Keep these defaults in one file; authored inline formatting takes precedence. */
:is(.tiptap-editor-content > .ProseMirror,
    .editable-content:not(:has(.preface-document)),
    .homepage-rich-content, .docfile-note-display,
    .docfile-note-bottom-display, .docfile-bottom-content-display,
    .mine-file-note-display, .mine-file-note-display-bottom,
    .usage-guide-document) {
  font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

:is(.tiptap-editor-content > .ProseMirror,
    .editable-content:not(:has(.preface-document)),
    .homepage-rich-content, .docfile-note-display,
    .docfile-note-bottom-display, .docfile-bottom-content-display,
    .mine-file-note-display, .mine-file-note-display-bottom,
    .usage-guide-document) p {
  margin: 0;
  padding: 0;
}

/* Tiptap renders an empty paragraph with a placeholder br. Saved HTML has
   an empty p instead, which needs the same single line box. */
:is(.tiptap-editor-content > .ProseMirror,
    .editable-content:not(:has(.preface-document)),
    .homepage-rich-content, .docfile-note-display,
    .docfile-note-bottom-display, .docfile-bottom-content-display,
    .mine-file-note-display, .mine-file-note-display-bottom,
    .usage-guide-document) p:empty {
  min-height: 1em;
  min-height: 1lh;
}

/* Original guide files have a legacy wrapper; edited files no longer do.
   Both inherit the same reading defaults without changing the actual preface. */
.usage-guide-document .preface-document {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
