/**
 * Prism.js Syntax Theme
 * Replaces Prism's stock stylesheet. Token colours come from the --code-*
 * custom properties in theme-base.css, so they follow light and dark mode
 * without a second set of rules.
 *
 * @package Baffled_Architect
 * @since 2.2.0
 */

code[class*="language-"],
pre[class*="language-"] {
  color: var(--code-text);
  font-family: var(--font-code);
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  tab-size: 4;
  hyphens: none;
  text-shadow: none;
}

pre[class*="language-"] {
  margin: var(--spacing-lg) 0;
  overflow: auto;
}

:not(pre) > code[class*="language-"] {
  white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--code-comment);
}

.token.punctuation {
  color: var(--code-punctuation);
}

.token.namespace {
  opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--code-constant);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--code-string);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--code-operator);
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: var(--code-keyword);
}

.token.function,
.token.class-name {
  color: var(--code-function);
}

.token.regex,
.token.important,
.token.variable {
  color: var(--code-variable);
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

.line-numbers .line-numbers-rows {
  border-right-color: var(--color-border);
}
