/* Prism.js theme for dufs — adapts to light/dark mode */

code[class*="language-"],
pre[class*="language-"] {
  color: #24292e;
  background: none;
  text-shadow: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.6;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 0;
  margin: 0;
  overflow: auto;
}

:not(pre) > code[class*="language-"] {
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  white-space: normal;
}

/* Light mode tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata { color: #6a737d; }

.token.punctuation { color: #24292e; }

.token.namespace { opacity: 0.7; }

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted { color: #005cc5; }

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted { color: #22863a; }

.token.operator,
.token.entity,
.token.url { color: #d73a49; background: transparent; }

.token.atrule,
.token.attr-value,
.token.keyword { color: #d73a49; }

.token.function,
.token.class-name { color: #6f42c1; }

.token.regex,
.token.important,
.token.variable { color: #e36209; }

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

.token.entity { cursor: help; }

/* Dark mode tokens */
@media (prefers-color-scheme: dark) {
  code[class*="language-"],
  pre[class*="language-"] { color: #e1e4e8; }

  .token.comment,
  .token.prolog,
  .token.doctype,
  .token.cdata { color: #8b949e; }

  .token.punctuation { color: #c9d1d9; }

  .token.namespace { opacity: 0.7; }

  .token.property,
  .token.tag,
  .token.boolean,
  .token.number,
  .token.constant,
  .token.symbol,
  .token.deleted { color: #79c0ff; }

  .token.selector,
  .token.attr-name,
  .token.string,
  .token.char,
  .token.builtin,
  .token.inserted { color: #a5d6ff; }

  .token.operator,
  .token.entity,
  .token.url { color: #ff7b72; background: transparent; }

  .token.atrule,
  .token.attr-value,
  .token.keyword { color: #ff7b72; }

  .token.function,
  .token.class-name { color: #d2a8ff; }

  .token.regex,
  .token.important,
  .token.variable { color: #ffa657; }
}
