@charset "UTF-8";
/* related-articles.css — unified width */

:root{
  --sn-max: 1100px;      /* 한 곳에서만 폭 관리 */
  --sn-gap: 14px;
  --sn-border: #e5e7eb;
  --sn-text: #111;
  --sn-link: #0a6e3d;
  --sn-pad: 16px;
}

/* 본문 래퍼 + 관련 섹션 모두 동일 폭/중앙정렬 */
html body .article-body,
html body .article,
html body .post-content,
html body .content,
html body main .container,
html body .container,
html body .inner,
html body section#related-section{
  box-sizing: border-box;
  max-width: var(--sn-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 관련 섹션 컨테이너 */
html body section#related-section{
  width: 100% !important;
  margin-top: 40px !important;
  padding: var(--sn-pad) var(--sn-pad) 0 !important;
  border-top: 1px solid var(--sn-border) !important;
  display: block !important;
}

/* 제목 */
html body section#related-section > h3{
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

/* 리스트 */
html body section#related-section .sn-related-list{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sn-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 768px){
  html body section#related-section .sn-related-list{ grid-template-columns: 1fr; }
}

/* 아이템 */
html body section#related-section .sn-related-list li{
  display: flex;
  align-items: flex-start;
}

/* 링크 */
html body section#related-section .sn-related-list a{
  color: var(--sn-text);
  text-decoration: none;
  line-height: 1.5;
  word-break: keep-all;
}
html body section#related-section .sn-related-list a:hover{
  color: var(--sn-link);
  text-decoration: underline;
}

/* 썸네일(옵션) */
html body section#related-section .sn-related-thumb{
  flex: 0 0 96px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  margin-right: 10px;
}
html body section#related-section .sn-related-thumb img{
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
