/* Tokyo Night code palette. This file is the final single-page theme override. */
.article-content pre,
.article-content pre[class*="language-"] {
  background: #1a1b26 !important;
  border: 1px solid #3b4261;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(41, 46, 66, 0.3);
  color: #c0caf5 !important;
  font: 14px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  margin: 2em 0;
  overflow: auto;
  overflow-x: auto;
  padding: 52px 24px 24px !important;
  position: relative;
  tab-size: 2;
  text-align: left;
  text-shadow: none !important;
  white-space: pre;
  -webkit-font-smoothing: antialiased;
}

.article-content pre::before {
  background: #f7768e;
  border-radius: 50%;
  box-shadow: 18px 0 #e0af68, 36px 0 #9ece6a;
  content: "";
  height: 10px;
  left: 20px;
  position: absolute;
  top: 19px;
  width: 10px;
}

.article-content pre code {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  color: #c0caf5 !important;
  display: block;
  font: inherit;
  line-height: inherit;
  padding: 0 !important;
  text-shadow: none !important;
  white-space: inherit;
}

.article-content pre code[class*="language-"] {
  background: transparent !important;
  color: #c0caf5 !important;
}

.article-content :not(pre) > code {
  background: rgba(122, 162, 247, 0.12);
  border: 1px solid rgba(122, 162, 247, 0.3);
  border-radius: 6px;
  color: #315f9b;
  font: 0.88em/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  padding: 0.18em 0.46em;
}

.article-content pre ::selection {
  background: #33467c;
  color: #c0caf5;
}

.article-content pre::-webkit-scrollbar { height: 10px; width: 10px; }
.article-content pre::-webkit-scrollbar-track { background: #16161e; border-radius: 0 0 14px 14px; }
.article-content pre::-webkit-scrollbar-thumb { background: #414868; border: 3px solid #16161e; border-radius: 10px; }
.article-content pre::-webkit-scrollbar-thumb:hover { background: #565f89; }
.article-content pre { scrollbar-color: #414868 #16161e; scrollbar-width: thin; }

.code-language {
  color: #9aa5ce;
  font: 700 10px/1.5 var(--island-display);
  letter-spacing: 0.12em;
  position: absolute;
  right: 76px;
  text-transform: uppercase;
  top: 14px;
  user-select: none;
}

.code-copy {
  background: #24283b;
  border: 1px solid #565f89;
  border-radius: 6px;
  color: #c0caf5;
  font: 700 10px/1.5 var(--island-display);
  min-height: 44px;
  min-width: 44px;
  padding: 5px 9px;
  position: absolute;
  right: 12px;
  top: 9px;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  z-index: 2;
}

.code-copy:hover { background: #292e42; border-color: #7aa2f7; color: #d5dcff; }
.code-copy:focus-visible { box-shadow: 0 0 0 2px #1a1b26; outline: 3px solid #73daca; outline-offset: 2px; }

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata { color: #737aa2 !important; font-style: italic; }
.token.punctuation { color: #9aa5ce !important; }
.token.namespace { opacity: 0.85; }
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted { color: #f7768e !important; }
.token.boolean,
.token.number { color: #ff9e64 !important; }
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted { color: #9ece6a !important; }
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string { color: #89ddff !important; }
.token.atrule,
.token.attr-value,
.token.keyword { color: #bb9af7 !important; }
.token.function,
.token.class-name { color: #7aa2f7 !important; }
.token.regex,
.token.important,
.token.variable { color: #e0af68 !important; }
.token.parameter { color: #c0caf5 !important; }
.token.interpolation,
.token.template-string { color: #73daca !important; }
.token.important,
.token.bold { font-weight: 700; }
.token.italic { font-style: italic; }

@media (max-width: 720px) {
  .article-content pre,
  .article-content pre[class*="language-"] {
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.7;
    padding: 48px 16px 18px !important;
  }
  .code-language { display: none; }
}
