/* ============================================================
   SYNTAX HIGHLIGHTING — Light theme (Vibrant Spring)
   Uses Prism.js class names from eleventy-plugin-syntaxhighlight
   ============================================================ */

/* Code block container */
.code-block-wrapper {
  position: relative;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-green-200);
}

/* Language label */
.code-block-wrapper[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--space-1) var(--space-3);
  background: var(--color-green-700);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom-right-radius: var(--radius-sm);
  z-index: 1;
}

pre[class*="language-"],
code[class*="language-"] {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.65;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  tab-size: 2;
  hyphens: none;
  background: #f4fbf7;
  color: #1a2e21;
}

pre[class*="language-"] {
  padding: var(--space-8) var(--space-5) var(--space-5);
  margin: 0;
  overflow: auto;
  border-radius: 0;
}

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

.token.punctuation         { color: #4a7a5a; }

.token.namespace           { opacity: 0.7; }

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted             { color: #1a6e40; font-weight: var(--weight-medium); }

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

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string       { color: #2d7a5a; background: transparent; }

.token.atrule,
.token.attr-value,
.token.keyword             { color: #0a5c38; font-weight: var(--weight-semibold); }

.token.function,
.token.class-name          { color: #157a4a; font-weight: var(--weight-medium); }

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

.token.important,
.token.bold                { font-weight: var(--weight-bold); }
.token.italic              { font-style: italic; }
.token.entity              { cursor: help; }

/* HTML specific */
.token.tag .token.tag      { color: #1a7a4a; font-weight: var(--weight-semibold); }
.token.attr-name           { color: #6b5c00; }
.token.attr-value .token.punctuation { color: #0d6b45; }

