.hb-flex-collection {
  box-sizing: border-box;
  width: min(calc(100vw - 2rem), 1120px);
  margin: 1.5rem auto 2.75rem;
}

#news .hb-flex-collection {
  width: min(calc(100vw - 4rem), 1040px);
}

#research-overview .max-w-prose {
  box-sizing: border-box;
  max-width: min(calc(100vw - 2rem), 900px);
}

.hb-flex-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  color: rgb(82 82 91);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dark .hb-flex-meta {
  color: rgb(161 161 170);
}

.hb-flex-meta span,
.hb-flex-meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hb-flex-title {
  margin: 0.65rem 0 0;
  color: rgb(24 24 27);
  font-size: clamp(1.02rem, 1rem + 0.2vw, 1.22rem);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.dark .hb-flex-title {
  color: rgb(244 244 245);
}

.hb-flex-title a {
  color: inherit;
  text-decoration: none;
}

.hb-flex-title a:hover {
  color: rgb(4 120 87);
}

.dark .hb-flex-title a:hover {
  color: rgb(52 211 153);
}

.hb-flex-summary {
  margin: 0.65rem 0 0;
  color: rgb(63 63 70);
  font-size: 0.95rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.dark .hb-flex-summary {
  color: rgb(212 212 216);
}

.hb-flex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.hb-flex-tags a {
  border: 1px solid rgb(212 212 216);
  border-radius: 999px;
  color: rgb(39 39 42);
  font-size: 0.74rem;
  line-height: 1;
  padding: 0.42rem 0.62rem;
  text-decoration: none;
}

.hb-flex-tags a:hover {
  border-color: rgb(16 185 129);
  color: rgb(4 120 87);
}

.dark .hb-flex-tags a {
  border-color: rgb(63 63 70);
  color: rgb(228 228 231);
}

.dark .hb-flex-tags a:hover {
  border-color: rgb(52 211 153);
  color: rgb(110 231 183);
}

.hb-flex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.hb-flex-actions a,
.hb-flex-table__links a {
  color: rgb(4 120 87);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.hb-flex-actions a:hover,
.hb-flex-table__links a:hover {
  text-decoration: underline;
}

.dark .hb-flex-actions a,
.dark .hb-flex-table__links a {
  color: rgb(52 211 153);
}

.hb-flex-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .hb-flex-cards--columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-flex-cards--columns-3,
  .hb-flex-cards--columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  .hb-flex-cards--columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hb-flex-cards--columns-1 {
  max-width: 760px;
}

.hb-flex-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.5rem;
  background: rgb(255 255 255);
  box-shadow: 0 14px 38px rgb(24 24 27 / 0.07);
}

.dark .hb-flex-card {
  border-color: rgb(63 63 70);
  background: rgb(24 24 27);
  box-shadow: none;
}

.hb-flex-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: rgb(244 244 245);
  overflow: hidden;
}

.hb-flex-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.hb-flex-card:hover .hb-flex-card__media img {
  transform: scale(1.035);
}

.hb-flex-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.hb-flex-card .hb-flex-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.hb-flex-list {
  display: grid;
  gap: 0.95rem;
}

.hb-flex-list-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  border-bottom: 1px solid rgb(228 228 231);
  padding: 0 0 1.2rem;
}

.hb-flex-list-item__content {
  min-width: 0;
}

.dark .hb-flex-list-item {
  border-color: rgb(63 63 70);
}

.hb-flex-list-item__date {
  color: rgb(82 82 91);
  font-size: 0.86rem;
  line-height: 1.2;
  padding-top: 0.2rem;
}

.dark .hb-flex-list-item__date {
  color: rgb(161 161 170);
}

.hb-flex-list-item__date span,
.hb-flex-list-item__date strong {
  display: block;
}

.hb-flex-list-item__date strong {
  color: rgb(24 24 27);
  font-size: 1rem;
  margin-top: 0.25rem;
}

.dark .hb-flex-list-item__date strong {
  color: rgb(244 244 245);
}

.hb-flex-list-item__footer {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
}

.hb-flex-list-item__footer .hb-flex-actions,
.hb-flex-list-item__footer .hb-flex-tags {
  margin-top: 1rem;
}

.hb-flex-table-wrap {
  overflow-x: auto;
  border: 1px solid rgb(228 228 231);
  border-radius: 0.5rem;
  background: rgb(255 255 255);
}

.dark .hb-flex-table-wrap {
  border-color: rgb(63 63 70);
  background: rgb(24 24 27);
}

.hb-flex-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.hb-flex-table th {
  border-bottom: 1px solid rgb(228 228 231);
  color: rgb(82 82 91);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.9rem 1rem;
  text-transform: uppercase;
}

.dark .hb-flex-table th {
  border-color: rgb(63 63 70);
  color: rgb(161 161 170);
}

.hb-flex-table td {
  border-bottom: 1px solid rgb(244 244 245);
  padding: 1rem;
  vertical-align: top;
}

.dark .hb-flex-table td {
  border-color: rgb(39 39 42);
}

.hb-flex-table tr:last-child td {
  border-bottom: 0;
}

.hb-flex-table__date {
  color: rgb(82 82 91);
  font-size: 0.9rem;
  white-space: nowrap;
  width: 5.5rem;
}

.dark .hb-flex-table__date {
  color: rgb(161 161 170);
}

.hb-flex-table__main {
  min-width: 22rem;
  overflow-wrap: anywhere;
}

.hb-flex-table__main > a {
  color: rgb(24 24 27);
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.hb-flex-table__main > a:hover {
  color: rgb(4 120 87);
}

.dark .hb-flex-table__main > a {
  color: rgb(244 244 245);
}

.dark .hb-flex-table__main > a:hover {
  color: rgb(52 211 153);
}

.hb-flex-table__authors,
.hb-flex-table__main p {
  color: rgb(82 82 91);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0.45rem 0 0;
}

.dark .hb-flex-table__authors,
.dark .hb-flex-table__main p {
  color: rgb(212 212 216);
}

.hb-flex-table__context {
  color: rgb(63 63 70);
  font-size: 0.9rem;
  width: 7rem;
}

.dark .hb-flex-table__context {
  color: rgb(212 212 216);
}

.hb-flex-table__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 18rem;
  width: 18rem;
}

#publications-intro .mb-6 {
  margin-bottom: 0.75rem;
}

#publications-list .hb-flex-collection {
  margin-top: 0.75rem;
}

.hb-publication-abstract {
  margin: 0 0 2.25rem;
  max-width: 980px;
}

.hb-publication-abstract h2 {
  color: rgb(24 24 27);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.dark .hb-publication-abstract h2 {
  color: rgb(244 244 245);
}

.hb-publication-abstract__body {
  color: rgb(63 63 70);
  font-size: 1rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
}

.dark .hb-publication-abstract__body {
  color: rgb(212 212 216);
}

.hb-publication-abstract__body > :first-child {
  margin-top: 0;
}

.hb-publication-abstract__body > :last-child {
  margin-bottom: 0;
}

.hb-publication-abstract__body ol,
.hb-publication-abstract__body ul {
  padding-left: 1.35rem;
}

.pub .prose {
  text-align: justify;
  text-justify: inter-word;
}

.poster-gallery__title {
  color: rgb(24 24 27);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 auto 1.5rem;
  text-align: center;
  width: min(calc(100vw - 2rem), 1180px);
}

.dark .poster-gallery__title {
  color: rgb(244 244 245);
}

.poster-gallery {
  column-count: 1;
  column-gap: 1.25rem;
  margin: 0 auto;
  width: min(calc(100vw - 2rem), 1180px);
}

@media (min-width: 720px) {
  .poster-gallery {
    column-count: 2;
  }
}

@media (min-width: 1180px) {
  .poster-gallery {
    column-count: 3;
  }
}

.poster-gallery__link {
  break-inside: avoid;
  display: block;
  line-height: 0;
  margin: 0 0 1.25rem;
}

.poster-gallery__image {
  display: block;
  height: auto;
  width: 100%;
}

.poster-gallery__empty {
  color: rgb(82 82 91);
  margin: 0 auto;
  width: min(calc(100vw - 2rem), 1180px);
}

.dark .poster-gallery__empty {
  color: rgb(161 161 170);
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .flex.flex-col.items-center.max-w-prose.mx-auto {
    box-sizing: border-box;
    width: 100vw;
    max-width: 65ch;
    padding-inline: 1rem;
  }

  .hb-flex-collection {
    width: 100vw;
    padding-inline: 1rem;
  }

  .hb-flex-list-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hb-flex-list-item__date time {
    display: flex;
    gap: 0.4rem;
  }

  .hb-flex-list-item__date strong {
    margin-top: 0;
  }

  .hb-flex-list-item__footer {
    display: block;
  }

  .hb-flex-list-item__footer .hb-flex-actions {
    justify-content: flex-start;
  }

  .hb-flex-card__body {
    padding: 1rem;
  }
}
