/* VS Code-style syntax highlighting theme */

.code-section pre[class*="language-"],
.code-section code[class*="language-"] {
    background: #1e1e1e !important;
    color: #d4d4d4;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 13.5px;
    line-height: 1.65;
    tab-size: 4;
    text-shadow: none;
}

.code-section pre {
    margin: 0 !important;
    padding: 16px !important;
}

.code-section pre.line-numbers {
    position: relative;
    padding: 16px 16px 16px 3.8em !important;
    counter-reset: linenumber;
}

.code-section pre.line-numbers > code {
    position: relative;
    white-space: pre;
    display: block;
}

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

.token.punctuation {
    color: #d4d4d4;
}

.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;
}

/* PHP specific */
.language-php .token.variable {
    color: #9cdcfe;
}

.language-php .token.function {
    color: #dcdcaa;
}

.language-php .token.keyword {
    color: #569cd6;
}

.language-php .token.string {
    color: #ce9178;
}

.language-php .token.number {
    color: #b5cea8;
}

/* JSON specific */
.language-json .token.property {
    color: #9cdcfe;
}

.language-json .token.string {
    color: #ce9178;
}

.language-json .token.number {
    color: #b5cea8;
}

.language-json .token.boolean,
.language-json .token.null {
    color: #569cd6;
}

/* Line numbers — color and vertical alignment only */
.code-section pre.line-numbers .line-numbers-rows {
    top: 16px;
    border-right-color: #3c3c3c;
}

.code-section pre.line-numbers .line-numbers-rows > span {
    line-height: 1.65;
    font-size: 13.5px;
}

.code-section pre.line-numbers .line-numbers-rows > span::before {
    color: #858585;
}

/* Selection color */
.code-section pre[class*="language-"] ::selection,
.code-section code[class*="language-"] ::selection {
    background: #264f78;
}

/* Scrollbar */
.code-section pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.code-section pre::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.code-section pre::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}

.code-section pre::-webkit-scrollbar-thumb:hover {
    background: #555;
}
