/**!
 * @file RichText.css  (shared — admin, teachers, students symlink it; loaded on every page by LookAndFeel)
 * @desc The editor's text Color menu and table Border / Center buttons save CLASSES, not inline styles
 *       (sanitizeRichText allows only these). This makes them render wherever editor content is shown —
 *       policies, announcements, help articles — not just inside the lesson reader (ViewLesson.css) and the
 *       teacher editor pages (AddPagesModern.css), which keep their own scoped copies.
 * @version v7 2026-10-23 - Initial version (admin now has the full editor toolset).
 * @version v7 2026-11-23 - Text colors read the students palette roles (--c-rt-*, students/css/sw_palette.css) so they
 *          stay readable in dark mode; each keeps its original color as the fallback, so admin and teachers (no
 *          palette) look exactly as before (text shadows too: --c-shadow-rgb). No color change in light mode.
 * @author Charlie Samra <charles@samraworld.net>
 * @see shared/js/editor_tiny.js (rtcolor menu, tblborder / tblcenter buttons)
 */
/* Text colors: the students palette sets --c-rt-* (light + dark); the second value is the original color,
   used where there is no palette (admin, teachers). */
.rt-red    { color: var(--c-rt-red, #c0392b); }
.rt-orange { color: var(--c-rt-orange, #d35400); }
.rt-yellow { color: var(--c-rt-yellow, #f5c518); text-shadow: 0 0 1px rgba(var(--c-shadow-rgb, 0, 0, 0), .55); }
.rt-green  { color: var(--c-rt-green, #1e7e34); }
.rt-blue   { color: var(--c-rt-blue, #1565c0); }
.rt-purple { color: var(--c-rt-purple, #8e44ad); }
.rt-pink   { color: var(--c-rt-pink, #d6336c); }
.rt-brown  { color: var(--c-rt-brown, #8d5524); }
.rt-gray   { color: var(--c-rt-gray, #6c757d); }
.rt-black  { color: var(--c-rt-black, #000000); }
.rt-white  { color: var(--c-rt-white, #ffffff); text-shadow: 0 0 1px rgba(var(--c-shadow-rgb, 0, 0, 0), .6); }

/* Table "Border" button: a borderless layout table. "Center": centered at its own width. */
table.tbl-plain, table.tbl-plain td, table.tbl-plain th { border: 0 !important; }
table.tbl-center { margin-left: auto !important; margin-right: auto !important; }
