/* ============================================================
   Prism.js syntax theme — TENSO palette
   ============================================================ */

code[class*="language-"],
pre[class*="language-"] {
  color: #c9d8f0;
  background: none;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.65;
  tab-size: 4;
  hyphens: none;
}

pre[class*="language-"] {
  padding: 1.5rem;
  margin: 0;
  overflow: auto;
  background: #000b22;
  border-radius: 0;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
  background: #000b22;
}

:not(pre) > code[class*="language-"] {
  padding: .2em .4em;
  border-radius: .3em;
  white-space: normal;
}

/* Tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #66A2FF;
  font-style: italic;
}

.token.punctuation {
  color: #6b8aad;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol {
  color: #FFD82B;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin {
  color: #FFE95F;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: #FFC200;
  background: transparent;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #B7D3FF;
}

.token.function,
.token.class-name {
  color: #66A2FF;
}

.token.regex,
.token.important,
.token.variable {
  color: #fb923c;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

/* Python specific */
.language-python .token.keyword { color: #B7D3FF; }
.language-python .token.builtin { color: #FFE95F; }
.language-python .token.string { color: #FFE95F; }
.language-python .token.number { color: #FFD82B; }
.language-python .token.comment { color: #66A2FF; font-style: italic; }
.language-python .token.function { color: #66A2FF; }

/* Bash specific */
.language-bash .token.function { color: #FFD82B; }
.language-bash .token.keyword { color: #B7D3FF; }
.language-bash .token.string { color: #FFE95F; }
.language-bash .token.comment { color: #66A2FF; font-style: italic; }

/* Line highlight */
.line-highlight {
  background: rgba(255, 216, 43, 0.07);
  border-left: 2px solid var(--accent-primary, #FFD82B);
}

/* Inline code (not in pre) */
:not(pre) > code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(255, 216, 43, 0.08);
  color: var(--accent-primary, #FFD82B);
  border: 1px solid rgba(255, 216, 43, 0.15);
}

[data-theme="light"] :not(pre) > code {
  background: rgba(0,30,95,0.08);
  color: var(--accent-primary, #001E5F);
  border-color: rgba(0,30,95,0.15);
}

[data-theme="light"] pre[class*="language-"],
[data-theme="light"] :not(pre) > code[class*="language-"] {
  background: #f1f5f9;
}

[data-theme="light"] code[class*="language-"],
[data-theme="light"] pre[class*="language-"] {
  color: #1e293b;
}

[data-theme="light"] .token.comment { color: #0066FD; }
[data-theme="light"] .token.keyword { color: #001E5F; }
[data-theme="light"] .token.string { color: #003EFF; }
[data-theme="light"] .token.number { color: #021BC3; }
[data-theme="light"] .token.function { color: #0066FD; }
[data-theme="light"] .token.class-name { color: #0066FD; }
[data-theme="light"] .token.punctuation { color: #475569; }
