.research-layout {
  display: block;
  max-width: none;
  margin-top: 2.5rem;
}

.research-content {
  min-width: 0;
}

.research-content section + section {
  margin-top: 3rem;
}

.research-content h2 {
  margin: 0 0 1.15rem;
  scroll-margin-top: 1rem;
}

.research-content p,
.research-content li {
  line-height: 1.6;
}

/* Keep explanatory copy readable while allowing the research grids to use the shared page width. */
.research-content > section > p {
  max-width: var(--prose-measure);
}

.research-tile-grid {
  margin-top: 1.5rem;
}

.research-content .research-groups-grid {
  padding-left: 0;
  list-style: none;
}

.research-project-list + p {
  margin-top: 1.25rem;
}

.research-tile {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0;
  background: none;
}

.research-group-tile {
  padding: 0;
}

/* Open editorial columns: the blue rule introduces only the first row. */
.research-groups-grid .research-group-tile:nth-child(-n + 2),
.research-project-list .research-tile:nth-child(-n + 2),
.research-series-list .research-tile {
  padding-top: var(--editorial-entry-padding);
  border-top: var(--editorial-entry-rule);
}

/* Projects retain their natural heights; seminars keep aligned links within their row. */
.research-project-list .research-tile {
  align-self: start;
}

.research-series-list {
  align-items: stretch;
}

.research-series-list .research-tile {
  height: 100%;
}

.research-group-acronym,
.research-group-name {
  display: block;
}

.research-group-acronym,
.research-tile h3 {
  color: var(--editorial-link);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.35;
}

.research-group-name {
  margin-top: .2rem;
  color: var(--editorial-muted);
  line-height: 1.4;
}

.research-tile h3 {
  margin: 0 0 .35rem;
  color: var(--editorial-heading);
}

.research-tile h3 a {
  color: inherit;
  text-decoration: none;
}

.research-tile h3 a:hover,
.research-tile h3 a:focus-visible {
  color: var(--editorial-blue);
  text-decoration: underline;
}

.research-tile p {
  margin: .35rem 0 0;
}

.research-series-status {
  color: var(--editorial-muted);
}

.research-entry-link {
  margin-top: auto !important;
  padding-top: .35rem;
  font-size: .95em;
  font-weight: 600;
}

.research-publication-reference {
  max-width: 52rem;
}

.research-publication-reference p {
  margin-top: .35rem;
}

@media (min-width: 1280px) {
  .research-series-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .research-layout { margin-top: 2rem; }

  .research-tile-grid { grid-template-columns: 1fr; }

  /* Once entries stack, each needs its own editorial boundary. */
  .research-groups-grid .research-group-tile,
  .research-project-list .research-tile,
  .research-series-list .research-tile {
    padding-top: var(--editorial-entry-padding);
    border-top: var(--editorial-entry-rule);
  }
}
