/* ==========================================================================
   Prism.js Syntax Highlighting — self-hosted, adapted to the GhostWriter
   design system (Issue #2). Token colours follow Prism's light "Default"
   theme so code blocks stay consistent with the theme's fixed Light Mode.
   Paired JS bundle: assets/js/prism.js (Prism 1.29.0, MIT).
   ========================================================================== */

code[class*="language-"],
pre[class*="language-"] {
    color: var(--color-text-primary);
    background: none;
    font-family: var(--font-mono);
    font-size: 0.9em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.6;
    -moz-tab-size: 4;
    tab-size: 4;
    hyphens: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

pre[class*="language-"] {
    margin: 0;
    padding: 0;
    overflow: auto;
}

pre[class*="language-"]::selection,
pre[class*="language-"] ::selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection {
    text-shadow: none;
    background: #b3d4fc;
}

/* Inline `code` in copy where a language class slips through */
:not(pre) > code[class*="language-"] {
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
    white-space: normal;
    background: var(--color-bg-secondary);
}

/* Token colours — Prism Default (light) palette
   ---------------------------------------------------------------------- */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata      { color: #708090; }
.token.punctuation { color: #7a8494; }
.token.namespace   { opacity: 0.7; }

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

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

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

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

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

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

.token.important,
.token.bold        { font-weight: 700; }
.token.italic      { font-style: italic; }
.token.entity      { cursor: help; }
