/* Syntax highlighting — uses theme CSS variables for adaptability */

code[class*="language-"],
pre[class*="language-"] {
  color: var(--text-primary);
  font-family: 'JetBrains Mono', 'Space Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  tab-size: 2;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  -moz-hyphens: none;
  hyphens: none;
}

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

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

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

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

[data-theme="light"] .token.property,
[data-theme="light"] .token.tag,
[data-theme="light"] .token.boolean,
[data-theme="light"] .token.number,
[data-theme="light"] .token.constant,
[data-theme="light"] .token.symbol,
[data-theme="light"] .token.deleted {
  color: #0550ae;
}

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

[data-theme="light"] .token.selector,
[data-theme="light"] .token.attr-name,
[data-theme="light"] .token.string,
[data-theme="light"] .token.char,
[data-theme="light"] .token.builtin,
[data-theme="light"] .token.inserted {
  color: #0a3069;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #79c0ff;
}

[data-theme="light"] .token.operator,
[data-theme="light"] .token.entity,
[data-theme="light"] .token.url,
[data-theme="light"] .language-css .token.string,
[data-theme="light"] .style .token.string {
  color: #0550ae;
}

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

[data-theme="light"] .token.atrule,
[data-theme="light"] .token.attr-value,
[data-theme="light"] .token.keyword {
  color: #cf222e;
}

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

[data-theme="light"] .token.function,
[data-theme="light"] .token.class-name {
  color: #8250df;
}

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

[data-theme="light"] .token.regex,
[data-theme="light"] .token.important,
[data-theme="light"] .token.variable {
  color: #953800;
}

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

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