/* ============================================================
   Prism.js custom theme for LLMCourse textbook
   Based on Catppuccin Mocha palette to match book.css
   --code-bg: #1e1e2e   --code-text: #cdd6f4
   Accent: #e94560 (coral)  Navy: #1a1a2e
   ============================================================ */

code[class*="language-"],
pre[class*="language-"] {
    color: #cdd6f4;
    background: none;
    font-family: 'Consolas', 'Fira Code', monospace;
    font-size: 0.92rem;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.6;
    tab-size: 4;
    hyphens: none;
}

pre[class*="language-"] {
    padding: 1.5rem;
    margin: 1.2rem 0;
    overflow: auto;
    border-radius: 8px;
    background: #1e1e2e;
}

:not(pre) > code[class*="language-"] {
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    white-space: normal;
    background: #1e1e2e;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #7f849c;
    font-style: italic;
}

.token.punctuation {
    color: #bac2de;
}

.token.namespace {
    opacity: 0.8;
}

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

.token.deleted {
    color: #f38ba8;
}

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

.token.inserted {
    color: #a6e3a1;
}

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

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

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

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

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

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

.token.entity {
    cursor: help;
}

/* Decorator support (Python @decorators) */
.token.decorator,
.token.annotation {
    color: #f9e2af;
}

/* Triple-quoted strings */
.token.triple-quoted-string {
    color: #a6e3a1;
}
