/* Research feed. Loaded on its own so a cached components.css cannot hide it. */

.page-intro:has(+ .section-feed) {
  padding-bottom: 0;
}

.page-intro:has(+ .section-feed) .lede {
  margin-bottom: 0.65rem;
}

.page-intro:has(+ .section-feed) .container,
.section-feed > .container {
  width: min(1140px, calc(100% - 2rem));
}

.feed-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
}

.feed-search:has(+ .feed-search-summary) {
  margin-bottom: 0.45rem;
}

.feed-search-field {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
}

.feed-search .button {
  flex: 0 0 auto;
}

.feed-search-summary {
  margin: 0 0 0.75rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.section.section-feed {
  padding-top: 0;
  padding-bottom: 2rem;
}

.research-feed,
.feed-body,
.feed-item,
.feed-title,
.feed-excerpt,
.feed-meta {
  min-width: 0;
}

.research-feed {
  width: 100%;
}

.feed-item {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  column-gap: 1.15rem;
  align-items: start;
  padding: 0.85rem 0;
  border-top: 1px solid var(--color-border);
}

.feed-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.feed-cover {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary-light);
}

.feed-cover > img,
.feed-cover-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.feed-cover-fallback {
  background: var(--color-primary-light);
}

.feed-cover-fallback img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
  background: var(--color-primary-light);
}

.feed-title {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  line-height: 1.3;
}

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

.feed-title a:hover {
  color: var(--color-primary);
}

.feed-excerpt {
  display: -webkit-box;
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.feed-meta {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1.45;
}

.feed-meta a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.feed-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.feed-meta-sep {
  margin: 0 0.35rem;
}

@media (max-width: 719px) {
  .feed-item {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.65rem;
  }
}
