/* ── Code block wrapper ─────────────────────────────────────────── */
.highlight {
  margin: 1.25rem 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.highlight pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Inline code */
code:not([class]) {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.15em 0.4em;
  font-size: 0.875em;
}

/* ── Light theme (github) ───────────────────────────────────────── */
.bg { background-color:#fff; }
.chroma { background-color:#fff; color:#24292e; }
.chroma .x {  }
.chroma .err { color:#a61717;background-color:#e3d2d2 }
.chroma .cl {  }
.chroma .lnlinks { outline:none;text-decoration:none;color:inherit }
.chroma .lntd { vertical-align:top;padding:0;margin:0;border:0; }
.chroma .lntable { border-spacing:0;padding:0;margin:0;border:0; }
.chroma .hl { background-color:#e5e5e5 }
.chroma .lnt { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
.chroma .ln { white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f }
.chroma .line { display:flex; }
.chroma .k { color:#000;font-weight:bold }
.chroma .kc { color:#000;font-weight:bold }
.chroma .kd { color:#000;font-weight:bold }
.chroma .kn { color:#000;font-weight:bold }
.chroma .kp { color:#000;font-weight:bold }
.chroma .kr { color:#000;font-weight:bold }
.chroma .kt { color:#458;font-weight:bold }
.chroma .n {  }
.chroma .na { color:#008080 }
.chroma .nb { color:#0086b3 }
.chroma .bp { color:#999 }
.chroma .nc { color:#458;font-weight:bold }
.chroma .no { color:#008080 }
.chroma .nd { color:#3c5d5d;font-weight:bold }
.chroma .ni { color:#800080 }
.chroma .ne { color:#900;font-weight:bold }
.chroma .nf { color:#900;font-weight:bold }
.chroma .fm {  }
.chroma .nl { color:#900;font-weight:bold }
.chroma .nn { color:#555 }
.chroma .nx {  }
.chroma .py {  }
.chroma .nt { color:#000080 }
.chroma .nv { color:#008080 }
.chroma .vc { color:#008080 }
.chroma .vg { color:#008080 }
.chroma .vi { color:#008080 }
.chroma .vm {  }
.chroma .l {  }
.chroma .ld {  }
.chroma .s { color:#d14 }
.chroma .sa { color:#d14 }
.chroma .sb { color:#d14 }
.chroma .sc { color:#d14 }
.chroma .dl { color:#d14 }
.chroma .sd { color:#d14 }
.chroma .s2 { color:#d14 }
.chroma .se { color:#d14 }
.chroma .sh { color:#d14 }
.chroma .si { color:#d14 }
.chroma .sx { color:#d14 }
.chroma .sr { color:#009926 }
.chroma .s1 { color:#d14 }
.chroma .ss { color:#990073 }
.chroma .m { color:#099 }
.chroma .mb { color:#099 }
.chroma .mf { color:#099 }
.chroma .mh { color:#099 }
.chroma .mi { color:#099 }
.chroma .il { color:#099 }
.chroma .mo { color:#099 }
.chroma .o { color:#000;font-weight:bold }
.chroma .ow { color:#000;font-weight:bold }
.chroma .p {  }
.chroma .c { color:#998;font-style:italic }
.chroma .ch { color:#998;font-style:italic }
.chroma .cm { color:#998;font-style:italic }
.chroma .c1 { color:#998;font-style:italic }
.chroma .cs { color:#999;font-weight:bold;font-style:italic }
.chroma .cp { color:#999;font-weight:bold;font-style:italic }
.chroma .cpf { color:#999;font-weight:bold;font-style:italic }
.chroma .g {  }
.chroma .gd { color:#000;background-color:#fdd }
.chroma .ge { color:#000;font-style:italic }
.chroma .gr { color:#a00 }
.chroma .gh { color:#999 }
.chroma .gi { color:#000;background-color:#dfd }
.chroma .go { color:#888 }
.chroma .gp { color:#555 }
.chroma .gs { font-weight:bold }
.chroma .gu { color:#aaa }
.chroma .gt { color:#a00 }
.chroma .gl { text-decoration:underline }
.chroma .w { color:#bbb }

/* ── Dark theme (github-dark) ───────────────────────────────────── */
:root[data-theme="dark"] .bg { color:#e6edf3;background-color:#0d1117; }
:root[data-theme="dark"] .chroma { color:#e6edf3;background-color:#161b22; }
:root[data-theme="dark"] .chroma .err { color:#f85149 }
:root[data-theme="dark"] .chroma .hl { background-color:#6e7681 }
:root[data-theme="dark"] .chroma .lnt { color:#737679 }
:root[data-theme="dark"] .chroma .ln { color:#6e7681 }
:root[data-theme="dark"] .chroma .k { color:#ff7b72 }
:root[data-theme="dark"] .chroma .kc { color:#79c0ff }
:root[data-theme="dark"] .chroma .kd { color:#ff7b72 }
:root[data-theme="dark"] .chroma .kn { color:#ff7b72 }
:root[data-theme="dark"] .chroma .kp { color:#79c0ff }
:root[data-theme="dark"] .chroma .kr { color:#ff7b72 }
:root[data-theme="dark"] .chroma .kt { color:#ff7b72 }
:root[data-theme="dark"] .chroma .nc { color:#f0883e;font-weight:bold }
:root[data-theme="dark"] .chroma .no { color:#79c0ff;font-weight:bold }
:root[data-theme="dark"] .chroma .nd { color:#d2a8ff;font-weight:bold }
:root[data-theme="dark"] .chroma .ni { color:#ffa657 }
:root[data-theme="dark"] .chroma .ne { color:#f0883e;font-weight:bold }
:root[data-theme="dark"] .chroma .nf { color:#d2a8ff;font-weight:bold }
:root[data-theme="dark"] .chroma .nl { color:#79c0ff;font-weight:bold }
:root[data-theme="dark"] .chroma .nn { color:#ff7b72 }
:root[data-theme="dark"] .chroma .py { color:#79c0ff }
:root[data-theme="dark"] .chroma .nt { color:#7ee787 }
:root[data-theme="dark"] .chroma .nv { color:#79c0ff }
:root[data-theme="dark"] .chroma .l { color:#a5d6ff }
:root[data-theme="dark"] .chroma .ld { color:#79c0ff }
:root[data-theme="dark"] .chroma .s { color:#a5d6ff }
:root[data-theme="dark"] .chroma .sa { color:#79c0ff }
:root[data-theme="dark"] .chroma .sb { color:#a5d6ff }
:root[data-theme="dark"] .chroma .sc { color:#a5d6ff }
:root[data-theme="dark"] .chroma .dl { color:#79c0ff }
:root[data-theme="dark"] .chroma .sd { color:#a5d6ff }
:root[data-theme="dark"] .chroma .s2 { color:#a5d6ff }
:root[data-theme="dark"] .chroma .se { color:#79c0ff }
:root[data-theme="dark"] .chroma .sh { color:#79c0ff }
:root[data-theme="dark"] .chroma .si { color:#a5d6ff }
:root[data-theme="dark"] .chroma .sx { color:#a5d6ff }
:root[data-theme="dark"] .chroma .sr { color:#79c0ff }
:root[data-theme="dark"] .chroma .s1 { color:#a5d6ff }
:root[data-theme="dark"] .chroma .ss { color:#a5d6ff }
:root[data-theme="dark"] .chroma .m { color:#a5d6ff }
:root[data-theme="dark"] .chroma .mb { color:#a5d6ff }
:root[data-theme="dark"] .chroma .mf { color:#a5d6ff }
:root[data-theme="dark"] .chroma .mh { color:#a5d6ff }
:root[data-theme="dark"] .chroma .mi { color:#a5d6ff }
:root[data-theme="dark"] .chroma .il { color:#a5d6ff }
:root[data-theme="dark"] .chroma .mo { color:#a5d6ff }
:root[data-theme="dark"] .chroma .o { color:#ff7b72;font-weight:bold }
:root[data-theme="dark"] .chroma .ow { color:#ff7b72;font-weight:bold }
:root[data-theme="dark"] .chroma .c { color:#8b949e;font-style:italic }
:root[data-theme="dark"] .chroma .ch { color:#8b949e;font-style:italic }
:root[data-theme="dark"] .chroma .cm { color:#8b949e;font-style:italic }
:root[data-theme="dark"] .chroma .c1 { color:#8b949e;font-style:italic }
:root[data-theme="dark"] .chroma .cs { color:#8b949e;font-weight:bold;font-style:italic }
:root[data-theme="dark"] .chroma .cp { color:#8b949e;font-weight:bold;font-style:italic }
:root[data-theme="dark"] .chroma .cpf { color:#8b949e;font-weight:bold;font-style:italic }
:root[data-theme="dark"] .chroma .gd { color:#ffa198;background-color:#490202 }
:root[data-theme="dark"] .chroma .ge { font-style:italic }
:root[data-theme="dark"] .chroma .gr { color:#ffa198 }
:root[data-theme="dark"] .chroma .gh { color:#79c0ff;font-weight:bold }
:root[data-theme="dark"] .chroma .gi { color:#56d364;background-color:#0f5323 }
:root[data-theme="dark"] .chroma .go { color:#8b949e }
:root[data-theme="dark"] .chroma .gp { color:#8b949e }
:root[data-theme="dark"] .chroma .gs { font-weight:bold }
:root[data-theme="dark"] .chroma .gu { color:#79c0ff }
:root[data-theme="dark"] .chroma .gt { color:#ff7b72 }
:root[data-theme="dark"] .chroma .w { color:#6e7681 }
