body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  padding-top: 3.5rem;
  margin: auto;
  color: #57534e;
  background: #fbfaf8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-primary {
  background-color: #fbfaf8 !important;
}

@media (min-width: 576px) {
  .navbar-expand-md>.container, .navbar-expand-md>.container-fluid {
    padding-right: 0px;
    padding-left: 0px;
  }
  .container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  body {
    max-width: 940px;
  }
  .navbar-expand-md>.container, .navbar-expand-md>.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
  }
  .container {
    max-width: 940px;
  }
}

.navbar-light .navbar-nav .nav-link {
    color: #57534e;
}

.navbar-brand {
  font-weight: 600;
  color: #1c1b19;
}

.navbar-brand:focus,
.navbar-brand:hover {
  color: #7a1f2b;
}

.navbar-light .navbar-nav .nav-link.active {
  color: #7a1f2b;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #1c1b19;
}

section.main-block {
  padding-top: 1.5rem !important;
  padding-bottom: 2.0rem !important;
  padding-right: 5px;
  padding-left: 5px;
  max-width: 940px;
  margin: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  color: #1c1b19;
}

h1 {
  font-size: 6rem;
  line-height: 5.5rem;
}

h2 {
  font-size: 3.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 38px;
  align-items: start;
  padding: 20px 0 8px;
}

.photo-wrap {
  position: relative;
}

.hero-info {
  padding-top: 4px;
}

.hero-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 32px -12px rgba(28, 27, 25, .14);
  border: 1px solid #e7e3da;
}

.photo-wrap::after {
  content: "";
  position: absolute;
  inset: -10px -10px auto auto;
  width: 200px;
  height: 200px;
  right: -14px;
  top: 14px;
  border-radius: 28px;
  z-index: -1;
  background: linear-gradient(135deg, rgba(122, 31, 43, .14), transparent 70%);
}

.lab-grid {
  grid-template-columns: 340px 1fr;
  align-items: center;
}

.lab-logo {
  width: 100%;
  height: auto;
  display: block;
}

.photo-wrap.lab-logo-wrap::after {
  content: none;
}

.h-name {
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.h-role {
  color: #57534e;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 6px;
}

.h-aff {
  color: #57534e;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #8a857c;
}

.links {
  margin: 12px 0 4px;
}

.bio {
  padding-top: 28px;
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
    justify-items: center;
  }
  .photo-wrap::after {
    display: none;
  }
  .h-name {
    font-size: 1.3rem;
  }
  .bio {
    padding-top: 14px;
  }
  .lab-logo {
    max-width: 320px;
  }
  .hero-info p {
    text-align: justify !important;
  }
  .links {
    text-align: center;
  }
}

a:link, a:visited {
  color: #7a1f2b;
  text-decoration: none;
}

a:hover, a:focus, a:active {
  color: #a83f4d;
  text-decoration: none;
}

.text-hl {
  font-weight: 650;
}

li.li-entry {
  margin-left: -15px;
}

#news-list {
  margin-left: 0;
  padding-left: 0;
}

#news-list li.li-entry {
  margin-bottom: 5px;
  margin-left: 0;
  line-height: 1.5;
}

ul[id^="pubs-"] {
  margin-left: 0;
  padding-left: 0;
}

.pub-card {
  background: #ffffff;
  border: 1px solid #e7e3da;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 15px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  container-type: inline-size;
}

.pub-card:hover {
  border-color: rgba(122, 31, 43, .14);
  box-shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 32px -12px rgba(28, 27, 25, .14);
  transform: translateY(-1px);
}

li.li-entry.pub-card {
  margin-left: 0;
}

.svc {
  margin-left: 0;
  padding-left: 0;
  display: grid;
  gap: 14px;
}

.svc-card {
  background: #ffffff;
  border: 1px solid #e7e3da;
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}

.svc-card:hover {
  border-color: rgba(122, 31, 43, .14);
  box-shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 32px -12px rgba(28, 27, 25, .14);
  transform: translateY(-1px);
}

li.li-entry.svc-card {
  margin-left: 0;
}

.svc-card ul.fa-ul {
  margin-left: 0;
  padding-left: 0;
}

.svc-card ul.fa-ul li.li-entry {
  margin-left: 0;
}

.awards {
  margin-left: 0;
  padding-left: 0;
  display: grid;
  gap: 10px;
}

.awards li.li-entry {
  margin-left: 0;
  background: #ffffff;
  border: 1px solid #e7e3da;
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .16s, box-shadow .16s;
}

.awards li.li-entry:hover {
  border-color: rgba(122, 31, 43, .14);
  box-shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 32px -12px rgba(28, 27, 25, .14);
}

.tl {
  list-style: none;
  margin: 0;
  margin-left: 0;
  padding: 0 0 0 6px;
}

.tl li.li-entry {
  position: relative;
  margin-left: 0;
  padding: 0 0 14px 26px;
  border-left: 2px solid #e7e3da;
}

.tl li.li-entry:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.tl li.li-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fbfaf8;
  border: 2.5px solid #7a1f2b;
}

.tl .role {
  font-weight: 600;
  color: #1c1b19;
}

.tl .meta {
  color: #57534e;
  font-size: 0.9rem;
}

.tl .yr {
  font-size: 0.78rem;
  color: #8a857c;
}

.pub-venue {
  color: #2b6cb0;
}

.pub-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pub-tag {
  display: inline-block;
  font-family: Arial;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  padding: 2px 9px;
  border-radius: 10px;
}

/* Below this card width, links and tags can't reliably share one row,
   so always stack tags on their own row instead of leaving it to flex-wrap
   (which wrapped inconsistently depending on each entry's link/tag count). */
@container (max-width: 480px) {
  .pub-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .pub-links {
    flex-wrap: wrap;
  }
  .pub-tags {
    justify-content: flex-start;
    width: 100%;
  }
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.tag-filter-btn {
  display: inline-block;
  font-family: Arial;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.12);
  border: none;
  padding: 2px 9px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
}

.tag-filter-btn:focus,
.tag-filter-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.tag-filter-btn:hover {
  background: rgba(15, 118, 110, 0.22);
}

.tag-filter-btn.active {
  background: #0f766e;
  color: #ffffff;
}

.person {
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.person-card {
  padding: 16px 10px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid #e7e3da;
  border-radius: 14px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}

.person-card:hover {
  border-color: rgba(122, 31, 43, .14);
  box-shadow: 0 1px 2px rgba(28, 27, 25, .04), 0 12px 32px -12px rgba(28, 27, 25, .14);
  transform: translateY(-1px);
}

.person-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
/*    border: 1.5px solid #500000;*/
/*    box-shadow: rgba(173, 181, 189, 0.75) 5px 5px 25px 0px;*/
}

/*.person-img:hover {
  opacity: 0.9;
}*/

.sponsor-img {
  margin-left: 6px;
  margin-right: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Custom Button Styles */
.btn-custom {
  border-radius: 15px;       /* Pill-shaped rounded corners */
  border-color: #e7e3da;     /* Light border, matches card-brd */
  color: #57534e !important; /* Secondary ink text */
  background-color: transparent;
  transition: all 0.3s ease; /* Smooth transition effect */
  font-weight: 400;
}

.btn-custom-general {
  padding: 4px 11px;         /* Inner spacing */
  font-size: 0.8rem;        /* Slightly smaller font size */
  margin-bottom: 4px;        /* Spacing between buttons (when wrapped) */
  margin-left: 1px;
  margin-right: 1px;
}

/* Hover Effects */
.btn-custom:hover {
  background-color: rgba(122, 31, 43, .14);
  border-color: rgba(122, 31, 43, .14);
  color: #7a1f2b;
  text-decoration: none;
}

.btn-custom:hover,
.btn-custom:active,
.btn-custom:focus,
.btn-custom:focus-visible,
.btn-custom:active:focus {
  background-color: rgba(122, 31, 43, .14) !important; /* --ring tint */
  border-color: rgba(122, 31, 43, .14) !important;
  color: #7a1f2b !important; /* --brand */
  text-decoration: none;      /* Remove underline */
  outline: none !important;
  box-shadow: none !important;
}

.btn-custom-general i {
    margin-right: 3px;
}

.btn-custom img {
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.3s ease;
    vertical-align: middle;
    margin-top: -3px; 
}

.btn-custom:hover img {
    filter: grayscale(100%) opacity(0.55);
}

/* Custom Button Styles */
.btn-custom-pub {
  padding: 3.0px 9px;         /* Inner spacing */
  font-size: 0.75rem;        /* Slightly smaller font size */
  margin-bottom: 2px;        /* Spacing between buttons (when wrapped) */
  margin-left: 3px;
  margin-right: 3px;
  background-color: #fbfaf8; /* Page bg, contrasts against white pub-card */
}

.btn-custom-pub i {
  margin-right: 1px;
}

.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-green {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.badge-red {
  font-family: Arial;
  background: rgba(180, 83, 9, 0.14);
  color: #b45309;
}

.announcement {
  background-color: rgba(122, 31, 43, .14);
  border-radius: 14px;
  border: 1px solid #e7e3da;
  border-left: 3px solid #7a1f2b;

  color: #57534e;

  padding: 15px 18px;
}

.announcement b {
  font-weight: 600;
}

.date {
  font-family: Arial;
  margin-right: 3px;
}


.li-entry[data-old] {
    display: none;
}

.show-old-news .li-entry[data-old] {
    display: list-item;
}