/* Castellan syntax highlighting — teal/amber palette (light + dark) */

pre code.hljs {
  display: block;
  padding: 1.2rem 1.35rem;
  font-size: 0.96rem;
  line-height: 1.62;
  overflow-x: auto;
}

.hljs {
  background: transparent !important;
  color: var(--castellan-text);
}

.hljs-comment,
.hljs-quote,
.hljs-doctag {
  color: var(--castellan-muted);
  font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-selector-id,
.hljs-selector-class,
.hljs-literal {
  color: var(--castellan-coordination-bright);
  font-weight: 500;
}

.hljs-string,
.hljs-regexp,
.hljs-symbol,
.hljs-template-variable,
.hljs-addition {
  color: var(--castellan-gate);
}

.hljs-number,
.hljs-type,
.hljs-params,
.hljs-meta .hljs-keyword {
  color: var(--castellan-evolve-bright);
}

.hljs-title,
.hljs-title.class_,
.hljs-title.function_,
.hljs-section,
.hljs-name {
  color: var(--castellan-runtime);
  font-weight: 500;
}

.hljs-attr,
.hljs-attribute,
.hljs-variable,
.hljs-template-tag,
.hljs-subst {
  color: var(--castellan-substrate);
}

.hljs-meta,
.hljs-link {
  color: var(--castellan-muted);
}

.hljs-deletion {
  color: #f87171;
  background: color-mix(in srgb, #f87171 10%, transparent);
}

.hljs-emphasis {
  font-style: italic;
}

.hljs-strong {
  font-weight: 600;
}
