/* ============================================================
   highlight.js theme — tuned to the Spring Boot course palette.
   Muted, low-saturation, prints cleanly. Pairs with the
   vendored highlight.min.js and the .hljs token classes.
   ============================================================ */

:root {
  --hl-keyword:  #4a8a2a;  /* spring green — keywords, annotations */
  --hl-string:   #9a6a00;  /* warm amber — string literals */
  --hl-comment:  #9a9d9a;  /* quiet grey — comments */
  --hl-type:     #2f6f8f;  /* slate blue — types & class names */
  --hl-number:   #8a4baf;  /* muted violet — numbers & literals */
  --hl-meta:     #4a8a2a;  /* annotations / @ markers */
  --hl-attr:     #2f6f8f;  /* properties keys, attributes */
}

/* highlight.js writes results into elements carrying .hljs */
pre code.hljs {
  display: block;
  background: none;       /* keep the lesson's own <pre> background */
  padding: 0;
  color: var(--code-ink);
}
code.hljs { background: none; }

.hljs-comment,
.hljs-quote { color: var(--hl-comment); font-style: italic; }

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name,
.hljs-section { color: var(--hl-keyword); font-weight: 600; }

.hljs-meta,                 /* Java annotations: @RestController */
.hljs-meta .hljs-keyword,
.hljs-symbol { color: var(--hl-meta); font-weight: 600; }

.hljs-string,
.hljs-regexp,
.hljs-addition { color: var(--hl-string); }

.hljs-title,
.hljs-title.class_,
.hljs-title.function_,
.hljs-class .hljs-title,
.hljs-type { color: var(--hl-type); }

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable { color: var(--hl-number); }

.hljs-attr,                 /* JSON keys, properties keys */
.hljs-attribute,
.hljs-selector-attr,
.hljs-selector-class { color: var(--hl-attr); }

.hljs-params { color: var(--code-ink); }

.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }
.hljs-deletion { color: #b4504f; }

/* Keep highlighting readable in print */
@media print {
  .hljs-keyword, .hljs-meta, .hljs-name { font-weight: 600; }
}
