/* ============================================================
   phosphor-tinted Prism token theme
   ============================================================
   Drop-in replacement for prism-tomorrow / prism-okaidia / etc.
   Token colors come from phosphor's --pill-* and --accent palette
   so syntax highlighting matches the rest of the theme.
*/

/* Base */
code[class*="language-"],
pre[class*="language-"] {
  color: var(--fg);
  background: none;
  font-family: var(--font-mono);
  font-size: 0.92em;
  line-height: 1.55;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
}

/* Phosphor already gives <pre> its own HUD chrome / panel background;
   don't let Prism paint over it. */
pre[class*="language-"] {
  background: transparent;
}

/* Inline code (`backticks`) — uses the panel-2 surface */
:not(pre) > code[class*="language-"] {
  background: var(--bg-panel-2);
  color: var(--fg-bright);
  padding: 1px 6px;
  font-size: 0.92em;
  border: 1px solid var(--line);
}

/* ---------- Tokens ---------- */

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--fg-dim);
  font-style: italic;
}

.token.punctuation {
  color: var(--fg-faint);
}

.token.namespace {
  opacity: 0.7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--pill-magenta);
}

.token.boolean,
.token.number {
  color: var(--pill-amber);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--pill-green);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
  color: var(--accent);
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
  color: var(--pill-amber);
}

.token.keyword {
  color: var(--accent);
  font-weight: 600;
}

.token.regex,
.token.important {
  color: var(--pill-amber);
}

.token.important,
.token.bold { font-weight: 700; }
.token.italic { font-style: italic; }

.token.entity { cursor: help; }

/* Diff markers — used when a code block has language-diff */
.language-diff .token.deleted,
.language-diff-javascript .token.deleted {
  background: rgba(213, 111, 126, 0.12);
  color: var(--pill-red);
}
.language-diff .token.inserted,
.language-diff-javascript .token.inserted {
  background: rgba(102, 184, 138, 0.10);
  color: var(--pill-green);
}
