/* mixins */
code {
  font-family: 'PT Mono', 'Courier new', monospace;
}
pre {
  position: relative;
  display: block;
  padding: 6px 0;
  background: rgba(248, 248, 255, 0.6);
  box-shadow: 0 0 10px 0 #cccccc;
  border-radius: 4px;
  background-clip: padding-box;
  color: #000;
  font: normal 0.9em 'PT Mono', 'Courier new', monospace;
  line-height: 1.5em;
  overflow: visible;
  white-space: normal;
  counter-reset: code;
  clear: right;
}
pre:not(:has(code)) {
  padding: 10px 15px;
}
pre code {
  position: relative;
  display: block;
  padding: 0 10px;
  white-space: pre-wrap;
  line-height: 1.6em;
}
pre code:empty {
  padding: 0 10px;
}
pre code:empty:after {
  content: ' ';
}
pre code .line-numbers {
  position: absolute;
  top: 0;
  left: -35px;
  width: 25px;
  user-select: none;
  pointer-events: none;
}
pre code .line-numbers i {
  display: block;
  font-style: normal;
  counter-increment: code;
  pointer-events: none;
}
pre code .line-numbers i:before {
  display: block;
  color: #b9b9b9;
  text-align: right;
  content: counter(code, decimal-leading-zero);
}
.hljs-comment,
.hljs-template_comment,
.diff .hljs-header,
.hljs-javadoc {
  color: #998;
  font-style: italic;
}
.hljs-keyword,
.css .rule .hljs-keyword,
.hljs-winutils,
.javascript .hljs-title,
.nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
  color: #333;
  font-weight: bold;
}
.hljs-number,
.hljs-hexcolor,
.ruby .hljs-constant {
  color: #099;
}
.hljs-string,
.hljs-tag .hljs-value,
.hljs-phpdoc,
.tex .hljs-formula {
  color: #d14;
}
.hljs-title,
.hljs-id,
.coffeescript .hljs-params,
.scss .hljs-preprocessor {
  color: #900;
  font-weight: bold;
}
.javascript .hljs-title,
.lisp .hljs-title,
.clojure .hljs-title,
.hljs-subst {
  font-weight: normal;
}
.hljs-class .hljs-title,
.haskell .hljs-type,
.vhdl .hljs-literal,
.tex .hljs-command {
  color: #458;
  font-weight: bold;
}
.hljs-tag,
.hljs-tag .hljs-title,
.hljs-rules .hljs-property,
.django .hljs-tag .hljs-keyword {
  color: #000080;
  font-weight: normal;
}
.hljs-attribute,
.hljs-variable,
.lisp .hljs-body {
  color: #008080;
}
.hljs-regexp {
  color: #009926;
}
.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.lisp .hljs-keyword,
.tex .hljs-special,
.hljs-prompt {
  color: #990073;
}
.hljs-built_in,
.lisp .hljs-title,
.clojure .hljs-built_in {
  color: #0086b3;
}
.hljs-preprocessor,
.hljs-pragma,
.hljs-pi,
.hljs-doctype,
.hljs-shebang,
.hljs-cdata {
  color: #999;
  font-weight: bold;
}
.hljs-deletion {
  background: #fdd;
}
.hljs-addition {
  background: #dfd;
}
.diff .hljs-change {
  background: #0086b3;
}
.hljs-chunk {
  color: #aaa;
}
/* Native share link keeps the old sidebar geometry. */
.facebook-reader { width: 300px; min-height: 55px; }
.facebook-reader a { text-decoration: none; }
.facebook-reader .loading { padding: 20px 10px 0 15px; color: #333; font-size: .9em; }

@media (max-width: 600px) {
  pre:has(.line-numbers) { padding-inline-start: 35px; overflow: auto; }
  pre:has(.line-numbers) code { min-inline-size: max-content; white-space: pre; }
}
