/*
 * Syntax highlighting for code blocks (CodeHelper#highlight_code, Rouge's
 * token classes). The blocks are bg-slate-900 in the light theme and
 * #020617 in the dark one, so one dark theme serves both. Every colour is
 * Tailwind's 300 (or 200/400) tone and reads at WCAG AA or better on the
 * lighter of the two backgrounds, #0f172a:
 *   text #f1f5f9 16.3:1, comments #94a3b8 7.0:1, keywords #c4b5fd 9.7:1,
 *   strings #6ee7b7 11.7:1, escapes #fde68a 14.3:1, numbers #fcd34d 12.4:1,
 *   functions and keys #7dd3fc 10.7:1, types #f9a8d4 9.8:1,
 *   builtins and variables #fdba74 10.6:1, punctuation #cbd5e1 12.0:1,
 *   errors #fca5a5 9.4:1.
 */
.highlight { color: #f1f5f9; }

/* Comments */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .ch,
.highlight .cd, .highlight .cpf { color: #94a3b8; font-style: italic; }
.highlight .cp { color: #94a3b8; }

/* Keywords, operator words, true/false/null */
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr,
.highlight .kv, .highlight .kc, .highlight .ow { color: #c4b5fd; }

/* Strings and their delimiters */
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sa, .highlight .sb,
.highlight .sc, .highlight .dl, .highlight .sd, .highlight .sh, .highlight .sx,
.highlight .sr, .highlight .ss { color: #6ee7b7; }
/* Escapes and the braces of interpolation */
.highlight .se, .highlight .si { color: #fde68a; }

/* Numbers */
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo,
.highlight .mb, .highlight .mx, .highlight .il { color: #fcd34d; }

/* Functions, methods, attributes, JSON keys */
.highlight .nf, .highlight .fm, .highlight .na, .highlight .nl { color: #7dd3fc; }

/* Types, classes, namespaces, constants, exceptions */
.highlight .kt, .highlight .nc, .highlight .nn, .highlight .no, .highlight .ne,
.highlight .nd { color: #f9a8d4; }

/* Builtins, variables, shell options */
.highlight .nb, .highlight .bp, .highlight .nv, .highlight .vi, .highlight .vc,
.highlight .vg, .highlight .nt { color: #fdba74; }

/* Operators and punctuation */
.highlight .o, .highlight .p { color: #cbd5e1; }

.highlight .err { color: #fca5a5; }
