/* =========================================================
   정성플러스치과 블로그 싱글 페이지 스타일
   - 메인 홈페이지 톤앤매너(Pretendard / 청회색 팔레트) 반영
   - 40대 이상 가독성 기준: 본문 18px, 행간 1.9, 고대비 텍스트
   ========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root{
  --jsp-primary:#518fbe;     /* 메인 테마 블루 */
  --jsp-deep:#5c849a;        /* 딥 청회색 */
  --jsp-dark:#425762;        /* 헤딩용 다크 청회색 */
  --jsp-light:#e2ecf2;       /* 연한 배경 */
  --jsp-lighter:#f2f7fa;     /* 더 연한 배경 (표 줄무늬) */
  --jsp-line:#d5e2ea;        /* 선 */
  --jsp-text:#292929;        /* 본문 텍스트 */
  --jsp-muted:#5f6b73;       /* 보조 텍스트 */
  --jsp-font:"Pretendard Variable",Pretendard,"Noto Sans KR","Malgun Gothic",sans-serif;
}

/* ---------- 본문 컨테이너 ---------- */
.single-post .post-content,
.single-post .post-content p,
.single-post .post-content li,
.single-post .post-content td,
.single-post .post-content th,
.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4{
  font-family:var(--jsp-font) !important;
  letter-spacing:-0.01em;
  word-break:keep-all;
}

.single-post .post-content{
  max-width:820px;
  margin:0 auto;
  color:var(--jsp-text);
}

.single-post .post-content p{
  font-size:18px !important;
  line-height:1.9 !important;
  color:var(--jsp-text) !important;
  margin:0 0 26px;
}

.single-post .post-content strong{
  color:var(--jsp-text);
  font-weight:700;
  background:linear-gradient(transparent 62%, rgba(81,143,190,.18) 62%);
  padding:0 2px;
}

.single-post .post-content a{
  color:var(--jsp-primary);
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1.5px;
}
.single-post .post-content a:hover{ color:var(--jsp-dark); }

/* ---------- 제목 : 글 상단 H1 ---------- */
.single-post .row .col.section-title h1,
.single-post .post-area h1.entry-title,
.single-post .post-content h1{
  font-family:var(--jsp-font) !important;
  font-size:34px !important;
  line-height:1.45 !important;
  font-weight:700 !important;
  color:var(--jsp-text) !important;
  letter-spacing:-0.02em;
  word-break:keep-all;
}

/* ---------- H2 : 섹션 제목 ---------- */
.single-post .post-content h2{
  position:relative;
  font-size:28px !important;
  line-height:1.45 !important;
  font-weight:700 !important;
  color:var(--jsp-text) !important;
  margin:64px 0 22px;
  padding:14px 20px 14px 24px;
  background:var(--jsp-light);
  border-left:6px solid var(--jsp-primary);
  border-radius:0 12px 12px 0;
}
.single-post .post-content h2:first-child{ margin-top:8px; }

/* ---------- H3 : 소제목 ---------- */
.single-post .post-content h3{
  position:relative;
  font-size:22px !important;
  line-height:1.5 !important;
  font-weight:700 !important;
  color:var(--jsp-dark) !important;
  margin:44px 0 16px;
  padding:0 0 12px 22px;
  border-bottom:1px solid var(--jsp-line);
}
.single-post .post-content h3::before{
  content:"";
  position:absolute;
  left:0; top:0.55em;
  width:12px; height:12px;
  border-radius:3px;
  background:var(--jsp-primary);
  transform:rotate(45deg);
}

.single-post .post-content h4{
  font-size:19px !important;
  line-height:1.5 !important;
  font-weight:700 !important;
  color:var(--jsp-deep) !important;
  margin:32px 0 12px;
}

/* ---------- UL : 글머리 목록 ---------- */
.single-post .post-content ul{
  list-style:none !important;
  margin:0 0 30px;
  padding:22px 26px;
  background:var(--jsp-lighter);
  border:1px solid var(--jsp-line);
  border-radius:12px;
}
.single-post .post-content ul li{
  position:relative;
  font-size:18px !important;
  line-height:1.8 !important;
  color:var(--jsp-text) !important;
  padding-left:26px;
  margin-bottom:12px;
}
.single-post .post-content ul li:last-child{ margin-bottom:0; }
.single-post .post-content ul li::before{
  content:"";
  position:absolute;
  left:2px; top:0.72em;
  width:10px; height:10px;
  border-radius:50%;
  background:var(--jsp-primary);
  box-shadow:0 0 0 3px rgba(81,143,190,.18);
}
/* 중첩 목록 */
.single-post .post-content ul ul{
  background:transparent; border:0; padding:8px 0 0 4px; margin:0;
}
.single-post .post-content ul ul li::before{
  width:6px; height:6px; background:var(--jsp-deep); box-shadow:none; top:0.85em;
}

/* ---------- OL : 번호 목록 ---------- */
.single-post .post-content ol{
  list-style:none !important;
  counter-reset:jsp-step;
  margin:0 0 30px;
  padding:0;
}
.single-post .post-content ol li{
  counter-increment:jsp-step;
  position:relative;
  font-size:18px !important;
  line-height:1.8 !important;
  color:var(--jsp-text) !important;
  padding:16px 20px 16px 66px;
  margin-bottom:12px;
  background:#fff;
  border:1px solid var(--jsp-line);
  border-radius:12px;
}
.single-post .post-content ol li::before{
  content:counter(jsp-step);
  position:absolute;
  left:18px; top:16px;
  width:34px; height:34px;
  border-radius:50%;
  background:var(--jsp-primary);
  color:#fff;
  font-size:17px;
  font-weight:700;
  line-height:34px;
  text-align:center;
}
.single-post .post-content ol ol{ margin:10px 0 0; }
.single-post .post-content ol ol li{
  background:var(--jsp-lighter); border:0; padding:10px 14px 10px 50px; margin-bottom:8px;
}
.single-post .post-content ol ol li::before{
  width:26px; height:26px; line-height:26px; font-size:14px; left:12px; top:11px; background:var(--jsp-deep);
}

/* ---------- TABLE : 표 ---------- */
.single-post .post-content .wp-block-table,
.single-post .post-content figure.wp-block-table{
  margin:0 0 34px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.single-post .post-content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:0 0 34px;
  font-size:17px;
  line-height:1.65;
  border:1px solid var(--jsp-line);
  border-radius:12px;
  overflow:hidden;
}
.single-post .post-content .wp-block-table table{ margin:0; }
.single-post .post-content table th,
.single-post .post-content table td{
  padding:16px 18px;
  text-align:left;
  vertical-align:middle;
  border:0;
  border-bottom:1px solid var(--jsp-line);
  border-right:1px solid var(--jsp-line);
  font-size:17px !important;
  line-height:1.65 !important;
  color:var(--jsp-text) !important;
}
.single-post .post-content table th:last-child,
.single-post .post-content table td:last-child{ border-right:0; }
.single-post .post-content table tr:last-child td{ border-bottom:0; }
.single-post .post-content table thead th,
.single-post .post-content table tr:first-child th{
  background:var(--jsp-deep);
  color:#fff !important;
  font-weight:700;
  border-bottom:0;
  border-right-color:rgba(255,255,255,.22);
}
.single-post .post-content table tbody th{
  background:var(--jsp-light);
  color:var(--jsp-dark) !important;
  font-weight:700;
}
.single-post .post-content table tbody tr:nth-child(even) td{ background:var(--jsp-lighter); }
.single-post .post-content table tbody tr:hover td{ background:#eaf2f7; }
.single-post .post-content table caption,
.single-post .post-content .wp-block-table figcaption{
  caption-side:bottom;
  font-size:15px;
  color:var(--jsp-muted);
  text-align:center;
  padding-top:10px;
}

/* ---------- 인용 / 안내 박스 ---------- */
.single-post .post-content blockquote{
  margin:34px 0;
  padding:24px 28px 24px 30px;
  background:var(--jsp-light);
  border-left:6px solid var(--jsp-deep);
  border-radius:0 12px 12px 0;
  font-size:18px;
  line-height:1.85;
  color:var(--jsp-dark);
  font-style:normal;
}
.single-post .post-content blockquote p{ margin:0; color:var(--jsp-dark) !important; }
.single-post .post-content blockquote p + p{ margin-top:12px; }

/* ---------- 이미지 ---------- */
.single-post .post-content img{
  max-width:100%;
  height:auto;
  border-radius:14px;
  box-shadow:0 8px 24px rgba(66,87,98,.10);
}
.single-post .post-content figure{ margin:34px 0; }
.single-post .post-content figcaption{
  font-size:15px;
  color:var(--jsp-muted);
  text-align:center;
  margin-top:10px;
}

.single-post .post-content hr{
  border:0; height:1px; background:var(--jsp-line); margin:48px 0;
}

/* ---------- 모바일 ---------- */
@media (max-width:690px){
  .single-post .post-area h1.entry-title,
  .single-post .row .col.section-title h1,
  .single-post .post-content h1{ font-size:27px !important; }
  .single-post .post-content p,
  .single-post .post-content ul li,
  .single-post .post-content ol li{ font-size:17px !important; }
  .single-post .post-content h2{
    font-size:23px !important; margin:48px 0 18px; padding:12px 16px 12px 18px; border-left-width:5px;
  }
  .single-post .post-content h3{ font-size:20px !important; margin:36px 0 14px; }
  .single-post .post-content ul{ padding:18px 18px; }
  .single-post .post-content ol li{ padding:14px 16px 14px 58px; }
  .single-post .post-content ol li::before{ width:30px; height:30px; line-height:30px; font-size:15px; left:14px; top:15px; }
  .single-post .post-content table th,
  .single-post .post-content table td{ padding:12px 12px; font-size:15px !important; }
  .single-post .post-content table{ font-size:15px; min-width:520px; }
  .single-post .post-content blockquote{ padding:18px 20px; font-size:17px; }
}
