/**
 * Copyright (c) 2021, 2026 Contributors to the Eclipse Foundation
 *
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */
/* Mandatory styles. */

pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1em;
    font-family: Consolas, "Courier New", "DejaVu Sans Mono", monospace !important;
}

code.hljs {
    padding: 3px 5px;
    font-family: Consolas, "Courier New", "DejaVu Sans Mono", monospace !important;
}

/* Ensure Asciidoctor listing selectors also resolve to Consolas. */
pre.highlightjs,
pre.highlightjs>code,
.listingblock pre.highlightjs,
.listingblock pre.highlightjs>code {
    font-family: Consolas, "Courier New", "DejaVu Sans Mono", monospace !important;
}

/*
 * Eclipse-like defaults (similar to classic Xtext/Java editor colors):
 * - keywords: purple, bold
 * - comments: green
 * - strings: blue
 */

.hljs {
    background: #f7f7f8;
    color: #000000;
}

.hljs-comment,
.hljs-quote {
    color: #3f7f5f;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-meta-keyword {
    color: #7f0055;
    font-weight: 700;
}

.hljs-string,
.hljs-regexp,
.hljs-link,
.hljs-doctag {
    color: #2a00ff;
}

.hljs-number,
.hljs-meta,
.hljs-variable,
.hljs-template-variable,
.hljs-operator {
    color: #000000;
}

.hljs-type,
.hljs-title,
.hljs-title.class_,
.hljs-title.function_ {
    color: #000000;
    font-weight: 400;
}

.hljs-attr,
.hljs-property,
.hljs-params,
.hljs-attribute {
    color: #000000;
}

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

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