/*
 * Card-context overrides for the shared `.tiptap-editor` styles. We keep the
 * `.tiptap-editor` class (so all the `.tiptap-editor .ProseMirror ...`
 * typography matches the modal editor exactly) but drop the page-style
 * padding and the 720px centered column — inside a sheet card the prose
 * should fill the card and let the card own the padding.
 */
.sheet-inline-tiptap.tiptap-editor {
  padding: 0;
  /* The base `.tiptap-editor` is its own scroll container (height:100% +
     overflow-y:auto) — right for the modal, but in a card it would add a
     second scrollbar on top of the card body's. Let the editor grow to its
     content height and let the card body own the single scroll. */
  height: auto;
  overflow: visible;
}

.sheet-inline-tiptap .ProseMirror {
  max-width: none;
  margin: 0;
}

/* Read-only preview: no caret, no editing affordances. */
.sheet-inline-tiptap--readonly .ProseMirror {
  cursor: inherit;
}
