/* css styles */
/* Outreach cards */
.outreach-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background-color: #ffffff;
}

.outreach-item > p:first-child,
.outreach-item > figure:first-child {
  margin: 0;
  flex: 0 0 72px;
}

.outreach-logo {
  width: 72px;
  min-width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 4px;
  border-radius: 8px;
  display: block;
}

.outreach-body {
  flex: 1;
  min-width: 0;
}

.outreach-body h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.outreach-body p {
  margin: 0 0 0.4rem 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.outreach-body p:last-child {
  margin-bottom: 0;
}
/* Publication cards & toggles */
.pub-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  background: #fff;
}
.pub-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.pub-title a { text-decoration: none; }
.pub-meta  { color: #555; font-size: 0.95rem; margin-bottom: 8px; }

.pub-actions {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  margin-top: 8px; margin-bottom: 0;
}
.pub-actions a {
  text-decoration: none; font-size: 0.92rem;
  border-bottom: 1px dotted #999; color: #0b66c3; cursor: pointer;
}

.toggle-area {
  display: none; position: relative;
  border: 1px solid #000; border-radius: 10px;
  padding: 12px 44px 12px 12px; background: #fafafa;
  margin-top: 12px; overflow: auto;
}
.toggle-area .panel-label {
  font-size: 0.82rem; color: #333; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
  opacity: 0.85; margin-bottom: 6px;
}
.toggle-area pre { white-space: pre-wrap; word-wrap: break-word; margin: 0; }
.toggle-area .content p { margin: 0 0 0.6em 0; }

.copy-btn {
  position: absolute; top: 6px; right: 6px;
  border: 1px solid #ddd; background: #fff; font-size: 0.85rem;
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
}
.copy-btn:active { transform: translateY(1px); }
.copy-toast {
  position: absolute; top: 6px; right: 70px; font-size: 0.8rem;
  background: #333; color: #fff; padding: 3px 7px; border-radius: 6px; display: none;
}

/* Hide Pandoc's default reference list at the bottom */
#quarto-appendix { display: none; }

/* Research topic card images */
.card > p:first-child,
.card > figure:first-child {
  margin-bottom: 0;
}

.card .card-img-top {
  max-height: 160px;
  height: auto;
  width: 100%;
  object-fit: contain;
  padding: 1.25rem 1.25rem 0 1.25rem;
}

.card .card-body {
  padding-top: 0.5rem;
}

/* Embedded CV viewer */
.cv-container {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f9fafb;
}

.cv-container object {
  display: block;
  width: 100%;
  height: 85vh;
  min-height: 600px;
}