/* Build-time syntax highlighting - matches design tokens */

pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1.25rem;
}

code.hljs {
    padding: 0.2em 0.4em;
}

/* Light mode */
.hljs {
    color: #2C1F1A;
    background: #FAFAF8;
}

.hljs-comment,
.hljs-quote {
    color: #8B6454;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
    color: #735345;
    font-weight: 600;
}

.hljs-string,
.hljs-attr,
.hljs-symbol,
.hljs-bullet,
.hljs-addition,
.hljs-template-variable,
.hljs-template-tag {
    color: #A47864;
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-link {
    color: #8B6454;
}

.hljs-name,
.hljs-tag,
.hljs-attribute {
    color: #5C4237;
}

.hljs-title,
.hljs-function,
.hljs-title.function_ {
    color: #47332B;
    font-weight: 600;
}

.hljs-built_in,
.hljs-selector-class,
.hljs-selector-id {
    color: #B99385;
}

.hljs-meta,
.hljs-subst {
    color: #735345;
}

.hljs-deletion {
    color: #c44;
}

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

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

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .hljs {
        color: #F0EEE9;
        background: #2A211D;
    }

    .hljs-comment,
    .hljs-quote {
        color: #8B6454;
    }

    .hljs-keyword,
    .hljs-selector-tag,
    .hljs-type {
        color: #CFB4A6;
        font-weight: 600;
    }

    .hljs-string,
    .hljs-attr,
    .hljs-symbol,
    .hljs-bullet,
    .hljs-addition,
    .hljs-template-variable,
    .hljs-template-tag {
        color: #B99385;
    }

    .hljs-number,
    .hljs-literal,
    .hljs-variable,
    .hljs-link {
        color: #CFB4A6;
    }

    .hljs-name,
    .hljs-tag,
    .hljs-attribute {
        color: #E0CFC5;
    }

    .hljs-title,
    .hljs-function,
    .hljs-title.function_ {
        color: #F0EEE9;
        font-weight: 600;
    }

    .hljs-built_in,
    .hljs-selector-class,
    .hljs-selector-id {
        color: #CFB4A6;
    }

    .hljs-meta,
    .hljs-subst {
        color: #B99385;
    }

    .hljs-deletion {
        color: #c44;
    }
}
