/* Colors of the code blocks highlighted by Prismizor. They follow the color mode of the page,
   which the theme files of Prism.js can't do when the user picks the mode by hand. */
:root {
    --code-text: light-dark(#1f1f1f, #d4d4d4);
    --code-comment: light-dark(#008000, #6a9955);
    --code-keyword: light-dark(#0000ff, #569cd6);
    --code-string: light-dark(#a31515, #ce9178);
    --code-number: light-dark(#098658, #b5cea8);
    --code-function: light-dark(#795e26, #dcdcaa);
    --code-type: light-dark(#267f99, #4ec9b0);
    --code-variable: light-dark(#001080, #9cdcfe);
    --code-operator: light-dark(#5a5a5a, #d4d4d4);
}

@property --code-text { syntax: "<color>"; inherits: true; initial-value: #1f1f1f; }
@property --code-comment { syntax: "<color>"; inherits: true; initial-value: #008000; }
@property --code-keyword { syntax: "<color>"; inherits: true; initial-value: #0000ff; }
@property --code-string { syntax: "<color>"; inherits: true; initial-value: #a31515; }
@property --code-number { syntax: "<color>"; inherits: true; initial-value: #098658; }
@property --code-function { syntax: "<color>"; inherits: true; initial-value: #795e26; }
@property --code-type { syntax: "<color>"; inherits: true; initial-value: #267f99; }
@property --code-variable { syntax: "<color>"; inherits: true; initial-value: #001080; }
@property --code-operator { syntax: "<color>"; inherits: true; initial-value: #5a5a5a; }

pre[class*="language-"] {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: .5rem;
    background: var(--bg-code);
    color: var(--code-text);
    font-family: var(--font-mono);
    font-size: .9rem;
    line-height: 1.5;
    tab-size: 4;
}

pre[class*="language-"] code {
    font-size: inherit;
    background: none;
    padding: 0;
}

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

.token.keyword,
.token.boolean,
.token.important,
.token.atrule {
    color: var(--code-keyword);
}

.token.string,
.token.char,
.token.attr-value,
.token.regex {
    color: var(--code-string);
}

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

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

.token.class-name,
.token.tag,
.token.selector {
    color: var(--code-type);
}

.token.variable,
.token.property,
.token.attr-name,
.token.parameter {
    color: var(--code-variable);
}

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