/* -- 애드센스 광고(.adsbygoogle) 로드 전 최소 높이 확보 -- CLS(레이아웃 시프트) 방지용.
   광고 코드 자체는 안 건드림, 순수 CSS 자리 예약이라 애드센스 정책/수익에 영향 없음.
   (2026-09-14 확정 -- 전 사이트 공통 적용) */
.adsbygoogle {
  min-height: 100px;
}
@media (min-width: 480px) {
  .adsbygoogle {
    min-height: 250px;
  }
}

/* ── 최소 레이아웃 (심플 유지, 원본 테마 안 따라감) — 사이트 공통, 손댈 필요 없음 ── */
body {
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
  margin: 0;
  background: #fff;
}
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
header.site-header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}
header.site-header a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
article h1 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 0 0 8px;
}
.meta {
  color: #888;
  font-size: 0.85rem;
  margin: 0 0 20px;
}
/* 대표이미지(article > img, .entry-content 밖)까지 포함해서 전역으로 걸어야 함 —
   안 그러면 생성된 썸네일(보통 1200px대 고정폭)이 본문 폭을 그대로 뚫고 나가서
   모바일에서 옆으로 드래그되는 문제가 생김 (실제로 fithealthfirst.com에서 발생, 2026-09-04). */
img {
  max-width: 100%;
  height: auto;
}
.entry-content img {
  border-radius: 6px;
}
.entry-content figure.wp-block-image,
.post-content figure.wp-block-image {
  margin: 1.25rem 0;
}
.entry-content figure.wp-block-image img,
.post-content figure.wp-block-image img {
  display: block;
  width: 100%;
}
.entry-content p {
  margin: 0 0 1.1em;
}
ul.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.post-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
ul.post-list a {
  color: #1a1a1a;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
ul.post-list a:hover {
  color: #e11d48;
}
ul.post-list .cat {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f0f0f0;
  color: #555;
  white-space: nowrap;
  flex-shrink: 0;
}
ul.post-list .date {
  color: #aaa;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.meta a {
  color: #e11d48;
  text-decoration: none;
}
.meta a:hover {
  text-decoration: underline;
}
/* Hugo 내장 _internal/pagination.html이 찍어내는 마크업(ul.pagination > li.page-item > a.page-link) */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.pagination .page-item .page-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9rem;
}
.pagination .page-item.active .page-link {
  background: #e11d48;
  border-color: #e11d48;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: #ccc;
  border-color: #f5f5f5;
}

/* ═══ 본문 스타일 (mygoodinfo.leedofinance.com WP custom CSS 기반, 테마색 #2563eb) ═══ */

/* ── H2: 컬러 박스 소제목 ── */
.entry-content h2,
.post-content h2,
.wp-block-post-content h2 {
  background: #eff6ff;
  border-left: 5px solid #2563eb;
  border-radius: 0 8px 8px 0;
  padding: 10px 18px;
  margin: 2rem 0 1rem;
  font-size: 1.18rem;
  color: #1a1a1a;
  line-height: 1.4;
}

/* ── H3: 왼쪽 보더 액센트 ── */
.entry-content h3,
.post-content h3,
.wp-block-post-content h3 {
  border-left: 3px solid #3b82f6;
  padding-left: 12px;
  color: #1e40af;
  margin: 1.6rem 0 0.6rem;
  font-size: 1.05rem;
}

/* ── 리스트 불릿 컬러 ── */
.entry-content ul,
.post-content ul {
  padding-left: 1.5rem;
}
.entry-content ul li,
.post-content ul li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}
.entry-content ul li::marker,
.post-content ul li::marker {
  color: #2563eb;
  font-size: 1.1em;
}

/* ── 테이블 ── */
.entry-content table,
.post-content table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.entry-content table th,
.post-content table th {
  background: #2563eb;
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-weight: 600;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.entry-content table td,
.post-content table td {
  border: 1px solid #e5e7eb;
  padding: 8px 14px;
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.entry-content table tr:nth-child(even) td,
.post-content table tr:nth-child(even) td {
  background: #eff6ff;
}

/* ── 인용구 ── */
.entry-content blockquote,
.post-content blockquote {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  color: #444;
  font-style: normal;
}

/* ── 강조 텍스트 ── */
.entry-content strong,
.post-content strong {
  color: #1d4ed8;
}

/* ── Info 카드 박스 ── */
.entry-content p:has(strong:first-child:last-child),
.post-content p:has(strong:first-child:last-child) {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  border-radius: 0 6px 6px 0;
  padding: 8px 14px;
  margin: 1rem 0;
}

/* ── 모바일 반응형 ── */
@media (max-width: 640px) {
  .entry-content h2, .post-content h2 {
    font-size: 1.05rem;
    padding: 8px 14px;
  }
  .entry-content table, .post-content table {
    font-size: 0.85rem;
  }
}
