/* === PrismJS Theme === */
:root {
  --p-background: #ffffff;
  --p-text: #2e3440;
  --p-comment: #6a737d;
  --p-keyword: #d73a49;
  --p-string: #032f62;
  --p-function: #6f42c1;
  --p-tag: #22863a;
  --p-attr-name: #6f42c1;
  --p-attr-value: #032f62;
  --p-punctuation: #24292e;
  --p-class-name: #e36209;
  --p-operator: #d73a49;
  --p-number: #005cc5;
  --p-property: #005cc5;
  --p-selector: #22863a;
  --p-code-block-bg: #f6f8fa;
  --p-code-block-border: #e1e4e8;
}

html[data-theme='dark'] {
  --p-background: #0d1117;
  --p-text: #c9d1d9;
  --p-comment: #8b949e;
  --p-keyword: #ff7b72;
  --p-string: #a5d6ff;
  --p-function: #d2a8ff;
  --p-tag: #7ee787;
  --p-attr-name: #d2a8ff;
  --p-attr-value: #a5d6ff;
  --p-punctuation: #c9d1d9;
  --p-class-name: #ffa657;
  --p-operator: #ff7b72;
  --p-number: #79c0ff;
  --p-property: #79c0ff;
  --p-selector: #7ee787;
  --p-code-block-bg: #161b22;
  --p-code-block-border: #30363d;
}

code[class*='language-'],
pre[class*='language-'] {
  color: var(--p-text);
  background: var(--p-code-block-bg);
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  font-size: 0.9em;
  line-height: 1.28;
  tab-size: 4;
  hyphens: none;
}

pre[class*='language-'] {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  border: 1px solid var(--p-code-block-border);
  border-radius: 6px;
}

:not(pre) > code[class*='language-'],
pre[class*='language-'] {
  background: var(--p-code-block-bg);
}

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

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

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

.token.namespace {
  opacity: 0.7;
}

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

.token.number {
  color: var(--p-number);
}

.token.boolean,
.token.keyword {
  color: var(--p-keyword);
}

.token.attr-name {
  color: var(--p-attr-name);
}

.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--p-string);
}

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

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: var(--p-function);
}

.token.regex,
.token.important {
  color: var(--p-string);
}

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

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

.token.entity {
  cursor: help;
}

.language-markup .token.tag,
.language-markup .token.attr-name,
.language-markup .token.attr-value {
  color: var(--p-tag);
}

.language-css .token.selector {
  color: var(--p-selector);
}

.language-css .token.property {
  color: var(--p-property);
}

.language-javascript .token.function {
  color: var(--p-function);
}

.language-javascript .token.class-name {
  color: var(--p-class-name);
}
/* ===  Prettier Toggle Styles === */
.prettier-toggle {
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: 30px;
  right: 9px;
  z-index: 10;
}

.prettier-toggle span {
  display: inline-block;
  padding: 0px 4px;
  background: var(--p-background);
  border: 1px solid var(--p-border);
  color: var(--p-text);
  font-weight: normal;
  font-size: 14px;
  border-radius: 4px;
}

.prettier-toggle span.checked {
  background: #264f78;
  color: #ffffff;
  font-weight: bold;
}
.prettier-toggle span.checked.error {
  background: #db4c69;
}
