/* RP Ingeniería: copia de web/css/editor_content.css (Chamilo 1.11.40) + modo oscuro al final. */
/*
Stylesheet for HTML blocks created with CKEditor to embed in Chamilo pages.
*/

/* Hack for show Bootstrap alerts in CKEditor' style select */
.cke_panel_listItem a > :first-child {
    margin-bottom: 0;
}

.ck {
    display: block;
    font-feature-settings: normal;
    font-kerning: auto;
    font-language-override: normal;
    font-size-adjust: none;
    font-stretch: normal;
    font-style: normal;
    font-synthesis: weight style;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
}

.ck-article {
    color: #E95839;
    background: url(../../../../main/img/document/border-title.png) repeat-x 0 80%;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 2%;
    text-transform: uppercase;
}

.ck-article:before {
    content: "\f15c";
    font-family: FontAwesome;
    font-weight: normal;
    margin-right: 5px;
}

.ck-paragraph-box {
    background-color: #F5EEE2;
    line-height: 20px;
    padding: 2% 3%;
}

.ck-title {
    color: #000;
    display: block;
    font-weight: bold;
}

.ck-title2 {
    color: #000;
    font-weight: 500;
    margin-top: 0;
    padding-top: 0;
    position: relative;
}

.ck-title2:after {
    background-color: #E95839;
    content: "";
    display: block;
    height: 2px;
    margin: 10px 0 0;
    width: 50px;
}

.ck-stand-out {
    background-color: yellow;
}

.ck-style1 {
    background: url(../../../../main/img/document/hr-1.png) repeat-x 0 0;
    border: 0;
    height: 6px;
}

.ck-style2 {
    background: url(../../../../main/img/document/hr-2.png) repeat-x 0 0;
    border: 0;
    height: 6px;
}

.ck-style3 {
    border-top: 1px dashed #8c8b8b;
}

.ck-style3:after {
    background: #FFF;
    color: #8c8b8b;
    content: '\002702';
    display: inline-block;
    font-size: 18px;
    left: 40px;
    padding: 0 3px;
    position: relative;
    top: -12px;
}

.img-va-baseline {
    vertical-align: baseline;
}

.img-va-top {
    vertical-align: top;
}

.img-va-bottom {
    vertical-align: bottom;
}

.img-va-middle {
    vertical-align: middle;
}

.img-va-super {
    vertical-align: super;
}

.img-va-sub {
    vertical-align: sub;
}

.img-va-text-top {
    vertical-align: text-top;
}

.img-va-text-bottom {
    vertical-align: text-bottom;
}

figure.image {
    border: 1px solid #ddd;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 1em;
    padding: 5px;
}

.cke_widget_image.pull-right,
img.pull-right,
figure.image.pull-right {
    margin-left: 1em;
}

.cke_widget_image.pull-left,
img.pull-left,
figure.image.pull-left {
    margin-right: 1em;
}

.text-center .img-responsive {
    margin-left: auto;
    margin-right: auto;
}

.cke_widget_image.pull-left figure.image,
.cke_widget_image.pull-right figure.image,
figure.image.pull-left,
figure.image.pull-right {
    display: block;
}

figure.image figcaption {
    background-color: #f3f3f3;
    border-radius: 0;
    margin: 0;
    padding-left: 5px;
    padding-top: 0;
    text-align: left;
}

.embed-responsive-9by16 {
    padding-bottom: 177.77%;
}
.embed-responsive-3by4 {
    padding-bottom: 133.33%;
}


/* RP-EDITOR-OSCURO-INICIO v1 — contenido del editor (CKEditor) en modo oscuro.
   El editor es un iframe: solo le llega el modo oscuro automático (preferencia del sistema). */
@media (prefers-color-scheme: dark) {
  html, body.cke_editable, body {
    background: #18203A !important;
    color: #E4E9F5 !important;
    color-scheme: dark;
  }
  body.cke_editable a, a { color: #7C9AFF; }
  body.cke_editable table, body.cke_editable td, body.cke_editable th { border-color: #2E3959; }
  body.cke_editable hr { border-top-color: #2E3959; }
  body.cke_editable blockquote { border-left-color: #2E3959; color: #B6C0DC; }
  body.cke_editable pre, body.cke_editable code { background: #0F1524; color: #E4E9F5; border-color: #2E3959; }
  ::selection { background: rgba(124, 154, 255, .35); }
  /* Texto negro y fondos blancos fijos pegados desde Word/LibreOffice: se adaptan */
  [style*="color:#000"], [style*="color: #000"], [style*="color:black"], [style*="color: black"],
  [style*="color: rgb(0, 0, 0)"], [style*="color:rgb(0,0,0)"],
  font[color="#000000"], font[color="black"] { color: inherit !important; }
  [style*="background-color:#fff"], [style*="background-color: #fff"],
  [style*="background-color: rgb(255, 255, 255)"], [style*="background:#fff"] { background-color: transparent !important; }
  /* Marcadores de CKEditor (anclas, saltos, etc.) visibles sobre oscuro */
  .cke_anchor, .cke_pagebreak, img.cke_iframe { filter: invert(.85); }
}
/* RP-EDITOR-OSCURO-FIN */

/* RP-EDITOR-TITULOS-INICIO v1 — títulos legibles en modo oscuro */
@media (prefers-color-scheme: dark) {
  body.cke_editable :is(h1, h2, h3, h4, h5, h6),
  body :is(h1, h2, h3, h4, h5, h6) { color: inherit !important; }
}
/* RP-EDITOR-TITULOS-FIN */
