/* Chrysalis v2, step 8: the dark copy of the Research Library stylesheet assets/library-c.css (made by tools/libdark, do not edit by hand).
   Same rules in the same order; only colours differ. Served in its place while the original has the checksum 91e8708f6266e9e1b80a42c8e256ea78. */
/* Library visual upgrade, level C "Signature" (Claude, 7 Nov 2026). Approved by Alik ("for the library let's do C").
   One layer over option-a.css / profile.css / guide.css and the theme's index view (shop.css, library.css):
   A  one type scale, black/white/silver (no sage tints), space before the footer, real hover;
   B  editorial index (lead story beside the title, cover grid, one chip design), profile left rail, guide reading tools;
   C  a silver line drawing per compound on black (drawn by library-c.js; decorative, never a chemical structure),
      revealed once by a passing line of light, turning slightly under the pointer; calm section entrances.
   Motion: transform and opacity only (compositor), once; reduced motion = no motion at all.
   Overrides use !important where the base files set the same property with a higher-specificity or inline rule.
   Index = main.cl-research-library without .profile-page / .guide-page (the theme prints that main). */

main.cl-research-library {
  --lc-ink: #ffffff; --lc-text: #eaeaeb; --lc-mute: #b7b8ba; --lc-line: rgba(255,255,255,.17); --lc-line-2: rgba(255,255,255,.27);
  --lc-white: #0c0c0e; --lc-tile: #161618; --lc-green: #34c28a; --lc-green-text: #74e7b9;
  --lc-ease: cubic-bezier(.16,1,.3,1);
  --lc-h1: 72px; --lc-h2: 30px; --lc-body: 18px;
}
@media (max-width: 600px) { main.cl-research-library { --lc-h1: 40px; --lc-h2: 25px; --lc-body: 17px; } }
main.cl-research-library ::selection { background: #ffffff; color: #0e0e10; }

/* ================================================================ A: one type scale, black / white / silver */
main.cl-research-library h1 { font-size: var(--lc-h1) !important; line-height: 1.02 !important; letter-spacing: -.035em !important; font-weight: 500 !important; text-wrap: balance; }
main.cl-research-library .eyebrow { font-size: 12px !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--lc-mute) !important; font-weight: 500 !important; margin-bottom: 14px !important; }
main.cl-research-library :is(.collection-heading h2, .profile-research-copy h2, .catalogue-heading h2, .profile-source-section h2, .section-heading h2, .other-heading h2, .related-heading h2, .article-body h2) { font-size: var(--lc-h2) !important; line-height: 1.12 !important; letter-spacing: -.02em !important; font-weight: 500 !important; color: var(--lc-ink) !important; }
main.cl-research-library :is(.guide-art-panel, .document-card-icon, .summary-dot) { filter: grayscale(1) contrast(1.04); }
main.cl-research-library :is(.card-tag, .related-category, .catalogue-heading p, .profile-fact-label, .guide-meta, .collection-heading span, .profile-review-note, .guide-review-date) { color: var(--lc-mute) !important; }
main.cl-research-library :is(.profile-story-body p, .hero-deck, .article-body p, .article-body li, .reader-summary li, .guide-deck, .lead, .profile-sources) { color: var(--lc-text) !important; }
main.cl-research-library :is(.profile-research-copy h2, .other-heading h2, .section-heading h2, .document-card h3, .other-profile h3, .profile-fact-value) { color: var(--lc-ink) !important; }
main.cl-research-library :is(.reader-summary, .research-note, .profile-research-story, .profile-facts) { background-image: none !important; }
main.cl-research-library .reader-summary { background: var(--lc-white) !important; border: 1px solid var(--lc-line) !important; }
main.cl-research-library .summary-dot { background: var(--lc-ink) !important; }
main.cl-research-library .research-note { background: var(--lc-tile) !important; border-color: var(--lc-line) !important; color: var(--lc-text) !important; }
main.cl-research-library .profile-research-story { background-color: transparent !important; }
main.cl-research-library .cl-library-inner { padding-bottom: 104px !important; } /* the last row no longer runs into the footer */

/* ================================================================ shared: covers and the C line drawing */
main.cl-research-library .lc-cover { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0b0b0c; isolation: isolate; }
main.cl-research-library .lc-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; z-index: 3; }
main.cl-research-library .lc-cover--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--lc-ease); }
main.cl-research-library a:hover > .lc-cover--photo > img { transform: scale(1.045); }
main.cl-research-library .lc-cover--art { --rx: 0deg; --ry: 0deg; perspective: 900px; background: radial-gradient(120% 95% at 28% 12%, #2b2c31 0%, #121214 52%, #060607 100%); }
main.cl-research-library .lc-cover--art::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
main.cl-research-library .lc-stage { position: absolute; inset: 0; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .7s var(--lc-ease); }
main.cl-research-library :is(.lc-wipe, .lc-wipe__in) { position: absolute; inset: 0; }
main.cl-research-library .lc-wipe { overflow: hidden; }
main.cl-research-library .lc-art { position: absolute; inset: 6% 4%; width: 92%; height: 88%; overflow: visible; }
main.cl-research-library .lc-art :is(.l, .o) { fill: none; stroke-width: 1.3; stroke-linecap: round; }
main.cl-research-library .lc-art .o { stroke-width: .8; opacity: .42; }
main.cl-research-library .lc-art .l.thin { stroke-width: .8; opacity: .7; }
main.cl-research-library .lc-art .n { opacity: clamp(0, calc((1 - var(--d)) * 5), 1); filter: drop-shadow(0 0 3px rgba(255,255,255,.35)); }
/* the reveal: the window slides in from the left while its content slides back the same distance (the drawing stays put),
   a soft line of light rides on the window's edge; then the layers are left alone (is-done) */
html.lc-js main.cl-research-library .lc-cover--art:not(.is-drawn) .lc-wipe { transform: translateX(-101%); }
html.lc-js main.cl-research-library .lc-cover--art:not(.is-drawn) .lc-wipe__in { transform: translateX(101%); }
main.cl-research-library .lc-cover--art.is-drawn:not(.is-done) .lc-wipe { animation: lc-wipe 1.6s cubic-bezier(.45,.05,.2,1) both; }
main.cl-research-library .lc-cover--art.is-drawn:not(.is-done) .lc-wipe__in { animation: lc-wipe-in 1.6s cubic-bezier(.45,.05,.2,1) both; }
main.cl-research-library .lc-wipe::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 14%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.035) 65%, rgba(255,255,255,.16) 97%, rgba(255,255,255,0));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
main.cl-research-library .lc-cover--art.is-drawn:not(.is-done) .lc-wipe::after { animation: lc-edge 1.6s cubic-bezier(.45,.05,.2,1) both; }
@keyframes lc-wipe { from { transform: translateX(-101%); } to { transform: none; } }
@keyframes lc-wipe-in { from { transform: translateX(101%); } to { transform: none; } }
@keyframes lc-edge { 0% { opacity: 0; } 12% { opacity: 1; } 72% { opacity: .85; } 100% { opacity: 0; } }
/* hover light: a wide soft layer that slides with the pointer (transform), shown by opacity */
main.cl-research-library .lc-glint { position: absolute; top: 0; bottom: 0; left: -25%; width: 150%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(28% 60% at 50% 0%, rgba(255,255,255,.13), transparent 70%); transform: translateX(calc(var(--gx, 0%) * .6667)); }
main.cl-research-library a:hover .lc-glint { opacity: 1; }
main.cl-research-library .lc-cover--art.is-big .lc-art { inset: 4% 3%; width: 94%; height: 92%; }
main.cl-research-library .lc-area-ico { position: absolute; left: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
main.cl-research-library .lc-area-ico img { width: 30px; height: 30px; }
main.cl-research-library .lc-meta { margin-top: 6px; font-size: 13px; color: var(--lc-mute); font-variant-numeric: tabular-nums; }
main.cl-research-library .lc-deck { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--lc-mute); max-width: 44ch; }
main.cl-research-library .lc-kicker { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lc-mute); margin-bottom: 4px; }

/* calm entrances: one rise per section or card, staggered, once (opacity + transform only: no blur, smooth on mid-range phones) */
html.lc-js main.cl-research-library [data-lcw] { opacity: 0; transform: translateY(18px);
  transition: opacity .8s var(--lc-ease), transform .9s var(--lc-ease); transition-delay: calc(min(var(--i, 0), 8) * 45ms); }
html.lc-js main.cl-research-library [data-lcw].is-in { opacity: 1; transform: none; }

/* ================================================================ INDEX */
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: stretch; padding: 36px 0 30px; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-width: 0; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead__intro h1 { font-size: 64px !important; margin: 0 0 16px !important; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead__intro .lead { font-size: 18px !important; margin: 0; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .tools { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0 !important; margin: 0 !important; border: 0 !important; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .mode-switch { background: #1d1d20 !important; align-self: flex-start; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .mode-switch button[aria-pressed="true"] { background: #ffffff !important; color: #0e0e10 !important; box-shadow: none !important; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .mode-switch button[aria-pressed="true"] span { color: rgba(14,14,16,.6) !important; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .search { width: 100% !important; max-width: 420px; border-color: var(--lc-line) !important; }

/* the featured guide as the lead story: full-bleed cover, words on the image, light follows the pointer */
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured { position: relative; display: block !important; margin: 0 !important; min-height: 460px; border-radius: 24px !important; isolation: isolate; overflow: hidden; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured:hover { transform: none; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; object-position: 22% 50% !important; transition: transform 1.2s var(--lc-ease); z-index: -2; }
@media (hover: hover) { main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured:hover .cl-featured__img { transform: scale(1.025); } }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,6,7,0) 20%, rgba(6,6,7,.78) 52%, rgba(6,6,7,.94) 100%); }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured::after { content: ""; position: absolute; left: 30%; top: 30%; width: 56%; height: 80%; margin: -40% 0 0 -28%; z-index: -1; pointer-events: none; opacity: .9;
  background: radial-gradient(closest-side, rgba(12,12,14,.165), rgba(12,12,14,0)); transform: translate(var(--fx, 0px), var(--fy, 0px)); }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__body { position: absolute !important; right: 0; top: 0; bottom: 0; width: 54%; padding: 40px 40px 40px 0 !important; justify-content: flex-end !important; gap: 14px !important; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__title { font-size: 34px !important; line-height: 1.05 !important; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__deck { font-size: 16px !important; color: #606268 !important; }
main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__meta { font-size: 13px !important; color: #84858a !important; letter-spacing: .02em; }

/* one chip design on both tabs (the shop's research-area pills stay Alik's colour glass icons) */
main.cl-research-library:not(.profile-page, .guide-page) .cl3-lib-areas { padding: 18px 0 0 !important; border-top: 1px solid var(--lc-line); }
main.cl-research-library:not(.profile-page, .guide-page) .s3-area { height: 44px !important; padding: 0 16px 0 4px !important; background: #0c0c0e !important; border: 1px solid var(--lc-line) !important; box-shadow: 0 1px 2px rgba(14,14,16,.04) !important; }
main.cl-research-library:not(.profile-page, .guide-page) .s3-area[aria-pressed="true"] { background: #ffffff !important; color: #0e0e10 !important; border-color: #ffffff !important; }
main.cl-research-library:not(.profile-page, .guide-page) .s3-area__i { width: 34px !important; height: 34px !important; }
main.cl-research-library:not(.profile-page, .guide-page) .topics { gap: 8px !important; padding: 18px 0 !important; border-top: 1px solid var(--lc-line); }
main.cl-research-library:not(.profile-page, .guide-page) .topics button { height: 44px; padding: 0 16px 0 4px !important; background: var(--lc-white) !important; border: 1px solid var(--lc-line) !important; color: var(--lc-ink) !important; font-size: 15px !important; gap: 10px !important; box-shadow: 0 1px 2px rgba(14,14,16,.04); }
main.cl-research-library:not(.profile-page, .guide-page) .topics button svg { width: 34px !important; height: 34px !important; padding: 8px; border-radius: 50%; background: var(--lc-tile); stroke-width: 1.3; }
main.cl-research-library:not(.profile-page, .guide-page) .topics button[aria-pressed="true"] { background: var(--lc-ink) !important; color: #0e0e10 !important; border-color: var(--lc-ink) !important; }
main.cl-research-library:not(.profile-page, .guide-page) .topics button[aria-pressed="true"] svg { background: rgba(255,255,255,.14); }
main.cl-research-library:not(.profile-page, .guide-page) .collection-heading { padding-top: 22px !important; margin-bottom: 18px !important; }

/* the cover grid: cover, kicker, name, one fact (compounds) / description and reading time (guides) */
main.cl-research-library:not(.profile-page, .guide-page) #cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 30px 18px !important; }
main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 34px 22px !important; }
main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card:not([hidden]) { display: flex !important; flex-direction: column !important; min-height: 0 !important; border: 0 !important; background: transparent !important; overflow: visible !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; }
/* "Seven checks" already leads the page: not repeated in the full guide list, but found again by a search or a topic */
main.cl-research-library:not(.profile-page, .guide-page):has(#cl-library-search:placeholder-shown):has(#topic-filters [data-topic="all"][aria-pressed="true"]) #cards > a.lc-dup:not([hidden]) { display: none !important; }
main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] .lc-cover { aspect-ratio: 16 / 10; }
main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card .compound-copy { padding: 14px 2px 0 !important; display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 4px !important; position: static !important; }
main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card .card-footer { margin: 0 !important; padding: 0 !important; border: 0 !important; }
main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card .card-tag { font-size: 12px !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--lc-mute) !important; background: none !important; padding: 0 !important; }
main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card h3 { font-size: 21px !important; line-height: 1.12 !important; letter-spacing: -.015em !important; margin: 0 !important; transition: opacity .2s; }
main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] > a.lc-card h3 { font-size: 23px !important; text-wrap: balance; }
main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card:hover h3 { opacity: .72; }
main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card) { position: relative; }
main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card) > .lc-cover { transition: transform .5s var(--lc-ease); }
main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 3; border-radius: 16px; pointer-events: none;
  box-shadow: 0 18px 40px -22px rgba(14,14,16,.55); opacity: 0; transition: opacity .5s var(--lc-ease), transform .5s var(--lc-ease); }
main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] > a.lc-card::before { aspect-ratio: 16 / 10; }
@media (hover: hover) {
  main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card):hover > .lc-cover,
  main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card):hover::before { transform: translateY(-3px); }
  main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card):hover::before { opacity: 1; }
}

/* ================================================================ PROFILE: editorial rail */
main.cl-research-library.profile-page .profile-hero { display: grid !important; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) !important; gap: 56px !important; align-items: center !important; padding: 18px 0 36px !important; }
main.cl-research-library.profile-page .profile-hero h1 { font-size: 96px !important; letter-spacing: -.045em !important; }
main.cl-research-library.profile-page .hero-deck { font-size: 19px !important; line-height: 1.55 !important; max-width: 46ch; }
main.cl-research-library .lc-hero-fig { margin: 0 !important; width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; position: relative; background: #060607; filter: none !important; display: block !important; }
main.cl-research-library .lc-hero-fig > .lc-cover { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
main.cl-research-library .lc-hero-fig .lc-glint { opacity: 1; transform: none; background: radial-gradient(33.33% 60% at 36.67% 0%, rgba(255,255,255,.12), transparent 70%); }
main.cl-research-library.profile-page .profile-facts { background: #0c0c0e !important; border: 1px solid var(--lc-line) !important; border-radius: 20px !important; padding: 26px 30px !important; margin-bottom: 72px !important; }
main.cl-research-library.profile-page .profile-fact-label { font-size: 12px !important; letter-spacing: .12em !important; text-transform: uppercase; }
main.cl-research-library.profile-page :is(.profile-research-copy, .profile-catalogue, .profile-source-section) { display: grid !important; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) !important; gap: 0 56px !important; align-items: start !important; max-width: none !important; }
main.cl-research-library.profile-page .profile-research-story { display: block !important; padding: 0 0 64px !important; margin: 0 !important; border: 0 !important; }
main.cl-research-library.profile-page :is(.profile-research-copy h2, .catalogue-heading, .profile-source-section > h2) { position: sticky; top: 120px; margin: 0 !important; }
main.cl-research-library.profile-page .profile-story-body { max-width: 640px; }
main.cl-research-library.profile-page .profile-story-body p { font-size: var(--lc-body) !important; line-height: 1.65 !important; }
main.cl-research-library.profile-page .profile-story-body p:first-child { margin-top: 0 !important; }
main.cl-research-library.profile-page .profile-catalogue { padding: 48px 0 64px !important; border-top: 1px solid var(--lc-line) !important; border-bottom: 1px solid var(--lc-line) !important; margin: 0 0 64px !important; }
main.cl-research-library.profile-page .catalogue-heading { border: 0 !important; padding: 0 !important; max-width: none !important; }
main.cl-research-library.profile-page .catalogue-heading p { max-width: 30ch; }
main.cl-research-library.profile-page .catalogue-products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; max-width: none !important; gap: 14px !important; margin: 0 !important; }
main.cl-research-library.profile-page .catalogue-product { position: relative; overflow: visible !important; border-color: var(--lc-line) !important; border-radius: 16px !important; color: var(--lc-ink) !important; transition: transform .45s var(--lc-ease) !important; }
main.cl-research-library.profile-page .catalogue-product::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; box-shadow: 0 18px 40px -22px rgba(14,14,16,.35); opacity: 0; transition: opacity .45s var(--lc-ease); }
@media (hover: hover) {
  main.cl-research-library.profile-page .catalogue-product:hover { transform: translateY(-3px); border-color: var(--lc-line-2) !important; box-shadow: none !important; }
  main.cl-research-library.profile-page .catalogue-product:hover::after { opacity: 1; }
}
main.cl-research-library.profile-page .catalogue-product-photo { position: relative; display: block !important; background: radial-gradient(90% 80% at 50% 40%, #0c0c0e 0%, #1d1d20 100%) !important; aspect-ratio: 4 / 3 !important; border-radius: 15px 15px 0 0; overflow: hidden; }
main.cl-research-library.profile-page .catalogue-product-photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain !important; max-height: none !important; box-sizing: border-box; transition: transform .8s var(--lc-ease); }
main.cl-research-library.profile-page .catalogue-product:hover .catalogue-product-photo img { transform: scale(1.03); }
main.cl-research-library.profile-page .lc-photo--vial img { left: 50% !important; width: auto !important; aspect-ratio: 960 / 1200; padding: 0 !important; transform: translateX(-50%); object-fit: cover !important;
  /* the render's floor shadow is cut at the file's edges: fade it out so no hard line shows on the tile */
  -webkit-mask-image: linear-gradient(90deg, transparent 17%, #000 29%, #000 71%, transparent 85%), linear-gradient(180deg, #000 80%, transparent 97%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 17%, #000 29%, #000 71%, transparent 85%), linear-gradient(180deg, #000 80%, transparent 97%); mask-composite: intersect; }
main.cl-research-library.profile-page .catalogue-product:hover .lc-photo--vial img { transform: translateX(-50%) scale(1.03); }
main.cl-research-library.profile-page .lc-photo--pen img { padding: 8px 16px !important; }
main.cl-research-library.profile-page :is(.catalogue-product-format, .catalogue-product-action) { color: var(--lc-mute) !important; }
main.cl-research-library.profile-page .catalogue-product-name { color: var(--lc-ink) !important; }
main.cl-research-library.profile-page .catalogue-product-stock { color: var(--lc-mute) !important; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
main.cl-research-library.profile-page .catalogue-product-stock.lc-in { color: var(--lc-green-text) !important; } /* green only for in stock */
main.cl-research-library.profile-page .catalogue-product-stock.lc-in::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lc-green); box-shadow: 0 0 0 3px rgba(52,194,138,.18); }
main.cl-research-library.profile-page .profile-source-section { padding-bottom: 64px !important; }
main.cl-research-library.profile-page .profile-source-section > :not(h2) { grid-column: 2; }
main.cl-research-library.profile-page .profile-review-note { margin-top: 22px !important; font-size: 13px !important; }
/* A little more context: the guides' covers */
main.cl-research-library.profile-page .document-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px !important; }
main.cl-research-library.profile-page .document-card { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; padding: 0 !important; border: 0 !important; background: none !important; min-height: 0 !important; }
main.cl-research-library.profile-page .document-card .lc-cover { aspect-ratio: 16 / 10; }
main.cl-research-library.profile-page .document-card :is(.document-card-icon, .document-arrow) { display: none !important; }
main.cl-research-library.profile-page .document-card h3 { font-size: 20px !important; }
/* Explore another compound: the index card */
main.cl-research-library.profile-page .other-grid { gap: 22px !important; }
main.cl-research-library.profile-page .other-profile.lc-card { display: flex !important; flex-direction: column !important; align-items: stretch !important; padding: 0 !important; border: 0 !important; background: none !important; gap: 12px !important; min-height: 0 !important; overflow: visible !important; }
main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card) > .lc-cover { width: 100%; }
main.cl-research-library.profile-page .other-profile.lc-card .other-profile-copy { display: block !important; padding: 0 2px !important; }

/* ================================================================ GUIDE: cover, progress line, contents that follow you */
.lc-progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; will-change: transform; }
.lc-progress, .lc-progress span { transition: none !important; } /* follows the scroll position directly (the theme's reduced-motion rule would add .12s) */
.lc-progress span { display: block; height: 100%; background: linear-gradient(90deg, #6c6d71, #ffffff 70%); transform-origin: 0 50%; transform: scaleX(0); }
main.cl-research-library.guide-page .guide-hero { display: grid !important; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) !important; gap: 56px !important; align-items: end !important; padding-bottom: 48px !important; }
main.cl-research-library.guide-page .guide-deck { font-size: 19px !important; line-height: 1.55 !important; }
main.cl-research-library.guide-page .guide-art-panel { width: 100% !important; height: auto !important; border-radius: 22px !important; overflow: hidden !important; background: #0b0b0c !important; filter: none !important; padding: 0 !important; display: flex !important; flex-direction: column; }
main.cl-research-library.guide-page #guide-artwork { position: relative !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; overflow: hidden; inset: auto !important; transform: none !important; }
main.cl-research-library .lc-guide-cover { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); }
main.cl-research-library.guide-page .guide-art-caption { position: static !important; padding: 12px 18px 14px !important; color: #9fa1a7 !important; background: #0b0b0c; text-align: left !important; font-size: 12px !important; letter-spacing: .02em; }
main.cl-research-library.guide-page .guide-sidebar { top: calc(var(--lc-hb, 72px) + 32px) !important; }
main.cl-research-library.guide-page .guide-reading-layout { gap: 72px !important; }
main.cl-research-library.guide-page .reading-column { max-width: 680px !important; }
main.cl-research-library.guide-page .article-body :is(p, li) { font-size: var(--lc-body) !important; line-height: 1.65 !important; }
main.cl-research-library.guide-page .article-body h2 { margin-top: 1.9em !important; margin-bottom: .55em !important; }
main.cl-research-library.guide-page #article-toc a { color: var(--lc-mute) !important; position: relative; display: inline-block; }
main.cl-research-library.guide-page #article-toc a.lc-active { color: var(--lc-ink) !important; font-weight: 500; }
main.cl-research-library.guide-page #article-toc a.lc-active::before { content: ""; position: absolute; left: -14px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #0e0e10; }
main.cl-research-library.guide-page .lc-toc-current { display: none; }
main.cl-research-library.guide-page .related-card { overflow: hidden !important; border-color: var(--lc-line) !important; background: var(--lc-white) !important; }
main.cl-research-library.guide-page .related-art.lc-related-photo { filter: none !important; background: #0b0b0c !important; overflow: hidden; padding: 0 !important; }
main.cl-research-library.guide-page .related-art.lc-related-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--lc-ease); }
main.cl-research-library.guide-page .related-card:hover .related-art > img { transform: scale(1.045); }
main.cl-research-library.guide-page .related-category { letter-spacing: .12em !important; text-transform: uppercase; font-size: 12px !important; }

/* WhatsApp button steps aside while you read and comes back when you scroll up (reading pages) */
html.lc-js .cl-wa { transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s !important; }
html.lc-reading .cl-wa { transform: translateY(140%) scale(.9) !important; opacity: 0 !important; pointer-events: none; }

/* ================================================================ tablet and phone (phone previews come after Alik's OK on desktop) */
@media (max-width: 900px) {
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead { grid-template-columns: 1fr; gap: 20px; padding: 22px 0 16px; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead__intro { display: contents; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead__copy { order: 1; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured { order: 2; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .tools { order: 3; flex-direction: row; flex-wrap: wrap; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main.cl-research-library.profile-page .profile-hero, main.cl-research-library.guide-page .guide-hero { grid-template-columns: 1fr !important; gap: 24px !important; }
}
@media (max-width: 600px) {
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead__intro h1 { font-size: 40px !important; margin-bottom: 10px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead__intro .lead { font-size: 16px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured { min-height: 360px; border-radius: 20px !important; }
  /* cover B on a phone: the box and its vials sit above the title (the photo is set a little larger, anchored at its foot) */
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__img { object-position: 14% 50% !important; transform: scale(1.16); transform-origin: 12% 100%; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured::before { background: linear-gradient(180deg, rgba(6,6,7,0) 18%, rgba(6,6,7,.78) 52%, rgba(6,6,7,.95) 100%); }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__body { width: auto; left: 0; padding: 0 20px 22px !important; gap: 9px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__title { font-size: 25px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__deck { font-size: 14px !important; line-height: 1.45 !important; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .cl-featured__go { height: 40px !important; padding: 0 18px !important; font-size: 14px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .tools { gap: 10px; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .mode-switch { width: 100%; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .mode-switch button { flex: 1; justify-content: center; }
  main.cl-research-library:not(.profile-page, .guide-page) .lc-lead .search { max-width: none; }
  main.cl-research-library:not(.profile-page, .guide-page) :is(.s3-areas__list, .topics) { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  main.cl-research-library:not(.profile-page, .guide-page) .topics { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  main.cl-research-library:not(.profile-page, .guide-page) .topics button { flex: none; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 12px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card .compound-copy { padding: 10px 2px 0 !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card h3 { font-size: 18px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards > a.lc-card .card-tag { font-size: 11px !important; }
  main.cl-research-library .lc-cover { border-radius: 14px; }
  main.cl-research-library .lc-area-ico { left: 8px; top: 8px; width: 30px; height: 30px; }
  main.cl-research-library .lc-area-ico img { width: 24px; height: 24px; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] { grid-template-columns: 1fr !important; gap: 0 !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] > a.lc-card:not([hidden]) { display: grid !important; grid-template-columns: minmax(0, 1fr) 108px; gap: 16px; align-items: start; padding: 18px 0 !important; border-top: 1px solid var(--lc-line) !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] > a.lc-card .lc-cover { grid-column: 2; grid-row: 1; aspect-ratio: 1; border-radius: 12px; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] > a.lc-card .compound-copy { grid-column: 1; grid-row: 1; padding: 0 !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] > a.lc-card h3 { font-size: 19px !important; }
  main.cl-research-library:not(.profile-page, .guide-page) #cards[data-lc-mode="guides"] .lc-deck { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  main.cl-research-library.profile-page .profile-hero h1 { font-size: 56px !important; }
  main.cl-research-library .lc-hero-fig { aspect-ratio: 16 / 9; border-radius: 18px; }
  main.cl-research-library.profile-page .hero-deck { font-size: 17px !important; }
  main.cl-research-library.profile-page .profile-facts { padding: 6px 18px !important; margin-bottom: 44px !important; border-radius: 16px !important; }
  main.cl-research-library.profile-page :is(.profile-research-copy, .profile-catalogue, .profile-source-section) { grid-template-columns: 1fr !important; gap: 14px !important; }
  main.cl-research-library.profile-page :is(.profile-research-copy h2, .catalogue-heading, .profile-source-section > h2) { position: static; }
  main.cl-research-library.profile-page .profile-source-section > :not(h2) { grid-column: 1; }
  main.cl-research-library.profile-page .profile-research-story { padding-bottom: 40px !important; }
  main.cl-research-library.profile-page .profile-catalogue { padding: 32px 0 40px !important; margin-bottom: 40px !important; }
  main.cl-research-library.profile-page .catalogue-products { gap: 10px !important; }
  /* two cards side by side on a phone: format, name, stock and "View product" stacked, the name kept on one line */
  main.cl-research-library.profile-page .catalogue-product-copy { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; padding: 12px 14px 14px !important; }
  main.cl-research-library.profile-page .catalogue-product-name { font-size: 20px !important; white-space: nowrap; overflow-wrap: normal !important; }
  main.cl-research-library.profile-page .catalogue-product-stock { margin-top: 4px; font-size: 13px; }
  main.cl-research-library.profile-page .catalogue-product-action { margin-top: 8px; justify-content: flex-start !important; gap: 8px !important; font-size: 13px !important; }
  main.cl-research-library.profile-page .document-cards { grid-template-columns: 1fr !important; gap: 0 !important; }
  main.cl-research-library.profile-page .document-card { display: grid !important; grid-template-columns: 96px minmax(0, 1fr); align-items: center !important; gap: 14px !important; padding: 12px 0 !important; border-top: 1px solid var(--lc-line) !important; }
  main.cl-research-library.profile-page .document-card .lc-cover { aspect-ratio: 4 / 3; border-radius: 10px; }
  main.cl-research-library.profile-page .document-card h3 { font-size: 17px !important; }
  main.cl-research-library.profile-page .other-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; margin-right: 0 !important; padding-right: 0 !important; }

  main.cl-research-library.guide-page .guide-hero { display: block !important; padding-bottom: 20px !important; }
  main.cl-research-library.guide-page .guide-hero .guide-art-panel { margin-top: 22px !important; }
  main.cl-research-library.guide-page #guide-artwork { aspect-ratio: 16 / 9; }
  main.cl-research-library.guide-page .guide-deck { font-size: 17px !important; }
  main.cl-research-library.guide-page .article-body :is(p, li) { line-height: 1.6 !important; }
  main.cl-research-library.guide-page .guide-sidebar { display: contents !important; }
  main.cl-research-library.guide-page .guide-sidebar .back-link { display: inline-flex !important; margin: 0 0 12px !important; } /* keep "Back to the library" on phone */
  main.cl-research-library.guide-page .guide-contents { position: sticky !important; top: calc(var(--lc-hb, 64px) + 8px) !important; z-index: 20; background: #0c0c0e !important; border: 1px solid var(--lc-line) !important; border-radius: 16px !important; box-shadow: 0 10px 30px -18px rgba(14,14,16,.35) !important; margin: 0 0 22px !important; padding: 0 !important; }
  main.cl-research-library.guide-page .guide-contents summary { padding: 13px 16px !important; display: flex !important; align-items: center; gap: 10px; font-size: 14px !important; }
  main.cl-research-library.guide-page .guide-contents summary svg { margin-left: auto; order: 3; }
  main.cl-research-library.guide-page .lc-toc-current { display: inline !important; color: var(--lc-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  main.cl-research-library.guide-page .lc-toc-current:not(:empty)::before { content: "·"; margin-right: 8px; }
  main.cl-research-library.guide-page .reading-column { max-width: none !important; }
  /* a phone card is ~170 px wide: thicker lines so the drawing still reads as silver */
  main.cl-research-library .lc-art .l { stroke-width: 2.3; }
  main.cl-research-library .lc-art .l.thin { stroke-width: 1.5; opacity: .8; }
  main.cl-research-library .lc-art .o { stroke-width: 1.4; opacity: .5; }
  main.cl-research-library .lc-cover--art.is-big .lc-art .l { stroke-width: 1.8; }
  main.cl-research-library .lc-cover--art::before { background-size: 16px 16px; }
}

/* touch screens: the drawing turns a little as it moves through the screen (scroll-driven CSS, runs off the main thread) */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    main.cl-research-library .lc-cover--art .lc-stage { transition: none; animation: lc-turn linear both; animation-timeline: view(); }
    @keyframes lc-turn { from { transform: rotateX(7deg) rotateY(-4deg); } to { transform: rotateX(-7deg) rotateY(4deg); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html.lc-js main.cl-research-library [data-lcw] { opacity: 1 !important; transform: none !important; transition: none !important; }
  main.cl-research-library :is(.lc-wipe, .lc-wipe__in) { animation: none !important; transform: none !important; }
  main.cl-research-library .lc-wipe::after { animation: none !important; opacity: 0 !important; }
  main.cl-research-library :is(.lc-stage, .lc-glint) { transition: none !important; transform: none !important; animation: none !important; }
  main.cl-research-library .cl-featured::after { transition: none !important; transform: none !important; }
  main.cl-research-library :is(#cards > a.lc-card, .other-profile.lc-card)::before { transition: none !important; }
  main.cl-research-library :is(.lc-cover, .lc-cover > img, .catalogue-product, .catalogue-product-photo img, .cl-featured__img, .related-art > img) { transition: none !important; }
  main.cl-research-library .catalogue-product::after { transition: none !important; }
  main.cl-research-library .lc-guide-cover { transform: scale(1.06) !important; }
  html.lc-js .cl-wa { transition: none !important; }
}

/* A: source numbers and source links in ink, not sage */
main.cl-research-library.profile-page :is(.profile-story-body sup a, .profile-sources a) { color: var(--lc-ink) !important; text-decoration-color: rgba(255,255,255,.2) !important; }
main.cl-research-library.profile-page .profile-sources a:hover { text-decoration-color: var(--lc-ink) !important; }
