/* highlight.js — theme-aware (dark default, light override), matches site vars */

.prose pre code.hljs {
  padding: 0;
  background: transparent;
}

.hljs {
  color: #c9d1d9;
}

/* dark palette (default) */
.hljs-comment,
.hljs-quote {
  color: #8b949e;
  font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-doctag,
.hljs-formula {
  color: #ff7b72;
}
.hljs-section,
.hljs-selector-id,
.hljs-title.class_,
.hljs-title.id_ {
  color: #ffa657;
}
.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-attribute,
.hljs-meta .hljs-string {
  color: #a5d6ff;
}
.hljs-number,
.hljs-variable,
.hljs-template-variable,
.hljs-type,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
  color: #79c0ff;
}
.hljs-symbol,
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-literal {
  color: #d2a8ff;
}
.hljs-title,
.hljs-title.function_,
.hljs-name {
  color: #7ee787;
}
.hljs-built_in,
.hljs-class .hljs-title {
  color: #ffa657;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: 600;
}
.hljs-deletion {
  color: #ffdcd7;
}

/* light palette */
[data-theme="light"] .hljs {
  color: #24292f;
}
[data-theme="light"] .hljs-comment,
[data-theme="light"] .hljs-quote {
  color: #6e7781;
}
[data-theme="light"] .hljs-keyword,
[data-theme="light"] .hljs-selector-tag,
[data-theme="light"] .hljs-doctag,
[data-theme="light"] .hljs-formula {
  color: #cf222e;
}
[data-theme="light"] .hljs-section,
[data-theme="light"] .hljs-selector-id,
[data-theme="light"] .hljs-title.class_,
[data-theme="light"] .hljs-title.id_ {
  color: #a35200;
}
[data-theme="light"] .hljs-string,
[data-theme="light"] .hljs-regexp,
[data-theme="light"] .hljs-addition,
[data-theme="light"] .hljs-attribute,
[data-theme="light"] .hljs-meta .hljs-string {
  color: #0a3069;
}
[data-theme="light"] .hljs-number,
[data-theme="light"] .hljs-variable,
[data-theme="light"] .hljs-template-variable,
[data-theme="light"] .hljs-type,
[data-theme="light"] .hljs-selector-class,
[data-theme="light"] .hljs-selector-attr,
[data-theme="light"] .hljs-selector-pseudo {
  color: #0550ae;
}
[data-theme="light"] .hljs-symbol,
[data-theme="light"] .hljs-bullet,
[data-theme="light"] .hljs-link,
[data-theme="light"] .hljs-meta,
[data-theme="light"] .hljs-literal {
  color: #8250df;
}
[data-theme="light"] .hljs-title,
[data-theme="light"] .hljs-title.function_,
[data-theme="light"] .hljs-name {
  color: #116329;
}
[data-theme="light"] .hljs-built_in,
[data-theme="light"] .hljs-class .hljs-title {
  color: #a35200;
}
[data-theme="light"] .hljs-deletion {
  color: #82071e;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hljs {
    color: #24292f;
  }
  :root:not([data-theme="dark"]) .hljs-comment,
  :root:not([data-theme="dark"]) .hljs-quote {
    color: #6e7781;
  }
  :root:not([data-theme="dark"]) .hljs-keyword,
  :root:not([data-theme="dark"]) .hljs-selector-tag,
  :root:not([data-theme="dark"]) .hljs-doctag,
  :root:not([data-theme="dark"]) .hljs-formula {
    color: #cf222e;
  }
  :root:not([data-theme="dark"]) .hljs-section,
  :root:not([data-theme="dark"]) .hljs-selector-id,
  :root:not([data-theme="dark"]) .hljs-title.class_,
  :root:not([data-theme="dark"]) .hljs-title.id_ {
    color: #a35200;
  }
  :root:not([data-theme="dark"]) .hljs-string,
  :root:not([data-theme="dark"]) .hljs-regexp,
  :root:not([data-theme="dark"]) .hljs-addition,
  :root:not([data-theme="dark"]) .hljs-attribute,
  :root:not([data-theme="dark"]) .hljs-meta .hljs-string {
    color: #0a3069;
  }
  :root:not([data-theme="dark"]) .hljs-number,
  :root:not([data-theme="dark"]) .hljs-variable,
  :root:not([data-theme="dark"]) .hljs-template-variable,
  :root:not([data-theme="dark"]) .hljs-type,
  :root:not([data-theme="dark"]) .hljs-selector-class,
  :root:not([data-theme="dark"]) .hljs-selector-attr,
  :root:not([data-theme="dark"]) .hljs-selector-pseudo {
    color: #0550ae;
  }
  :root:not([data-theme="dark"]) .hljs-symbol,
  :root:not([data-theme="dark"]) .hljs-bullet,
  :root:not([data-theme="dark"]) .hljs-link,
  :root:not([data-theme="dark"]) .hljs-meta,
  :root:not([data-theme="dark"]) .hljs-literal {
    color: #8250df;
  }
  :root:not([data-theme="dark"]) .hljs-title,
  :root:not([data-theme="dark"]) .hljs-title.function_,
  :root:not([data-theme="dark"]) .hljs-name {
    color: #116329;
  }
  :root:not([data-theme="dark"]) .hljs-built_in,
  :root:not([data-theme="dark"]) .hljs-class .hljs-title {
    color: #a35200;
  }
  :root:not([data-theme="dark"]) .hljs-deletion {
    color: #82071e;
  }
}
