/* Yang Lab: minimal refinements, grounded in the original Brandeis blue design. */
*, *::before, *::after { box-sizing:border-box; }
:root { --quiet-line:rgba(0,52,120,.14); --quiet-muted:#52647b; }
:where(a,button,input,textarea):focus-visible { outline:3px solid var(--secondary); outline-offset:3px; }
.page-header { background:linear-gradient(180deg,var(--primary),var(--primary-dark)); box-shadow:none;
  border-radius:var(--radius); padding:1.1rem 1.35rem; margin-bottom:1.6rem; }
.page-header h1 { margin:0; font-size:clamp(1.65rem,3vw,2.1rem); color:#fff; }
.card, .project, .news-item, .figures-grid figure { border-color:var(--quiet-line); box-shadow:0 2px 9px rgba(2,42,91,.035); }
.people-page .person-photo { object-position:center top; }
.news-list .news-item { overflow:hidden; }

/* Original homepage: welcome + the three original research figures, with no extra sections. */
.hero { padding:1.35rem 1.45rem 1.45rem; margin-bottom:1.7rem; }
.hero .lead { color:rgba(255,255,255,.94); line-height:1.75; max-width:58rem; }
.hero .lead strong { color:#fff; }

/* Publications — preserve original live-page visual language:
   original background var(--bg) and individual, full-width white publication cards.
   No independently colored TOC tile. Tighter gaps than the original 1rem. */
.publication-section { margin:0 0 1.85rem; }
.publication-section-header { background:transparent; box-shadow:none; border-bottom:2px solid var(--primary);
  margin:0 0 .6rem; padding:0 0 .55rem; }
.publication-section-header h2 { color:var(--primary); margin:0 0 .15rem;
  font-size:clamp(1.24rem,2.25vw,1.55rem); line-height:1.28; }
.publication-lab { color:var(--quiet-muted); margin:0; font-size:.92rem; line-height:1.55; }
/* The outer page retains the live site's #f7f9fc background.
   Each publication is one white card including both citation and graphic. */
.publication-list { background:transparent; border:0; border-radius:0; overflow:visible; }
.publication-list .pub-card { display:grid; grid-template-columns:minmax(0,1fr) 300px;
  align-items:center; gap:1.05rem; background:var(--card);
  border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow);
  margin:0 0 .65rem; padding:.88rem 1.05rem; }
.publication-list .pub-card:last-child { border-bottom:1px solid var(--border); margin-bottom:0; }
.publication-list .pub-card > div:first-child { min-width:0; }
.publication-list .pub-title { font-size:1.035rem; line-height:1.45; font-weight:800; color:var(--primary-dark); margin:0 0 .3rem; }
.publication-list .pub-authors { color:#35465b; font-size:.92rem; line-height:1.55; margin-bottom:.18rem; }
.publication-list .pub-journal { color:var(--quiet-muted); font-size:.92rem; line-height:1.5; margin-bottom:.35rem; }
.publication-list .pub-links { display:flex; align-items:center; flex-wrap:wrap; gap:.12rem .88rem; margin:0; }
.publication-list .pub-links .pipe { display:none; }
.publication-list .pub-links a { color:var(--primary); text-decoration:underline; text-underline-offset:3px;
  font-size:.88rem; line-height:1.55; font-weight:600; }
.publication-list .pub-figure-link { grid-column:2; width:100%; max-width:300px;
  display:flex; justify-content:center; align-items:center; margin:0; min-height:0;
  padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; cursor:zoom-in; }
.publication-list .pub-thumb { display:block; width:100%; max-width:300px; height:auto; max-height:235px;
  object-fit:contain; margin:0; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
.publication-list .pub-figure-link:hover .pub-thumb { opacity:.92; }

/* The zoom window is dark, so a site-applied white tile never surrounds a figure. */
.publication-image-dialog { border:0; padding:0; border-radius:10px; width:min(1080px,calc(100vw - 1.5rem));
  max-width:calc(100vw - 1.5rem); max-height:calc(100vh - 1.5rem); background:#0c1d32;
  color:#fff; box-shadow:0 20px 65px rgba(0,0,0,.4); }
.publication-image-dialog::backdrop { background:rgba(3,17,37,.84); }
.publication-image-dialog-inner { padding:1rem; display:flex; flex-direction:column; align-items:center; gap:.65rem; }
.publication-image-dialog img { display:block; max-width:100%; max-height:76vh; width:auto; height:auto;
  object-fit:contain; background:transparent; }
.publication-image-dialog-caption { font-size:.9rem; line-height:1.5; margin:0; max-width:60rem; color:#e8f1ff; }
.publication-image-dialog-close { align-self:flex-end; border:1px solid rgba(255,255,255,.45); border-radius:50%;
  width:40px; height:40px; background:transparent; color:#fff; cursor:pointer; font:inherit; font-size:1.6rem; }
.publication-image-dialog-close:hover { background:rgba(255,255,255,.14); }

/* Photos: every manifest image displayed in one vertical, scrollable document. */
.gallery-feed { max-width:900px; margin:0 auto; }
.gallery-status { color:var(--muted); font-size:.95rem; margin:0 0 1.2rem; }
.gallery-status[hidden] { display:none; }
.gallery-list { display:flex; flex-direction:column; gap:2.1rem; }
.gallery-entry { margin:0; padding:0 0 1.65rem; border-bottom:1px solid var(--quiet-line); }
.gallery-entry:last-child { border-bottom:0; }
.gallery-entry a { display:block; line-height:0; text-decoration:none; }
.gallery-entry img { display:block; width:100%; height:auto; max-height:740px; object-fit:contain;
  background:transparent; border:0; border-radius:6px; }
.gallery-entry figcaption { display:flex; flex-direction:column; gap:.12rem; line-height:1.5;
  margin-top:.7rem; color:#173654; }
.gallery-title { font-size:1.02rem; font-weight:750; }
.gallery-date { color:var(--quiet-muted); font-size:.87rem; }
.gallery-description { font-size:.94rem; color:#435870; }

@media (min-width:561px) and (max-width:870px) {
  .publication-list .pub-card { grid-template-columns:minmax(0,1fr) 225px; gap:1rem; }
  .publication-list .pub-thumb { max-width:225px; max-height:220px; }
}
@media (max-width:560px) {
  .hero { padding:1.1rem 1rem; }
  .page-header { padding:1rem 1.1rem; }
  .publication-list .pub-card { grid-template-columns:minmax(0,1fr); gap:.65rem; padding:.9rem 1rem; }
  .publication-list .pub-title { font-size:.99rem; }
  .publication-list .pub-authors,.publication-list .pub-journal { font-size:.87rem; }
  .publication-list .pub-figure-link { grid-column:1; width:100%; max-width:340px; justify-self:start; }
  .publication-list .pub-thumb { width:100%; max-width:340px; max-height:235px; }
  .gallery-entry img { max-height:600px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
