/* Prism theme for UserDocumentation (I-043): the App's tokens, so one stylesheet serves both themes.
   Prism writes only `token <type>` classes; every colour here is a --color-* / --text-* token of app.css, which flips
   with :root[data-theme], so toggling the theme recolours highlighted code at once — no Prism re-highlight (Decision 13,
   Gotcha 4). Each hue is an App text ink, AA on --surface-code in both themes (measured in TASK_05, recorded in the
   VERIFICATION_REPORT). No colour literal in this file (design-lint shared-css-color-literal). */

code[class*="language-"],
pre[class*="language-"] {
    color: var(--text-code);
    background: none;
    font-family: var(--font-mono);
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

pre[class*="language-"] {
    padding: var(--space-md);
    margin: 0.5em 0;
    overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
    background: var(--surface-code);
}

:not(pre) > code[class*="language-"] {
    padding: 0.1em;
    border-radius: var(--radius-xs);
    white-space: normal;
}

.token.block-comment,
.token.cdata,
.token.comment,
.token.doctype,
.token.prolog {
    color: var(--text-muted);
}

.token.punctuation {
    color: var(--text-secondary);
}

.token.attr-name,
.token.deleted,
.token.namespace,
.token.tag {
    color: var(--color-tag-magenta-text);
}

.token.function-name {
    color: var(--color-primary-text);
}

.token.boolean,
.token.function,
.token.number {
    color: var(--color-tag-volcano-text);
}

.token.class-name,
.token.constant,
.token.property,
.token.symbol {
    color: var(--color-warning-light);
}

.token.atrule,
.token.builtin,
.token.important,
.token.keyword,
.token.selector {
    color: var(--color-accent-purple-light);
}

.token.attr-value,
.token.char,
.token.regex,
.token.string,
.token.variable {
    color: var(--color-success-light);
}

.token.entity,
.token.operator,
.token.url {
    color: var(--color-tag-cyan-text);
}

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

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

.token.entity {
    cursor: help;
}

.token.inserted {
    color: var(--color-success-light);
}
