/* Compact study/work collections with three directly linked products. */
.topic-products {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 340px;
  align-self: start;
  overflow: hidden;
  border: 1px solid #10142308;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 3px 8px #14203104, 0 12px 28px #1420310b;
}

.topic-products-heading {
  min-width: 0;
  min-height: 96px;
  padding: 22px 22px 12px;
}

.topic-products-heading > h2 {
  margin: 0;
  color: #202126;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.4px;
  overflow-wrap: anywhere;
}

.topic-products-heading > p {
  margin: 6px 0 0;
  color: #74757d;
  font-size: 12px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.topic-products-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 22px;
}

.topic-products .topic-products-list > .shelf-project {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 66px;
  padding: 12px 0;
  color: #202126;
  border-bottom: 1px solid #2329340d;
}

.topic-products .topic-products-list > .shelf-project:last-child {
  border-bottom: 0;
}

.topic-products .topic-products-list > .shelf-project > .app-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  max-width: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.topic-products .shelf-project-copy > strong {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topic-products .shelf-project-copy > span {
  display: block;
  margin-top: 2px;
  color: #74757d;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topic-products .shelf-project-action {
  min-width: 42px;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
}

.topic-products .shelf-project:focus-visible {
  border-radius: 8px;
  outline: 2px solid #0071e3;
  outline-offset: -2px;
}

.topic-products-more {
  display: block;
  margin-top: auto;
  padding: 10px 22px 17px;
  color: #567394;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-decoration: none;
}

.topic-products-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-products-more:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: -4px;
}

.topic-products.story-work {
  border-color: #17334c;
  background: #182f46;
}

.topic-products.story-work .topic-products-list > .shelf-project {
  color: #f4f7fb;
  border-bottom-color: #d4e5f51c;
}

.topic-products.story-work .topic-products-heading > h2 {
  color: #f4f7fb;
}

.topic-products.story-work .topic-products-heading > p,
.topic-products.story-work .shelf-project-copy > span {
  color: #b4c4d6;
}

.topic-products.story-work .shelf-project-action {
  color: #f4f7fb;
  background: #38536e;
}

.topic-products.story-work .shelf-project:hover .shelf-project-copy > strong {
  color: #fff;
}

.topic-products.story-work .shelf-project:hover .shelf-project-action {
  background: #456582;
}

.topic-products.story-work .topic-products-more {
  color: #d4e5f5;
}

.topic-products.story-work .shelf-project:focus-visible,
.topic-products.story-work .topic-products-more:focus-visible {
  outline-color: #9bd1ff;
}

@media (max-width: 720px) {
  .topic-products-heading,
  .topic-products-list,
  .topic-products-more {
    padding-inline: 18px;
  }

  .topic-products-heading > h2 {
    font-size: 21px;
  }

  .topic-products .topic-products-list > .shelf-project {
    gap: 10px;
  }
}
