/* =========================================================
   prism-garden — syntax highlighting tuned to the alvaro-garden palette.
   Background is set by styles.css on <pre>; here we only style tokens.
   ========================================================= */

code[class*="language-"],
pre[class*="language-"] {
    color: var(--text-secondary);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    tab-size: 4;
    hyphens: none;
    background: transparent;
    text-shadow: none;
}

pre[class*="language-"] {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 28px 0;
}

:not(pre) > code[class*="language-"] {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

pre[class*="language-"] ::selection,
pre[class*="language-"]::selection {
    background: rgba(126, 231, 135, 0.15);
}

/* Tokens */
.token.comment,
.token.prolog,
.token.cdata {
    color: var(--text-disabled);
    font-style: italic;
}

.token.doctype,
.token.punctuation,
.token.operator { color: var(--text-muted); }

.token.keyword,
.token.tag,
.token.selector,
.token.important,
.token.deleted { color: #ff7b72; }

.token.string,
.token.char,
.token.attr-value,
.token.regex { color: #a5d6ff; }

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

.token.number,
.token.boolean,
.token.symbol,
.token.constant { color: #79c0ff; }

.token.builtin,
.token.atrule { color: #ffa657; }

.token.property,
.token.attr-name { color: var(--accent); }

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

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

.token.url { color: var(--accent); text-decoration: underline; }

.token.namespace { opacity: 0.7; }

.token.bold { font-weight: 500; }
.token.italic { font-style: italic; }
.token.entity { cursor: help; }

/* Line-numbers plugin (if enabled later) */
.line-numbers .line-numbers-rows {
    border-right: 1px solid var(--border-subtle);
}
.line-numbers-rows > span:before {
    color: var(--text-disabled);
}
