/* research-hub.css — the /research library index (public/research.html).
   The page is generated by scripts/build-research.mjs; the card styling
   follows the rs-card treatment used by the article heroes in article.css. */

.rs-page { background: #fff; color: var(--ink); font-family: var(--font-body); margin: 0; }
.rs-wrap { max-width: var(--max, 1216px); margin: 0 auto; padding: 0 32px 72px; box-sizing: border-box; }

.rs-crumbs { padding: 20px 0 0; font-size: 13px; color: var(--slate-2); }
.rs-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rs-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.rs-crumbs li + li::before { content: "\203A"; color: var(--hairline-strong); }
.rs-crumbs a { color: var(--slate); text-decoration: none; display: inline-block; padding: 8px 0; margin: -8px 0; }
.rs-crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.rs-head { padding: 28px 0 8px; max-width: 760px; }
.rs-head h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.rs-head p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--slate); margin: 0 0 12px; max-width: 64ch; }

.rs-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 8px; }
.rs-tools[hidden] { display: none; }
.rs-search { flex: 1 1 260px; max-width: 420px; height: 44px; padding: 0 14px; border: 1px solid var(--card-border); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; box-sizing: border-box; }
.rs-search:focus-visible, .rs-select:focus-visible { outline: 2px solid var(--blurple); outline-offset: 2px; }
.rs-select { height: 44px; padding: 0 12px; border: 1px solid var(--card-border); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.rs-count { font-size: 13px; color: var(--slate-2); margin: 0; }

.rs-jump { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.rs-jump a { color: var(--slate); text-decoration: none; display: inline-block; padding: 8px 0; }
.rs-jump a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.rs-section { padding: 40px 0 0; border-top: 1px solid var(--hairline); margin-top: 40px; }
.rs-section[hidden] { display: none; }
.rs-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin: 0 0 20px; }
.rs-section__h { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.15; margin: 0; }
.rs-section__link { font-size: 14px; color: var(--electric); text-decoration: underline; text-underline-offset: 3px; }
.rs-section__bd { font-size: 15px; color: var(--slate); line-height: 1.55; margin: -8px 0 20px; max-width: 70ch; }

.rs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rs-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; transition: transform .15s ease; }
.rs-card[hidden] { display: none; }
@media (hover: hover) {
  .rs-card:hover { transform: translateY(-3px); }
  .rs-card:hover .rs-card__hero { box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.18); }
  .rs-card:hover .rs-card__h { text-decoration: underline; text-underline-offset: 3px; }
}
.rs-card__hero { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; display: block; color: #fff; background: #f2f5f3; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.12); transition: box-shadow .25s ease; isolation: isolate; }
.rs-card__hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rs-card__hero::before { content: ''; position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; z-index: 1; }
.rs-card__hero::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; z-index: 2; }
.rs-card__chip { position: absolute; bottom: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; padding: 6px 12px; background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); border-radius: 999px; color: #fff; font-family: var(--font-meta); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); pointer-events: none; }
.rs-card__body { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.rs-card__h { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; margin: 0; color: var(--ink); text-wrap: balance; }
.rs-card__dek { font-size: 14px; color: var(--slate); line-height: 1.5; margin: 0; }
.rs-card__meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--slate-2); flex-wrap: wrap; }
.rs-card__meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.4; }

.rs-empty { font-size: 15px; color: var(--slate); margin: 24px 0 0; }
.rs-empty[hidden] { display: none; }

/* Per-section tints, same palette as the article heroes (article.css). */
.rs-card[data-section="bpc-157-tb-500-thymic"] .rs-card__hero::before,
.rs-card[data-section="blends"] .rs-card__hero::before { background: radial-gradient(ellipse 70% 60% at 80% 15%, rgba(191, 227, 211, 0.55), transparent 60%), linear-gradient(160deg, var(--cyan) 0%, #0A261E 100%); }
.rs-card[data-section="copper-melanocortin"] .rs-card__hero::before { background: radial-gradient(ellipse 65% 55% at 15% 85%, rgba(255, 196, 128, 0.55), transparent 60%), linear-gradient(220deg, var(--sunset) 0%, #5a1f00 100%); }
.rs-card[data-section="gh-secretagogues"] .rs-card__hero::before { background: radial-gradient(ellipse 65% 55% at 20% 18%, rgba(37, 107, 85, 0.55), transparent 60%), linear-gradient(130deg, var(--royal) 0%, #0a261e 100%); }
.rs-card[data-section="incretin-analogs"] .rs-card__hero::before { background: radial-gradient(ellipse 65% 55% at 85% 80%, rgba(37, 107, 85, 0.50), transparent 60%), linear-gradient(180deg, var(--electric) 0%, #0a261e 100%); }
.rs-card[data-section="mitochondrial"] .rs-card__hero::before { background: radial-gradient(ellipse 55% 70% at 92% 50%, rgba(255, 181, 217, 0.55), transparent 60%), linear-gradient(170deg, var(--magenta) 0%, #66143e 100%); }
.rs-card[data-section="neuropeptides"] .rs-card__hero::before { background: radial-gradient(ellipse 65% 50% at 50% 8%, rgba(191, 227, 211, 0.55), transparent 60%), linear-gradient(195deg, var(--blurple) 0%, #0f3b2e 100%); }
.rs-card[data-section="bioregulators"] .rs-card__hero::before { background: radial-gradient(ellipse 65% 55% at 50% 92%, rgba(255, 238, 128, 0.55), transparent 60%), linear-gradient(140deg, var(--yellow) 0%, #4a3d00 100%); }
.rs-card[data-section="methods"] .rs-card__hero::before,
.rs-card[data-section="regulatory"] .rs-card__hero::before { background: radial-gradient(ellipse 55% 70% at 8% 50%, rgba(195, 217, 207, 0.55), transparent 60%), linear-gradient(190deg, var(--slate) 0%, #0a261e 100%); }

@media (max-width: 960px) {
  .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .rs-wrap { padding: 0 16px 56px; }
  .rs-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rs-search, .rs-select { flex: 1 1 100%; max-width: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .rs-jump { display: none; }
}
