/* PrismJS - Minimal syntax highlighting styles */
/* Optimized for GitHub Code Viewer Plugin */

/* Base styles */
code[class*="language-"],
pre[class*="language-"] {
    color: #d4d4d4;
    background: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 13px;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.6;
    tab-size: 4;
    hyphens: none;
}

/* Token colors - Dark theme default */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6a9955;
}

.token.punctuation {
    color: #d4d4d4;
}

.token.namespace {
    opacity: .7;
}

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

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

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

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

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

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

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

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

.token.entity {
    cursor: help;
}

/* Light theme overrides */
.maple-code-blocks[data-theme="light"] .token.comment,
.maple-code-blocks[data-theme="light"] .token.prolog,
.maple-code-blocks[data-theme="light"] .token.doctype,
.maple-code-blocks[data-theme="light"] .token.cdata {
    color: #008000;
}

.maple-code-blocks[data-theme="light"] .token.punctuation {
    color: #000000;
}

.maple-code-blocks[data-theme="light"] .token.property,
.maple-code-blocks[data-theme="light"] .token.tag,
.maple-code-blocks[data-theme="light"] .token.boolean,
.maple-code-blocks[data-theme="light"] .token.number,
.maple-code-blocks[data-theme="light"] .token.constant,
.maple-code-blocks[data-theme="light"] .token.symbol {
    color: #098658;
}

.maple-code-blocks[data-theme="light"] .token.selector,
.maple-code-blocks[data-theme="light"] .token.attr-name,
.maple-code-blocks[data-theme="light"] .token.string,
.maple-code-blocks[data-theme="light"] .token.char,
.maple-code-blocks[data-theme="light"] .token.builtin,
.maple-code-blocks[data-theme="light"] .token.inserted {
    color: #a31515;
}

.maple-code-blocks[data-theme="light"] .token.operator,
.maple-code-blocks[data-theme="light"] .token.entity,
.maple-code-blocks[data-theme="light"] .token.url,
.maple-code-blocks[data-theme="light"] .language-css .token.string,
.maple-code-blocks[data-theme="light"] .style .token.string {
    color: #000000;
}

.maple-code-blocks[data-theme="light"] .token.atrule,
.maple-code-blocks[data-theme="light"] .token.attr-value,
.maple-code-blocks[data-theme="light"] .token.keyword {
    color: #0000ff;
}

.maple-code-blocks[data-theme="light"] .token.function {
    color: #795e26;
}

.maple-code-blocks[data-theme="light"] .token.class-name {
    color: #267f99;
}

.maple-code-blocks[data-theme="light"] .token.regex,
.maple-code-blocks[data-theme="light"] .token.important,
.maple-code-blocks[data-theme="light"] .token.variable {
    color: #e90;
}

/* Line highlighting */
.line-highlight {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 1em;
    background: linear-gradient(to right, rgba(255, 255, 255, .1) 70%, rgba(255, 255, 255, 0));
    pointer-events: none;
    line-height: inherit;
    white-space: pre;
}

/* Selection styling */
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection {
    text-shadow: none;
    background: #264f78;
}

pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
    text-shadow: none;
    background: #264f78;
}

/* Light theme selection */
.maple-code-blocks[data-theme="light"] pre[class*="language-"]::selection,
.maple-code-blocks[data-theme="light"] pre[class*="language-"] ::selection,
.maple-code-blocks[data-theme="light"] code[class*="language-"]::selection,
.maple-code-blocks[data-theme="light"] code[class*="language-"] ::selection {
    background: #add6ff;
}
