/* Jodit builds its own DOM, so no template can carry these as utilities; they read tokens. */

/* Shown only where the safety net marks the editor absent, so the field is always editable. */
.ce-rte textarea[data-rich-text] { display: none; }
.ce-rte[data-editor-missing] textarea[data-rich-text] { display: block; }

/* `:not(.jodit_inline)` matches the weight of Jodit's own rule, which loads after this. */
.ce .ce-rte .jodit-container:not(.jodit_inline) {
  border: var(--bs-border-width) solid var(--tw-color-line);
  border-radius: var(--tw-radius-control);
  overflow: hidden;
}
.ce .ce-rte .jodit-container.jodit_focused { border-color: var(--tw-color-accent); }

/* Jodit's floating "add a line" box lands over the text in an embedded field. */
.ce-rte .jodit-add-new-line { display: none !important; }

/* The toolbar is the toggle: on screen once the Format button sets `data-rich`. */
.ce-rte:not([data-rich]) .jodit-toolbar__box { display: none; }
