/* Article code blocks: Prism Tomorrow with a compact desktop-window toolbar. */
.artdtl .artcons .code-block-wrap {
  max-width: 100%;
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid #303640;
  border-radius: 10px;
  background: #1e1e1e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .18);
}
.artdtl .artcons .code-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px 0 76px;
  position: relative;
  color: #c4c9d0;
  background: #252526;
  font-size: 12px;
}
.artdtl .artcons .code-block-bar::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}
.artdtl .artcons .code-block-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artdtl .artcons .code-copy-btn {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid #646b74;
  border-radius: 5px;
  color: #e6e9ee;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.artdtl .artcons .code-copy-btn:hover { border-color: #56d6a4; color: #56d6a4; }
.artdtl .artcons .code-block-wrap pre[class*="language-"] {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 18px 20px !important;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  color: #ccc;
  background: #1e1e1e !important;
  text-shadow: none;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}
.artdtl .artcons .code-block-wrap pre[class*="language-"] code {
  display: block;
  width: max-content;
  min-width: 100%;
  padding: 0 !important;
  color: inherit;
  background: none !important;
  font: 14px/1.6 Menlo, Monaco, Consolas, "Courier New", monospace;
  white-space: pre;
  text-shadow: none;
}
.artdtl .artcons .code-block-wrap pre[class*="language-"] .token { font-size: inherit; }
@media (max-width: 768px) {
  .artdtl .artcons .code-block-wrap { margin: 16px 0; }
  .artdtl .artcons .code-block-wrap pre[class*="language-"] { padding: 14px 16px !important; }
  .artdtl .artcons .code-block-wrap pre[class*="language-"] code { font-size: 13px; }
}
