/* SCHOOL CMS PRO ELITE PREMIUM - format isi konten editor (2.5.0).
 * Dipakai website, pratinjau dashboard, dan area tulis editor. Semua format berbasis class (tanpa style inline, aman CSP). */
.rich-content { --rc-primary: var(--site-primary, var(--cms-accent, #0b3d91)); --rc-line: var(--line, var(--bs-border-color, #dee2e6)); --rc-head: var(--surface-3, var(--bs-tertiary-bg, #f1f5f9)); --rc-stripe: rgba(100, 116, 139, .07); }
.rich-content::after { content: ""; display: table; clear: both; }
/* Perataan & indentasi */
.rich-content .text-start { text-align: left; }
.rich-content .text-center { text-align: center; }
.rich-content .text-end { text-align: right; }
.rich-content .rc-justify { text-align: justify; }
.rich-content .rc-indent-1 { padding-left: 2em; } .rich-content .rc-indent-2 { padding-left: 4em; } .rich-content .rc-indent-3 { padding-left: 6em; } .rich-content .rc-indent-4 { padding-left: 8em; }
/* Konten lama (editor sebelum 2.5.0) */
.rich-content .ql-align-center { text-align: center; } .rich-content .ql-align-right { text-align: right; } .rich-content .ql-align-justify { text-align: justify; }
.rich-content .ql-indent-1 { padding-left: 2em; } .rich-content .ql-indent-2 { padding-left: 4em; } .rich-content .ql-indent-3 { padding-left: 6em; }
.rich-content li[data-list="bullet"] { list-style-type: disc; }
/* Warna teks */
.rich-content .rc-c-red { color: #c62828; } .rich-content .rc-c-orange { color: #c2410c; } .rich-content .rc-c-green { color: #2e7d32; }
.rich-content .rc-c-blue { color: #1565c0; } .rich-content .rc-c-purple { color: #6a1b9a; } .rich-content .rc-c-gray { color: #64748b; }
.rich-content .rc-c-primary { color: var(--rc-primary); }
/* Stabilo */
.rich-content [class*="rc-hl-"] { padding: 0 .15em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rich-content .rc-hl-yellow { background: #fff3a3; } .rich-content .rc-hl-green { background: #c8f2cf; } .rich-content .rc-hl-blue { background: #cfe6ff; } .rich-content .rc-hl-pink { background: #ffd6e7; }
.rich-content [class*="rc-hl-"]:not([class*="rc-c-"]) { color: #111827; }
/* Ukuran huruf */
.rich-content .rc-fs-sm { font-size: .85em; } .rich-content .rc-fs-lg { font-size: 1.25em; } .rich-content .rc-fs-xl { font-size: 1.5em; } .rich-content .rc-fs-xxl { font-size: 2em; line-height: 1.3; }
/* Gambar */
.rich-content img { max-width: 100%; height: auto; }
.rich-content img[width] { height: auto; }
.rich-content .rc-img-left { float: left; margin: .35rem 1.25rem 1rem 0; max-width: 50%; }
.rich-content .rc-img-right { float: right; margin: .35rem 0 1rem 1.25rem; max-width: 50%; }
.rich-content .rc-img-center { display: block; margin-left: auto; margin-right: auto; }
.rich-content figure.image { display: table; margin: 1rem 0; }
.rich-content figure.image.rc-img-center { margin-left: auto; margin-right: auto; }
.rich-content figure.image img { display: block; }
.rich-content figure.image figcaption { display: table-caption; caption-side: bottom; font-size: .88em; color: var(--ink-2, #64748b); padding-top: .4rem; text-align: center; }
@media (max-width: 576px) { .rich-content .rc-img-left, .rich-content .rc-img-right { float: none; display: block; max-width: 100%; margin: 1rem auto; } }
/* Video tersemat */
.rich-content iframe { max-width: 100%; border: 0; border-radius: .75rem; }
.rich-content iframe[src*="youtube"], .rich-content iframe[src*="vimeo"], .rich-content iframe.ql-video { width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* Tabel */
.rich-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.rich-content th, .rich-content td { border: 1px solid var(--rc-line); padding: .5rem .75rem; vertical-align: top; }
.rich-content thead th, .rich-content th { background: var(--rc-head); font-weight: 700; text-align: left; }
.rich-content td > p:last-child, .rich-content th > p:last-child { margin-bottom: 0; }
.rich-content table caption { caption-side: top; font-weight: 700; padding: 0 0 .5rem; color: inherit; }
.rich-content .rc-table-striped tbody tr:nth-child(even) td { background: var(--rc-stripe); }
.rich-content .rc-table-plain th, .rich-content .rc-table-plain td { border-width: 0 0 1px; }
.rich-content .rc-table-plain thead th { background: transparent; border-bottom-width: 2px; }
.rich-content .rc-table-compact th, .rich-content .rc-table-compact td { padding: .3rem .5rem; font-size: .92em; }
@media (max-width: 768px) { .rich-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
/* Lain-lain */
.rich-content hr { margin: 1.75rem 0; opacity: .25; }
.rich-content code { background: var(--rc-head); padding: .1em .35em; border-radius: .3em; font-size: .9em; }
.rich-content pre code { background: transparent; padding: 0; }
[data-bs-theme="dark"] .rich-content .rc-c-red, .rc-dark .rc-c-red { color: #ff8a80; }
[data-bs-theme="dark"] .rich-content .rc-c-orange, .rc-dark .rc-c-orange { color: #ffb74d; }
[data-bs-theme="dark"] .rich-content .rc-c-green, .rc-dark .rc-c-green { color: #81c784; }
[data-bs-theme="dark"] .rich-content .rc-c-blue, .rc-dark .rc-c-blue { color: #90caf9; }
[data-bs-theme="dark"] .rich-content .rc-c-purple, .rc-dark .rc-c-purple { color: #ce93d8; }
[data-bs-theme="dark"] .rich-content .rc-c-gray, .rc-dark .rc-c-gray { color: #b0bec5; }
[data-bs-theme="dark"] .rich-content .rc-c-primary, .rc-dark .rc-c-primary { color: #8ab4f8; }
