/* 2.0.0 글 본문: 문장은 그대로 두고 모양만 읽기 쉽게 바꾼다. */
.dp-single { padding: 40px 0 72px; }
.dp-single-inner { max-width: 860px; }
.dp-entry-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid #d7e6f3; }
.dp-entry-cat { display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px; background: var(--dp-beige); color: #5b4630; font-size: 14px; font-weight: 700; text-decoration: none; }
.dp-entry-header h1 { margin: 0 0 12px; color: var(--dp-navy); font-family: var(--dp-sans); font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.04em; line-height: 1.35; }
.dp-entry-meta { color: var(--dp-muted); font-size: 14px; }

.dp-article { color: #1f2430; font-size: 18px; line-height: 1.85; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
.dp-article p { margin: 0 0 .85em; }
.dp-article .source-flow { margin: 0 0 1.9em; }
.dp-article .source-flow p { margin: 0 0 .7em; }
.dp-article .source-flow p:last-child { margin-bottom: 0; }
.dp-article strong { color: #111; }
.dp-article a { color: var(--dp-navy); }
.dp-article figure { margin: 28px 0; }
.dp-article img, .dp-article video { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 8px; }
.dp-article figcaption { margin-top: 8px; color: #6b7487; font-size: 14px; line-height: 1.6; text-align: center; }
.dp-article hr { margin: 44px 0; border: 0; border-top: 1px solid #dfe7f0; }

/* 환자 질문(1칸 표) → 말풍선 */
.dp-article .comparison-table:has(tr:only-child > td:only-child) table,
.dp-article table:has(tr:only-child > td:only-child) { border: 0; }
.dp-article .comparison-table tr:only-child > td:only-child {
	position: relative; display: block; margin-left: 58px; padding: 18px 24px; border: 0; border-radius: 22px 22px 22px 6px;
	background: #EEF1F5; color: #1f2430; font-size: 19px; line-height: 1.6;
}
.dp-article .comparison-table tr:only-child > td:only-child::before {
	content: ""; position: absolute; left: -58px; top: 6px; width: 44px; height: 44px; border-radius: 50%;
	background: #dbe3ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='9' r='4' fill='%238a9ab3'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6' fill='%238a9ab3'/%3E%3C/svg%3E") center/26px no-repeat;
}
.dp-article .comparison-table tr:only-child > td:only-child em { font-style: normal; }

/* 핵심 요약 카드 */
.dp-article .answer-summary { margin: 32px 0; overflow: hidden; border: 1px solid #d5deea; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(27, 47, 107, .07); }
.dp-article .answer-summary > .wp-block-group__inner-container > p:first-child,
.dp-article .answer-summary > p:first-child { margin: 0; padding: 14px 22px; background: var(--dp-navy); color: #fff; font-size: 19px; }
.dp-article .answer-summary > .wp-block-group__inner-container > p:first-child strong,
.dp-article .answer-summary > p:first-child strong { color: #fff; }
.dp-article .answer-summary > .wp-block-group__inner-container > p:first-child::before,
.dp-article .answer-summary > p:first-child::before { content: "핵심 요약 · "; font-weight: 800; }
.dp-article .answer-summary ul { margin: 0; padding: 8px 22px 12px; list-style: none; }
.dp-article .answer-summary li { position: relative; margin: 0; padding: 12px 0 12px 40px; border-bottom: 1px solid #eef1f5; font-size: 17.5px; font-weight: 700; line-height: 1.6; }
.dp-article .answer-summary li:last-child { border-bottom: 0; }
.dp-article .answer-summary li::before { content: ""; position: absolute; left: 0; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: #20B05A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* 목차 → 번호 카드 */
.dp-article nav[aria-label="목차"] { margin: 28px 0 8px; padding: 18px 20px 20px; border: 0; border-radius: 12px; background: #F6F1EA; }
.dp-article nav[aria-label="목차"] > p { margin: 0 0 12px; color: var(--dp-navy); font-size: 18px; font-weight: 800; }
.dp-article nav[aria-label="목차"] ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: dptoc; }
.dp-article nav[aria-label="목차"] li { margin: 0; counter-increment: dptoc; }
.dp-article nav[aria-label="목차"] a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); color: #1f2430; font-size: 15px; font-weight: 700; line-height: 1.45; text-decoration: none; }
.dp-article nav[aria-label="목차"] a::before { content: counter(dptoc, decimal-leading-zero); flex: none; padding-right: 12px; border-right: 1px solid #e3e3e3; color: var(--dp-navy); font-size: 24px; font-weight: 800; }
.dp-article nav[aria-label="목차"] a:hover { color: var(--dp-navy); }

/* 번호 소제목 */
.dp-article h2 { display: flex; align-items: center; gap: 14px; margin: 56px 0 24px; padding: 0 0 12px; border-bottom: 3px solid #b7dcf5; background: none; color: var(--dp-navy); font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.4; letter-spacing: -.03em; }
.dp-article h2 .dp-h2-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--dp-navy); color: #fff; font-size: 20px; }
.dp-article h3 { margin: 32px 0 14px; color: #14213d; font-size: 21px; font-weight: 800; }

/* 비교표 */
.dp-article .comparison-table, .dp-article .evidence-table { margin: 28px 0; overflow-x: auto; }
.dp-article table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid #d5deea; border-radius: 10px; font-size: 16px; }
.dp-article th, .dp-article td { padding: 13px 14px; border-bottom: 1px solid #e3e8ef; vertical-align: middle; text-align: center; }
.dp-article tr:last-child > th, .dp-article tr:last-child > td { border-bottom: 0; }
.dp-article thead th, .dp-article tr:first-child > th, .dp-article table:not(:has(thead)) tr:first-child > td:not(:only-child) { background: var(--dp-navy); color: #fff; font-weight: 800; }
.dp-article tbody tr:not(:first-child) > :first-child, .dp-article tbody th[scope="row"] { color: #111; font-weight: 800; text-align: left; }
.dp-article tbody tr:not(:first-child) > :nth-child(2) { background: #FFF7E6; }
.dp-article tbody tr:not(:first-child) > :nth-child(3) { background: #EAF4FB; }
.dp-article caption { padding: 0 0 10px; color: var(--dp-navy); font-weight: 800; text-align: left; }

/* 인용 */
.dp-article blockquote { position: relative; margin: 28px 0; padding: 20px 24px 20px 84px; border: 0; border-radius: 12px; background: #F6F1EA; color: var(--dp-navy); font-size: 20px; font-weight: 800; line-height: 1.55; }
.dp-article blockquote::before { content: "\201C"; position: absolute; left: 22px; top: 2px; color: var(--dp-navy); font-family: Georgia, serif; font-size: 72px; line-height: 1; }
.dp-article blockquote p { margin: 0; }
.dp-article p[hidden] { display: none; }

/* FAQ·안내 */
.dp-article .article-faq h3 { padding-left: 14px; border-left: 4px solid var(--dp-navy); }
.dp-article .medical-notice, .dp-article .article-sources { margin-top: 32px; padding: 16px 20px; border-radius: 10px; background: #f5f7fa; color: #5f6b7d; font-size: 14.5px; }
.dp-article .scope-list, .dp-article .decision-points { margin: 16px 0; padding: 18px 20px 18px 42px; border-radius: 10px; background: #EAF4FB; }
.dp-article .scope-list li, .dp-article .decision-points li { margin: 0 0 6px; }
.dp-article .related-link { display: block; overflow: hidden; border: 1px solid #d6e1f3; border-radius: 10px; text-decoration: none; }
.dp-article .related-link span { display: block; padding: 14px 16px; font-weight: 700; }
.dp-article .map-embed iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: 10px; }
.dp-article .figure-pair, .dp-article .clinic-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.article-end { margin-top: 40px; text-align: right; }
.article-end a { color: var(--dp-navy); font-weight: 700; text-decoration: none; }
.related-section { margin-top: 56px; padding-top: 32px; border-top: 1px solid #e3e8ef; }
.related-section .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 720px) {
	.dp-single { padding-top: 24px; }
	.dp-article { font-size: 16.5px; line-height: 1.8; }
	.dp-article .comparison-table tr:only-child > td:only-child { margin-left: 50px; font-size: 16.5px; padding: 14px 16px; }
	.dp-article .comparison-table tr:only-child > td:only-child::before { left: -50px; width: 40px; height: 40px; }
	.dp-article .answer-summary li { font-size: 15.5px; }
	.dp-article h2 { font-size: 21px; }
	.dp-article h2 .dp-h2-num { width: 34px; height: 34px; font-size: 16px; }
	.dp-article table { font-size: 14px; }
	.dp-article th, .dp-article td { padding: 10px 8px; }
	.dp-article blockquote { padding: 16px 16px 16px 60px; font-size: 17px; }
	.dp-article blockquote::before { left: 14px; font-size: 56px; }
	.dp-article .figure-pair, .dp-article .clinic-facts { grid-template-columns: 1fr; }
	.related-section .post-grid { grid-template-columns: 1fr; }
}

/* 보정: 옛 테마의 명조 글꼴·표 색 덮어쓰기 */
.dp-article h1, .dp-article h2, .dp-article h3, .dp-article h4, .dp-entry-header h1 { font-family: var(--dp-sans); }
.dp-article thead th, .dp-article tr:first-child > th, .dp-article table:not(:has(thead)) tr:first-child > td:not(:only-child),
.dp-article thead th *, .dp-article tr:first-child > th *, .dp-article table:not(:has(thead)) tr:first-child > td:not(:only-child) * { color: #fff !important; }
.dp-article .comparison-table tr:only-child > td:only-child { text-align: left; }

/* 3단 글 화면 (왼쪽 목차 · 본문 · 오른쪽 추천 글) */
.dp-single { padding: 36px 0 72px; }
.dp-article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px) 260px; gap: 40px; justify-content: center; align-items: start; width: min(1360px, calc(100% - 140px)); }
.dp-col-left, .dp-col-right { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.dp-toc summary { list-style: none; cursor: default; margin-bottom: 12px; color: #111; font-size: 16px; font-weight: 800; }
.dp-toc summary::-webkit-details-marker { display: none; }
.dp-toc-list { margin: 0; padding: 0; list-style: none; }
.dp-toc-list li { margin: 0 0 10px; line-height: 1.45; }
.dp-toc-list a { color: #5f6b7d; font-size: 13.5px; text-decoration: none; }
.dp-toc-list a:hover, .dp-toc-list a.is-active { color: var(--dp-navy); font-weight: 700; }
.dp-toc-l3 { padding-left: 14px; }
.dp-entry-summary { margin: 0 0 18px; color: #4a5568; font-size: 18px; line-height: 1.7; }
.dp-entry-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.dp-author { display: flex; align-items: center; gap: 10px; color: #1f2430; font-size: 14.5px; text-decoration: none; }
.dp-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid #e3e8ef; }
.dp-author time { display: block; color: #8a94a6; font-size: 13px; }
.dp-share { padding: 7px 12px; border: 1px solid #d5deea; border-radius: 999px; background: #fff; color: var(--dp-navy); font-size: 13px; font-weight: 700; cursor: pointer; }
.dp-entry-hero { margin: 0 0 28px; }
.dp-entry-hero img { display: block; width: 100%; height: auto; border-radius: 12px; }
.dp-side-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #e3e8ef; color: #111; font-size: 16px; font-weight: 800; }
.dp-side-list { margin: 0; padding: 0; list-style: none; }
.dp-side-list li { padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.dp-side-list a { display: flex; gap: 10px; align-items: flex-start; color: #1f2430; text-decoration: none; }
.dp-side-text { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dp-side-list img { flex: none; width: 96px; height: auto; border-radius: 6px; }
.dp-side-list a:hover .dp-side-text { color: var(--dp-navy); }
/* 우측 플레이스 바와 겹치지 않게 오른쪽 여백 */
@media (min-width: 1181px) { .dp-single .dp-article-layout { padding-right: 70px; } }
@media (max-width: 1180px) {
	.dp-article-layout { grid-template-columns: minmax(0, 1fr); width: calc(100% - 40px); max-width: 780px; gap: 20px; }
	.dp-col-left, .dp-col-right { position: static; max-height: none; overflow: visible; }
	.dp-col-left { order: 0; }
	.dp-col-main { order: 1; }
	.dp-col-right { order: 2; }
	.dp-toc { padding: 14px 16px; border-radius: 10px; background: #f5f7fa; }
	.dp-toc:not([open]) summary { margin-bottom: 0; }
	.dp-toc summary { cursor: pointer; }
	.dp-toc summary::after { content: " ▾"; color: #8a94a6; }
}
/* 원장 소개 페이지 */
.dp-doctor-profile { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.dp-doctor-photo { width: 100%; height: auto; border-radius: 14px; }
.dp-doctor-role { color: var(--dp-navy); font-weight: 800; }
@media (max-width: 720px) { .dp-doctor-profile { grid-template-columns: 1fr; } .dp-doctor-photo { max-width: 240px; } }

/* 움직이는 그림(GIF): 정지 그림 먼저, 누르면 재생 */
.dp-article .dp-gif { position: relative; display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.dp-article .dp-gif img { display: block; }
.dp-article .dp-gif-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(27, 47, 107, .88); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.dp-article .dp-gif-play:hover { background: var(--dp-navy); }

/* GIF를 바꾼 자동재생 영상 */
.dp-article video.dp-loop-video { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 12px; background: #f3f4f6; }
