/* Article-only: reuse native related cards; keep desktop sidebar and global search. */
#after_article {
  display: flex;
  flex-direction: column;
}
#after_article > .l-articleBottom__section.-related {
  order: -1;
  width: 100%;
  margin-top: 2.5rem;
}
#after_article .p-relatedPosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}
#after_article .p-relatedPosts > .p-postList__item {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
#after_article .p-relatedPosts .p-postList__link {
  height: 100%;
  overflow: hidden;
  border: 1px solid #dbe5de;
  border-radius: 12px;
  background: #fff;
  color: #21382c;
  box-shadow: 0 3px 12px rgb(25 61 37 / 5%);
  text-decoration: none;
}
#after_article .p-relatedPosts .p-postList__link:focus-visible {
  outline: 3px solid #176e49;
  outline-offset: 3px;
}
#after_article .p-relatedPosts .p-postList__thumb {
  margin: 0;
}
#after_article .p-relatedPosts .p-postList__body {
  padding: 0.9rem 1rem 1rem;
}
#after_article .p-relatedPosts .p-postList__title {
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}
@media (max-width: 959px) {
  /* The desktop sidebar becomes a low-value stack after the article on mobile.
     Header/menu search and all category/article links remain available. */
  #sidebar {
    display: none;
  }
}
@media (max-width: 599px) {
  #after_article .p-relatedPosts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }
  #after_article .p-relatedPosts .p-postList__link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    min-height: 112px;
  }
  #after_article .p-relatedPosts .p-postList__thumb {
    align-self: stretch;
    height: 100%;
  }
  #after_article .p-relatedPosts .c-postThumb__figure {
    height: 100%;
    padding-top: 0;
  }
  #after_article .p-relatedPosts .c-postThumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #after_article .p-relatedPosts .p-postList__body {
    min-width: 0;
    padding: 0.7rem;
  }
  #after_article .p-relatedPosts .p-postList__title {
    font-size: 15px;
    line-height: 1.6;
  }
}
@media (max-width: 359px) {
  #after_article .p-relatedPosts .p-postList__link {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
