.pub-list {
  list-style: none;
  padding-left: 0;
  counter-reset: pub var(--pub-count);
}

.pub-list > li {
  counter-increment: pub -1;
  position: relative;
  padding-left: 3rem;
}

.pub-list > li::before {
  content: "[" counter(pub) "] ";
  font-weight: 600;
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  text-align: right;
}

.prof-photo {
  height: 181px;
  width: auto;
  object-fit: contain;
  display: block;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.highlight-img {
  width: 100%;
  height: 360px;
  object-fit: fill;
  display: block;
}

.equipment-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.news-date-badge {
  min-width: 86px;
  text-align: center;
  letter-spacing: 0.02em;
}

.news-link {
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  gap: 6px;
  border: 1px solid var(--bs-border-color);
  background: rgba(var(--bs-body-color-rgb), 0.06);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.82rem;
  line-height: 1;
}

.news-link-text {
  font-size: 0.82rem;
  line-height: 1;
}

.news-link:hover {
  background: rgba(var(--bs-body-color-rgb), 0.12);
  text-decoration: none;
}

[data-bs-theme="dark"] .news-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.navbar-brand-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

[data-bs-theme="dark"] .navbar-brand-icon {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

.project-date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.project-date-cell,
.project-title-cell,
.project-org-cell {
  font-size: 1rem;
  line-height: 1.5;
}

.project-badge,
.course-badge-graduate {
  letter-spacing: 0.01em;
}

.course-badge {
  min-width: 7.5rem;
  text-align: center;
}

[data-bs-theme="dark"] .project-badge {
  background-color: rgba(255, 255, 255, 0.14);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

[data-bs-theme="dark"] .course-badge-graduate {
  background-color: rgba(255, 255, 255, 0.18);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.30);
}

[data-bs-theme="dark"] .equipment-title-badge {
  background-color: rgba(255, 255, 255, 0.14);
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pub-section-title {
  scroll-margin-top: 96px;
}

.research-intro {
  white-space: nowrap;
}

.research-img {
  width: 100%;
  height: 240px;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.03);
  display: block;
}

.gallery-cover {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.gallery-event summary {
  cursor: pointer;
}

.gallery-event {
  border: 1px solid var(--bs-border-color);
  background: transparent;
}

.gallery-event:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.masonry-grid {
  display: block;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.photo-item img {
  display: block;
}

@media (max-width: 767.98px) {
  .research-intro {
    white-space: normal;
  }
}
