/* Publication cards share the site's Montserrat typography and purple palette. */
/* Keep the expanded navigation above the team cards directly below it. */
.headroom-wrapper {
  position: relative;
  z-index: 10;
}
#team #pubs {
  width: 100%;
  padding: 0;
  margin: 60px 0;
  scroll-margin-top: 120px;
}
#pubs .publication-card {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #e7e2ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 22px rgba(23, 28, 40, .06);
  transition: box-shadow .2s ease, border-color .2s ease;
}
#pubs .publication-card:hover {
  border-color: #b99bd4;
  box-shadow: 0 10px 30px rgba(85, 25, 139, .12);
}
#pubs .publication-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f2f8;
  padding: 20px;
  min-width: 0;
}
#pubs .publication-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
  border-radius: 6px;
}
#pubs .publication-content {
  padding: 28px 32px;
  min-width: 0;
}
#pubs .publication-title {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  font-weight: 600;
  color: #171c28;
}
#pubs .publication-title a { color: inherit; text-decoration: none; }
#pubs .publication-title a:hover { color: #8c43ce; }
#pubs .publication-summary {
  margin: 14px 0 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #666;
}
#pubs .publication-links { display: flex; flex-wrap: wrap; gap: 10px; }
#pubs .pub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 6px;
  background: #55198b;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  transition: background .2s ease;
}
#pubs .pub-button:hover { background: #8c43ce; }
#pubs a:focus-visible { outline: 3px solid #aaa5ff; outline-offset: 4px; }
#pubs .publication-card-dark { background: #202635; border-color: #3b4050; box-shadow: none; }
#pubs .publication-card-dark .publication-title { color: #fff; }
#pubs .publication-card-dark .publication-summary { color: #c7cbd4; }
#pubs .publication-card-dark .publication-visual { background: #eae7f0; }
#pubs .publication-card-dark:hover { border-color: #aaa5ff; }
@media (max-width: 700px) {
  #pubs .publication-card { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  #pubs .publication-visual { padding: 18px; }
  #pubs .publication-visual img { max-height: 240px; }
  #pubs .publication-content { padding: 22px; }
  #pubs .publication-title { font-size: 21px; }
  #pubs .publication-summary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  #pubs .publication-card, #pubs .pub-button { transition: none; }
}
