/*
Theme Name:   GeneratePress Child
Theme URI:    https://thdseocho.com
Description:  태흥당한의원 서초점 블로그 전용 자식 테마. 브랜드 가이드 기반 디자인 시스템.
Author:       Agency
Template:     generatepress
Version:      2.2.0
Text Domain:  generatepress-child
*/

/* ══════════════════════════════════════════
   1. 폰트
   ══════════════════════════════════════════ */

@font-face {
	font-family: 'Pretendard';
	src: url('fonts/Pretendard-400.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Pretendard';
	src: url('fonts/Pretendard-600.woff2') format('woff2');
	font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Pretendard';
	src: url('fonts/Pretendard-700.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'MaruBuri';
	src: url('fonts/MaruBuri-400.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'MaruBuri';
	src: url('fonts/MaruBuri-600.woff2') format('woff2');
	font-weight: 600; font-style: normal; font-display: swap;
}

/* ══════════════════════════════════════════
   2. 디자인 토큰 — 브랜드 가이드 기준
   ══════════════════════════════════════════ */

:root {
	--thd-ink:        #3E2C12;   /* 공식 딥브라운 */
	--thd-ink-mid:    #6C6155;
	--thd-ink-soft:   #8E8375;
	--thd-gold:       #C79661;   /* 공식 골드 */
	--thd-gold-deep:  #A87C4B;
	--thd-gold-tint:  #F2E8DA;
	--thd-cream:      #F7F4EE;
	--thd-paper:      #FFFFFF;
	--thd-line:       #E4DCCE;
	--thd-line-soft:  #EFE9DF;

	--thd-serif: 'MaruBuri', 'Nanum Myeongjo', 'AppleMyungjo', Batang, serif;
	--thd-sans:  'Pretendard', 'Pretendard Variable', -apple-system, BlinkMacSystemFont,
	             'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

	--thd-wrap: 1240px;
	--thd-read: 40rem;
}

/* ══════════════════════════════════════════
   3. 기본
   ══════════════════════════════════════════ */

body {
	font-family: var(--thd-sans);
	background: var(--thd-cream);
	color: var(--thd-ink);
	font-size: 16.5px;
	line-height: 1.85;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--thd-gold-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover, a:focus-visible { color: var(--thd-ink); }
:focus-visible { outline: 2px solid var(--thd-gold); outline-offset: 2px; }

h1, h2, h3, h4, .thd-serif { font-family: var(--thd-serif); font-weight: 400; letter-spacing: -.005em; }

.separate-containers .inside-article,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .container { background: transparent; }

.site-content { max-width: var(--thd-wrap); margin: 0 auto; padding: 0 24px; }
.site-content .content-area { width: 100%; }

/* ══════════════════════════════════════════
   4. 헤더
   ══════════════════════════════════════════ */

.site-header {
	background: var(--thd-paper);
	border-bottom: 1px solid var(--thd-line);
}
.inside-header {
	max-width: var(--thd-wrap);
	margin: 0 auto;
	padding: 20px 24px !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-logo img, .site-logo .header-image {
	height: 40px !important;
	width: auto !important;
	max-height: none;
}
/* 로고 이미지가 있으므로 사이트 제목·태그라인 텍스트는 숨김 */
.site-branding,
.site-header .main-title,
.site-header .site-description { display: none; }
.main-navigation { background: transparent; flex: 0 1 auto; }
.main-navigation .inside-navigation { padding: 0; }
.main-navigation .main-nav > ul { display: flex; gap: 4px; }
.main-navigation .main-nav ul li a {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	padding: 10px 14px;
	color: var(--thd-ink-mid);
	transition: color .15s ease;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a { color: var(--thd-gold-deep); }
.main-navigation .menu-toggle { color: var(--thd-ink); }

/* ══════════════════════════════════════════
   5. 히어로 (홈 · 아카이브)
   ══════════════════════════════════════════ */

.thd-hero {
	text-align: center;
	padding: 62px 24px 54px;
	border-bottom: 1px solid var(--thd-line);
	margin-bottom: 48px;
}
.thd-hero__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2em;
	color: var(--thd-gold-deep);
	margin-bottom: 16px;
}
.thd-hero__title {
	font-family: var(--thd-serif);
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 400;
	line-height: 1.45;
	margin: 0 0 14px;
	text-wrap: balance;
}
.thd-hero__sub {
	margin: 0 auto;
	max-width: 46ch;
	font-size: 15px;
	color: var(--thd-ink-soft);
}
.thd-hero--term .thd-hero__sub { max-width: 56ch; }

/* ══════════════════════════════════════════
   6. 글 목록 — 카드 그리드
   ══════════════════════════════════════════ */

body.archive .site-main,
body.blog .site-main,
body.search-results .site-main {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 30px 26px;
	align-items: stretch;
}
body.archive .site-main > *:not(article),
body.blog .site-main > *:not(article),
body.search-results .site-main > *:not(article) { grid-column: 1 / -1; }

body.archive .site-main article,
body.blog .site-main article,
body.search-results .site-main article {
	background: var(--thd-paper);
	border: 1px solid var(--thd-line);
	margin: 0;
	overflow: hidden;
	transition: border-color .18s ease, transform .18s ease;
}
body.archive .site-main article:hover,
body.blog .site-main article:hover { border-color: var(--thd-gold); transform: translateY(-2px); }

body.archive .site-main .inside-article,
body.blog .site-main .inside-article { padding: 0 !important; }

/* 이미지는 카드 하단에 붙습니다 (레퍼런스와 동일한 구성) */
.site-main article .post-image {
	margin-top: auto !important;
	padding-top: 22px;
}
.site-main article .post-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1 !important;
	object-fit: cover;
	display: block;
	border-top: 1px solid var(--thd-line-soft);
}
/* 아카이브 기본 헤더 숨김 (히어로가 대신) */
body.archive .page-header,
body.blog .page-header,
body.search-results .page-header { display: none; }

/* ── 카드 구성 ──
   텍스트가 위, 이미지가 아래에 붙는 세로형 카드.
   카테고리 → 제목 → 구분선 → 발췌 → 날짜 → (여백) → 이미지  */

.site-main article .inside-article {
	display: flex;
	flex-direction: column;
	min-height: 380px;
	text-align: center;
}
.site-main article .thd-cat-wrap { order: 1; }
.site-main article .entry-header { order: 2; display: flex; flex-direction: column; }
.site-main article .entry-header .entry-title { order: 1; }
.site-main article .entry-header .entry-meta { order: 2; }
.site-main article .entry-summary { order: 3; }
.site-main article .post-image,
.site-main article .featured-image { order: 9; }

.site-main article .thd-cat-wrap,
.site-main article .entry-header,
.site-main article .entry-summary { padding-left: 28px; padding-right: 28px; }

.site-main article .entry-header { padding-top: 6px; }
.site-main article .entry-title {
	font-family: var(--thd-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.55;
	margin: 0;
	/* 제목 아래 얇은 구분선 */
	padding-bottom: 16px;
	position: relative;
}
/* 두 줄로 고정 — 카드 높이 편차 방지.
   line-clamp 를 제목 자체에 걸면 ::after 구분선이 잘리므로 링크에 겁니다. */
.site-main article .entry-title a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(19px * 1.55 * 2);
}
.site-main article .entry-title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 64%;
	height: 1px;
	background: var(--thd-line);
}
.site-main article .entry-title a { color: var(--thd-ink); text-decoration: none; }
.site-main article .entry-title a:hover { color: var(--thd-gold-deep); }

.site-main article .entry-summary {
	font-size: 14px;
	line-height: 1.75;
	color: var(--thd-ink-soft);
	margin-top: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.site-main article .entry-header .entry-meta {
	font-size: 12.5px;
	color: var(--thd-ink-soft);
	margin-top: 14px;
	padding: 0;
}
.site-main article .entry-meta a { color: inherit; text-decoration: none; }
.site-main article footer.entry-meta,
.site-main article .entry-meta .comments-link { display: none; }
/* 수정일·발행일 중복 노출 정리 — 발행일만 */
.site-main article .entry-meta time.updated:not(.published) { display: none; }

/* 카테고리 라벨 */
.thd-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--thd-gold-deep);
	margin-bottom: 8px;
}

/* 페이지네이션 */
.paging-navigation { grid-column: 1 / -1; text-align: center; padding-top: 26px !important; }
.paging-navigation .nav-links > * { margin: 0 4px; }

/* ══════════════════════════════════════════
   7. 단일 글 (LAYER 2 — 가독성 우선)
   ══════════════════════════════════════════ */

body.single .site-main,
body.page .site-main { max-width: var(--thd-read); margin: 0 auto !important; }

body.single .inside-article,
body.page .inside-article { padding: 0 !important; }

body.single .entry-header { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--thd-line); }
body.single .entry-title,
body.page .entry-title {
	font-family: var(--thd-serif);
	font-size: clamp(24px, 3.6vw, 33px);
	font-weight: 400;
	line-height: 1.5;
	margin: 0 0 12px;
	text-wrap: balance;
}
body.single .entry-meta { font-size: 13px; color: var(--thd-ink-soft); }
body.single .entry-meta a { color: inherit; text-decoration: none; }

.entry-content { font-size: 16.5px; }
.entry-content > * { max-width: 100%; }

.entry-content h2 {
	font-family: var(--thd-serif);
	font-size: 22px;
	font-weight: 600;
	margin-top: 2.6em;
	margin-bottom: .75em;
	padding-bottom: .35em;
	border-bottom: 2px solid var(--thd-gold);
	display: inline-block;
	line-height: 1.45;
}
.entry-content h3 {
	font-family: var(--thd-serif);
	font-size: 18.5px;
	font-weight: 600;
	margin-top: 3.2em;
	margin-bottom: .5em;
}
.entry-content p { line-height: 1.9; }
.entry-content strong { font-weight: 700; }

.entry-content .post-image,
.entry-content figure { margin: 2em 0; }
.entry-content img { border-radius: 2px; }
.entry-content figcaption { font-size: 13px; color: var(--thd-ink-soft); text-align: center; margin-top: .6em; }

/* ══════════════════════════════════════════
   8. 푸터
   ══════════════════════════════════════════ */

.thd-site-footer { background: var(--thd-ink); color: rgba(255,255,255,.72); margin-top: 80px; }
/* GeneratePress 기본 푸터(빈 div)는 제거 — margin 만 남아 하단 공백을 만듭니다 */
div.site-footer { display: none !important; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }

.thd-footer { max-width: var(--thd-wrap); margin: 0 auto; padding: 54px 24px 40px; }
.thd-footer__top {
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) repeat(auto-fit, minmax(150px, 1fr));
	gap: 34px;
	padding-bottom: 34px;
	border-bottom: 1px solid rgba(255,255,255,.14);
}
.thd-footer__logo img { height: 38px; width: auto; opacity: .95; }
.thd-footer__slogan {
	font-family: var(--thd-serif);
	font-size: 15px;
	letter-spacing: .22em;
	color: var(--thd-gold);
	margin-top: 16px;
}
.thd-footer h4 {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--thd-gold);
	margin: 0 0 12px;
	font-family: var(--thd-sans);
}
.thd-footer ul { list-style: none; margin: 0; padding: 0; }
.thd-footer li { font-size: 14px; margin-bottom: 7px; line-height: 1.6; }
.thd-footer__bottom {
	padding-top: 22px;
	font-size: 12.5px;
	color: rgba(255,255,255,.5);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	justify-content: space-between;
}
.site-info { display: none; }

/* ══════════════════════════════════════════
   9. 반응형
   ══════════════════════════════════════════ */

@media (max-width: 900px) {
	.thd-hero { padding: 46px 20px 40px; margin-bottom: 36px; }
}
@media (max-width: 768px) {
	body { font-size: 16px; }
	.inside-header { padding: 16px 20px !important; flex-wrap: wrap; }
	.site-logo img, .site-logo .header-image { height: 32px !important; }
	.site-content { padding: 0 20px; }
	body.archive .site-main, body.blog .site-main { grid-template-columns: 1fr; gap: 22px; }
	.thd-footer__top { grid-template-columns: 1fr; gap: 26px; }
	.entry-content h2 { font-size: 20px; }
}

/* ══════════════════════════════════════════
   10. 접근성 · 인쇄
   ══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
	.site-header, .site-footer, .main-navigation, .thd-hero { display: none; }
	body { background: #fff; font-size: 11pt; }
}

/* ── 2026-08-27 레이아웃 보정 ── */
/* 1) 목차 박스 위아래 여백 동일 */
.entry-content .msk-toc__title { margin-top: 0; }
.msk-toc__list li:last-child { margin-bottom: 0; }
/* 2) 표 헤더 가운데 정렬 */
.entry-content table th { text-align: center; }
/* 3) 저자 박스 전체 가운데 정렬 */
.msk-authorbox { text-align: center; }
.msk-authorbox .msk-person { flex-direction: column; align-items: center; }
.msk-person__creds { list-style-position: inside; padding-left: 0; margin-left: 0; }

/* 문단 하단 간격 보강 */
.entry-content p { margin-bottom: 1.9em; }

/* 박스 내부 제목 여백 예외 (본문 H3 여백이 박스 안까지 적용되지 않게) */
.entry-content .msk-keypoints h3 { margin-top: 0; }
.entry-content .msk-faq h3 { margin-top: 1.6em; }
.entry-content .msk-faq h3:first-child { margin-top: 0; }

/* 단일 글: 제목·메타를 본문 위로 (카드용 order 규칙이 단일 글에 적용되는 것 보정) */
body.single .site-main article .entry-header { order: -1; }
body.single .site-main article .inside-article { min-height: 0; }

/* 단일 글 제목 위 여백 */
body.single .entry-header, body.page .entry-header { margin-top: 64px; }

/* 단일 글: 제목 아래 카드용 짧은 선 제거 (날짜 아래 구분선 하나만 유지) */
body.single .site-main article .entry-title::after { display: none; }
body.single .site-main article .entry-title { min-height: 0; padding-bottom: 0; }

/* 푸터 위 '오시는 길' 지도 섹션 */
.thd-map-section { background: #f7f5f2; padding: 56px 20px; margin-top: 72px; }
.thd-map-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.thd-map-title { font-size: 1.35em; margin: 0 0 10px; }
.thd-map-addr { color: #6b6b6b; margin: 0 0 24px; }
.thd-map-frame iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: 8px; }
@media (max-width: 600px) { .thd-map-frame iframe { height: 300px; } }

/* 검색: 헤더 상단 아이콘으로 일원화, 본문 대형 검색 박스는 숨김 */
.no-results .search-form,
.no-results .wp-block-search { display: none; }
.no-results .page-content { margin-bottom: 0; }

/* 헤더 내비게이션 검색 아이콘 */
.main-navigation .search-item > a { padding-left: 14px; padding-right: 14px; }
.main-navigation .search-item svg { width: 17px; height: 17px; }
.navigation-search input[type="search"] { font-size: 1em; }

/* 헤더 돋보기 (검색 페이지 링크) */
.main-navigation .menu-bar-items .thd-search-item > a { padding-left: 14px; padding-right: 14px; }
.main-navigation .menu-bar-items .thd-search-item svg { width: 17px; height: 17px; }

/* 검색 페이지 대형 입력창 */
.thd-searchbox { max-width: 680px; margin: -12px auto 56px; padding: 0 20px; }
.thd-searchbox__form { display: flex; align-items: stretch; background: #fff; border: 1px solid #e2ddd4; border-radius: 6px; overflow: hidden; }
.thd-searchbox__form input[type="search"] { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; padding: 15px 18px; font-size: 1.02em; color: var(--contrast); }
.thd-searchbox__form input[type="search"]:focus { outline: none; background: transparent; border: 0; }
.thd-searchbox__form button { flex: 0 0 auto; border: 0; background: transparent; padding: 0 20px; color: #7a7268; cursor: pointer; }
.thd-searchbox__form button:hover, .thd-searchbox__form button:focus { background: transparent; color: var(--contrast); }
.thd-searchbox__form button svg { width: 18px; height: 18px; display: block; }
@media (max-width: 600px) { .thd-searchbox { margin-bottom: 40px; } }

/* 모바일 다크 모드 대비 문제 수정
   플러그인(medical-schema-kit)이 다크 모드에서 박스 배경만 어둡게 바꾸는데,
   사이트 본문 글자색은 밝은 디자인 기준이라 글씨가 묻힘.
   이 사이트는 라이트 디자인 고정이므로 원래 밝은 색으로 되돌립니다. */
@media (prefers-color-scheme: dark) {
	.entry-content {
		--msk-accent: #2c6349;
		--msk-accent-bg: #e3ede7;
		--msk-warn: #a3392c;
		--msk-warn-bg: #f7e6e3;
		--msk-note: #9a5b2b;
		--msk-note-bg: #f6ebe0;
		--msk-line: rgba(0, 0, 0, .12);
		--msk-tint: rgba(0, 0, 0, .035);
	}
}

/* 상단으로 가기 버튼 — 브랜드 톤의 원형 버튼
   (표시/숨김은 테마가 generate-back-to-top__show 클래스로 제어하므로 opacity는 그 상태에만 지정) */
a.generate-back-to-top {
	right: 24px;
	bottom: 24px;
	width: 46px;
	height: 46px;
	line-height: 46px;
	border-radius: 50%;
	background-color: var(--thd-ink) !important;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,.18);
	box-shadow: 0 4px 14px rgba(62,44,18,.22);
	transition: opacity .25s ease, background-color .2s ease, transform .25s ease;
}
a.generate-back-to-top.generate-back-to-top__show { opacity: .88; }
a.generate-back-to-top:hover,
a.generate-back-to-top:focus {
	background-color: var(--thd-gold-deep) !important;
	color: #fff !important;
	opacity: 1;
}
@media (max-width: 600px) {
	a.generate-back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; line-height: 42px; }
}

/* 어두운 푸터 위에 겹칠 때: 흰색 버튼으로 전환 */
a.generate-back-to-top.thd-btt--on-dark {
	background-color: #fff !important;
	color: var(--thd-ink) !important;
	border-color: rgba(62,44,18,.14);
	box-shadow: 0 4px 16px rgba(0,0,0,.32);
}
a.generate-back-to-top.thd-btt--on-dark:hover,
a.generate-back-to-top.thd-btt--on-dark:focus {
	background-color: var(--thd-gold) !important;
	color: var(--thd-ink) !important;
}

/* ══════════════════════════════════════════════════════════════
   서초 디자인 (2026-10-06) — 리엣의원 + 셀파크피부과 레퍼런스
   크림·흰색 교차 / 한글 제목 명조(Noto Serif KR) / 영문 Marcellus 대문자 키커
   둥근 모서리·아치 / 로고 금색 + 웜 차콜 / 정관(가운데·마루부리)·범일(각진·갈색 띠)과 구분
   ※ 서초 사본 전용. 위쪽 원본 규칙은 그대로 두고 여기서 덮어씁니다.
   ══════════════════════════════════════════════════════════════ */
:root {
	--thd-ink:        #2B2420;   /* 웜 차콜 — 제목 · 푸터 · 상담 박스 */
	--thd-ink-mid:    #574E46;   /* 본문 */
	--thd-ink-soft:   #8C8277;
	--thd-gold:       #C79661;   /* 로고 금색 */
	--thd-gold-deep:  #9B7650;
	--thd-gold-tint:  #F3EADD;
	--thd-cream:      #F8F4EE;
	--thd-sand:       #EFE6D9;
	--thd-paper:      #FFFFFF;
	--thd-line:       #E7DED2;
	--thd-line-soft:  #F0EAE1;
	--thd-serif:      'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', Batang, serif;
	--thd-en:         'Marcellus', 'Times New Roman', Georgia, serif;
	--thd-r:          20px;
	--thd-gutter:     max(32px, calc(50vw - 568px));   /* 헤더 로고 시작선과 같게: (100vw - 1200) / 2 + 헤더 안쪽 여백 32 (10/6) */
}
body { background: var(--thd-paper); color: var(--thd-ink-mid); letter-spacing: -.01em; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--thd-serif); font-weight: 500; color: var(--thd-ink); letter-spacing: -.02em; }
a { color: var(--thd-gold-deep); }
a:hover, a:focus-visible { color: var(--thd-ink); }

/* ── 헤더: 로고 왼쪽 · 메뉴 오른쪽, 얇은 아래선 ── */
.site-header { background: var(--thd-paper); border-bottom: 1px solid var(--thd-line-soft); }
.inside-header { padding: 22px 32px !important; }
.site-logo img, .site-logo .header-image { height: 46px !important; }
.main-navigation, .main-navigation .main-nav ul, .main-navigation .menu-bar-items { background: transparent !important; }
.main-navigation .main-nav > ul { gap: 2px; }
.main-navigation .main-nav ul li a {
	font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1;
	padding: 12px 14px; color: var(--thd-ink) !important; background: transparent !important;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--thd-gold-deep) !important; }
.main-navigation .menu-toggle, .main-navigation .menu-bar-items a { color: var(--thd-ink) !important; background: transparent !important; }

/* ── 메인 · 목록 상단: 크림 전폭 띠, 왼쪽 정렬, 오른쪽 아치 ── */
body.blog .site-main, body.archive .site-main, body.search .site-main { margin-top: 0; }
.thd-hero {
	position: relative; overflow: hidden; text-align: left;
	width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
	background: var(--thd-cream); border-bottom: 0;
	padding: 84px var(--thd-gutter) 80px; margin-bottom: 64px;
}
.thd-hero__kicker {
	font-family: var(--thd-en); font-weight: 400; font-size: 14px; line-height: 1.4;
	letter-spacing: .24em; text-transform: uppercase; color: var(--thd-gold-deep); margin-bottom: 20px;
}
.thd-hero__title {
	position: relative; z-index: 1; max-width: 15em;
	font-family: var(--thd-serif); font-weight: 500; color: var(--thd-ink);
	font-size: clamp(30px, 4.2vw, 50px); line-height: 1.38; letter-spacing: -.035em; margin: 0;
}
.thd-hero__title span { color: var(--thd-gold-deep); }
.thd-hero__sub { position: relative; z-index: 1; margin: 0; max-width: 34em; font-size: 16px; line-height: 1.8; color: var(--thd-ink-soft); }
.thd-hero__sub::before { content: ''; display: block; width: 40px; height: 1px; background: var(--thd-gold); margin: 28px 0 22px; }

/* 메인: 리엣식 아치 + 로고 심볼 */
.thd-hero--home { padding-top: 112px; padding-bottom: 108px; }
.thd-hero--home::after {
	content: ''; position: absolute; bottom: 0; right: var(--thd-gutter);
	width: clamp(240px, 26vw, 360px); height: calc(100% - 56px);
	border-radius: 999px 999px 0 0;
	background: url('brand/symbol.svg') center 42% / 34% auto no-repeat,
	            linear-gradient(180deg, #EBDDCA 0%, #F3EADD 100%);
}

/* 카테고리 · 검색 · 작성자: 셀파크식 큰 영문 제목 + 한글 명조 */
.thd-hero--term { padding-top: 72px; padding-bottom: 64px; }
.thd-hero--term .thd-hero__kicker {
	font-size: clamp(38px, 5.6vw, 72px); line-height: 1.08; letter-spacing: -.01em; text-transform: none;
	color: var(--thd-ink); margin-bottom: 18px;
}
.thd-hero--term .thd-hero__title { font-size: 20px; line-height: 1.5; letter-spacing: -.02em; color: var(--thd-gold-deep); }
.thd-hero--term .thd-hero__sub::before { margin: 20px 0 16px; }

/* ── 글 목록: 크림 둥근 카드, 이미지 위 ── */
body.archive .site-main, body.blog .site-main, body.search-results .site-main { gap: 40px 28px; }
body.search-results .site-main .inside-article { padding: 0 !important; }   /* 검색 결과 카드도 이미지가 카드 끝까지 */
body.archive .site-main article, body.blog .site-main article, body.search-results .site-main article {
	background: var(--thd-cream); border: 0; border-radius: var(--thd-r); overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}
body.archive .site-main article:hover, body.blog .site-main article:hover, body.search-results .site-main article:hover {
	transform: translateY(-4px); box-shadow: 0 14px 34px rgba(43, 36, 32, .08);
}
.site-main article .inside-article { text-align: left; min-height: 0; }
.site-main article .post-image, .site-main article .featured-image { order: 0 !important; margin: 0 !important; padding-top: 0; overflow: hidden; }
.site-main article .post-image img { aspect-ratio: 3 / 2 !important; border-top: 0; transition: transform .6s ease; }
.site-main article:hover .post-image img { transform: scale(1.04); }
.site-main article .thd-cat-wrap { padding: 26px 28px 0 !important; }
.site-main article .entry-header, .site-main article .entry-summary { padding-left: 28px; padding-right: 28px; }
.thd-cat { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--thd-gold-deep); margin-bottom: 10px; }
.site-main article .entry-title { font-family: var(--thd-serif); font-size: 19px; font-weight: 500; letter-spacing: -.025em; line-height: 1.55; padding-bottom: 0; }
.site-main article .entry-title::after { display: none; }
.site-main article .entry-summary { margin: 12px 0 30px; padding-bottom: 0; font-size: 14.5px; }   /* 두 줄 자르기 상자 안에 아래 여백을 두면 셋째 줄이 비침 */
.site-main article .entry-header .entry-meta { margin-top: 10px; font-size: 12.5px; letter-spacing: .02em; }
.paging-navigation .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 999px; color: var(--thd-ink-mid); text-decoration: none;
}
.paging-navigation .page-numbers.current { background: var(--thd-ink); color: #fff; }

/* ── 단일 글: 가운데 머리 + 넓은 둥근 대표 이미지 + 왼쪽 정렬 본문 ── */
body.single .site-main { margin-top: 0 !important; }
body.single .site-main article .inside-article, body.page .site-main article .inside-article { text-align: left; }
body.single .site-main article .entry-header {
	margin: 76px 0 44px; padding: 0; border-bottom: 0; text-align: center;
}
body.single .entry-header .entry-title, body.page .entry-title {
	max-width: 20em; margin: 0 auto 18px; text-align: center;
	font-family: var(--thd-serif); font-weight: 500; color: var(--thd-ink);
	font-size: clamp(28px, 3.8vw, 40px); line-height: 1.42; letter-spacing: -.035em;
}
body.single .entry-header .entry-meta { text-align: center; font-size: 13px; letter-spacing: .02em; color: var(--thd-ink-soft); }
.thd-post-kicker { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; margin-bottom: 22px; }
.thd-post-kicker__en { font-family: var(--thd-en); font-size: 13.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--thd-gold-deep); }
.thd-post-kicker__ko { font-size: 13px; color: var(--thd-ink-soft); }
.thd-post-kicker__ko::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--thd-gold); vertical-align: middle; margin-right: 12px; }

body.single .site-main article .featured-image {
	position: relative; width: min(960px, calc(100vw - 48px)); max-width: none;
	margin: 0 0 64px 50% !important; transform: translateX(-50%);
}
body.single .site-main article .featured-image img {
	width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 24px;
}

body.single .entry-content { text-align: left; font-size: 17px; color: var(--thd-ink-mid); }
.entry-content h2 {
	position: relative; display: block; border-bottom: 0;
	margin-top: 4em; padding: 40px 0 0; border-top: 1px solid var(--thd-line);   /* 10/6 요청: 구분선 위아래 여백 조금 더 */
	font-family: var(--thd-serif); font-weight: 500; font-size: 25px; line-height: 1.45; letter-spacing: -.03em; color: var(--thd-ink);
}
.entry-content h2::before { content: ''; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--thd-gold); }
.entry-content .thd-related__title { border-top: 0; padding-top: 0; margin-top: 0; }
.entry-content .thd-related__title::before { display: none; }
.entry-content h3 { font-family: var(--thd-serif); font-weight: 600; font-size: 19px; color: var(--thd-ink); margin-top: 2.4em; letter-spacing: -.02em; }
.entry-content img { border-radius: 16px; }
.entry-content figcaption { color: var(--thd-ink-soft); }

/* ── 본문 박스: 왼쪽 굵은 선 없이 둥근 패널 + 영문 대문자 라벨 ── */
.entry-content {
	--msk-accent: #9B7650; --msk-accent-bg: #F8F4EE;
	--msk-warn: #A4473A;   --msk-warn-bg: #FBF1EE;
	--msk-note: #7A6A58;   --msk-note-bg: #F5F0E8;
	--msk-line: #E7DED2;   --msk-tint: #FAF7F2;
}
@media (prefers-color-scheme: dark) {
	.entry-content {
		--msk-accent: #9B7650; --msk-accent-bg: #F8F4EE;
		--msk-warn: #A4473A;   --msk-warn-bg: #FBF1EE;
		--msk-note: #7A6A58;   --msk-note-bg: #F5F0E8;
		--msk-line: #E7DED2;   --msk-tint: #FAF7F2;
	}
}
.entry-content .msk-keypoints, .entry-content .msk-note, .entry-content .msk-warn { border: 0; border-radius: var(--thd-r); }
.entry-content .msk-keypoints { padding: 34px 38px 32px; background: var(--thd-cream); }
.entry-content .msk-keypoints h3 { font-family: var(--thd-serif); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--thd-ink); margin-bottom: 14px; }
.entry-content .msk-keypoints li::marker { color: var(--thd-gold); }
.entry-content .msk-toc { background: transparent; border: 1px solid var(--thd-line); border-radius: var(--thd-r); padding: 28px 34px; }
.entry-content .msk-toc__title { opacity: 1; font-family: var(--thd-serif); font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--thd-ink); }
.entry-content .msk-toc__list a { color: var(--thd-ink-mid); }
.entry-content .msk-toc__list a:hover { color: var(--thd-gold-deep); }
.entry-content .msk-note { padding: 24px 28px; }
.entry-content .msk-warn { padding: 26px 30px; }
.entry-content .msk-keypoints h3::before,
.entry-content .msk-toc__title::before,
.entry-content .msk-note::before,
.entry-content .msk-warn h4::before {
	display: block; margin-bottom: 6px;
	font-family: var(--thd-en); font-weight: 400; font-size: 12.5px; line-height: 1.4;
	letter-spacing: .24em; text-transform: uppercase;
}
.entry-content .msk-keypoints h3::before { content: 'Key Points'; color: var(--thd-gold-deep); }
.entry-content .msk-toc__title::before { content: 'Contents'; color: var(--thd-gold-deep); width: auto; height: auto; background: none; }
.entry-content .msk-note::before { content: 'Note'; color: var(--msk-note); }
.entry-content .msk-warn h4::before { content: 'Caution'; color: var(--msk-warn); }

/* 박스 안쪽 정리: GP 가 그룹 블록 안쪽에 40px 여백을 넣으므로 제거, 마지막 문단 아래 여백 제거 */
.entry-content [class*="msk-"] > .wp-block-group__inner-container { padding: 0; margin: 0; max-width: none; }
.entry-content .msk-keypoints ul:last-child, .entry-content .msk-note p:last-child, .entry-content .msk-warn ul:last-child, .entry-content .msk-warn p:last-child { margin-bottom: 0; }
/* 목차 제목은 h2 라서 본문 소제목 장식(윗선 · 금색 선)이 붙지 않게 되돌림 */
.entry-content .msk-toc .msk-toc__title { border-top: 0; padding: 0; margin: 0 0 12px; display: block; }
.entry-content .msk-toc .msk-toc__title::before { position: static; top: auto; left: auto; width: auto; height: auto; background: none; }

/* 자주 묻는 질문 · 참고 자료 · 표 */
.entry-content .msk-faq h3 { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--thd-line); font-size: 17.5px; }
.entry-content .msk-faq h3:first-child { border-top: 0; padding-top: 0; }
.entry-content .msk-faq p { margin-bottom: 1.4em; }
.entry-content .msk-refs { font-size: 13.5px; color: var(--thd-ink-soft); opacity: 1; }
.entry-content figure.wp-block-table { border: 1px solid var(--thd-line); border-radius: 16px; overflow-x: auto; }
.entry-content figure.wp-block-table table { margin: 0; }
.entry-content th { background: var(--thd-cream); color: var(--thd-ink); font-weight: 600; text-align: center; border-color: var(--thd-line); }
.entry-content td { border-color: var(--thd-line); }
.entry-content figure.wp-block-table tr:last-child td { border-bottom: 0; }

/* 관련 글 · 프로필 */
.entry-content .thd-related { background: transparent; border: 1px solid var(--thd-line); border-radius: var(--thd-r); padding: 28px 32px; }
.entry-content .thd-related__title { font-family: var(--thd-serif); font-weight: 600; font-size: 18px; }
.msk-authorbox, .msk-authorbox .msk-authorbox__dates, .msk-authorbox .msk-authorbox__notice { text-align: left !important; }
.msk-authorbox { background: var(--thd-cream); border: 0; border-radius: var(--thd-r); padding: 30px 32px; margin-top: 72px; }
.msk-authorbox .msk-person { flex-direction: row !important; align-items: center !important; gap: 20px; }
.msk-authorbox .msk-person__photo { background: #fff; padding: 8px; box-sizing: border-box; }
.msk-authorbox .msk-person__name { font-family: var(--thd-serif); font-weight: 600; color: var(--thd-ink); }
.msk-authorbox .msk-person__creds { padding-left: 0; margin-left: 0; list-style: none; color: var(--thd-ink-mid); }

/* ── 글 하단 상담 박스: 웜 차콜 둥근 패널 + 알약 버튼 ── */
.thd-cta { margin: 56px 0 24px; padding: 54px 32px 56px; background: var(--thd-ink); border-radius: 24px; text-align: center; }
.thd-cta__kicker { display: block; margin-bottom: 12px; font-family: var(--thd-en); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--thd-gold); }
.thd-cta__title { margin: 0 0 10px; font-family: var(--thd-serif); font-weight: 500; font-size: 25px; line-height: 1.45; letter-spacing: -.03em; color: #fff; }
.thd-cta__desc { margin: 0 0 30px; font-size: 15.5px; color: rgba(255, 255, 255, .66); }
.thd-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.thd-cta__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-width: 180px;
	padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em;
	text-decoration: none; transition: background-color .2s, border-color .2s, color .2s;
}
.thd-cta__btn--primary { background: var(--thd-gold); border: 1px solid var(--thd-gold); color: var(--thd-ink); }
.thd-cta__btn--primary:hover, .thd-cta__btn--primary:focus-visible { background: #D6AB7B; border-color: #D6AB7B; color: var(--thd-ink); }
.thd-cta__btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .38); color: #fff; }
.thd-cta__btn--ghost:hover, .thd-cta__btn--ghost:focus-visible { background: #fff; border-color: #fff; color: var(--thd-ink); }
.thd-cta__num { font-weight: 400; opacity: .7; }
.thd-cta--mo { display: none; }

/* ── 오시는 길 ── */
.thd-map-section { background: var(--thd-cream); padding: 96px 24px; margin-top: 110px; }
.thd-map-kicker { display: block; margin-bottom: 12px; font-family: var(--thd-en); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--thd-gold-deep); }
.thd-map-title { font-family: var(--thd-serif); font-weight: 500; font-size: 30px; letter-spacing: -.03em; color: var(--thd-ink); margin-bottom: 12px; }
.thd-map-addr { color: var(--thd-ink-soft); margin-bottom: 30px; }
.thd-map-frame iframe { border-radius: 24px; }
.thd-map-section + .thd-site-footer { margin-top: 0; }

/* ── 푸터: 웜 차콜, 영문 대문자 금색 라벨, 큰 전화번호 ── */
.thd-site-footer { background: var(--thd-ink); color: rgba(255, 255, 255, .72); }
.thd-footer { padding: 76px 32px 40px; }
.thd-footer__top { grid-template-columns: 1.15fr 1fr 1fr 1.25fr; gap: 40px; padding-bottom: 44px; border-bottom-color: rgba(255, 255, 255, .12); }
.thd-footer__logo img { height: 48px; opacity: 1; }
.thd-footer__slogan { font-family: var(--thd-serif); font-size: 14px; letter-spacing: .3em; color: var(--thd-gold); margin-top: 18px; }
.thd-footer h4 { font-family: var(--thd-en); font-weight: 400; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--thd-gold); margin: 0 0 16px; }
.thd-footer__tel { display: block; margin-bottom: 18px; font-family: var(--thd-en); font-size: 31px; line-height: 1.1; letter-spacing: .01em; color: #fff !important; text-decoration: none; }
.thd-footer__btn {
	display: inline-block; padding: 10px 24px; border: 1px solid var(--thd-gold); border-radius: 999px;
	font-size: 14px; font-weight: 600; color: var(--thd-gold) !important; text-decoration: none; transition: background-color .2s, color .2s;
}
.thd-footer__btn:hover, .thd-footer__btn:focus-visible { background: var(--thd-gold); color: var(--thd-ink) !important; }
.thd-footer__hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; line-height: 1.6; }
.thd-footer__hours dt { color: rgba(255, 255, 255, .5); font-weight: 400; }
.thd-footer__hours dd { margin: 0; color: rgba(255, 255, 255, .86); }
.thd-footer__note { margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.thd-footer__links { margin-top: 16px !important; }
.thd-footer__bottom { color: rgba(255, 255, 255, .42); }

/* ── 검색 · 위로 버튼 ── */
.thd-searchbox { margin-top: 0; width: 100%; max-width: 680px; box-sizing: border-box; justify-self: center; }   /* 검색칸이 333px 로 줄던 것 (10/6) */
.thd-searchbox__form { border-radius: 999px; border-color: var(--thd-line); padding-left: 8px; }
a.generate-back-to-top { box-shadow: 0 4px 14px rgba(43, 36, 32, .2); }

/* ── 반응형 ── */
@media (max-width: 1024px) {
	.thd-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
	.inside-header { padding: 14px 20px !important; }
	.site-logo img, .site-logo .header-image { height: 36px !important; }
	.thd-hero { padding: 60px 20px 56px; margin-bottom: 40px; }
	.thd-hero--home { padding-top: 64px; padding-bottom: 60px; }
	.thd-hero--home::after { display: none; }
	.thd-hero--term .thd-hero__kicker { font-size: 38px; }
	body.single .site-main article .entry-header { margin: 52px 0 32px; }
	body.single .site-main article .featured-image { width: calc(100vw - 40px); margin-bottom: 40px !important; }
	body.single .site-main article .featured-image img { border-radius: 16px; }
	body.single .entry-content { font-size: 16.5px; }
	.entry-content h2 { font-size: 22px; padding-top: 32px; }
	.entry-content .msk-keypoints { padding: 26px 22px; }
	.entry-content .msk-toc { padding: 22px 22px; }
	.msk-authorbox { padding: 24px 22px; }
	.msk-authorbox .msk-person { flex-direction: column !important; align-items: flex-start !important; }
	.thd-cta { padding: 40px 22px 42px; border-radius: 20px; }
	.thd-cta__title { font-size: 21px; }
	.thd-cta--pc { display: none; }
	.thd-cta--mo { display: flex; width: 100%; }
	.thd-map-section { padding: 64px 20px; margin-top: 72px; }
	.thd-map-frame iframe { border-radius: 16px; }
	.thd-footer { padding: 56px 20px 36px; }
	.thd-footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* 글이 없을 때 준비 중 안내 (테마 기본 '찾지 못함'은 숨김) */
.thd-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px 72px; }
.thd-empty__kicker { display: block; margin-bottom: 14px; font-family: var(--thd-en); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--thd-gold-deep); }
.thd-empty__title { margin: 0 0 10px; font-family: var(--thd-serif); font-weight: 500; font-size: 26px; letter-spacing: -.03em; color: var(--thd-ink); }
.thd-empty__desc { margin: 0; color: var(--thd-ink-soft); }
.thd-empty ~ .no-results, .thd-empty ~ article.no-results { display: none; }
