/**
 * spindle-light theme
 * Based on A11y light theme: https://github.com/highlightjs/highlight.js/blob/main/src/styles/a11y-light.css
 * @author: ericwbailey
 */

/* NOTE: This CSS requires ameba-color-palette.css https://github.com/openameba/ameba-color-palette.css */

.hljs-comment,
.hljs-quote {
  color: var(--gray-60-alpha);
}

.hljs-deletion,
.hljs-name,
.hljs-regexp,
.hljs-selector-class,
.hljs-selector-id,
.hljs-tag,
.hljs-template-variable,
.hljs-variable {
  color: var(--caution-red-100);
}

.hljs-built_in,
.hljs-builtin-name,
.hljs-link,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-params,
.hljs-type {
  color: #831443;
}

.hljs-attr,
.hljs-attribute {
  color: #831443;
}

.hljs-addition,
.hljs-bullet,
.hljs-string,
.hljs-symbol {
  color: var(--primary-green-80);
}

.hljs-section,
.hljs-title {
  color: #3a71a0;
}

.hljs-keyword,
.hljs-selector-tag {
  color: #9d00cf;
}

.hljs {
  /**
   * Set background color directly to check the contrast ratio with acot.
   * - foreground: --gray-5-alpha
   * - background: --white-100
   */
  background: rgb(246, 246, 246);
  color: var(--gray-70-alpha);
  display: block;
  overflow-x: auto;
  padding: 0.5em;
}

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

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

@media screen and (-ms-high-contrast: active) {
  .hljs-addition,
  .hljs-attribute,
  .hljs-built_in,
  .hljs-builtin-name,
  .hljs-bullet,
  .hljs-comment,
  .hljs-link,
  .hljs-literal,
  .hljs-meta,
  .hljs-number,
  .hljs-params,
  .hljs-quote,
  .hljs-string,
  .hljs-symbol,
  .hljs-type {
    color: highlight;
  }

  .hljs-keyword,
  .hljs-selector-tag {
    font-weight: 700;
  }
}
