/* GitHub syntax highlighting */
.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  color: var(--color-fg-default);
  background: var(--color-canvas-subtle);
}

.hljs-comment,
.hljs-quote {
  color: #6a737d;
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
  color: #d73a49;
  font-weight: bold;
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
  color: #005cc5;
}

.hljs-string,
.hljs-doctag {
  color: #032f62;
}

.hljs-title,
.hljs-section,
.hljs-selector-id {
  color: #6f42c1;
  font-weight: bold;
}

.hljs-type,
.hljs-class .hljs-title {
  color: #6f42c1;
}

.hljs-tag,
.hljs-name,
.hljs-attribute {
  color: #22863a;
  font-weight: normal;
}

.hljs-regexp,
.hljs-link {
  color: #032f62;
}

.hljs-symbol,
.hljs-bullet {
  color: #e36209;
}

.hljs-built_in,
.hljs-builtin-name {
  color: #005cc5;
}

.hljs-meta {
  color: #005cc5;
}

.hljs-deletion {
  color: #b31d28;
  background-color: #ffeef0;
}

.hljs-addition {
  color: #22863a;
  background-color: #f0fff4;
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: bold;
}

/* Dark theme */
[data-color-mode="dark"] .hljs-comment,
[data-color-mode="dark"] .hljs-quote {
  color: #8b949e;
}

[data-color-mode="dark"] .hljs-keyword,
[data-color-mode="dark"] .hljs-selector-tag,
[data-color-mode="dark"] .hljs-subst {
  color: #ff7b72;
}

[data-color-mode="dark"] .hljs-number,
[data-color-mode="dark"] .hljs-literal,
[data-color-mode="dark"] .hljs-variable,
[data-color-mode="dark"] .hljs-template-variable,
[data-color-mode="dark"] .hljs-tag .hljs-attr {
  color: #79c0ff;
}

[data-color-mode="dark"] .hljs-string,
[data-color-mode="dark"] .hljs-doctag {
  color: #a5d6ff;
}

[data-color-mode="dark"] .hljs-title,
[data-color-mode="dark"] .hljs-section,
[data-color-mode="dark"] .hljs-selector-id {
  color: #d2a8ff;
}

[data-color-mode="dark"] .hljs-type,
[data-color-mode="dark"] .hljs-class .hljs-title {
  color: #d2a8ff;
}

[data-color-mode="dark"] .hljs-tag,
[data-color-mode="dark"] .hljs-name,
[data-color-mode="dark"] .hljs-attribute {
  color: #7ee787;
}

[data-color-mode="dark"] .hljs-regexp,
[data-color-mode="dark"] .hljs-link {
  color: #a5d6ff;
}

[data-color-mode="dark"] .hljs-symbol,
[data-color-mode="dark"] .hljs-bullet {
  color: #ffa657;
}

[data-color-mode="dark"] .hljs-built_in,
[data-color-mode="dark"] .hljs-builtin-name {
  color: #ffa657;
}

[data-color-mode="dark"] .hljs-meta {
  color: #79c0ff;
}

[data-color-mode="dark"] .hljs-deletion {
  color: #ffdcd7;
  background-color: #67060c;
}

[data-color-mode="dark"] .hljs-addition {
  color: #aff5b4;
  background-color: #033a16;
}
