/* TextMate token colors come from Shiki's unmodified VS Code Dark+ theme. */
body pre.shiki,body.article-page .article-copy pre.shiki{max-width:100%;margin:26px 0;padding:22px 24px;border:1px solid #3c3c3c;border-radius:10px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;tab-size:4;font:400 14px/1.75 var(--mono);text-align:left;white-space:pre;word-break:normal;overflow-wrap:normal;scrollbar-width:thin;scrollbar-color:#666 #1e1e1e}
body pre.shiki code,body.article-page .article-copy pre.shiki code{display:block;width:max-content;min-width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;letter-spacing:0;white-space:inherit;word-break:normal;overflow-wrap:normal}
body pre.shiki :is(span,code){font-family:inherit}
body pre.shiki :is(code,span)::selection{background:#264f78;color:inherit}
body pre.shiki:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
@media(max-width:650px){body pre.shiki,body.article-page .article-copy pre.shiki{padding:18px 16px;font-size:13px;line-height:1.75;border-radius:8px}}

/* Inline identifiers retain the editor background and base foreground. */
body .article-copy :not(pre)>code{background:#1e1e1e;color:#d4d4d4;border-radius:4px;padding:.12em .4em}

.code-actions{display:flex;align-items:center;justify-content:space-between;margin-top:26px;padding:0 12px 0 18px;border:1px solid #3c3c3c;border-bottom:0;border-radius:10px 10px 0 0;background:#252525;color:#ddd;font: .8rem var(--mono)}
.code-actions button{min-height:44px;padding:0 .6rem;background:transparent;color:inherit;border:0;cursor:pointer;font:inherit}
.code-actions button:hover,.code-actions button:focus-visible{color:white;text-decoration:underline}
body .code-actions+pre.shiki,body.article-page .article-copy .code-actions+pre.shiki{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}
