/* 格物斋 Prism.js 代码高亮浅色主题 — 墨流风格 */
code[class*="language-"],
pre[class*="language-"] {
  color: #1a1a2e;
  background: #f5f3ef;
  font-family: var(--gw-font-mono, 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace);
  font-size: 0.88rem;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.6;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 16px 20px;
  margin: 1.2em 0;
  overflow: auto;
  border: 1px solid var(--color-border-dashed);
}

:not(pre) > code[class*="language-"] {
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(200,169,126,.15);
}

.token.comment,
.token.block-comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #8b8b8b;
}

.token.punctuation {
  color: #5c6b73;
}

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
  color: #d44d44;
}

.token.function-name {
  color: #3c5a96;
}

.token.boolean,
.token.number {
  color: #c17e3c;
}

.token.function,
.token.builtin {
  color: #3c5a96;
}

.token.property,
.token.class-name,
.token.constant,
.token.symbol {
  color: #b23a30;
}

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.rule {
  color: #3c8c6c;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.variable {
  color: #4a7c96;
}

.token.operator,
.token.entity,
.token.url {
  color: #5c6b73;
}

.token.important,
.token.bold {
  font-weight: 600;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

.token.inserted {
  color: #3c8c6c;
}

pre.line-numbers {
  position: relative;
  padding-left: 3.8em;
  counter-reset: linenumber;
}

pre.line-numbers > code {
  position: relative;
  white-space: inherit;
}

.line-numbers .line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 16px;
  left: -3.8em;
  width: 3em;
  letter-spacing: -1px;
  border-right: 1px solid var(--color-border-dashed);
  user-select: none;
}

.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}

.line-numbers-rows > span:before {
  content: counter(linenumber);
  color: var(--color-text-muted);
  display: block;
  padding-right: 0.8em;
  text-align: right;
}