/* Shared styles for research and presentations pages */

/* Hide author/date meta block in banner */
.quarto-title-meta {
  display: none;
}

/* ── Section headings ───────────────────────────────────────────── */

h2 {
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #144D53;
}

/* ── Publication entries ─────────────────────────────────────────── */

.research-item {
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(20, 77, 83, 0.18);
}

.research-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.research-item p {
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

.research-title {
  font-size: 1rem;
  font-weight: 700;
  color: #144D53;
  margin-bottom: 0.2rem !important;
}

.research-venue {
  font-size: 0.88rem;
  color: rgba(20, 77, 83, 0.75);
  margin-bottom: 0.3rem !important;
}

.research-authors {
  font-size: 0.88rem;
  margin-bottom: 0.35rem !important;
}

/* ── Presentation entries ────────────────────────────────────────── */

.presentation-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0 1.2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(20, 77, 83, 0.18);
}

.presentation-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.presentation-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  color: rgba(20, 77, 83, 0.55);
  font-size: 0.82rem;
  padding-top: 0.15rem;
  line-height: 1.4;
}

.presentation-content p {
  margin-bottom: 0.2rem;
  line-height: 1.5;
}

.presentation-title {
  font-size: 1rem;
  font-weight: 700;
  color: #144D53;
  margin-bottom: 0.2rem !important;
}

.presentation-venue {
  font-size: 0.88rem;
  color: rgba(20, 77, 83, 0.75);
  margin-bottom: 0.35rem !important;
}

/* Talk / Poster badge */
.presentation-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 25px;
  background-color: #144D53;
  color: #E4EDDB;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s, color 0.15s;
}

.presentation-badge:hover {
  background-color: #E4EDDB;
  color: #144D53;
}

.presentation-badge.poster:hover {
  background-color: #E4EDDB;
  color: #6A395B;
}

.presentation-badge.poster {
  background-color: #6A395B;
}

.presentation-badge.inactive {
  opacity: 0.3;
}

/* ── Shared buttons ──────────────────────────────────────────────── */

.research-buttons {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.btn-research {
  display: inline-block;
  font-size: 0.72rem;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 11px;
  border-radius: 25px;
  border: 1.5px solid #144D53;
  color: #144D53;
  background-color: transparent;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-research:hover {
  background-color: #144D53;
  color: #E4EDDB;
  text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 575px) {
  .presentation-item {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .presentation-date {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}
