/* ============================================================
   Pygments syntax highlighting — tuned for the Melov theme
   ============================================================ */

.highlight {
    background: var(--bg-code);
    border-radius: 6px;
}
.highlight .hll { background: var(--accent-bg); }

/* base token colors (light) */
.highlight .c { color: #8a8f98; font-style: italic; }            /* Comment */
.highlight .k { color: #a626a4; font-weight: 600; }              /* Keyword */
.highlight .l { color: #50a14f; }                                /* Literal */
.highlight .n { color: var(--text); }                            /* Name */
.highlight .o { color: #3a6ea5; }                                /* Operator */
.highlight .p { color: var(--text); }                            /* Punctuation */
.highlight .cm { color: #8a8f98; font-style: italic; }           /* Comment.Multiline */
.highlight .cp { color: #8a8f98; font-style: italic; }           /* Comment.Preproc */
.highlight .c1 { color: #8a8f98; font-style: italic; }           /* Comment.Single */
.highlight .cs { color: #8a8f98; font-style: italic; }           /* Comment.Special */
.highlight .kc { color: #a626a4; font-weight: 600; }             /* Keyword.Constant */
.highlight .kd { color: #a626a4; font-weight: 600; }             /* Keyword.Declaration */
.highlight .kn { color: #a626a4; font-weight: 600; }             /* Keyword.Namespace */
.highlight .kp { color: #a626a4; }                               /* Keyword.Pseudo */
.highlight .kr { color: #a626a4; font-weight: 600; }             /* Keyword.Reserved */
.highlight .kt { color: #a626a4; font-weight: 600; }             /* Keyword.Type */
.highlight .ld { color: #50a14f; }                               /* Literal.Date */
.highlight .m { color: #b76b01; }                                /* Literal.Number */
.highlight .s { color: #50a14f; }                                /* Literal.String */
.highlight .na { color: #3a6ea5; }                               /* Name.Attribute */
.highlight .nb { color: #3a6ea5; }                               /* Name.Builtin */
.highlight .nc { color: #c18401; font-weight: 600; }             /* Name.Class */
.highlight .no { color: #c18401; }                               /* Name.Constant */
.highlight .nd { color: #a626a4; }                               /* Name.Decorator */
.highlight .ni { color: var(--text); }                           /* Name.Entity */
.highlight .ne { color: #e45649; font-weight: 600; }             /* Name.Exception */
.highlight .nf { color: #3a6ea5; font-weight: 600; }             /* Name.Function */
.highlight .nl { color: var(--text); }                           /* Name.Label */
.highlight .nn { color: var(--text); }                           /* Name.Namespace */
.highlight .nt { color: #a626a4; }                               /* Name.Tag */
.highlight .nv { color: var(--text); }                           /* Name.Variable */
.highlight .nx { color: var(--text); }                           /* Name.Other */
.highlight .ow { color: #a626a4; font-weight: 600; }             /* Operator.Word */
.highlight .w { color: var(--text); }                            /* Text.Whitespace */
.highlight .mf { color: #b76b01; }                                /* Number.Float */
.highlight .mh { color: #b76b01; }                               /* Number.Hex */
.highlight .mi { color: #b76b01; }                               /* Number.Integer */
.highlight .mo { color: #b76b01; }                               /* Number.Oct */
.highlight .sb { color: #50a14f; }                               /* String.Backtick */
.highlight .sc { color: #50a14f; }                               /* String.Char */
.highlight .sd { color: #50a14f; font-style: italic; }          /* String.Doc */
.highlight .s2 { color: #50a14f; }                               /* String.Double */
.highlight .se { color: #b76b01; font-weight: 600; }             /* String.Escape */
.highlight .sh { color: #50a14f; }                               /* String.Heredoc */
.highlight .si { color: #50a14f; }                               /* String.Interpol */
.highlight .sx { color: #50a14f; }                               /* String.Other */
.highlight .sr { color: #50a14f; }                               /* String.Regex */
.highlight .s1 { color: #50a14f; }                               /* String.Single */
.highlight .ss { color: #50a14f; }                               /* String.Symbol */
.highlight .bp { color: #3a6ea5; }                               /* Name.Builtin.Pseudo */
.highlight .vc { color: var(--text); }                           /* Name.Variable.Class */
.highlight .vg { color: var(--text); }                           /* Name.Variable.Global */
.highlight .vi { color: var(--text); }                           /* Name.Variable.Instance */
.highlight .il { color: #b76b01; }                               /* Number.Integer.Long */

@media (prefers-color-scheme: dark) {
    .highlight .c { color: #6e7681; font-style: italic; }
    .highlight .k { color: #ff7b72; font-weight: 600; }
    .highlight .l { color: #7ee787; }
    .highlight .m { color: #f2cc60; }
    .highlight .s { color: #7ee787; }
    .highlight .cm { color: #6e7681; font-style: italic; }
    .highlight .cp { color: #6e7681; font-style: italic; }
    .highlight .c1 { color: #6e7681; font-style: italic; }
    .highlight .cs { color: #6e7681; font-style: italic; }
    .highlight .kc { color: #ff7b72; font-weight: 600; }
    .highlight .kd { color: #ff7b72; font-weight: 600; }
    .highlight .kn { color: #ff7b72; font-weight: 600; }
    .highlight .kp { color: #ff7b72; }
    .highlight .kr { color: #ff7b72; font-weight: 600; }
    .highlight .kt { color: #ff7b72; font-weight: 600; }
    .highlight .ld { color: #7ee787; }
    .highlight .mf { color: #f2cc60; }
    .highlight .mh { color: #f2cc60; }
    .highlight .mi { color: #f2cc60; }
    .highlight .mo { color: #f2cc60; }
    .highlight .nb { color: #79c0ff; }
    .highlight .nc { color: #f2cc60; font-weight: 600; }
    .highlight .nd { color: #ff7b72; }
    .highlight .nf { color: #79c0ff; font-weight: 600; }
    .highlight .nt { color: #ff7b72; }
    .highlight .ow { color: #ff7b72; font-weight: 600; }
    .highlight .sb { color: #7ee787; }
    .highlight .sc { color: #7ee787; }
    .highlight .sd { color: #7ee787; font-style: italic; }
    .highlight .s2 { color: #7ee787; }
    .highlight .se { color: #f2cc60; font-weight: 600; }
    .highlight .sh { color: #7ee787; }
    .highlight .si { color: #7ee787; }
    .highlight .sx { color: #7ee787; }
    .highlight .sr { color: #7ee787; }
    .highlight .s1 { color: #7ee787; }
    .highlight .ss { color: #7ee787; }
    .highlight .bp { color: #79c0ff; }
    .highlight .na { color: #79c0ff; }
    .highlight .ne { color: #ff7b72; font-weight: 600; }
    .highlight .no { color: #f2cc60; }
    .highlight .o { color: #79c0ff; }
    .highlight .il { color: #f2cc60; }
}
