/* =====================================================================
   Prism — thème « La Corvée » (papier chaud / encre hue 48).

   Remplace prism-tomorrow (thème sombre servi jadis par CDN) : coloration syntaxique
   pour les blocs de code des docs, sur fond crème, avec la palette de
   marque (tom/herb/bleu/rouge/butter) issue de corvee-tokens.css.
   Vendorisé (aucune requête réseau — Loi 25, offline, reproductible).

   Les couleurs de token consomment les tokens ; fallback en dur si la
   feuille docs.css / corvee-tokens.css n'est pas chargée avant.
   ===================================================================== */

pre[class*="language-"],
code[class*="language-"] {
  color: var(--ink-1, #463a34);
  background: none;
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.7;
  tab-size: 4;
  hyphens: none;
  text-shadow: none;
}

/* le conteneur (fond, bordure, padding) est géré par docs.css .prose pre ;
   ici on ne pose que la couleur du texte et des tokens. */
pre[class*="language-"] {
  overflow: auto;
}

:not(pre) > code[class*="language-"] {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-xs, 6px);
  white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--ink-3, #948a84);
  font-style: italic;
}

.token.punctuation {
  color: var(--ink-2, #6c605a);
}

.token.namespace {
  opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--rouge-ink, #a1321f);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--herb-ink, #086034);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--bleu-ink, #085d90);
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: var(--tom-ink, #00552e);
  font-weight: 600;
}

.token.function,
.token.class-name {
  color: var(--butter-ink, #8f5200);
}

.token.regex,
.token.important,
.token.variable {
  color: var(--rouge-ink, #a1321f);
}

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

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}
