/* ═══════════════════════════════════════════════════════════════════════
   PUBLICATIONS TAB  –  aligned with _tab_overview.html style
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Section wrapper  (no tinted bg — matches overview) ── */
.hah-publications{
  min-height: 60vh;
}

/* ── Header ── */
.hah-pub-title{
  font-size: 1.85rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -.02em;
  margin-bottom: .35rem;
  line-height: 1;
}
.hah-pub-subtitle{
  color: #5a5a5a;
  font-size: 1.02rem;
  max-width: 48ch;
  margin-bottom: 1.5rem;
}

/* ── Filter pills  (hero-tab vocabulary) ── */
.hah-pub-filters{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.hah-pub-filter{
  display: inline-flex;
  align-items: center;
  padding: .45rem 1rem;
  font-size: .92rem;
  font-weight: 600;
  border: 1.5px solid #d0d0d0;
  border-radius: 999px;
  background: #fff;
  color: #444;
  cursor: pointer;
  line-height: 1.1;
  transition: all .2s ease;
}
.hah-pub-filter:hover{
  border-color: var(--hah-green);
  color: var(--hah-green);
  background: rgba(0,136,58,.04);
}
.hah-pub-filter.active{
  background: var(--hah-green);
  border-color: var(--hah-green);
  color: #fff;
}

/* ── Section blocks ── */
.hah-pub-section{
  margin-bottom: 2.8rem;
}

/* Section header — mirrors overview's  h3.border-bottom.pb-2.mb-3
   with --hah-green icon instead of text-primary                       */
.hah-pub-section-header{
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid #dee2e6;       /* Bootstrap border-bottom */
}
.hah-pub-section-header h3{
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

/* Icon — inline like overview's <i class="bi … text-primary me-2">    */
.hah-pub-section-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hah-green);
  font-size: 1.15rem;
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

.hah-pub-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(0,136,58,.1);
  color: var(--hah-green);
  font-size: .75rem;
  font-weight: 700;
  margin-left: auto;
}

/* ── Publication list ── */
.hah-pub-list{
  list-style: none;
  padding: 0;
  margin: 0;
}
.hah-pub-item{
  display: flex;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: .5rem;
  background: #fff;
  border-radius: .5rem;
  border: 1px solid #e8e8e8;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hah-pub-item:hover{
  border-color: rgba(0,136,58,.3);
  box-shadow: 0 2px 10px rgba(0,136,58,.07);
}

.hah-pub-item--compact{
  padding: .75rem 1rem;
  margin-bottom: .35rem;
}

/* year badge */
.hah-pub-year-badge{
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(0,136,58,.08);
  color: var(--hah-green);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.hah-pub-content{
  flex: 1;
  min-width: 0;
}
.hah-pub-authors{
  font-size: .82rem;
  color: #666;
  margin-bottom: .3rem;
  line-height: 1.45;
}
.hah-pub-article-title{
  font-size: .95rem;
  font-weight: 650;
  color: #1a1a1a;
  margin-bottom: .25rem;
  line-height: 1.4;
}
.hah-pub-journal{
  font-size: .84rem;
  color: #555;
  margin-bottom: .3rem;
}

/* DOI link */
.hah-pub-doi{
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 600;
  color: var(--hah-green);
  text-decoration: none;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgba(0,136,58,.06);
  border: 1px solid rgba(0,136,58,.12);
  transition: background .15s ease, border-color .15s ease;
}
.hah-pub-doi:hover{
  background: rgba(0,136,58,.14);
  border-color: rgba(0,136,58,.3);
  color: var(--hah-green-dark);
  text-decoration: none;
}

/* ── Conference grouping ── */
.hah-conf-group{
  margin-bottom: 1.5rem;
}
.hah-conf-venue{
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: .65rem;
  padding-left: .15rem;
}
.hah-conf-dot{
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--hah-green);
  flex-shrink: 0;
}
.hah-conf-location{
  font-weight: 400;
  color: #888;
}
.hah-conf-talks{
  padding-left: 1.2rem;
  border-left: 2px solid rgba(0,136,58,.15);
}

/* ── Press / media cards ── */
.hah-press-card{
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: .5rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.hah-press-card:hover{
  border-color: rgba(0,136,58,.35);
  box-shadow: 0 4px 14px rgba(0,136,58,.09);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.hah-press-source{
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hah-green);
}
.hah-press-headline{
  font-size: .92rem;
  font-weight: 650;
  color: #1a1a1a;
  line-height: 1.35;
  flex: 1;
}
.hah-press-date{
  font-size: .78rem;
  color: #888;
}

/* ── TV cards ── */
.hah-tv-card{
  position: relative;
  border-left: 3px solid var(--hah-green);
}
.hah-tv-play{
  font-size: 1.4rem;
  color: var(--hah-green);
  margin-bottom: .15rem;
}

/* ── Fade-in animation ── */
@keyframes hahPubFade{
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hah-pub-fadein{
  animation: hahPubFade .3s ease both;
}

/* ── Responsive ── */
@media (max-width: 768px){
  .hah-pub-item{
    flex-direction: column;
    gap: .5rem;
  }
  .hah-pub-year-badge{
    align-self: flex-start;
  }
  .hah-pub-title{
    font-size: 1.45rem;
  }
  .hah-pub-filters{
    gap: .35rem;
  }
  .hah-pub-filter{
    font-size: .82rem;
    padding: .35rem .75rem;
  }
}
@media (max-width: 576px){
  .hah-pub-filters{
    gap: .3rem;
  }
}