/* Page-local media and resources; the shared research catalog is unchanged. */
.mega-resources { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 28px; }
.mega-resources a { display:inline-flex; align-items:center; padding:9px 15px; border:1px solid var(--site-border); border-radius:5px; background:var(--site-soft); color:var(--site-link); font-size:14px; font-weight:600; text-decoration:none!important; }
.mega-resources a:hover { border-color:var(--site-hover); color:var(--site-hover); }
.mega-video { position:relative; width:100%; aspect-ratio:16/9; margin:24px 0; overflow:hidden; border-radius:6px; background:var(--site-soft); }
.mega-video iframe { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; }
.mega-figure { margin:30px 0!important; }
.mega-figure img { display:block; width:100%; height:auto; margin:0 auto; border-radius:5px; }
.mega-figure--diagram { max-width:700px; margin:30px auto!important; }
.mega-figure figcaption { margin-top:10px; color:var(--site-muted); font-size:14px; line-height:1.55; text-align:left; }
.mega-authors { font-size:14px; line-height:1.8; color:var(--site-muted); padding-top:12px; border-top:1px solid var(--site-border); }
.mega-table { max-width:100%; overflow-x:auto; }
.mega-table table { margin-bottom:0!important; }
.mega-materials { margin:24px 0 36px; padding:18px 20px; border:1px solid var(--site-border); border-radius:6px; background:var(--site-surface); }
.mega-materials summary { cursor:pointer; color:var(--site-heading); font-weight:600; line-height:1.5; }
.mega-materials[open] summary { margin-bottom:24px; }
.mega-materials h3 { margin-top:28px; }
@media (max-width:600px) {
  .mega-resources { gap:8px; }
  .mega-resources a { padding:8px 11px; font-size:13px; }
  .mega-materials { padding:15px; }
}
