/* ── Carousel ─────────────────────────────────────────────────────────────── */
#homeCarousel {
  background-color: #444;
  margin: -1rem -1rem 2rem -1rem;  /* bleed to page edges */
}

.carousel-slide-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem 4rem;
  min-height: 220px;
  color: #fff;
}

.carousel-book {
  flex-shrink: 0;
}

img.book-cover {
  height: 160px;
  width: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border-radius: 3px;
  transition: transform 0.2s;
}

img.book-cover:hover {
  transform: scale(1.04);
}

.carousel-text {
  max-width: 480px;
  color: #fff;
}

.carousel-text.carousel-text-wide {
  max-width: 680px;
}

.carousel-text p,
.carousel-text li {
  color: #eee;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.carousel-text strong {
  color: #fff;
  font-size: 1.15rem;
}

.carousel-text em {
  color: #ccc;
}

.carousel-text .btn {
  margin-top: 0.8rem;
  margin-right: 0.4rem;
}

.carousel-indicators button {
  background-color: rgba(255,255,255,0.6);
}

.carousel-indicators .active {
  background-color: #fff;
}

/* ── About section ───────────────────────────────────────────────────────── */
.about-row {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.about-left {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
}

img.about-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid #e8e8e8;
}

.about-left table {
  font-size: 0.85rem;
  margin: 0 auto;
  border: none !important;
}

.about-left td {
  border: none !important;
  padding: 0.15rem 0.3rem;
}

.about-right {
  flex: 1;
  min-width: 0;
}

h2.about-name {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.about-columns {
  display: flex;
  gap: 2rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.about-col {
  flex: 1;
  min-width: 200px;
}

.about-col table {
  font-size: 0.85rem;
  border: none !important;
}

.about-col td {
  border: none !important;
  padding: 0.1rem 0.4rem 0.1rem 0;
}

@media (max-width: 700px) {
  .about-row { flex-direction: column; align-items: center; }
  .about-left { width: 100%; }
  #homeCarousel { margin: -1rem -0.5rem 2rem -0.5rem; }
  .carousel-slide-content { padding: 1.5rem; flex-direction: column; text-align: center; }
}

/* ── Publication type badge ──────────────────────────────────────────────── */
.pub-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1em 0.5em;
  border-radius: 3px;
  background: #e8f0fe;
  color: #3a5a9a;
  vertical-align: middle;
  margin-left: 0.4em;
  letter-spacing: 0.02em;
}

/* ── People / collaborators grid ─────────────────────────────────────────── */
.people-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem 0;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
}

.person-card p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.875rem;
}

.person-card p:last-child {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

img.person-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.6rem;
  border: 3px solid #e8e8e8;
  transition: border-color 0.2s;
}

img.person-avatar:hover {
  border-color: #4a90d9;
}

/* ── BibTeX collapsible ──────────────────────────────────────────────────── */
div.pub-bibtex pre {
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  background: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre;
}

/* ── Bold hyperlinks ─────────────────────────────────────────────────────── */
strong a, b a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
}
