/* afflicted.sh syntax highlighting — green-on-black, matches blog.css aesthetic.
 * Token taxonomy compatible with Prism.js. Hand-tuned phosphor-CRT palette. */

/* base block — overrides blog.css pre/code defaults to keep consistent dimensions */
pre[class*="language-"] {
    background: linear-gradient(#020 0%, #000 100%);
    color: #afa;
    border: 1px dashed #0f0;
    padding: 10px 14px;
    overflow-x: auto;
    white-space: pre;
    font-size: 13px;
    line-height: 1.5;
    font-family: monospace;
    margin: 0.8em 0;
    text-shadow: none;
}
code[class*="language-"] {
    color: #afa;
    background: transparent;
    border: none;
    padding: 0;
    font-family: monospace;
}

/* token colors — phosphor green palette */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata        { color: #6a6; font-style: italic; }
.token.punctuation  { color: #6f6; }

.token.namespace    { opacity: 0.7; }

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

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

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

.token.atrule,
.token.attr-value,
.token.keyword      { color: #0f0; font-weight: bold; }

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

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

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

/* bash-specific */
.language-bash .token.function     { color: #fff; }
.language-bash .token.parameter,
.language-bash .token.variable     { color: #cfc; }
.language-bash .token.builtin      { color: #0f0; font-weight: bold; }

/* C-specific */
.language-c .token.macro,
.language-c .token.directive       { color: #afa; }
.language-c .token.directive .token.keyword { color: #afa; }

/* python-specific */
.language-python .token.decorator,
.language-python .token.decorator-name { color: #fff; }
.language-python .token.builtin    { color: #cfc; }

/* download-bar above each pre */
.code-block { margin: 0.8em 0; }
.code-bar {
    background: #020;
    border: 1px dashed #0f0;
    border-bottom: none;
    padding: 4px 14px;
    font-size: 12px;
    color: #6a6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.code-bar .filename { color: #afa; }
.code-bar a { color: #0f0; }
.code-block pre[class*="language-"] {
    margin-top: 0;
    border-top-style: solid;
}
