/*
  Syntax highlighting for Prism.js (assets/js/prism.js, 1.30.0).
  A plum take on the classic dark "Tomorrow Night" layout: the colours
  are the --color-code-* tokens defined in index.css, where their
  contrast against the code block surfaces is documented. Comments are
  set in italic as well as a muted colour, so they stand apart even for
  readers who can't tell the hues apart.
*/
code[class*="language-"],
pre[class*="language-"] {
  color: var(--color-code-text);
  font-family: var(--font-family-mono);
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  tab-size: 4;
  hyphens: none;
}

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

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

/*
  Only the keyword itself: nginx `directive` and Dockerfile `instruction`
  tokens wrap the whole line (keyword plus its values), so colouring them
  would paint the values too.
*/
.token.keyword,
.token.important,
.token.atrule,
.token.rule {
  color: var(--color-code-keyword);
}

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

.token.string,
.token.char,
.token.attr-value,
.token.attr-value .punctuation,
.token.regex,
.token.inserted {
  color: var(--color-code-string);
}

.token.number,
.token.boolean,
.token.constant,
.token.symbol,
.token.entity,
.token.attr-name,
.token.unit {
  color: var(--color-code-number);
}

.token.tag,
.token.key,
.token.variable,
.token.selector,
.token.parameter,
.token.deleted,
.token.section,
.token.namespace {
  color: var(--color-code-key);
}

.token.property,
.token.class-name,
.token.url,
.token.scope,
.token.label {
  color: var(--color-code-property);
}

.token.operator,
.token.shebang,
.token.title {
  color: var(--color-code-operator);
}

.token.bold {
  font-weight: 700;
}
.token.italic {
  font-style: italic;
}
