/* R&D detail pages (Biopharmaceuticals, Medical Glycomics, HPL). Shared tokens/header/footer/buttons live in site-shared.css (link it first). */
.rd-hero{padding:100px 0 90px;background:linear-gradient(90deg,#0c334aed,#164b5ab8),var(--rd-hero-img) center/cover}
.rd-hero .eyebrow{color:#f7bc55}
.rd-hero h1{max-width:760px;margin:9px 0 18px;color:#fff;font-size:clamp(2.3rem,4.6vw,4rem);line-height:1.08;letter-spacing:-.03em}
.rd-hero p:last-of-type{max-width:680px;margin:0;color:#fff;font-size:1.15rem}

.subnav{position:sticky;top:76px;z-index:4;display:flex;gap:6px;padding:14px 0;background:#fff;border-bottom:1px solid var(--line);overflow-x:auto}
.subnav a{padding:9px 16px;border-radius:20px;color:var(--ink);font-weight:600;font-size:.92rem;text-decoration:none;white-space:nowrap}
.subnav a:hover{background:var(--mist)}
.subnav a[aria-current="page"]{background:var(--teal);color:#fff}

.rd-section{padding:64px 0}
.rd-intro{max-width:820px;margin-bottom:8px}
.rd-intro h2{margin:0 0 16px;color:var(--ink);font-size:clamp(1.6rem,2.6vw,2.1rem)}

.project-list{display:grid;gap:22px;margin-top:36px}
.project-card{display:grid;grid-template-columns:180px 1fr;gap:26px;padding:26px;border:1px solid var(--line);border-radius:4px}
.project-card img{display:block;width:100%;height:auto;align-self:start;object-fit:contain}
.project-card .project-year{display:inline-block;margin-bottom:6px;color:var(--orange);font-weight:800;font-size:.85rem;letter-spacing:.04em;text-transform:uppercase}
.project-card h3{margin:0 0 10px;color:var(--ink);font-size:1.25rem;line-height:1.3}
.project-card p{margin:0 0 12px}
.project-card p:last-child{margin-bottom:0}
.project-card .text-link{font-weight:700}
.project-card.compact{grid-template-columns:140px 1fr;align-items:center}
.project-card.compact .logo-pair{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.project-card.compact .logo-pair img{width:auto;max-width:100%;max-height:52px}

.video-embed{position:relative;width:100%;max-width:520px;margin-top:14px;padding-top:56.25%;height:0;overflow:hidden;border-radius:4px}
.video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.rd-capabilities{margin:26px 0 8px}
.rd-capabilities h3{margin:0 0 14px;color:var(--ink);font-size:1.1rem}

.posters-note{margin-top:36px;padding-top:24px;border-top:1px solid var(--line)}

@media(max-width:700px){
  .project-card,.project-card.compact{grid-template-columns:1fr}
  .project-card img{max-width:220px;margin:0 auto}
}
@media(max-width:560px){
  .rd-hero{padding:68px 0}
  .rd-hero h1{font-size:2.1rem}
  .rd-section{padding:44px 0}
  .subnav{top:65px}
}
