/*
 * Prism syntax highlighting overrides for the lesson palette.
 *
 * The Tomorrow theme is loaded from CDN in the lesson HTML <head>:
 *
 *   <link rel="stylesheet"
 *         href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css" />
 *
 * This file is loaded after it via <link rel="stylesheet" href="/assets/prism.css">
 * and tightens the background and font to match lesson.css. Token colors
 * are inherited from Tomorrow.
 */

/* Match the lesson code-bg and remove Prism's default text-shadow. */
pre[class*="language-"],
code[class*="language-"] {
  background: var(--code-bg);
  color: var(--text);
  text-shadow: none;
  font-family:
    "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* Tomorrow's default selection color is fine, but ensure it works on dark. */
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
  background: rgba(246, 130, 31, 0.25);
}
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
  background: rgba(246, 130, 31, 0.25);
}
