/* ARS custom Prism theme.
   Token colors per docs/AgentRuntimeSurface_Theme_Brief_Part1.md § Syntax highlighting tokens.
   Applied on top of Prism core (no default Prism theme loaded). */

code[class*="language-"],
pre[class*="language-"] {
  color: var(--ars-text-primary);
  background: none;
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  line-height: 1.55;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  tab-size: 2;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 0;
  margin: 0;
  overflow: auto;
}

/* Keys / property names / tags — the structural identifiers */
.token.property,
.token.tag,
.token.attr-name,
.token.selector {
  color: var(--ars-accent);
}

/* Strings — neutral, values speak without shouting */
.token.string,
.token.char,
.token.attr-value,
.token.regex {
  color: var(--ars-text-primary);
}

/* Numbers and booleans — semantic distinction from strings */
.token.number,
.token.boolean {
  color: var(--ars-accent-secondary);
}

/* null / undefined — quiet absence */
.token.null,
.token.undefined,
.token.nil {
  color: var(--ars-text-muted);
}

/* Punctuation — structural, not content */
.token.punctuation,
.token.operator {
  color: var(--ars-text-secondary);
}

/* Comments — present but secondary */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--ars-text-muted);
  font-style: italic;
}

/* Language keywords, built-ins, functions — reserved words */
.token.keyword,
.token.builtin,
.token.important,
.token.atrule {
  color: var(--ars-accent-pale);
}

.token.function,
.token.class-name {
  color: var(--ars-accent-pale);
}

/* Misc */
.token.deleted {
  color: var(--ars-accent-secondary);
}

.token.inserted {
  color: var(--ars-accent);
}

.token.entity,
.token.url,
.token.symbol,
.token.variable,
.token.constant {
  color: var(--ars-text-primary);
}

.namespace {
  opacity: 0.7;
}
