.research-page {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.research-intro {
  border-radius: 14px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #073f2c 0%, #018f59 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(1, 87, 54, 0.18);
}
.research-intro p {
  margin: 0;
  max-width: 70ch;
  font-size: 1.03rem;
  line-height: 1.65;
}

.section-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 2.75rem 0 1.1rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #018f59;
}
.section-head:first-of-type { margin-top: 0; }
.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dce6e1;
}

details.paper {
  margin-bottom: 1rem;
  border: 1px solid #dce6e1;
  border-left: 3px solid transparent;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(31, 55, 45, .05);
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
details.paper:hover {
  box-shadow: 0 10px 28px rgba(31, 55, 45, .09);
  transform: translateY(-1px);
}
details.paper[open] {
  border-left-color: #018f59;
  box-shadow: 0 10px 28px rgba(31, 55, 45, .09);
}

details.paper > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin: 0;
  padding: 1rem 1.15rem;
  user-select: none;
  transition: background .15s ease;
}
details.paper > summary:hover { background: #f7faf8; }
details.paper > summary::-webkit-details-marker { display: none; }
details.paper > summary::before {
  content: "▶";
  font-size: .62rem;
  color: #018f59;
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-top: .4rem;
}
details.paper[open] > summary::before { transform: rotate(90deg); }
details.paper[open] > summary {
  border-bottom: 1px solid #dce6e1;
  background: #f7faf8;
}

.paper-figure {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f6f3;
}
.paper-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

.paper-item {
  margin-bottom: 1rem;
  border: 1px solid #dce6e1;
  border-radius: 10px;
  background: #fff;
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 16px rgba(31, 55, 45, .05);
}

.paper-title {
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #16281f;
}
.paper-outlet {
  font-size: .87rem;
  color: #3d6b52;
  font-weight: 500;
  margin-top: .2rem;
}
.paper-authors {
  font-size: .87rem;
  color: #667a70;
  font-weight: 400;
  margin-top: .2rem;
  line-height: 1.5;
}
.paper-authors a, .paper-outlet a { color: #017a4c; }
.paper-authors a:hover, .paper-outlet a:hover { text-decoration: underline; }

.paper-body {
  padding: 1.05rem 1.15rem 1.2rem;
  font-size: .96rem;
  line-height: 1.7;
  color: #3c4a44;
}
.paper-links {
  margin-bottom: .85rem;
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.paper-links a {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #e5f5ee;
  color: #006e43;
  font-weight: 600;
  text-decoration: none;
}
.paper-links a:hover { background: #d3ecdf; }
.paper-abstract {
  max-width: 74ch;
  color: #3c4a44;
}

/* Peer-reviewed publications: larger cards with the journal shown first */
.section-head--pub {
  font-size: .95rem;
  color: #073f2c;
}
.section-head--pub::after { background: #018f59; height: 2px; }

details.paper--pub {
  border-left: 5px solid #018f59;
  background: #f4faf7;
  margin-bottom: 1.25rem;
}
details.paper--pub[open] { border-left-color: #073f2c; }
details.paper--pub > summary { padding: 1.3rem 1.4rem; }
details.paper--pub > summary:hover { background: #ecf6f1; }
details.paper--pub[open] > summary { background: #ecf6f1; }
details.paper--pub .paper-title { font-size: 1.18rem; }

.pub-venue {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .7rem;
  margin-bottom: .35rem;
}
.pub-journal {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: #018f59;
}
.pub-cite {
  font-size: .82rem;
  font-weight: 600;
  color: #3d6b52;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: #dff1e8;
}

@media (max-width: 600px) {
  details.paper--pub > summary { padding: 1rem .95rem; }
  .paper-figure { width: 56px; height: 56px; }
  details.paper > summary, .paper-item { padding: .85rem .9rem; }
}
