/*
  Theme: LIMB (Erebine)
  Description: highlight.js theme for LIMB void code plates. Re-cut of the
               former GitHub Dark vendor sheet against the --void-0 plate
               (#0B0D0C) that Phase 2 puts under every docs code block.
  Replaced:    vendor/highlight-github-dark.min.css (GitHub Dark), DELETED in
               Phase 6 Task 2 once it reached zero link sites. Its
               #0d1117 ground and cool accent ramp (#79c0ff, #1f6feb,
               #a5d6ff) contradicted LIMB law "no cool accents survive"
               (spec:120-122) and, in the case of #1f6feb, measured
               4.21:1 on #0B0D0C -- below the 4.5:1 floor.
  Spec:        docs/superpowers/specs/2026-07-27-limb-redesign-design.md
  Plan:        docs/superpowers/plans/2026-07-28-limb-phase2-paper.md
  Created:     2026-07-28 (Phase 2, Task 1). UNREFERENCED on creation;
               docs-styles.mustache swaps onto it in Task 3, once the 98
               docs pages are on paper with void code plates.

  CONTRAST LEDGER
  Every foreground below is measured against ITS OWN declared background,
  not only against the plate, so the two background-bearing diff groups
  are gated on their own grounds. Values computed 2026-07-28 with the
  WCAG 2.x relative-luminance formula; re-verify any hex that changes.

    group                                        fg        bg        ratio
    .hljs base text                              #A8A29A   #0B0D0C    7.71
    doctag/keyword/meta .keyword/template-tag/
      template-variable/type/variable.language_  #E8724F   #0B0D0C    6.45
    title/title.class_/.inherited__/.function_   #F2EEE6   #0B0D0C   16.85
    attr/attribute/literal/meta/number/operator/
      selector-attr/-class/-id/variable          #FFEFE0   #0B0D0C   17.34
    meta .string/regexp/string                   #E5C86A   #0B0D0C   11.89
    built_in/symbol                              #E8B08A   #0B0D0C   10.22
    code/comment/formula                         #8A857C   #0B0D0C    5.32
    name/quote/selector-pseudo/selector-tag      #8FBF9A   #0B0D0C    9.36
    subst                                        #A8A29A   #0B0D0C    7.71
    section (700)                                #FFEFE0   #0B0D0C   17.34
    bullet                                       #E5C86A   #0B0D0C   11.89
    emphasis (italic)                            #A8A29A   #0B0D0C    7.71
    strong (700)                                 #F2EEE6   #0B0D0C   16.85
    addition                                     #8FBF9A   #12201A    8.09
    deletion                                     #FF7A5C   #241310    6.97

  Every value is a literal hex on purpose: a vendor sheet cannot rely on
  main.css custom properties being present, and the void-ground semantic
  tokens do not exist yet -- they land in Phase 3. When they do, these
  map as follows:

    #A8A29A -> --light-2        #F2EEE6 -> --light-1
    #E8724F -> --limb           #FFEFE0 -> --limb-light
    #8A857C -> --code-comment
    #E5C86A / #E8B08A / #8FBF9A / #FF7A5C and the two diff grounds
    (#12201A, #241310) become void-ground semantic tokens in Phase 3.

  The .hljs rule declares NO background: main.css:5925-5927 already sets
  `background: transparent` on `code.hljs` inside a docs code block, and
  the plate ground is the block's, not the theme's. Declaring one here
  would fight the plate on every surface that adopts this sheet.
*/

/* --- Layout groups, carried verbatim from the vendor sheet ---------- */

pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 1em;
}

code.hljs {
    padding: 3px 5px;
}

/* --- Color groups, re-cut to LIMB ---------------------------------- */

.hljs {
    color: #A8A29A;
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
    color: #E8724F;
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
    color: #F2EEE6;
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id,
.hljs-variable {
    color: #FFEFE0;
}

.hljs-meta .hljs-string,
.hljs-regexp,
.hljs-string {
    color: #E5C86A;
}

.hljs-built_in,
.hljs-symbol {
    color: #E8B08A;
}

.hljs-code,
.hljs-comment,
.hljs-formula {
    color: #8A857C;
}

.hljs-name,
.hljs-quote,
.hljs-selector-pseudo,
.hljs-selector-tag {
    color: #8FBF9A;
}

.hljs-subst {
    color: #A8A29A;
}

/* Vendor painted sections in #1f6feb. Retired: cool accent, and 4.21:1
   on the plate. The 700 weight already carries the section, so the
   color moves onto the limb-light ramp with the other structural
   tokens rather than inventing a second accent. */
.hljs-section {
    color: #FFEFE0;
    font-weight: 700;
}

.hljs-bullet {
    color: #E5C86A;
}

.hljs-emphasis {
    color: #A8A29A;
    font-style: italic;
}

.hljs-strong {
    color: #F2EEE6;
    font-weight: 700;
}

/* Diff grounds are re-cut too: GitHub's #033a16 / #67060c are saturated
   greens and reds that read as a different product on a warm void.
   Both replacements sit within ~1.2:1 of the plate so the row reads as
   a tint of the plate, while the foreground clears 4.5:1 on the tint. */
.hljs-addition {
    color: #8FBF9A;
    background-color: #12201A;
}

.hljs-deletion {
    color: #FF7A5C;
    background-color: #241310;
}
