/*!
 * Custom Prism.js theme aligned with site design
 * Based on PrismJS 1.29.0 default theme (MIT License)
 */
code[class*="language-"],
pre[class*="language-"] {
    color: #212529;
    background: transparent;
    font-family: "Fira Code", "Source Code Pro", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    tab-size: 4;
    hyphens: none;
}

pre[class*="language-"] {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 14px 16px;
    margin: 1.25rem 0;
    overflow-x: auto;
    position: relative;
}

:not(pre) > code[class*="language-"] {
    padding: 0.2em 0.4em;
    border-radius: 0.3em;
    background: rgba(33, 37, 41, 0.08);
    color: #d63384;
}

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6c757d;
}

.token.punctuation {
    color: #495057;
}

.token.namespace {
    opacity: 0.7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #d63384;
}

.token.boolean,
.token.number {
    color: #0d6efd;
}

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

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

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

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

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

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

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

.token.entity {
    cursor: help;
}

.line-numbers .line-numbers-rows {
    border-right: 1px solid #dee2e6;
    background: transparent;
}

.line-numbers-rows > span:before {
    color: #adb5bd;
}

.code-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    background: rgba(33, 37, 41, 0.85);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

pre[class*="language-"]:hover .code-copy-btn,
pre[class*="language-"] .code-copy-btn:focus {
    opacity: 1;
}

.code-copy-btn:focus {
    outline: 2px solid #4dabf7;
    outline-offset: 2px;
}

.code-copy-btn.is-copied {
    background: rgba(25, 135, 84, 0.95);
}

.code-copy-btn.is-error {
    background: rgba(220, 53, 69, 0.95);
}

