/* CKEditor 5 editing surface: keep it readable in dark admin themes.
   Targets both standard editor and source editing containers safely. */

.ck-editor__editable,
.ck-editor__editable_inline {
  background: #ffffff;
  color: #111111;
  min-height: 240px;
}

/* Ensure typography isn’t nuked by global admin theme rules. */
.ck-editor__editable h1,
.ck-editor__editable h2,
.ck-editor__editable h3,
.ck-editor__editable h4,
.ck-editor__editable h5,
.ck-editor__editable h6 {
  color: #111111;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.75em 0 0.35em;
}

.ck-editor__editable p {
  margin: 0 0 1em;
  line-height: 1.55;
}

/* Links */
.ck-editor__editable a {
  color: #0b5fff;
  text-decoration: underline;
}

/* Lists */
.ck-editor__editable ul,
.ck-editor__editable ol {
  padding-left: 1.5em;
  margin: 0 0 1em;
}

/* Tables */
.ck-editor__editable table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1em;
}
.ck-editor__editable table td,
.ck-editor__editable table th {
  border: 1px solid #ddd;
  padding: 0.5em 0.75em;
}

/* Blockquote */
.ck-editor__editable blockquote {
  border-left: 4px solid #ddd;
  margin: 0 0 1em;
  padding: 0.25em 0 0.25em 1em;
  color: #333;
}

/* Prevent dark overlays from making text look “black on dark”. */
.ck-editor__editable * {
  text-shadow: none;
}

.ck-editor .ck-editor__editable {
  background: #fff;
  color: #111;
}

.ck-editor__editable { color: #111 !important; background: #fff !important; }