/* Syntax Highlighting for Code Blocks */
/* Based on GitHub-style syntax highlighting */

.highlight {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    margin: 1em 0;
}

.highlight pre {
    margin: 0;
    background: transparent;
    border: none;
    padding: 0;
}

/* Token colors */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6a737d;
    font-style: italic;
}

.token.punctuation {
    color: #24292e;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #005cc5;
}

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

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

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #d73a49;
}

.token.function,
.token.class-name {
    color: #6f42c1;
}

.token.regex,
.token.important,
.token.variable {
    color: #e36209;
}

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

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

.token.entity {
    cursor: help;
}

/* Line numbers */
.line-numbers .line-numbers-rows {
    border-right: 1px solid #d1d5da;
    padding-right: 8px;
    margin-right: 8px;
    user-select: none;
}

.line-numbers-rows > span {
    display: block;
    color: #6a737d;
}

/* Language badge */
.highlight[data-language]::before {
    content: attr(data-language);
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    background: #0366d6;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
}
