/* ═══════════════════════════════════════════════
   CYBERPHINIX ─ Code Highlighting (Prism)
   Token colors matched to the site design system.
   Code blocks are display-only — Prism tokenizes
   plain text, nothing is ever executed.
   ═══════════════════════════════════════════════ */

code[class*="language-"],
pre[class*="language-"],
pre.theme-okaidia {
  font-family: var(--ff-mono);
  font-size: .85rem;
  line-height: 1.75;
  color: var(--txt2);
  text-shadow: none;
  white-space: pre;
  word-break: normal;
  word-wrap: normal;
  tab-size: 4;
  hyphens: none;
  direction: ltr;
  text-align: left;
}

/* container look comes from blog.css (.article-content pre) */
pre[class*="language-"] code,
pre.theme-okaidia code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ── Tokens ─────────────────────────────────── */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata        { color: #5c6779; font-style: italic; }

.token.punctuation  { color: #8a94a8; }

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted      { color: #f0506e; }

.token.boolean,
.token.number       { color: #f5a623; }

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted     { color: #3ecf8e; }

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string { color: #38bdf8; }

.token.atrule,
.token.attr-value,
.token.keyword      { color: #38bdf8; }

.token.function,
.token.class-name   { color: #8b7cf6; }

.token.regex,
.token.important,
.token.variable     { color: #f5a623; }

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

/* URLs inside code stay readable, never act as links */
.token.url          { text-decoration: underline; text-decoration-color: rgba(56,189,248,.35); }

/* ── Line numbers plugin ────────────────────── */
pre.line-numbers {
  position: relative;
  padding-left: 3.4rem;
  counter-reset: linenumber;
}
pre.line-numbers > code {
  position: relative;
  white-space: inherit;
}
.line-numbers .line-numbers-rows {
  position: absolute;
  pointer-events: none;
  top: 0;
  font-size: 100%;
  left: -3.4rem;
  width: 2.6rem;
  letter-spacing: -1px;
  border-right: 1px solid var(--border);
  user-select: none;
}
.line-numbers-rows > span {
  display: block;
  counter-increment: linenumber;
}
.line-numbers-rows > span::before {
  content: counter(linenumber);
  color: var(--txt3);
  display: block;
  padding-right: .8rem;
  text-align: right;
}
