/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* Rich text editor — placeholder support for contenteditable */
[data-controller="rich-text"] [contenteditable][data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
  pointer-events: none;
}

/* Rich text editor — heading styles */
[data-controller="rich-text"] [contenteditable] h1 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin: 0.75rem 0 0.25rem; }
[data-controller="rich-text"] [contenteditable] h2 { font-size: 1.5rem;   font-weight: 700; line-height: 1.25; margin: 0.75rem 0 0.25rem; }
[data-controller="rich-text"] [contenteditable] h3 { font-size: 1.25rem;  font-weight: 600; line-height: 1.3;  margin: 0.75rem 0 0.25rem; }
[data-controller="rich-text"] [contenteditable] h4 { font-size: 1.125rem; font-weight: 600; line-height: 1.4;  margin: 0.5rem  0 0.25rem; }
[data-controller="rich-text"] [contenteditable] h5 { font-size: 1rem;     font-weight: 600; line-height: 1.4;  margin: 0.5rem  0 0.25rem; }
[data-controller="rich-text"] [contenteditable] h6 { font-size: 0.875rem; font-weight: 600; line-height: 1.4;  margin: 0.5rem  0 0.25rem; }
