/*
Theme Name: 병원 웹블로그
Description: 병원 웹블로그 공통 클래식 테마(병원 정보는 병원 웹블로그 설정 플러그인에서 읽음).
Version: 2.1.1
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dp-blog
*/

:root {
	--dp-blue: #073190;
	--dp-ink: #202b3b;
	--dp-muted: #667183;
	--dp-line: #e3e7ed;
	--dp-pale: #f5f7fb;
	--dp-sans: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--dp-serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", "바탕", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--dp-ink); background: #fff; font-family: var(--dp-sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--dp-blue); outline-offset: 5px; }
main:focus { outline: none; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.45; word-break: keep-all; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; width: auto; height: auto; margin: 0; left: 20px; top: 16px; padding: 12px 20px; background: var(--dp-blue); color: #fff; z-index: 99999; }

.site-header { border-bottom: 1px solid var(--dp-line); background: #fff; }
.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-brand { min-width: 0; }
.brand-link { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-name { color: var(--dp-blue); font-size: 22px; font-weight: 750; letter-spacing: -.055em; }
.brand-divider { color: #a4afbe; }
.brand-journal { font-size: 17px; font-weight: 500; letter-spacing: -.04em; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-width: 260px; max-height: 68px; width: auto; object-fit: contain; }
.primary-nav .menu { display: flex; align-items: center; gap: 30px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--dp-blue); }
.primary-nav .menu-consultation { padding: 11px 19px; background: var(--dp-blue); border-radius: 3px; color: #fff; }
.primary-nav .menu-consultation:hover { color: #fff; background: #092669; }
.site-main { padding-top: 66px; padding-bottom: 96px; min-height: 50vh; }
.page-heading { margin-bottom: 45px; }
.eyebrow { margin-bottom: 14px; color: var(--dp-blue); font-size: 11px; letter-spacing: .17em; font-weight: 700; }
.page-heading h1 { margin: 0 0 18px; font-family: var(--dp-serif); font-size: clamp(30px, 3.3vw, 43px); font-weight: 700; letter-spacing: -.065em; }
.page-intro { color: var(--dp-muted); font-size: 16px; line-height: 1.8; max-width: 740px; margin-bottom: 0; }
.page-intro p:last-child { margin-bottom: 0; }
.home-heading { padding: 0 0 43px; border-bottom: 1px solid var(--dp-line); margin-bottom: 42px; }
.home-heading h1 { font-size: clamp(31px, 3.6vw, 46px); }
.heading-dot { color: #9ba8bc; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.05em; font-weight: 650; }
.section-caption { color: var(--dp-muted); font-size: 13px; }
.text-link { color: var(--dp-blue); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.text-link span { margin-left: 8px; }
.home-section + .home-section { margin-top: 64px; padding-top: 38px; border-top: 1px solid var(--dp-line); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.post-card { min-width: 0; }
.card-link { display: block; height: 100%; text-decoration: none; }
.card-image { overflow: hidden; aspect-ratio: 1 / 1; background: var(--dp-pale); border-radius: 4px; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.card-link:hover .card-image img { transform: scale(1.025); }
.card-copy { padding: 21px 0 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 9px 14px; align-items: center; margin-bottom: 11px; color: var(--dp-muted); font-size: 12px; }
.card-category, .card-kicker { color: var(--dp-blue); font-weight: 600; }
.card-kicker { margin: 0 0 10px; font-size: 12px; }
.card-title { font-family: var(--dp-serif); font-size: 22px; font-weight: 700; letter-spacing: -.045em; line-height: 1.6; margin: 0 0 11px; }
.card-link:hover .card-title { color: var(--dp-blue); }
.card-excerpt { color: var(--dp-muted); font-size: 14px; line-height: 1.8; margin-bottom: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card-read-more { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--dp-ink); }
.card-read-more > span { color: var(--dp-blue); font-size: 18px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 0 25px; margin-bottom: 32px; border-bottom: 1px solid var(--dp-line); }
.category-nav a { text-decoration: none; color: var(--dp-muted); padding: 6px 14px; border-radius: 3px; border: 1px solid var(--dp-line); font-size: 13px; }
.category-nav a[aria-current="page"], .category-nav a:hover { border-color: var(--dp-blue); color: var(--dp-blue); background: #f4f7fe; }
.pagination { margin-top: 58px; text-align: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 38px; padding: 7px 11px; text-decoration: none; font-size: 14px; border: 1px solid var(--dp-line); border-radius: 3px; }
.pagination .current { background: var(--dp-blue); color: #fff; border-color: var(--dp-blue); }
.pagination a:hover { color: var(--dp-blue); border-color: var(--dp-blue); }
.empty-message, .empty-state { background: var(--dp-pale); padding: 36px; color: var(--dp-muted); }
.empty-state h2 { font-size: 22px; color: var(--dp-ink); }
.search-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.search-form label { flex: 1; min-width: 0; }
.search-field { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #9ba8b9; border-radius: 3px; }
.search-submit, .button { display: inline-block; border: 1px solid var(--dp-blue); background: var(--dp-blue); color: #fff; border-radius: 3px; padding: 10px 20px; cursor: pointer; text-decoration: none; }

.single-main { padding-top: 45px; }
.entry-header { max-width: 780px; margin: 0 auto 35px; }
.back-link { display: inline-block; margin-bottom: 35px; font-size: 13px; color: var(--dp-muted); text-decoration: none; }
.back-link span { margin-right: 9px; }
.entry-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 17px; font-size: 13px; color: var(--dp-blue); }
.entry-categories a { text-decoration: none; }
.entry-header h1 { margin: 0 0 24px; font-family: var(--dp-serif); font-size: clamp(29px, 3.2vw, 41px); font-weight: 700; line-height: 1.6; letter-spacing: -.055em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 15px; color: var(--dp-muted); font-size: 12px; }
.entry-featured { max-width: 1020px; margin: 0 auto 50px; }
.entry-featured img { display: block; width: 100%; height: auto; border-radius: 4px; }
.entry-content, .article-end { max-width: 780px; margin-inline: auto; }
.entry-content { font-size: 18px; line-height: 1.95; overflow-wrap: anywhere; }
.entry-content > * { margin-bottom: 1.5em; }
.entry-content h2, .entry-content h3, .editor-styles-wrapper h2, .editor-styles-wrapper h3 { font-family: var(--dp-serif); letter-spacing: -.045em; }
.entry-content h2 { font-size: 29px; margin-top: 2.4em; margin-bottom: .9em; }
.entry-content h3 { font-size: 23px; margin-top: 1.8em; margin-bottom: .7em; }
.entry-content p { word-break: normal; }
.entry-content a { color: var(--dp-blue); }
.entry-content li + li { margin-top: .45em; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content blockquote { margin-inline: 0; border-left: 3px solid var(--dp-blue); padding: 10px 24px; background: var(--dp-pale); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figcaption { color: var(--dp-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.entry-content .alignwide { max-width: 1020px; }
.entry-content .wp-block-image img, .entry-content .wp-block-media-text__media img { height: auto; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre { overflow-x: auto; padding: 22px; background: var(--dp-pale); font-size: 14px; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .wp-block-embed__wrapper { overflow: hidden; }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.article-end { display: flex; align-items: center; gap: 24px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--dp-line); }
.article-end > span { width: 5px; height: 5px; background: var(--dp-blue); }
.article-end a { margin-left: auto; color: var(--dp-blue); text-decoration: none; font-size: 13px; }
.related-section { margin-top: 76px; padding-top: 35px; border-top: 1px solid var(--dp-line); }
.not-found { padding: 55px 0 80px; max-width: 780px; margin: auto; }
.not-found h1 { font-family: var(--dp-serif); font-size: clamp(30px, 4vw, 42px); letter-spacing: -.06em; }
.not-found > p:not(.eyebrow) { color: var(--dp-muted); margin-bottom: 30px; }
.button span { margin-left: 24px; }

.site-footer { background: var(--dp-pale); border-top: 1px solid var(--dp-line); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; padding-block: 45px 35px; }
.clinic-info h2 { color: var(--dp-blue); font-size: 22px; letter-spacing: -.055em; margin: 0 0 16px; }
.clinic-info .eyebrow { font-size: 11px; letter-spacing: .06em; margin-bottom: 8px; }
.clinic-info p:not(.eyebrow) { font-size: 13px; color: var(--dp-muted); margin-bottom: 6px; }
.clinic-phone span { color: var(--dp-ink); font-weight: 600; margin-left: 10px; }
.consultation-info h2 { margin-bottom: 15px; font-size: 15px; }
.consultation-info p { color: var(--dp-muted); font-size: 13px; line-height: 1.9; margin-bottom: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid #dce2ec; padding-block: 18px; color: var(--dp-muted); font-size: 11px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; white-space: nowrap; }
.footer-bottom a span { margin-left: 9px; }
.editor-styles-wrapper { font-family: var(--dp-sans); color: var(--dp-ink); font-size: 18px; line-height: 1.95; }
.editor-styles-wrapper .wp-block { max-width: 780px; }
.editor-styles-wrapper .wp-block[data-align="wide"] { max-width: 1020px; }

@media (max-width: 959px) {
	.container { width: calc(100% - 64px); }
	.header-inner { min-height: 98px; gap: 20px; }
	.brand-link { gap: 8px; }
	.brand-name { font-size: 20px; }
	.brand-journal { font-size: 15px; }
	.primary-nav .menu { gap: 18px; }
	.primary-nav a { font-size: 13px; }
	.primary-nav .menu-consultation { padding: 10px 13px; }
	.site-main { padding-top: 48px; padding-bottom: 70px; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 24px; }
	.card-title { font-size: 21px; }
	.entry-header { max-width: 700px; }
	.footer-inner { gap: 40px; }
}

@media (max-width: 599px) {
	.container { width: calc(100% - 40px); }
	.header-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding-block: 20px 14px; }
	.brand-link { gap: 10px; }
	.brand-name { font-size: 21px; }
	.brand-journal { font-size: 16px; }
	.custom-logo { max-height: 48px; }
	.primary-nav { width: 100%; }
	.primary-nav .menu { gap: 25px; }
	.primary-nav .menu li:last-child { margin-left: auto; }
	.primary-nav .menu-consultation { padding: 8px 14px; }
	.primary-nav a { font-size: 13px; }
	.site-main { padding-top: 36px; padding-bottom: 55px; }
	.page-heading { margin-bottom: 30px; }
	.home-heading { padding-bottom: 30px; margin-bottom: 30px; }
	.page-heading h1 { font-size: 31px; }
	.page-intro { font-size: 14px; }
	.eyebrow { font-size: 10px; margin-bottom: 12px; }
	.section-heading { margin-bottom: 20px; gap: 10px; }
	.section-heading h2 { font-size: 20px; }
	.section-caption { font-size: 11px; }
	.text-link { font-size: 12px; }
	.text-link span { margin-left: 3px; }
	.post-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; }
	.card-copy { padding-top: 17px; }
	.card-title { font-size: 22px; }
	.card-excerpt { margin-bottom: 12px; }
	.home-section + .home-section { margin-top: 38px; padding-top: 30px; }
	.category-nav { gap: 8px; margin-bottom: 27px; padding-bottom: 22px; }
	.category-nav a { padding: 5px 11px; font-size: 12px; }
	.single-main { padding-top: 25px; }
	.back-link { margin-bottom: 28px; }
	.entry-header { margin-bottom: 28px; }
	.entry-header h1 { font-size: 30px; line-height: 1.65; margin-bottom: 20px; }
	.entry-featured { margin-bottom: 30px; }
	.entry-content { font-size: 17px; line-height: 1.95; }
	.entry-content h2 { font-size: 25px; }
	.entry-content h3 { font-size: 21px; }
	.entry-content blockquote { padding: 12px 18px; }
	.related-section { margin-top: 48px; padding-top: 28px; }
	.empty-message, .empty-state { padding: 25px 20px; }
	.not-found { padding: 30px 0 50px; }
	.not-found p br { display: none; }
	.footer-inner { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 32px 28px; }
	.footer-bottom { align-items: flex-start; gap: 14px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.card-image img { transition: none; }
}
