/* --------------------- Styles for publication content --------------------- */
.pub-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}

.pub-filter-pill {
  background: rgba(33,49,77,0.07);
  color: var(--primary-color);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.pub-filter-pill.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: rgba(0,0,0,0.05);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: #fbfbfb;
  border: 1px solid rgba(0,0,0,0.03);
}

.pub-meta {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.pub-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary-color);
}

.pub-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.pub-button {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.pub-date {
  font-size: 0.9rem;
  color: #666;
}

/* --------------------- Pagination styles */
.pub-pagination {
  margin-top: 18px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.page-pill {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 0.95rem;
}

.page-pill.active {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.page-pill[aria-hidden="true"] {
  background: transparent;   
  border: none;              
  cursor: default;           
  pointer-events: none;      
}

.page-pill[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}

@media (max-width: 760px) {
  .pub-item { padding: 12px; }
  .pub-button { padding: 7px 10px; font-size: 0.85rem; }
}
