/* Component: Prose (.ts-entry-title + .ts-entry-content) ----------------
   글·페이지 공용 본문 타이포(제목·문단·이미지·H2/H3). 가장 재사용성 높은 자산. */

.ts-entry-title { font-size: var(--fs-3xl); font-weight: var(--fw-black); line-height: 1.32; margin: 0 0 var(--space-2); }

/* 본문 타이포 */
.ts-entry-content { font-size: var(--fs-base); line-height: var(--lh-base); }
.ts-entry-content > * + * { margin-top: var(--space-4); }
/* 첨부 사진: 비율 축소가 아니라 상하를 잘라(object-fit:cover) 모두 동일 높이 */
.ts-entry-content img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}
.ts-entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* H2: 하단 구분선만 (번호 없음) */
/* H3 동그라미 번호는 H2 마다 1부터 다시 시작.
   counter-reset 는 형제 H2 들이 공유해야 하므로 컨테이너에는 걸지 않는다.
   (컨테이너에 root counter 를 두면 H2 의 counter-reset 이 H2 의 자식 스코프에만
    중첩 적용돼, 형제인 H3 가 root 카운터를 계속 써서 글 전체로 누적된다.) */
.ts-entry-content h2 {
  counter-reset: h3;
  font-size: var(--fs-xl);
  margin-top: var(--space-7);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-border);
}

/* H3: 동그라미 번호 */
.ts-entry-content h3 {
  counter-increment: h3;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-lg);
  margin-top: var(--space-5);
}
.ts-entry-content h3::before {
  content: counter(h3);
  flex: 0 0 auto;
  width: 1.7em; height: 1.7em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.8em;
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 600px) {
  .ts-entry-title { font-size: var(--fs-2xl); }
  .ts-entry-content h2 { font-size: var(--fs-lg); }
}
