/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * CKEditor overrides
 */

@media (prefers-color-scheme: dark) {
  .ck.ck-editor__main > .ck-editor__editable {
    --ck-color-base-background: #2e2e2e !important;
  }
}

.ck.ck-editor__main > .ck-editor__editable.ck-content blockquote {
  border: none;
  font-style: normal;
  position: relative;
  margin-block: var(--sp);
  margin-inline-start: 0;
  margin-inline-end: 0;
  overflow: revert;
  padding-block-end: var(--sp0-5);
  padding-inline-start: var(--sp2);
}

.ck.ck-editor__main > .ck-editor__editable.ck-content blockquote::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: var(--sp0-5);
  height: calc(100% - 2rem);
  margin-inline-start: 0.25rem;
  content: "";
  background: var(--color--gray-90);
}

.ck.ck-editor__main > .ck-editor__editable.ck-content blockquote p {
  line-height: inherit;
}

.ck.ck-editor__main > .ck-editor__editable.ck-content blockquote p:first-child {
  margin-inline-start: calc(-1 * var(--sp2));
}

.ck.ck-editor__main > .ck-editor__editable.ck-content blockquote p:last-child {
  margin-block-end: 0;
}

@media (prefers-color-scheme: dark) {
  .ck.ck-editor__main > .ck-editor__editable.ck-content {
    color: inherit !important;
  }
}

@media (prefers-color-scheme: dark) {
  .ck.ck-toolbar {
    --ck-color-toolbar-background: var(--color--background-attention) !important;
  }
}

.ck.ck-balloon-panel.ck-powered-by-balloon {
  display: none !important;
}
