/* Related products: intrinsic image dimensions must not change card geometry. */
.article-detail.hsp-rel {
  --hsp-rel-image-height: 180px;
}
.article-detail.hsp-rel .hsp-rel-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.article-detail.hsp-rel .hsp-rel-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.article-detail.hsp-rel .hsp-rel-img {
  box-sizing: border-box;
  width: 100%;
  height: var(--hsp-rel-image-height) !important;
  min-height: var(--hsp-rel-image-height) !important;
  max-height: var(--hsp-rel-image-height) !important;
  flex: 0 0 var(--hsp-rel-image-height);
  aspect-ratio: auto;
  overflow: hidden;
  padding: 14px;
}
.article-detail.hsp-rel .hsp-rel-img > img {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0;
  object-fit: contain !important;
  object-position: center;
}
.article-detail.hsp-rel .hsp-rel-name {
  box-sizing: border-box;
  flex: 0 0 64px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  padding: 12px 14px 8px;
  font-size: 14px;
  line-height: 22px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.article-detail.hsp-rel .hsp-rel-foot {
  box-sizing: border-box;
  min-width: 0;
  min-height: 46px;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 6px 14px 14px;
}
.article-detail.hsp-rel .hsp-rel-foot b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
}
.article-detail.hsp-rel .hsp-rel-foot i {
  box-sizing: border-box;
  max-width: 100%;
  line-height: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.article-detail.hsp-rel .hsp-rel-card:focus-visible {
  outline: 3px solid #7899d5;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .article-detail.hsp-rel { --hsp-rel-image-height: 132px; }
  .article-detail.hsp-rel .hsp-rel-img { padding: 10px; }
  .article-detail.hsp-rel .hsp-rel-name {
    flex-basis: 62px;
    height: 62px;
    min-height: 62px;
    max-height: 62px;
    padding: 10px 10px 8px;
    font-size: 12.5px;
    line-height: 22px;
  }
  .article-detail.hsp-rel .hsp-rel-foot { padding: 6px 10px 12px; }
  .article-detail.hsp-rel .hsp-rel-foot i { font-size: 10.5px; }
}
@media (max-width: 480px) {
  .article-detail.hsp-rel .hsp-rel-foot {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .article-detail.hsp-rel .hsp-rel-card { transition: none; }
}
