/* Syntax Highlighting Theme - Gruvbox inspired */
/* Based on the site's color scheme */

code[class*="language-"],
pre[class*="language-"] {
  color: var(--fg);
  background: none;
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  font-size: 0.95em;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.5;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 1em;
  margin: 1.5em 0;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
}

:not(pre) > code[class*="language-"] {
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  white-space: normal;
  background: var(--panel);
}

/* Inline code */
:not(pre) > code {
  background: var(--panel);
  padding: 0.1em 0.3em;
  border-radius: 0.3em;
  font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

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

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

.token.namespace {
  opacity: 0.7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: #cc241d;
}

.token.boolean,
.token.number {
  color: #b16286;
}

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

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

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: #d65d0e;
}

.token.keyword {
  color: #cc241d;
  font-weight: bold;
}

.token.regex,
.token.important {
  color: #d65d0e;
}

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

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

.token.entity {
  cursor: help;
}

/* Line highlighting */
pre[data-line] {
  position: relative;
  padding-left: 3em;
}

pre[data-line] .line-highlight {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(204, 36, 29, 0.1);
  pointer-events: none;
  line-height: inherit;
  white-space: pre;
}
