/* ============================================================
   article.css — every article in /research/{slug}.
   The frame (compound card, breadcrumb, tabs, takeaway, byline, at a
   glance, contents, related blocks, citations) is written by
   scripts/build-research-articles.mjs; behaviour is in
   scripts/research-article.js. Site tokens from tokens.css: Inter Tight
   display, Inter body; Bottle / Deep / Edge / Glass / Mint / Frost /
   Paper, Amber only as a small accent.

   Layout: two columns on desktop. LEFT a sticky compound card; RIGHT the
   article in a calm reading column. On phones the card stacks on top in
   a compact row. A slim contents rail sits at the far left on very wide
   screens and folds into the column below that.

   The .rw-table / .rw-table-wrap rules near the end are also used by the
   /peptides/{class} pages (build-peptide-classes.mjs); keep them generic.
   ============================================================ */

/* ---------- page ---------- */
.rw-page {
  --rw-hdr: 88px;
  --rw-box: #F2F6F4;
  --rw-line: #E2EDE8;
  --rw-text: #3D584B;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: clip;
}
.rw-nav-rule { border: 0; height: 1px; background: var(--hairline); margin: 0; }
.rw-page :target { scroll-margin-top: calc(var(--rw-hdr) + 24px); }

/* reading progress: a 3px line at the very top; only with JS */
.rw-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; display: none; }
.rw-js .rw-progress { display: block; }
.rw-progress__bar { height: 100%; background: var(--edge); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* ---------- two-column frame ---------- */
.rw-main { display: block; }
.rw-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 40px 96px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 324px minmax(0, 680px);
  grid-template-areas: "side crumbs" "side col";
  grid-template-rows: auto 1fr;
  column-gap: 80px;
  justify-content: center;
}
.rw-crumbs { grid-area: crumbs; min-width: 0; }
.rw-side { grid-area: side; align-self: start; position: sticky; top: calc(var(--rw-hdr) + 28px); }
.rw-col { grid-area: col; min-width: 0; }

/* ---------- compound card (left) ---------- */
.rw-card {
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 38, 30, .05), 0 24px 48px -30px rgba(10, 38, 30, .32);
}
.rw-card__art { display: block; width: 100%; height: auto; aspect-ratio: 340 / 300; border-bottom: 2px solid var(--glass); }
.rw-card__body { padding: 18px 20px 22px; }
.rw-card__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.35; }
.rw-status { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.rw-status i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--slate-2); }
.rw-status--fda-approved i { background: var(--edge); }
.rw-status--clinical-trials i { background: var(--amber); }
.rw-status--not-approved i { background: #fff; box-shadow: inset 0 0 0 1.5px #6F8A7D; }
.rw-status--cosmetic i { background: var(--glass); box-shadow: inset 0 0 0 1.5px var(--edge); }
.rw-status--type i { background: var(--glass); }
.rw-card__sys { min-width: 0; color: var(--slate-2); text-align: right; }
.rw-card__name {
  margin: 14px 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -.028em;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.rw-card__name--l { font-size: 33px; }
.rw-card__name--xl { font-size: 27px; line-height: 1.1; }
.rw-card__aka { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--slate-2); }
.rw-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rw-line); }
.rw-card__meta div { min-width: 0; }
.rw-card__meta dt { font-size: 12px; color: var(--slate-2); }
.rw-card__meta dd { margin: 3px 0 0; font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.35; }

/* ---------- breadcrumb ---------- */
.rw-crumbs { font-size: 13px; color: var(--slate-2); margin: 0 0 18px; }
/* one line: earlier crumbs keep their width, the current page truncates */
.rw-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; min-width: 0; white-space: nowrap; }
.rw-crumbs li { display: inline-flex; align-items: center; flex: none; }
.rw-crumbs li[aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
.rw-crumbs li[aria-current]::before { display: inline-block; }
.rw-crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--hairline-strong); }
.rw-crumbs a { color: var(--slate); text-decoration: none; display: inline-block; padding: 10px 0; margin: -10px 0; }
.rw-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rw-crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- title ---------- */
.rw-page .rw-hero { max-width: none; margin: 0; padding: 0; }
.rw-page .rw-hero__h {
  font-family: var(--font-display);
  font-size: clamp(27px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.14;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}
.rw-page .rw-hero__lede { font-size: 17px; line-height: 1.55; color: var(--rw-text); margin: 0 0 16px; max-width: 62ch; text-wrap: pretty; }
.rw-page .rw-hero__meta { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; font: 400 13px/1.3 var(--font-body); color: var(--slate-2); letter-spacing: 0; }
.rw-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--frost); color: var(--bottle); font-size: 12.5px; font-weight: 500; }

/* ---------- tabs ---------- */
.rw-tabs { display: flex; gap: 28px; margin: 28px 0 24px; border-bottom: 1px solid var(--rw-line); scroll-margin-top: calc(var(--rw-hdr) + 16px); }
.rw-tab { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--slate-2); text-decoration: none; }
.rw-tab span { margin-left: 4px; font-variant-numeric: tabular-nums; }
.rw-tab:hover { color: var(--ink); }
.rw-tab[aria-current="true"], .rw-tab[aria-selected="true"] { color: var(--ink); }
.rw-tab[aria-current="true"]::after, .rw-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.rw-js .rw-tab:not([aria-selected="true"])::after { content: none; }
.rw-tab:focus-visible { outline: 2px solid var(--edge); outline-offset: 2px; border-radius: 4px; }
.rw-panel[hidden] { display: none; }

/* ---------- key takeaway ---------- */
.rw-takeaway { margin: 0 0 26px; padding: 18px 22px 20px; border: 1px solid var(--hairline-strong); border-radius: 10px; background: #fff; }
.rw-takeaway__l { margin: 0 0 8px; font: 500 12.5px/1.3 var(--font-body); color: var(--slate-2); letter-spacing: 0; }
.rw-takeaway .rw-key-takeaway { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.rw-takeaway .rw-key-takeaway p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink); font-weight: 400; }

/* ---------- byline ---------- */
.rw-byline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 36px; }
.rw-byline div { min-width: 0; }
.rw-byline dt { font-size: 12px; color: var(--slate-2); }
.rw-byline dd { margin: 4px 0 0; font-size: 13.5px; line-height: 1.35; color: var(--ink); }
.rw-byline__pending { color: var(--slate-2) !important; }
.rw-byline__pending::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hairline-strong); vertical-align: 1px; }

/* ---------- at a glance ---------- */
.rw-glance { margin: 0 0 40px; }
.rw-glance__h, .rw-sec-h { margin: 0 0 14px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; color: var(--ink); }
.rw-glance__t { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; border-top: 1px solid var(--rw-line); }
.rw-glance__t th, .rw-glance__t td { padding: 13px 0; border-bottom: 1px solid var(--rw-line); text-align: left; vertical-align: top; }
.rw-glance__t th { width: 34%; padding-right: 20px; font-weight: 400; color: var(--slate-2); font-size: 13.5px; }
.rw-glance__t td { color: var(--ink); }
.rw-glance__t a { color: var(--edge); text-decoration: underline; text-decoration-color: rgba(37, 107, 85, .35); text-underline-offset: 3px; }
.rw-glance__t a:hover { text-decoration-color: currentColor; }
.rw-glance__note { display: block; margin-top: 4px; font-size: 13px; color: var(--slate-2); }
.rw-glance__product { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.rw-glance__product svg, .rw-more__all svg, .rw-also svg, .rw-pager svg, .rw-back svg { width: 14px; height: 14px; flex: none; }

/* ---------- contents ---------- */
.rw-toc { margin: 0 0 36px; }
.rw-toc__d { border: 1px solid var(--rw-line); border-radius: 10px; background: #fff; }
.rw-toc__s { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 18px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.rw-toc__s::-webkit-details-marker { display: none; }
.rw-toc__s::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.rw-toc__d[open] .rw-toc__s::after { transform: translateY(2px) rotate(-135deg); }
.rw-toc__l { list-style: none; margin: 0; padding: 4px 8px 12px; counter-reset: toc; }
.rw-toc__l li { counter-increment: toc; }
.rw-toc__l a { display: grid; grid-template-columns: 26px 1fr; align-items: baseline; padding: 7px 10px; border-radius: 6px; font-size: 14px; line-height: 1.4; color: var(--rw-text); text-decoration: none; }
.rw-toc__l a::before { content: counter(toc, decimal-leading-zero); font: 500 11.5px/1 var(--font-mono); color: var(--slate-2); }
.rw-toc__l a:hover { background: var(--paper); color: var(--ink); }
.rw-toc__l a[aria-current] { color: var(--ink); background: var(--frost); }
.rw-toc__l a:focus-visible { outline: 2px solid var(--edge); outline-offset: 1px; }

/* ---------- article body: calm rhythm ---------- */
.rw-page .rw-article { max-width: none; margin: 0; padding: 0; font-size: 16.5px; line-height: 1.72; color: var(--rw-text); }
.rw-page .rw-article p { margin: 0 0 20px; color: var(--rw-text); }
.rw-page .rw-hook { font-size: 18px !important; line-height: 1.6 !important; color: var(--ink) !important; margin: 0 0 24px !important; }
.rw-keyword { color: var(--ink); font-weight: 600; background: linear-gradient(180deg, transparent 64%, rgba(191, 227, 211, .75) 64%); padding: 0 1px; }
.rw-page .rw-article h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.016em;
  line-height: 1.25;
  color: var(--ink);
  margin: 56px 0 16px;
  text-wrap: balance;
}
.rw-page .rw-article h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 36px 0 12px;
  text-wrap: balance;
}
.rw-page .rw-article > :first-child { margin-top: 0; }
.rw-link { color: var(--edge); text-decoration: underline; text-decoration-color: rgba(37, 107, 85, .35); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
.rw-link:hover { color: var(--bottle); text-decoration-color: currentColor; }
.ra-link { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--edge); text-underline-offset: 3px; }
.ra-link:hover { color: var(--edge); text-decoration-style: solid; }
.rw-stat { font-weight: 600; color: var(--ink); }
.rw-page .rw-article strong { color: var(--ink); }

/* lists: plain, dash bullets */
.rw-page .rw-list, .rw-page .rw-article ul:not([class]), .rw-page .rw-article ol:not([class]) { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.rw-page .rw-list li, .rw-page .rw-article ul:not([class]) > li { position: relative; padding: 0 0 0 22px; background: none; border-radius: 0; font-size: 16px; line-height: 1.65; color: var(--rw-text); }
.rw-page .rw-list li::before, .rw-page .rw-article ul:not([class]) > li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 9px; height: 2px; border-radius: 1px; background: var(--slate-2); }
.rw-page .rw-article ol:not([class]) { counter-reset: rwol; }
.rw-page .rw-article ol:not([class]) > li { counter-increment: rwol; position: relative; padding-left: 28px; font-size: 16px; line-height: 1.65; }
.rw-page .rw-article ol:not([class]) > li::before { content: counter(rwol) "."; position: absolute; left: 0; color: var(--slate-2); font-variant-numeric: tabular-nums; }

/* existing callouts as calm grey status boxes */
.rw-page .rw-highlight, .rw-page .rw-takeaways, .rw-page .rw-watch {
  margin: 32px 0;
  padding: 22px 24px;
  background: var(--rw-box);
  border: 0;
  border-radius: 10px;
  color: var(--rw-text);
}
.rw-page .rw-highlight p, .rw-page .rw-watch p { margin: 0 0 12px !important; font-size: 15.5px !important; line-height: 1.62 !important; color: var(--rw-text) !important; }
.rw-page .rw-highlight p:last-child, .rw-page .rw-watch p:last-child { margin-bottom: 0 !important; }
.rw-page .rw-takeaways h2, .rw-page .rw-watch h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.rw-page .rw-watch strong { color: var(--ink) !important; }
.rw-page .rw-watch a.rw-link { color: var(--edge); }
.rw-page .rw-takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rw-page .rw-takeaways li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--rw-text); }
.rw-page .rw-takeaways li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 8px; height: 2px; background: var(--slate-2); border-radius: 1px; }
.rw-page .rw-quote { margin: 36px 0; padding: 2px 0 2px 22px; background: none; border: 0; border-left: 2px solid var(--glass); border-radius: 0; }
.rw-page .rw-quote-mark { display: none; }
.rw-page .rw-quote-text { font-family: var(--font-display); font-size: 19px !important; font-weight: 500; line-height: 1.45 !important; letter-spacing: -.008em; color: var(--ink) !important; margin: 0 0 10px !important; }
.rw-page .rw-quote-cite { font-family: var(--font-body) !important; font-size: 13px !important; font-weight: 400 !important; letter-spacing: 0; color: var(--slate-2) !important; margin: 0 !important; }

/* ---------- figures: charts and tables ---------- */
.rw-page .rw-figure {
  width: auto;
  max-width: none;
  margin: 36px 0;
  padding: 22px 24px 18px;
  transform: none;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  color-scheme: light;
  position: relative;
}
.rw-figure__cap { display: block; margin: 0 0 16px; }
.rw-figure__num { display: block; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--edge); font-variant-numeric: tabular-nums; }
.rw-page .rw-figure .rw-chart__h { margin: 0 0 4px !important; font-family: var(--font-display); font-size: 16.5px !important; font-weight: 600; letter-spacing: -.01em; line-height: 1.35 !important; color: var(--ink) !important; }
.rw-page .rw-figure .rw-chart__sub { margin: 0 !important; font-size: 13.5px !important; line-height: 1.55 !important; color: var(--rw-text) !important; max-width: 64ch; }
.rw-chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.rw-page .rw-figure .rw-chart__cite { margin: 14px 0 0 !important; padding: 10px 0 0; border-top: 1px solid var(--rw-line); font: 400 12.5px/1.5 var(--font-body) !important; color: var(--slate-2) !important; letter-spacing: 0; }
.rw-chart__cite a { color: var(--edge); text-decoration: underline; text-decoration-color: rgba(37, 107, 85, .35); text-underline-offset: 2px; }
.rw-figure__zoom { display: none; }

/* SVG defaults inside charts (per-element attributes still win). */
.rw-chart__svg .rw-axis line, .rw-chart__svg .rw-axis path { stroke: var(--hairline-strong); stroke-width: 1; fill: none; }
/* Fill only where the chart does not set its own (fill="#fff" on a dark bar must stay white). */
.rw-chart__svg .rw-axis text, .rw-chart__svg .rw-label { font-family: var(--font-body); font-size: 11px; }
.rw-chart__svg .rw-axis text:not([fill]), .rw-chart__svg .rw-label:not([fill]) { fill: var(--slate); }
.rw-chart__svg .rw-tick { font-family: var(--font-body); font-size: 10px; font-variant-numeric: tabular-nums; }
.rw-chart__svg .rw-tick:not([fill]) { fill: var(--slate-2); }
.rw-chart__svg .rw-bar { fill: var(--edge); }
.rw-chart__svg .rw-bar--accent { fill: var(--bottle); }
.rw-chart__svg .rw-bar--halo { fill: #8BC2AA; }
.rw-chart__svg .rw-bar--muted { fill: var(--hairline-strong); }
.rw-chart__svg .rw-line { fill: none; stroke: var(--edge); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rw-chart__svg .rw-line--accent { stroke: var(--bottle); stroke-dasharray: 4 4; }
.rw-chart__svg .rw-area { fill: var(--edge); fill-opacity: .1; }
.rw-chart__svg .rw-dot { fill: var(--edge); }
.rw-chart__svg .rw-dot--accent { fill: var(--bottle); }
.rw-chart__svg .rw-value { font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.rw-chart__svg .rw-value:not([fill]) { fill: var(--ink); }
.rw-chart__svg .rw-value--on-bar:not([fill]) { fill: #fff; }
/* white text on a light bar is unreadable: ink instead */
.rw-chart__svg .rw-bar--muted + .rw-value--on-bar, .rw-chart__svg .rw-bar--halo + .rw-value--on-bar { fill: var(--ink); }
.rw-chart__svg .rw-baseline { stroke: var(--ink); stroke-width: 1.2; }

/* comparison tables */
.rw-figure--table { padding-bottom: 8px; }
.rw-table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -24px; padding: 0 24px;
  /* edge shadows appear only while there is more to scroll */
  background:
    linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 28px 100% no-repeat local,
    linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(10, 38, 30, .14), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(10, 38, 30, .14), transparent) right / 12px 100% no-repeat scroll;
}
.rw-table-scroll:focus-visible { outline: 2px solid var(--edge); outline-offset: -2px; }
.rw-dtable { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.rw-dtable th, .rw-dtable td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rw-line); color: var(--rw-text); background: none; font-weight: 400; text-transform: none; letter-spacing: 0; }
.rw-dtable thead th { padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--ink); }
.rw-dtable tbody td:first-child, .rw-dtable tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.rw-dtable tbody tr:last-child td, .rw-dtable tbody tr:last-child th { border-bottom: 0; }

/* ---------- product card (existing, restyled) ---------- */
.rw-cta-product {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 24px;
  align-items: center;
  margin: 40px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.rw-cta-product:hover { border-color: #A9C9BA; box-shadow: 0 16px 36px -24px rgba(10, 38, 30, .35); }
.rw-cta-product__media { width: 168px; height: 168px; border-radius: 8px; overflow: hidden; background: var(--frost); }
.rw-cta-product__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rw-cta-product__body { display: grid; gap: 4px; min-width: 0; align-content: start; }
.rw-cta-product__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rw-cta-product__eyebrow { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--frost); color: var(--bottle) !important; font: 500 12px/1 var(--font-body); margin: 0 !important; }
.rw-cta-product__h { margin: 0 !important; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.016em; line-height: 1.2; color: var(--ink) !important; }
.rw-cta-product__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.rw-cta-product__chip { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rw-line); background: #fff; font-size: 12px; color: var(--rw-text); }
.rw-cta-product__bd { margin: 8px 0 0 !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--rw-text) !important; }
.rw-cta-product__row { display: flex; justify-content: flex-start; margin-top: 12px; }
.rw-cta-product__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--bottle); color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .2s; }
.rw-cta-product:hover .rw-cta-product__btn { background: var(--deep); }
.rw-cta-product__btn::after { content: "\2192"; transition: transform .2s; }
.rw-cta-product:hover .rw-cta-product__btn::after { transform: translateX(3px); }

/* research-updates sign-up card (a product-card twin with a form) */
.rw-email-capture { cursor: default; }
.rw-email-capture:hover { border-color: var(--hairline-strong); box-shadow: none; }
.rw-email-capture__form[hidden] { display: none; }
.rw-email-capture__form { display: flex; gap: 10px; align-items: stretch; margin-top: 12px; }
.rw-email-capture__input { flex: 1 1 auto; min-width: 0; appearance: none; -webkit-appearance: none; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 0 16px; min-height: 42px; font: 400 14px var(--font-body); color: var(--ink); background: #fff; }
.rw-email-capture__input:focus { outline: none; border-color: var(--edge); box-shadow: 0 0 0 3px rgba(37, 107, 85, .14); }
.rw-email-capture button.rw-cta-product__btn { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; }
.rw-email-capture .rw-cta-product__btn::after { content: none; }
.rw-email-capture__msg { font-size: 14px !important; margin: 12px 0 0 !important; color: var(--ink) !important; font-weight: 600; }
.rw-email-capture__msg--error { color: #b42318 !important; }

/* ---------- after the article ---------- */
.rw-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 56px 0 0; }
.rw-pager a { display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 16px 18px; border: 1px solid var(--rw-line); border-radius: 10px; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.rw-pager a:hover { border-color: #A9C9BA; background: var(--paper); }
.rw-pager__next { text-align: right; align-items: flex-end; grid-column: 2; }
.rw-pager__dir { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--slate-2); }
.rw-pager__t { font-size: 15px; font-weight: 500; line-height: 1.35; }

.rw-also { margin: 56px 0 0; }
.rw-also__l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rw-line); }
.rw-also__l a { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; min-height: 52px; padding: 10px 2px; border-bottom: 1px solid var(--rw-line); color: var(--ink); text-decoration: none; }
.rw-also__l i { width: 6px; height: 6px; border-radius: 50%; background: var(--edge); }
.rw-also__t { font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.rw-also__type { font-size: 12.5px; color: var(--slate-2); white-space: nowrap; }
.rw-also__l svg { color: var(--slate-2); transition: transform .2s, color .2s; }
.rw-also__l a:hover .rw-also__t { color: var(--edge); }
.rw-also__l a:hover svg { color: var(--edge); transform: translateX(2px); }

.rw-more { margin: 56px 0 0; }
.rw-more__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rw-strip { display: grid; grid-template-columns: minmax(0, 1fr) 216px; align-items: stretch; height: 68px; border: 1px solid var(--rw-line); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s; }
.rw-strip:hover { border-color: #A9C9BA; box-shadow: 0 12px 28px -22px rgba(10, 38, 30, .4); }
.rw-strip__art { display: block; width: 100%; height: 100%; }
.rw-strip__txt { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 16px; border-left: 2px solid var(--glass); min-width: 0; }
.rw-strip__name { font-size: 14.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rw-strip__st { font-size: 12.5px; color: var(--slate-2); }
.rw-more__all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--edge); text-decoration: none; }
.rw-more__all:hover { text-decoration: underline; text-underline-offset: 3px; }

.rw-sources { margin: 56px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rw-line); font-size: 12.5px; line-height: 1.65; color: var(--slate-2); }
.rw-sources__l { color: var(--rw-text); font-weight: 500; }
.rw-sources em { font-style: italic; }
.rw-sources__all { color: var(--edge); white-space: nowrap; }
.rw-back { margin: 28px 0 0; }
.rw-back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--hairline-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.rw-back a:hover { border-color: var(--edge); background: var(--paper); }

/* ---------- citations panel ---------- */
.rw-cites { margin: 64px 0 0; }
.rw-js .rw-cites { margin-top: 0; }
.rw-cites .rw-citations { margin: 0; padding: 0; border: 0; }
.rw-cites .rw-citations h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.012em; text-transform: none; color: var(--ink); }
.rw-cites .rw-citations ol { list-style: none; margin: 0; padding: 0; counter-reset: cite; border-top: 1px solid var(--rw-line); }
.rw-cites .rw-citations li { counter-increment: cite; position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--rw-line); font-size: 14px; line-height: 1.6; color: var(--rw-text); }
.rw-cites .rw-citations li::before { content: counter(cite); position: absolute; left: 0; top: 14px; min-width: 26px; font: 500 12.5px/1.6 var(--font-mono); color: var(--slate-2); }
.rw-cites .rw-citations a { color: var(--edge); overflow-wrap: anywhere; }

/* ---------- chart zoom (small screens) ---------- */
.rw-zoom { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); }
.rw-zoom::backdrop { background: rgba(10, 38, 30, .5); }
.rw-zoom__bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--rw-line); background: #fff; }
.rw-zoom__t { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.rw-zoom__x { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: #fff; font: 500 14px var(--font-body); color: var(--ink); cursor: pointer; }
.rw-zoom__body { overflow: auto; padding: 20px 16px 32px; -webkit-overflow-scrolling: touch; }
.rw-zoom__body svg { display: block; width: 760px; max-width: none; height: auto; overflow: visible; }

/* ---------- contents as a slim rail (very wide screens) ---------- */
@media (min-width: 1360px) {
  .rw-js .rw-toc { position: fixed; z-index: 20; left: 20px; top: 50%; transform: translateY(-50%); margin: 0; width: 28px; }
  .rw-js .rw-toc__d { border: 0; background: none; }
  .rw-js .rw-toc__s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; min-height: 0; }
  .rw-js .rw-toc__l { padding: 8px 0; display: grid; gap: 2px; }
  .rw-js .rw-toc__l a { grid-template-columns: 1fr; padding: 5px 0; border-radius: 0; background: none !important; }
  .rw-js .rw-toc__l a::before { content: ""; display: block; width: 14px; height: 1.5px; border-radius: 1px; background: var(--hairline-strong); transition: width .2s, background .2s; }
  .rw-js .rw-toc__l a[aria-current]::before { width: 24px; background: var(--edge); }
  .rw-js .rw-toc__l a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* hover or keyboard focus opens the labels */
  .rw-js .rw-toc:hover, .rw-js .rw-toc:focus-within { width: 300px; }
  .rw-js .rw-toc:hover .rw-toc__d, .rw-js .rw-toc:focus-within .rw-toc__d { background: #fff; border: 1px solid var(--rw-line); border-radius: 12px; box-shadow: 0 24px 48px -28px rgba(10, 38, 30, .35); }
  .rw-js .rw-toc:hover .rw-toc__l, .rw-js .rw-toc:focus-within .rw-toc__l { padding: 10px 8px; }
  .rw-js .rw-toc:hover .rw-toc__l a, .rw-js .rw-toc:focus-within .rw-toc__l a { grid-template-columns: 22px 1fr; padding: 6px 8px; border-radius: 6px; font-size: 13.5px; }
  .rw-js .rw-toc:hover .rw-toc__l a span, .rw-js .rw-toc:focus-within .rw-toc__l a span { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .rw-js .rw-toc:hover .rw-toc__l a:hover, .rw-js .rw-toc:focus-within .rw-toc__l a:hover { background: var(--paper) !important; }
  .rw-js .rw-toc:hover .rw-toc__l a[aria-current], .rw-js .rw-toc:focus-within .rw-toc__l a[aria-current] { background: var(--frost) !important; color: var(--ink); }
  .rw-js.rw-on-cites .rw-toc { display: none; }
}

/* ---------- narrower desktops ---------- */
@media (max-width: 1180px) {
  .rw-wrap { grid-template-columns: 272px minmax(0, 660px); column-gap: 48px; padding-left: 32px; padding-right: 32px; }
  .rw-card__name { font-size: 34px; }
  .rw-card__name--l { font-size: 28px; }
  .rw-card__name--xl { font-size: 24px; }
}

/* ---------- tablets and phones: card on top, compact ---------- */
@media (max-width: 1023px) {
  .rw-page { --rw-hdr: 72px; }
  .rw-wrap { display: block; max-width: 720px; padding: 18px 24px 72px; }
  .rw-crumbs { margin-bottom: 14px; }
  .rw-side { position: static; margin: 0 0 24px; }
  .rw-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); border-radius: 12px; box-shadow: none; }
  .rw-card__art { width: 96px; height: 100%; min-height: 96px; aspect-ratio: auto; border-bottom: 0; border-right: 2px solid var(--glass); }
  .rw-card__body { padding: 12px 16px 14px; align-self: center; }
  .rw-card__row { display: block; font-size: 12.5px; }
  .rw-card__sys { text-align: left; }
  .rw-status + .rw-card__sys::before { content: "·"; margin: 0 6px; color: var(--hairline-strong); }
  .rw-card__name, .rw-card__name--l, .rw-card__name--xl { margin: 6px 0 0; font-size: 24px; line-height: 1.1; }
  .rw-card__aka { margin-top: 3px; font-size: 12.5px; }
  .rw-card__meta { display: none; }
  .rw-toc { margin-bottom: 32px; }
}
@media (max-width: 760px) {
  .rw-wrap { padding: 14px 16px 64px; }
  .rw-crumbs { font-size: 12.5px; }
  .rw-crumbs li + li::before { margin: 0 7px; }
  .rw-crumbs ol { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
  .rw-crumbs li[aria-current] { display: inline-flex; flex: 0 1 auto; overflow: visible; }
  .rw-page .rw-hero__lede { font-size: 16px; }
  .rw-tabs { margin: 22px 0 20px; }
  .rw-byline { grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 30px; }
  .rw-takeaway { padding: 16px 18px; }
  .rw-glance__t th { width: 40%; padding-right: 12px; }
  .rw-page .rw-article { font-size: 16px; }
  .rw-page .rw-hook { font-size: 17px !important; }
  .rw-page .rw-article h2 { font-size: 21px; margin-top: 44px; }
  .rw-page .rw-article h3 { font-size: 18px; margin-top: 30px; }
  .rw-page .rw-highlight, .rw-page .rw-takeaways, .rw-page .rw-watch { padding: 18px; margin: 26px 0; }
  .rw-page .rw-figure { margin: 28px -4px; padding: 16px 14px 14px; border-radius: 10px; }
  .rw-table-scroll { margin: 0 -14px; padding: 0 14px; }
  .rw-figure__zoom { display: inline-flex; align-items: center; min-height: 40px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: #fff; font: 500 13px var(--font-body); color: var(--ink); cursor: pointer; }
  .rw-chart__svg { cursor: zoom-in; }
  .rw-chart__svg .rw-axis text, .rw-chart__svg .rw-label { font-size: 12px; }
  .rw-chart__svg .rw-tick { font-size: 10.5px; }
  .rw-chart__svg .rw-value { font-size: 12.5px; }
  .rw-cta-product { grid-template-columns: 1fr; gap: 16px; margin: 32px 0; padding: 16px; }
  .rw-cta-product__media { width: 100%; height: auto; max-width: 220px; aspect-ratio: 1 / 1; margin: 0 auto; }
  .rw-cta-product__row { margin-top: 14px; }
  .rw-cta-product__btn { width: 100%; justify-content: center; min-height: 44px; }
  .rw-email-capture__form { flex-direction: column; }
  .rw-email-capture__input { min-height: 44px; }
  .rw-pager { grid-template-columns: 1fr; }
  .rw-pager__next { grid-column: auto; }
  .rw-pager > span:empty { display: none; }
  .rw-also__l a { grid-template-columns: 8px minmax(0, 1fr) 14px; }
  .rw-also__type { grid-column: 2; grid-row: 2; margin-top: -2px; }
  .rw-also__l svg { grid-column: 3; grid-row: 1 / span 2; }
  .rw-strip { grid-template-columns: minmax(0, 1fr) 168px; height: 64px; }
  .rw-cites .rw-citations li { padding-left: 32px; font-size: 13.5px; }
}

/* ============================================================
   Shared with /peptides/{class} pages (build-peptide-classes.mjs):
   keep generic.
   ============================================================ */
.rw-table-wrap { margin: 28px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rw-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.rw-table caption { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.rw-table th, .rw-table td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.rw-table th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.rw-table td { color: var(--slate); }
.rw-table tbody tr:last-child td, .rw-table tbody tr:last-child th { border-bottom: 0; }
.rw-scope { margin: 32px 0 0; padding: 16px 18px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 13.5px; line-height: 1.55; color: var(--slate); background: #fff; }
.rw-scope p { margin: 0; }
