/* Chrysalis v2, step 8: the dark copy of the Research Library stylesheet assets/articles.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 4f68c0ec15676f98b3d8838483ce005e. */
/* Library articles (Claude, 9 Nov 2026), from the approved mock "Website/2026-11-09 Library articles page mock (Claude)/src/mock/mock.css":
   A "Cards grid" on the Articles page (main.cla-page, /library/articles/), B "Editorial list" for the "Latest articles" strip at the
   top of the Library page (.cla-latest, in the featured card's old slot). Direction C look: black / white / silver, rounded cards,
   big type, the theme's own font. The mock's orange marks (new-label underline, placeholder-cover badges, legend) were notes for the
   review only and are not part of the design. Markup: articles.php. Breakpoint 900px, as the Library's own. */

.cla-page, .cla-latest {
  --cla-ink: #ffffff; --cla-text: #eaeaeb; --cla-mute: #b7b8ba; --cla-line: rgba(255,255,255,.17);
  --cla-ease: cubic-bezier(.16,1,.3,1);
}
.cla-nw { white-space: nowrap; }

/* ---------------------------------------------------------------- covers */
.cla-cover { position: relative; overflow: hidden; background: #0b0b0c; isolation: isolate; }
.cla-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; }
.cla-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1s var(--cla-ease); }
@media (hover: hover) { a:hover > .cla-cover > img { transform: scale(1.04); } }

/* ================================================================ LIBRARY: "Latest articles" (B, dark panel, date-led rows) */
.cla-latest { background: #0a0a0b; color: #fff; border-radius: 24px; padding: 30px 34px 14px; min-height: 460px; display: flex; flex-direction: column; min-width: 0; }
.cla-latest__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cla-latest .cla-latest__h { margin: 0 !important; font-size: 24px !important; font-weight: 500 !important; letter-spacing: -.02em !important; line-height: 1.1 !important; color: #fff !important; }
.cla-all { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.22); color: #fff !important; transition: background .3s var(--cla-ease), color .3s, border-color .3s; }
.cla-all svg { width: 16px; height: 16px; transition: transform .4s var(--cla-ease); }
@media (hover: hover) {
  .cla-all:hover { background: #fff; color: #0c0c0d !important; border-color: #fff; }
  .cla-all:hover svg { transform: translateX(3px); }
}
.cla-all:focus-visible, .cla-row:focus-visible, .cla-card:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cla-latest__list { margin-top: 18px; flex: 1; display: flex; flex-direction: column; }

.cla-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 148px; grid-template-areas: "date title thumb" "date meta thumb"; grid-template-rows: auto 1fr;
  column-gap: 20px; row-gap: 6px; align-items: start; align-content: center; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); flex: 1;
  position: relative; color: #fff !important; text-decoration: none !important; }
.cla-row__date { grid-area: date; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.cla-row__d { font-size: 36px; font-weight: 500; letter-spacing: -.04em; line-height: .9; color: #fff; }
.cla-row__m { margin-top: 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; line-height: 1.2; font-weight: 500; color: #a4a6ac; }
.cla-latest .cla-row__t { grid-area: title; margin: 0 !important; font-size: 21px !important; line-height: 1.16 !important; letter-spacing: -.012em !important; font-weight: 500 !important; color: #fff !important; text-wrap: balance; }
.cla-latest .cla-row__meta { grid-area: meta; margin: 0 !important; font-size: 12.5px !important; line-height: 1.3; color: #9a9ca2 !important; align-self: end; font-variant-numeric: tabular-nums; }
.cla-row__thumb { grid-area: thumb; aspect-ratio: 16 / 10; border-radius: 12px; align-self: center; }
@media (hover: hover) { .cla-row:hover .cla-row__t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } }
/* One article only (until the second one's date): the row sits in the middle of the panel, a size up, title and time together */
@media (min-width: 901px) {
  .cla-row:only-child { grid-template-columns: 68px minmax(0, 1fr) 200px; grid-template-rows: auto auto; row-gap: 10px; border-bottom: 1px solid rgba(255,255,255,.12); flex: 0 0 auto; margin: auto 0; padding: 26px 0; }
  .cla-row:only-child .cla-row__d { font-size: 48px; }
  .cla-latest .cla-row:only-child .cla-row__t { font-size: 26px !important; line-height: 1.1 !important; letter-spacing: -.02em !important; align-self: end; }
  .cla-latest .cla-row:only-child .cla-row__meta { align-self: start; font-size: 13px !important; }
  .cla-row:only-child .cla-row__thumb { border-radius: 14px; }
}

/* ================================================================ ARTICLES PAGE (/library/articles/, A "Cards grid") */
main.cla-page { display: block; background: #000000; color: var(--cla-ink); padding: 44px 0 128px; }
.cla-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; box-sizing: content-box; }
.cla-crumb { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cla-mute); font-weight: 500; }
.cla-crumb a { color: var(--cla-mute); text-decoration: none; }
.cla-crumb a:hover { color: var(--cla-ink); }
.cla-crumb span[aria-current] { color: var(--cla-ink); }
.cla-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 18px; }
.cla-head h1 { margin: 0; font-size: 72px; line-height: 1.02; letter-spacing: -.035em; font-weight: 500; color: var(--cla-ink); }
.cla-count { font-size: 14px; color: var(--cla-mute); padding-bottom: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cla-card { display: block; color: inherit; text-decoration: none; min-width: 0; }
.cla-card .cla-cover { aspect-ratio: 16 / 10; border-radius: 18px; }
.cla-card__body { padding: 16px 2px 0; }
.cla-meta { margin: 0; font-size: 13px; line-height: 1.3; color: var(--cla-mute); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cla-card__t { margin: 8px 0 0; font-size: 22px; line-height: 1.14; letter-spacing: -.018em; font-weight: 500; color: var(--cla-ink); text-wrap: balance; }
.cla-deck { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--cla-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 46ch; }

.cla-grid { margin-top: 40px; }
.cla-card--lead { position: relative; display: block; height: 540px; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff; }
.cla-card--lead .cla-cover { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; z-index: -2; }
.cla-card--lead::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(6,6,7,.92) 0%, rgba(6,6,7,.7) 34%, rgba(6,6,7,0) 62%); }
.cla-card--lead .cla-card__body { position: absolute; left: 0; bottom: 0; top: 0; width: 46%; padding: 48px 0 48px 52px; display: flex; flex-direction: column; justify-content: flex-end; }
/* Desktop: the photo sits on the right, as the mock's lead art did, so the title never runs over it */
@media (min-width: 901px) {
  .cla-card--lead { background: #0b0b0c; }
  .cla-card--lead .cla-cover { left: 34%; border-radius: 0 28px 28px 0; }
  .cla-card--lead .cla-cover::after { display: none; }
  .cla-card--lead::before { background: linear-gradient(90deg, #0b0b0c 0%, #0b0b0c 34%, rgba(11,11,12,.72) 44%, rgba(11,11,12,0) 64%); }
}
.cla-card--lead .cla-meta { color: #a9abb1; font-size: 14px; }
.cla-card--lead .cla-card__t { font-size: 52px; line-height: 1.02; letter-spacing: -.032em; color: #fff; margin-top: 14px; }
.cla-card--lead .cla-deck { color: #d4d5d9; font-size: 18px; margin-top: 16px; -webkit-line-clamp: 3; max-width: 40ch; }
.cla-go { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #0c0c0d; font-weight: 500; font-size: 15px; margin-top: 26px; }
.cla-grid__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.cla-card--md .cla-cover { aspect-ratio: 16 / 9; border-radius: 22px; }
.cla-card--md .cla-card__body { padding-top: 20px; }
.cla-card--md .cla-card__t { font-size: 30px; line-height: 1.08; letter-spacing: -.024em; margin-top: 10px; }
.cla-card--md .cla-deck { font-size: 16px; max-width: 52ch; }
.cla-grid__three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }

/* ================================================================ tablet + phone (the Library's own breakpoint is 900px) */
@media (max-width: 900px) {
  main.cl-research-library .lc-lead > .cla-latest { order: 2; }
  .cla-all { height: 36px; padding: 0 12px 0 14px; font-size: 14px; }
  .cla-all svg { width: 14px; height: 14px; }

  .cla-latest { min-height: 0; border-radius: 20px; padding: 20px 18px 6px; }
  .cla-latest .cla-latest__h { font-size: 20px !important; }
  .cla-latest__list { margin-top: 12px; }
  .cla-row { grid-template-columns: 40px minmax(0, 1fr) 92px; column-gap: 14px; padding: 14px 0; }
  .cla-row__d { font-size: 26px; }
  .cla-row__m { font-size: 10.5px; margin-top: 5px; }
  .cla-latest .cla-row__t { font-size: 16px !important; line-height: 1.22 !important; }
  .cla-latest .cla-row__meta { font-size: 12px !important; }
  .cla-row__thumb { border-radius: 10px; aspect-ratio: 4 / 3; }

  main.cla-page { padding: 26px 0 120px; }
  .cla-wrap { padding: 0 20px; }
  .cla-head__row { margin-top: 12px; }
  .cla-head h1 { font-size: 44px; }
  .cla-count { font-size: 13px; padding-bottom: 6px; }
  .cla-card .cla-cover { border-radius: 16px; }

  .cla-grid { margin-top: 24px; }
  .cla-card--lead { height: auto; aspect-ratio: 4 / 5; border-radius: 22px; background: #0b0b0c; }
  /* the photo fills the upper part (where the mock's lead art sat); the words sit on black below it */
  .cla-card--lead .cla-cover { bottom: auto; height: 58%; border-radius: 22px 22px 0 0; }
  .cla-card--lead .cla-cover::after { display: none; }
  .cla-card--lead::before { background: linear-gradient(180deg, rgba(11,11,12,0) 30%, rgba(11,11,12,.86) 50%, #0b0b0c 60%); }
  .cla-card--lead .cla-card__body { width: auto; right: 0; top: auto; padding: 0 22px 24px; }
  .cla-card--lead .cla-card__t { font-size: 30px; margin-top: 10px; }
  .cla-card--lead .cla-deck { font-size: 15px; margin-top: 10px; }
  .cla-card--lead .cla-meta { font-size: 13px; }
  .cla-go { height: 42px; padding: 0 18px; font-size: 14px; margin-top: 18px; }
  .cla-grid__two, .cla-grid__three { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .cla-card--md .cla-cover { aspect-ratio: 16 / 10; border-radius: 16px; }
  .cla-card--md .cla-card__body { padding-top: 16px; }
  .cla-card--md .cla-card__t, .cla-card--sm .cla-card__t { font-size: 24px; line-height: 1.12; margin-top: 8px; }
  .cla-card--md .cla-deck, .cla-card--sm .cla-deck { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .cla-cover > img, .cla-all, .cla-all svg { transition: none !important; }
  a:hover > .cla-cover > img { transform: none; }
}
