.research-item {
  display: flex;
  align-items: flex-start;
  gap: 1.6em;

  margin: 0;
  padding: 1.4em 0;
  border-bottom: 1px solid #ddd;
}

.research-item img {
  flex: 0 0 240px;
  width: 240px;
  height: 240px;

  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  object-fit: cover;           /* contain */
  object-position: top center;

  border: 1px solid #ccc;
  background-color: none; /*#fafafa*/
  border-radius: 2px;
}

.research-content {
  flex: 1;
  min-width: 220px;
}

.research-content {
  flex: 1;
  min-width: 220px;
}

.research-content > *:first-child {
  margin-top: 0 !important;
}

.research-content h4 {
  font-size: 1.05em;
  font-weight: 500;
  margin: 0 0 0.35em;
  color: #222;
}

.research-content p {
  margin: 0.35em 0;
  text-align: justify;
}

.research-content p:first-child {
  margin-top: 0;
}

.research-content a {
  color: inherit;
  text-decoration: none;
}
.research-content a:hover {
  text-decoration: underline;
}

.research-date {
  color: #888;
  font-weight: 400;
}

.affiliation-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.1em;
  color: #222;

  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25em;

  margin-top: 1.0em;
  margin-bottom: 0em;
}

/* RELATED WORK */

.related-entry {
  margin: 0.6em 0;
}

.related-toggle {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
  color: #111;
}

.related-title {
  font-weight: 500;
}

.related-chevron {
  margin-left: auto;
  font-size: 0.85em;
  color: #888;
  transition: transform 0.2s ease;
}

.related-detail {
  display: none;
  margin-top: 0.35em;
  font-size: 0.92em;
  color: #444;
  line-height: 1.45;
}

.related-item {
  display: flex;
  gap: 0.8em;
  margin: 0.2em 0;
}

.related-label {
  min-width: 6.5em;
  color: #666;
  font-size: 0.9em;
  white-space: nowrap;
}

.related-text {
  flex: 1;
}

.related-entry.open .related-detail {
  display: block;
}

.related-entry.open .related-chevron {
  transform: rotate(180deg);
}

/* ABSTRACT TOGGLE */

.abstract-entry {
  margin-top: 0.5em;
}

.abstract-toggle {
  background: none;
  border: none;
  padding: 0;

  display: inline-flex;
  align-items: center;
  gap: 0.35em;

  cursor: pointer;
  font-family: inherit;
  font-size: 0.95em;
  color: #111;
}

.abstract-title {
  font-weight: 500;
}

.abstract-chevron {
  font-size: 0.85em;
  color: #888;
  transition: transform 0.2s ease;
}

.abstract-detail {
  display: none;
  margin-top: 0.35em;

  font-size: 0.92em;
  color: #444;
  line-height: 1.5;
}

.abstract-detail p {
  margin: 0.2em 0;
  text-align: justify;
}

.abstract-entry.open .abstract-detail {
  display: block;
}

.abstract-entry.open .abstract-chevron {
  transform: rotate(180deg);
}

/* FURTHER INFORMATION */

.further-entry {
  margin: 0.6em 0;
}

.further-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1em;
  color: #111;
}

.further-title {
  font-weight: 500;
}

.further-chevron {
  margin-left: 0; /* auto */
  font-size: 0.85em;
  color: #888;
  transition: transform 0.2s ease;
}

.further-detail {
  display: none;
  margin-top: 0.35em;

  padding-left: 1.1em;
  font-size: 0.92em;
  color: #444;
  line-height: 1.45;
}

.further-detail li {
  margin: 0.2em 0;
}

.further-entry.open .further-detail {
  display: block;
}

.further-entry.open .further-chevron {
  transform: rotate(180deg);
}

/* detail pages (below) */

.title {
  font-size: 1.5em;
  padding-bottom: 0.2em;
  margin-top: 1.0em;
  font-weight: 500;
}

.author {
  font-size: 1em;
  color: #333;
  margin-bottom: 1em;
  border-bottom: 2px solid #bbb;
  padding-bottom: 1em;
}

.abstract-container {
  font-size: 1.05em;
  margin-bottom: 2em;
}

/* RESOURCES */

.resources {
  margin-top: 0.6em;
}

.resource-entry {
  margin: 0.25em 0;
  font-size: 0.95em;
  color: #222;
}

.resource-entry a {
  color: inherit;
  text-decoration: none;
}

.resource-entry a:hover {
  text-decoration: underline;
}


@media (max-width: 600px) {
  .research-item {
    flex-direction: column;
    align-items: center;
  }

  .research-item img {
    max-width: 100%;
  }

  .research-content {
    margin-top: 1em;
  }

  .abstract-detail p {
    text-align: left;
  }

  .research-content p {
    text-align: left;
  }
}
