/*
 * Structure for code listings. Deliberately no colors.
 *
 * All coloring comes from the per-server Code Styles defaults, generated into a
 * <style> block by courses/templates/courses/code_styles_head.html. That tier is
 * seeded onto every server, so an admin reads the real values off the settings form
 * rather than a blank box standing for something hidden in this file. A color left
 * blank there means no color rule at all, and the code takes the surrounding text
 * color -- which is right in light and dark mode alike, as a fixed hex could not be.
 *
 * Two sources of markup are styled by that block:
 *
 * 1. Pandoc, for a language its highlighter knows (\begin{lstlisting}[language=Python]):
 *    <pre class="sourceCode python"><code> with skylighting's two-letter token classes.
 * 2. code_highlight.js, for a language defined only in the course's LaTeX preamble:
 *    <pre class="pn-code-hl"><code> with pn-tok-keyword / pn-tok-comment / pn-tok-string
 *    (and the same classes on an inline \lstinline <code class="pn-code-hl">).
 *
 * Token kinds neither tier styles (numbers, functions, types, variables, operators)
 * simply render as plain code, matching the restrained look of a hand-written
 * pseudocode listing.
 */

/* Empty line anchors pandoc emits before each line; keep link styling off them. */
.sourceCode a[aria-hidden="true"] {
    color: inherit;
    text-decoration: none;
}
