/* ============================================================
   prism-vs-light.css
   Visual Studio "Light" (a.k.a. VS Code Light+) palette for
   Prism.js syntax highlighting, scoped under .chm-api-content
   so only the CHM-style API documentation pages are affected.

   Token colours are taken from the Visual Studio Light theme:
     keyword           #0000ff
     class / type      #267f99
     string / char     #a31515
     comment           #008000 (italic)
     number            #098658
     operator / punct  #000000
     function          #795e26
     XAML attr name    #ff0000
     XAML attr value   #0000ff
     XAML tag name     #800000
   ============================================================ */

/* ---------- Base <pre> / <code> Prism container ------------- */

/* Prism wraps the tokenised source in <code class="language-xxx">.
   We deliberately do NOT restyle the <pre> wrapper here - the
   existing chm-style-api.css already gives it the faint #f5f7fa
   background, border and left rule. */

.chm-api-content pre code[class*="language-"],
.chm-api-content code[class*="language-"] {
    color: #1f1f1f;
    background: none;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre-wrap;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    tab-size: 4;
    hyphens: none;
    direction: ltr;
    text-shadow: none;
}

/* Selection highlight inside Prism-tokenised code. */
.chm-api-content pre code[class*="language-"]::selection,
.chm-api-content pre code[class*="language-"] *::selection,
.chm-api-content code[class*="language-"]::selection,
.chm-api-content code[class*="language-"] *::selection {
    background: #add6ff;
    text-shadow: none;
}

/* ---------- Token colours - Visual Studio Light palette ----- */

/* Comments - green, italic, slightly muted. */
.chm-api-content .token.comment,
.chm-api-content .token.prolog,
.chm-api-content .token.doctype,
.chm-api-content .token.cdata {
    color: #008000;
    font-style: italic;
}

/* Punctuation and operators - plain black. */
.chm-api-content .token.punctuation,
.chm-api-content .token.operator {
    color: #000000;
}

/* Numbers - dark green. */
.chm-api-content .token.number,
.chm-api-content .token.boolean,
.chm-api-content .token.constant,
.chm-api-content .token.symbol {
    color: #098658;
}

/* Strings - red-brown. */
.chm-api-content .token.string,
.chm-api-content .token.char,
.chm-api-content .token.inserted {
    color: #a31515;
}

/* Keywords - classic VS blue. */
.chm-api-content .token.keyword,
.chm-api-content .token.atrule,
.chm-api-content .token.important {
    color: #0000ff;
}

/* Class names / types - teal. */
.chm-api-content .token.class-name,
.chm-api-content .token.builtin,
.chm-api-content .token.type {
    color: #267f99;
}

/* Function names / method calls - mustard brown. */
.chm-api-content .token.function {
    color: #795e26;
}

/* Variables, properties, parameters - leave dark. */
.chm-api-content .token.variable,
.chm-api-content .token.property,
.chm-api-content .token.parameter {
    color: #1f1f1f;
}

/* Regex / URL / generics - default dark. */
.chm-api-content .token.regex,
.chm-api-content .token.url,
.chm-api-content .token.generic-method {
    color: #811f3f;
}

/* Namespace - dark grey. */
.chm-api-content .token.namespace {
    color: #1f1f1f;
    opacity: 1;
}

/* ---------- XAML / XML-specific tokens (prism-markup) ------- */

.chm-api-content .token.tag,
.chm-api-content .token.tag .token.tag,
.chm-api-content .token.tag .token.punctuation {
    color: #800000;
}

.chm-api-content .token.attr-name {
    color: #ff0000;
}

.chm-api-content .token.attr-value,
.chm-api-content .token.attr-value .token.punctuation,
.chm-api-content .token.attr-value .token.attr-equals {
    color: #0000ff;
}

/* Element content text and CDATA inside markup - dark. */
.chm-api-content .token.tag .token.attr-value .token.punctuation.attr-equals {
    color: #000000;
}

/* ---------- Bold / italic helpers (some Prism components) --- */

.chm-api-content .token.bold {
    font-weight: bold;
}
.chm-api-content .token.italic {
    font-style: italic;
}
.chm-api-content .token.entity {
    cursor: help;
}
