/* Custom Prism.js theme, tied to site CSS variables (light/dark via [data-theme]) */

code[class*="language-"],
pre[class*="language-"] {
  color: var(--text-color);
  background: none;
  font-family: var(--font-mono);
  text-shadow: none;
  hyphens: none;
}

/* Let .article-content pre keep its own background/border/padding */
.article-content pre[class*="language-"] {
  background: var(--surface-bg);
  margin: 24px 0;
}

.article-content pre[class*="language-"] code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
}

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

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

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

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--code-string);
}

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

.token.atrule,
.token.attr-value,
.token.keyword {
  color: var(--code-keyword);
}

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

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

.token.regex,
.token.important,
.token.variable {
  color: var(--code-class);
}

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

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

/* Minimal styling for splunk (no native Prism grammar) — keep it plain and readable */
code.language-splunk {
  color: var(--text-color);
  font-family: var(--font-mono);
}
