/* Chrysalis v2, step 8: the Research Library in the dark look (Claude, 10 Nov 2026). Loaded on a dark Library page only, after the
   Library's stylesheets (inc/v2/v2-library.php); every rule sits under body.chv2s8. The colours themselves are in the dark copies
   (assets/v4/library/, made by tools/libdark); here are only the few things a colour change cannot do. */

/* ---------- 1. the articles' buttons ----------
   They stand in the dark closing box and take their fill from the theme's button (assets/v2/base/base.css: the page's ink
   colour). The page was white, so that ink was near-black; on a dark page it is white. Here: the values they always had. */
.chv2s8 .cl-feature .btn{--btn-bg:#0e0e10;--btn-fg:#fff;--btn-wipe:#2c2d32}

/* ---------- 2. the Library index: the research-area chips ----------
   They are the shop's chips (assets/v3/shop/shop.css) and take their colours from the shop's own variables, which the
   Library page still had in their light values. The same dark values as on the shop (assets/v4/v2-shop.css). */
.chv2s8 .cl-research-library .cl3-lib-areas.c3-root.s3{
  --s3-ink:#fff;--s3-paper:#000;--s3-tile:#0c0c0e;--s3-tile-2:#1b1b1f;--s3-mute:#a6a7ad;--s3-mute-2:#8d8e94;
  --s3-line:rgba(255,255,255,.12);--s3-line-2:rgba(255,255,255,.28)}
.chv2s8 .cl-research-library .cl3-lib-areas .s3-area{color:#fff}
.chv2s8 .cl-research-library .cl3-lib-areas .s3-area[aria-pressed="true"]{color:#0e0e10}

/* ---------- 3. the line drawings on their dark tiles ----------
   The tiles were dark already. Their small node rings take the page's text colour (near-black on the light page), which keeps
   the dots small and soft; the page's text is white now, so the drawing keeps the colour it always had. */
.chv2s8 main.cl-research-library svg.lc-art{color:#151515}

/* ---------- 4. Semax vs Selank: the weight on the purple bar ----------
   One rule colours both numbers. The first bar turned from black to white, so its number turned dark; the second bar is
   purple and stays purple, so its number stays white. */
.chv2s8 .cl-feature .sx-val.sx-v2{fill:#fff}
