/* =============================================================================
   Custom styles for publications and projects pages.
   These supplement the Minimal Mistakes theme.
   ========================================================================== */

/* --- Publications --- */

.pub-entry {
  margin-bottom: 1.6em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid #e5e7eb;
}
.pub-entry:last-child {
  border-bottom: none;
}

.pub-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.pub-authors {
  color: #666;
  font-size: 0.92rem;
}

.pub-venue {
  font-style: italic;
  font-size: 0.92rem;
  color: #666;
}

.pub-links {
  margin-top: 0.3em;
  font-size: 0.88rem;
}
.pub-links a {
  margin-right: 0.8em;
}

.pub-year {
  font-size: 1.3rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 0.2em;
  display: inline-block;
}

/* --- Projects --- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.2rem;
  transition: box-shadow 0.2s;
}
.project-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.project-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.project-card p {
  font-size: 0.93rem;
  color: #666;
}

.project-card .project-tags {
  margin-top: 0.6em;
  font-size: 0.8rem;
}
.project-card .project-tags span {
  background: #e5e7eb;
  padding: 0.15em 0.6em;
  border-radius: 12px;
  margin-right: 0.3em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
