/* Rich Text Editor Styles */
.richtext-editor .ProseMirror {
  outline: none;
}

.richtext-editor .ProseMirror p {
  margin: 0.25em 0;
}

.richtext-editor .ProseMirror h2 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 0.75em 0 0.25em;
  line-height: 1.3;
}

.richtext-editor .ProseMirror h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0.5em 0 0.25em;
  line-height: 1.3;
}

.richtext-editor .ProseMirror ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin: 0.25em 0;
}

.richtext-editor .ProseMirror ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin: 0.25em 0;
}

.richtext-editor .ProseMirror li {
  margin: 0.1em 0;
}

.richtext-editor .ProseMirror blockquote {
  border-left: 3px solid #cbd5e1;
  padding-left: 0.75em;
  margin: 0.5em 0;
  color: #64748b;
}

.richtext-editor .ProseMirror a,
.richtext-editor .ProseMirror .richtext-link {
  color: #0891b2;
  text-decoration: underline;
  cursor: pointer;
}

.richtext-editor .ProseMirror a:hover,
.richtext-editor .ProseMirror .richtext-link:hover {
  color: #0e7490;
}

/* Placeholder styling */
.richtext-editor .ProseMirror p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
  float: left;
  height: 0;
}

/* Ensure inline nodes don't break cursor positioning */
.richtext-editor .ProseMirror span[data-node-view-wrapper] {
  display: inline;
}
