/* ==========================================================================
   트리닥터 (treedoctor.co.kr) — 차분한 딥 오렌지 테마
   GeneratePress 위에 얹는 브랜드 레이어
   ========================================================================== */

:root {
	--td-orange-700: #9A3412;
	--td-orange-600: #C2410C;   /* 포인트(딥 오렌지) */
	--td-orange-500: #EA580C;   /* 호버/강조 */
	--td-orange-400: #FB923C;
	--td-apricot-50: #FFF7ED;   /* 서브 배경 */
	--td-apricot-100: #FFEDD5;  /* 배지 */
	--td-apricot-200: #FED7AA;
	--td-canvas: #EEF2F4;       /* PC 바탕 */
	--td-white: #FFFFFF;
	--td-ink: #1F2937;
	--td-ink-2: #374151;
	--td-ink-3: #6B7280;
	--td-ink-4: #9CA3AF;
	--td-line: #E5E7EB;
	--td-line-warm: #F3E8DF;
	--td-radius: 14px;
	--td-radius-sm: 10px;
	--td-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
	--td-shadow-warm: 0 12px 34px rgba(194, 65, 12, 0.10);
	--td-font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
	--td-header-h: 64px;
}

/* -------------------------------------------------------------------------- */
/* 기본                                                                        */
/* -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.td-body {
	font-family: var(--td-font);
	color: var(--td-ink);
	background: var(--td-canvas);
	line-height: 1.78;
	word-break: keep-all;
	overflow-wrap: break-word;
}

@media (max-width: 1024px) {
}

a { color: var(--td-orange-600); }
a:hover { color: var(--td-orange-500); }

::selection { background: var(--td-apricot-100); color: var(--td-orange-700); }

/* 관리자바가 있을 때 */
.admin-bar .td-progress-fix,
body.admin-bar #td-progress { top: 32px; height: calc(100% - 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar #td-progress { top: 46px; }
}

/* -------------------------------------------------------------------------- */
/* 읽기 진행바 — 왼쪽 끝 4px 세로, 위에서 아래로                                */
/* -------------------------------------------------------------------------- */
#td-progress {
	position: fixed;
	left: 0;
	top: 0;
	width: 4px;
	height: 0;
	background: linear-gradient(180deg, var(--td-orange-500) 0%, var(--td-orange-600) 60%, var(--td-orange-700) 100%);
	border-radius: 0 3px 3px 0;
	z-index: 9999;
	pointer-events: none;
	transition: height 0.08s linear;
	box-shadow: 0 0 10px rgba(194, 65, 12, 0.28);
}

/* -------------------------------------------------------------------------- */
/* 헤더                                                                        */
/* -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--td-line-warm);
	box-shadow: 0 1px 0 rgba(194, 65, 12, 0.04);
}
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}

.site-header .inside-header { padding: 10px 24px; }

.site-header .main-title,
.site-header .main-title a {
	font-size: 1.3rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--td-ink);
	line-height: 1.25;
}
.site-header .main-title a::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 9px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 32%, var(--td-orange-400), var(--td-orange-600) 68%);
	vertical-align: 2px;
	box-shadow: 0 2px 8px rgba(194, 65, 12, 0.35);
}
.site-header .site-description { display: none; }

.main-navigation .inside-navigation {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 24px;
}

.main-navigation .main-nav ul li a {
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--td-ink-2);
	padding: 9px 12px;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
	color: var(--td-orange-600);
	background: var(--td-apricot-50);
}

/* 헤더 도구(검색 + 공유) */
.td-head-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

/* -------------------------------------------------------------------------- */
/* 헤더 실시간 검색                                                            */
/* -------------------------------------------------------------------------- */
.td-search { position: relative; display: flex; align-items: center; }
.td-search__form {
	display: flex;
	align-items: center;
	background: #F7F5F2;
	border: 1px solid var(--td-line-warm);
	border-radius: 999px;
	padding: 0 12px;
	height: 40px;
	width: 260px;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.td-search__form:focus-within {
	background: #fff;
	border-color: var(--td-apricot-200);
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.10);
}
.td-search__icon { width: 17px; height: 17px; color: var(--td-ink-3); flex: 0 0 auto; margin-right: 7px; }
.td-search__input {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	height: 38px;
	line-height: 38px;
	font-size: 0.92rem;
	padding: 0 !important;
	width: 100%;
	min-width: 0;
	color: var(--td-ink);
	outline: none;
}
.td-search__input::-webkit-search-cancel-button { display: none; }
.td-search__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--td-line-warm);
	background: #fff;
	color: var(--td-ink-2);
	cursor: pointer;
}
.td-search__toggle svg { width: 19px; height: 19px; }

.td-search__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 360px;
	max-height: 68vh;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--td-line-warm);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(31, 41, 55, 0.14);
	padding: 6px;
	z-index: 950;
}
.td-search__panel[hidden] { display: none; }
.td-search__item {
	display: block;
	padding: 9px 11px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--td-ink);
	font-size: 0.92rem;
	line-height: 1.45;
}
.td-search__item small {
	display: block;
	color: var(--td-ink-4);
	font-size: 0.76rem;
	margin-top: 2px;
}
.td-search__item:hover,
.td-search__item[aria-selected="true"] { background: var(--td-apricot-50); color: var(--td-orange-700); }
.td-search__item b { color: var(--td-orange-600); }
.td-search__empty { padding: 14px 12px; color: var(--td-ink-3); font-size: 0.9rem; }
.td-search__all {
	display: block;
	text-align: center;
	padding: 10px;
	margin-top: 4px;
	border-top: 1px solid var(--td-line);
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--td-orange-600);
	text-decoration: none;
}

/* 공유 버튼 */
.td-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--td-apricot-200);
	background: var(--td-apricot-50);
	color: var(--td-orange-700);
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.td-share-btn svg { width: 16px; height: 16px; }
.td-share-btn:hover { background: var(--td-apricot-100); border-color: var(--td-apricot-200); }
.td-share-btn:active { transform: scale(0.97); }

/* 모바일 헤더 */
@media (max-width: 768px) {
	.site-header .inside-header { padding: 8px 16px; }
	.site-header .main-title, .site-header .main-title a { font-size: 1.08rem; }
	.main-navigation .inside-navigation { padding: 0 12px; gap: 8px; }
	.td-search__form { display: none; width: 100%; }
	.td-search.is-open .td-search__form {
		display: flex;
		position: absolute;
		right: 0;
		top: 0;
		width: min(300px, calc(100vw - 120px));
		z-index: 5;
	}
	.td-search__toggle { display: inline-flex; }
	.td-search__panel { width: min(340px, calc(100vw - 24px)); right: -46px; }
	.td-share-btn { width: 40px; padding: 0; justify-content: center; }
	.td-share-btn__label { display: none; }
	.main-nav ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.main-nav ul::-webkit-scrollbar { display: none; }
	.main-nav ul li a { white-space: nowrap; font-size: 0.9rem; padding: 8px 10px; }
}

/* -------------------------------------------------------------------------- */
/* 레이아웃                                                                    */
/* -------------------------------------------------------------------------- */
.site-content { padding: 28px 0 56px; }
.site-content .grid-container { max-width: 1180px; padding-left: 24px; padding-right: 24px; }

body.td-single #main.site-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
	align-items: start;
}
body.td-single #main > article { grid-column: 1; min-width: 0; }
body.td-single #main > .comments-area,
body.td-single #main > .paging-navigation { grid-column: 1; }
#td-side-toc { display: none; }

@media (min-width: 1025px) {
	#td-side-toc {
		display: block;
		grid-column: 2;
		grid-row: 1 / span 2;
		position: sticky;
		top: calc(var(--td-header-h) + 20px);
		max-height: calc(100vh - var(--td-header-h) - 40px);
		overflow: auto;
	}
	body.admin-bar #td-side-toc { top: calc(var(--td-header-h) + 52px); max-height: calc(100vh - var(--td-header-h) - 72px); }
}
@media (max-width: 1024px) {
	body.td-single #main.site-main { display: block; }
	#td-side-toc { display: none !important; }
}

.inside-article {
	background: var(--td-white);
	border: 1px solid var(--td-line-warm);
	border-radius: var(--td-radius);
	box-shadow: var(--td-shadow);
	padding: 38px 42px 44px;
}
@media (max-width: 768px) {
	.site-content { padding: 14px 0 40px; }
	.site-content .grid-container { padding-left: 14px; padding-right: 14px; }
	.inside-article { padding: 22px 18px 30px; border-radius: 12px; }
}

/* -------------------------------------------------------------------------- */
/* 글 제목/메타                                                                 */
/* -------------------------------------------------------------------------- */
.entry-header { margin-bottom: 18px; }
.entry-header .entry-title {
	font-size: 2.05rem;
	line-height: 1.34;
	letter-spacing: -0.025em;
	font-weight: 800;
	color: var(--td-ink);
	margin: 0 0 12px;
	text-wrap: pretty;
}
@media (max-width: 768px) {
	.entry-header .entry-title { font-size: 1.5rem; line-height: 1.38; letter-spacing: -0.02em; }
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 0.86rem;
	color: var(--td-ink-3);
}
.entry-meta .byline { display: none; }
.entry-meta .posted-on time { font-weight: 600; color: var(--td-ink-3); }
.entry-header .cat-links a,
.entry-meta .cat-links a {
	display: inline-block;
	background: var(--td-apricot-100);
	color: var(--td-orange-700) !important;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 3px 11px;
	border-radius: 999px;
	text-decoration: none;
}
.entry-header .cat-links a:hover { background: var(--td-apricot-200); }

/* 대표 이미지 */
.featured-image img { border-radius: 12px; margin-bottom: 22px; }

/* -------------------------------------------------------------------------- */
/* 본문                                                                        */
/* -------------------------------------------------------------------------- */
.entry-content {
	font-size: 1.06rem;
	line-height: 1.86;
	color: var(--td-ink-2);
	letter-spacing: -0.003em;
}
@media (max-width: 768px) {
	.entry-content { font-size: 1.02rem; line-height: 1.86; }
}
.entry-content > * + * { margin-top: 1.05em; }
.entry-content p { margin: 0 0 1.05em; }
.entry-content strong, .entry-content b { color: var(--td-ink); font-weight: 700; }
.entry-content a {
	color: var(--td-orange-600);
	text-decoration: underline;
	text-decoration-color: var(--td-apricot-200);
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}
.entry-content a:hover { color: var(--td-orange-500); text-decoration-color: var(--td-orange-400); }

.entry-content h2 {
	position: relative;
	font-size: 1.42rem;
	line-height: 1.42;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--td-ink);
	margin: 2.2em 0 0.7em;
	padding: 4px 0 4px 16px;
	border-left: 4px solid var(--td-orange-600);
	scroll-margin-top: calc(var(--td-header-h) + 18px);
	text-wrap: pretty;
}
.entry-content h2:first-child { margin-top: 0.4em; }
.entry-content h3 {
	font-size: 1.16rem;
	font-weight: 800;
	color: var(--td-ink);
	margin: 1.8em 0 0.5em;
	padding-left: 12px;
	border-left: 3px solid var(--td-apricot-200);
	scroll-margin-top: calc(var(--td-header-h) + 18px);
}
.entry-content h4 { font-size: 1.04rem; font-weight: 800; color: var(--td-orange-700); margin: 1.5em 0 0.4em; }

@media (max-width: 768px) {
	.entry-content h2 { font-size: 1.22rem; padding-left: 13px; margin-top: 1.9em; }
	.entry-content h3 { font-size: 1.08rem; }
}

.entry-content ul,
.entry-content ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.entry-content li { margin: 0.35em 0; }
.entry-content li::marker { color: var(--td-orange-500); }

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 16px 20px;
	background: var(--td-apricot-50);
	border-left: 4px solid var(--td-orange-400);
	border-radius: 0 10px 10px 0;
	color: var(--td-ink-2);
	font-size: 1.01rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content hr {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--td-line-warm), transparent);
	margin: 2.2em 0;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}
.entry-content figure { margin: 1.6em 0; text-align: center; }
.entry-content figure img { margin: 0 auto; box-shadow: 0 6px 18px rgba(31, 41, 55, 0.07); }
.entry-content figcaption {
	font-size: 0.86rem;
	color: var(--td-ink-4);
	margin-top: 8px;
	text-align: center;
}

/* 표 — 깔끔한 오렌지 헤더 */
.entry-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 1.7em 0;
	font-size: 0.95rem;
	line-height: 1.6;
	background: #fff;
	border: 1px solid var(--td-line-warm);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(31, 41, 55, 0.04);
	display: table;
}
.entry-content table caption {
	caption-side: top;
	text-align: left;
	font-size: 0.86rem;
	color: var(--td-ink-3);
	padding-bottom: 8px;
}
.entry-content th,
.entry-content td {
	border-bottom: 1px solid var(--td-line-warm);
	padding: 11px 13px;
	text-align: left;
	vertical-align: top;
}
.entry-content thead th {
	background: var(--td-apricot-50);
	color: var(--td-orange-700);
	font-weight: 800;
	font-size: 0.9rem;
	border-bottom: 1px solid var(--td-apricot-200);
	white-space: nowrap;
}
.entry-content tbody tr:nth-child(even) td { background: #FCFAF8; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 768px) {
	.entry-content table { font-size: 0.88rem; }
	.entry-content th, .entry-content td { padding: 9px 10px; }
	.entry-content thead th { white-space: normal; }
}

/* 요약 박스 (글 첫머리 자동 스타일 + 클래스) */
.td-summary,
.entry-content .td-summary {
	background: var(--td-apricot-50);
	border: 1px solid var(--td-apricot-200);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 1.6em 0;
}
.td-summary__title,
.td-summary > p:first-child strong:only-child { color: var(--td-orange-700); }

/* TIP 박스 */
.td-tip {
	position: relative;
	background: #FFF9F2;
	border: 1px solid var(--td-apricot-200);
	border-left: 4px solid var(--td-orange-500);
	border-radius: 10px;
	padding: 16px 18px 16px 46px;
	margin: 1.7em 0;
	font-size: 1rem;
}
.td-tip::before {
	content: "TIP";
	position: absolute;
	left: 14px;
	top: 15px;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--td-orange-500);
	padding: 2px 6px;
	border-radius: 6px;
}
.td-tip p:last-child { margin-bottom: 0; }

/* 주의 박스 */
.td-warn {
	background: #FFF7ED;
	border: 1px solid #FED7AA;
	border-left: 4px solid #B45309;
	border-radius: 10px;
	padding: 15px 18px;
	margin: 1.7em 0;
}

/* 계산기 카드 */
.td-calc {
	background: #fff;
	border: 1px solid var(--td-line-warm);
	border-radius: 14px;
	box-shadow: var(--td-shadow-warm);
	padding: 20px 22px;
	margin: 1.9em 0;
}
.td-calc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--td-orange-700);
	margin: 0 0 12px;
}
.td-calc__title::before {
	content: "";
	width: 18px;
	height: 18px;
	border-radius: 6px;
	background: var(--td-apricot-100);
	border: 2px solid var(--td-orange-500);
}
.td-calc__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.td-calc__row label { flex: 1 1 140px; font-size: 0.94rem; color: var(--td-ink-2); }
.td-calc input[type="number"],
.td-calc input[type="text"] {
	flex: 0 1 180px;
	border: 1px solid var(--td-line);
	border-radius: 8px;
	padding: 9px 11px;
	font-size: 0.95rem;
}
.td-calc input:focus { outline: none; border-color: var(--td-orange-400); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12); }
.td-calc__result {
	margin-top: 14px;
	background: var(--td-apricot-50);
	border-radius: 10px;
	padding: 13px 16px;
	font-weight: 800;
	color: var(--td-orange-700);
	font-size: 1.05rem;
}
.td-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--td-orange-600);
	color: #fff !important;
	border: 0;
	border-radius: 10px;
	padding: 11px 20px;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s;
}
.td-btn:hover { background: var(--td-orange-500); color: #fff !important; }

/* -------------------------------------------------------------------------- */
/* 목차                                                                        */
/* -------------------------------------------------------------------------- */
.td-toc {
	background: var(--td-apricot-50);
	border: 1px solid var(--td-line-warm);
	border-radius: 12px;
	padding: 16px 18px 14px;
	margin: 0 0 1.8em;
	font-size: 0.95rem;
	line-height: 1.55;
}
.td-toc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 0.94rem;
	font-weight: 900;
	color: var(--td-orange-700);
	letter-spacing: -0.01em;
}
.td-toc__title::before {
	content: "";
	width: 15px;
	height: 15px;
	background: var(--td-orange-600);
	border-radius: 4px;
	-webkit-mask: linear-gradient(#000 0 0) top/100% 3px no-repeat, linear-gradient(#000 0 0) 0 6px/100% 3px no-repeat, linear-gradient(#000 0 0) 0 12px/100% 2px no-repeat;
	mask: linear-gradient(#000 0 0) top/100% 3px no-repeat, linear-gradient(#000 0 0) 0 6px/100% 3px no-repeat, linear-gradient(#000 0 0) 0 12px/100% 2px no-repeat;
	opacity: 0.75;
}
.td-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: td-toc; }
.td-toc li { margin: 0; counter-increment: td-toc; }
.td-toc li + li { border-top: 1px solid rgba(194, 65, 12, 0.08); }
.td-toc a {
	display: flex;
	gap: 9px;
	padding: 7px 6px;
	border-radius: 8px;
	color: var(--td-ink-2);
	text-decoration: none;
	font-weight: 600;
	transition: background 0.15s, color 0.15s;
}
.td-toc a::before {
	content: counter(td-toc);
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 6px;
	background: var(--td-apricot-100);
	color: var(--td-orange-700);
	font-size: 0.72rem;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.td-toc a:hover,
.td-toc a:focus-visible,
.td-toc a.is-active {
	background: #fff;
	color: var(--td-orange-600);
}
.td-toc a:hover::before,
.td-toc a.is-active::before { background: var(--td-orange-600); color: #fff; }

/* PC 오른쪽 고정 목차 */
#td-side-toc .td-toc {
	margin: 0;
	background: #fff;
	border: 1px solid var(--td-line-warm);
	box-shadow: var(--td-shadow);
	padding: 18px 16px;
}
#td-side-toc .td-toc__title {
	position: sticky;
	top: 0;
	background: #fff;
	padding-bottom: 8px;
	margin-bottom: 6px;
	border-bottom: 1px solid var(--td-line-warm);
	z-index: 2;
}
#td-side-toc .td-toc ol {
	max-height: calc(100vh - var(--td-header-h) - 150px);
	overflow: auto;
	scrollbar-width: thin;
}
#td-side-toc .td-toc a { font-size: 0.9rem; padding: 6px 6px; font-weight: 600; }
#td-side-toc .td-toc a.is-active {
	font-weight: 800;
	box-shadow: inset 3px 0 0 var(--td-orange-600);
	border-radius: 0 8px 8px 0;
	background: var(--td-apricot-50);
}

/* -------------------------------------------------------------------------- */
/* 광고                                                                        */
/* -------------------------------------------------------------------------- */
.td-ad {
	position: relative;
	margin: 2em 0;
	padding: 12px 0 8px;
	text-align: center;
	background: #fff;
	border-radius: 10px;
	min-height: 100px;
}
.td-ad__tag {
	display: inline-block;
	font-size: 0.66rem;
	letter-spacing: 0.08em;
	color: var(--td-ink-4);
	border: 1px solid var(--td-line);
	border-radius: 4px;
	padding: 1px 5px;
	margin-bottom: 6px;
	text-transform: uppercase;
	background: #FCFCFD;
}
.td-ad ins.adsbygoogle { display: block; margin: 0 auto; }

/* 쿠팡 파트너스 카드 */
.td-deals,
.td-coupang-slot {
	margin: 2.2em 0;
	padding: 18px 18px 14px;
	background: linear-gradient(180deg, #FFFBF6 0%, #FFFFFF 100%);
	border: 1px solid var(--td-line-warm);
	border-radius: 14px;
}
.td-deals__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
.td-deals__title {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--td-ink);
	letter-spacing: -0.01em;
}
.td-deals__badge {
	font-size: 0.68rem;
	font-weight: 800;
	color: var(--td-orange-700);
	background: var(--td-apricot-100);
	border-radius: 999px;
	padding: 3px 9px;
	white-space: nowrap;
}
.td-deals__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
@media (max-width: 900px) { .td-deals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.td-deal {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--td-line);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: var(--td-ink);
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.td-deal:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31, 41, 55, 0.10); border-color: var(--td-apricot-200); text-decoration: none; }
.td-deal__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #F9FAFB;
	object-fit: cover;
}
.td-deal__body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.td-deal__name {
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--td-ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
}
.td-deal__price { font-size: 0.98rem; font-weight: 800; color: var(--td-orange-600); }
.td-deal__price small { font-weight: 700; font-size: 0.78em; color: var(--td-orange-600); margin-left: 1px; }
.td-deal__tag {
	align-self: flex-start;
	font-size: 0.66rem;
	font-weight: 800;
	color: #B45309;
	background: #FEF3C7;
	border-radius: 4px;
	padding: 1px 5px;
}
.td-deals__note {
	margin: 12px 0 0;
	font-size: 0.74rem;
	line-height: 1.5;
	color: var(--td-ink-4);
}

/* -------------------------------------------------------------------------- */
/* 글 하단 태그/관련글                                                          */
/* -------------------------------------------------------------------------- */
.entry-footer .cat-links,
.entry-footer .tags-links { font-size: 0.85rem; color: var(--td-ink-3); }
.entry-footer .tags-links a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 11px;
	background: #F7F5F2;
	border: 1px solid var(--td-line-warm);
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--td-ink-2) !important;
	text-decoration: none;
}
.entry-footer .tags-links a:hover { background: var(--td-apricot-50); border-color: var(--td-apricot-200); color: var(--td-orange-700) !important; }

/* 이전/다음 글 */
.paging-navigation { margin-top: 22px; }
.paging-navigation .page-numbers { border-radius: 8px; }

/* -------------------------------------------------------------------------- */
/* 댓글                                                                        */
/* -------------------------------------------------------------------------- */
.comments-area {
	margin-top: 26px;
	background: #fff;
	border: 1px solid var(--td-line-warm);
	border-radius: var(--td-radius);
	box-shadow: var(--td-shadow);
	padding: 28px 32px 30px;
}
@media (max-width: 768px) { .comments-area { padding: 20px 16px 22px; } }
.comments-title, .comment-reply-title {
	font-size: 1.14rem;
	font-weight: 800;
	color: var(--td-ink);
	margin: 0 0 14px;
}
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-body {
	padding: 16px 0;
	border-top: 1px solid var(--td-line);
}
.comment-list > li:first-child > .comment-body { border-top: 0; }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--td-ink); }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-style: normal; font-size: 0.95rem; }
.comment-meta { font-size: 0.8rem; color: var(--td-ink-4); margin: 2px 0 8px; }
.comment-content { font-size: 0.97rem; color: var(--td-ink-2); }
.comment-content p:last-child { margin-bottom: 0; }
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url,
.comment-form .comment-form-td-pin { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--td-ink-2); margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--td-line);
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 0.97rem;
	font-family: inherit;
	background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus {
	outline: none;
	border-color: var(--td-orange-400);
	box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.comment-form #td_pin { max-width: 130px; letter-spacing: 0.3em; font-weight: 700; text-align: center; }
.td-pin-desc { display: block; font-size: 0.78rem; color: var(--td-ink-4); margin-top: 5px; }
.comment-form .form-submit input,
.comment-form .submit {
	background: var(--td-orange-600) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	padding: 12px 24px !important;
	font-weight: 800 !important;
	font-size: 0.95rem !important;
	cursor: pointer;
}
.comment-form .form-submit input:hover { background: var(--td-orange-500) !important; }

.td-del {
	margin-left: 6px;
	border: 1px solid var(--td-line);
	background: #fff;
	color: var(--td-ink-4);
	font-size: 0.74rem;
	padding: 1px 7px;
	border-radius: 6px;
	cursor: pointer;
	vertical-align: middle;
}
.td-del:hover { color: #B91C1C; border-color: #FCA5A5; background: #FEF2F2; }
.td-comment-reply a { font-size: 0.82rem; color: var(--td-ink-3); }

/* -------------------------------------------------------------------------- */
/* 위로 / 아래로                                                               */
/* -------------------------------------------------------------------------- */
.td-jump {
	position: fixed;
	right: 18px;
	bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 800;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.td-jump.is-on { opacity: 1; visibility: visible; transform: none; }
.td-jump button {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--td-apricot-200);
	background: #fff;
	color: var(--td-orange-600);
	box-shadow: 0 8px 20px rgba(31, 41, 55, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s, transform 0.12s;
}
.td-jump button:hover { background: var(--td-apricot-50); }
.td-jump button:active { transform: scale(0.94); }
.td-jump button svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
	.td-jump { right: 12px; bottom: 68px; }
	.td-jump button { width: 42px; height: 42px; }
}

/* -------------------------------------------------------------------------- */
/* 홈/아카이브                                                                 */
/* -------------------------------------------------------------------------- */
.archive-description { color: var(--td-ink-3); font-size: 0.95rem; }
.generate-columns .inside-article {
	padding: 22px 22px 20px;
	height: 100%;
}
.generate-columns .entry-title { font-size: 1.12rem; line-height: 1.45; }
.generate-columns .entry-title a { color: var(--td-ink); text-decoration: none; }
.generate-columns .entry-title a:hover { color: var(--td-orange-600); }
.generate-columns .entry-summary { font-size: 0.93rem; color: var(--td-ink-3); line-height: 1.7; }
.generate-columns .entry-summary p { margin-bottom: 0.6em; }
.post-image img { border-radius: 10px; }
.paging-navigation .page-numbers.current { background: var(--td-orange-600); color: #fff; }
.paging-navigation a.page-numbers:hover { background: var(--td-apricot-100); color: var(--td-orange-700); }

/* 사이트 푸터 */
.site-footer {
	background: #fff;
	border-top: 1px solid var(--td-line-warm);
	color: var(--td-ink-3);
	font-size: 0.86rem;
}
.site-footer .inside-site-info { padding: 22px 20px; }
.site-footer a { color: var(--td-ink-3); }

/* 유틸 */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.td-hidden { display: none !important; }

/* GP 기본 내비게이션 배경/여백 덮어쓰기 (흰 헤더 한 줄) */
.main-navigation,
.main-navigation .inside-navigation,
.site-header .main-navigation {
	background: transparent !important;
	border: 0;
}
.site-header {
	padding: 0;
}
.site-header .inside-header { padding: 12px 24px; }
.main-navigation .inside-navigation { padding: 10px 24px 12px; min-height: 0; }
.main-navigation .main-nav { flex: 1 1 auto; }
.main-navigation .main-nav ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; }
.main-navigation .main-nav ul li { float: none; }
.main-navigation .main-nav ul li a { padding: 8px 11px !important; }
.site-header .menu-toggle { color: var(--td-ink-2); background: #fff; border: 1px solid var(--td-line-warm); border-radius: 8px; }
.site-header .inside-navigation .menu-toggle,
.site-header .main-navigation .menu-toggle { display: none; }
@media (max-width: 768px) {
	.site-header .main-navigation .menu-toggle { display: inline-flex; }
	.site-header .inside-navigation .menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   헤더 — 1줄: 로고 + 검색/공유, 2줄: 카테고리 알약 메뉴 (JS가 한 덩어리로 묶어 고정)
   ========================================================================== */
.td-hdr-wrap {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--td-line-warm);
	box-shadow: 0 1px 0 rgba(194, 65, 12, 0.04);
}
body.admin-bar .td-hdr-wrap { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .td-hdr-wrap { top: 46px; } }

.site-header, .site-header .inside-header, .main-navigation, .main-navigation .inside-navigation { background: transparent !important; }
.site-header { position: static; box-shadow: none; border: 0; backdrop-filter: none; }
.site-header .inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
	max-width: 1180px;
	margin: 0 auto;
	padding: 11px 24px 9px;
}
.site-header .site-branding { flex: 1 1 auto; min-width: 0; }
.site-header .td-head-tools { flex: 0 0 auto; margin-left: auto; }

#site-navigation.main-navigation {
	background: transparent !important;
	border-top: 1px solid var(--td-line-warm);
	box-shadow: none;
	max-width: none;
	padding: 0;
	margin: 0;
}
#site-navigation .inside-navigation {
	display: block;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
#site-navigation .main-nav { display: block; width: 100%; }
#site-navigation .main-nav ul {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 2px;
	margin: 0;
	padding: 6px 0 7px;
	overflow-x: auto;
	scrollbar-width: none;
}
#site-navigation .main-nav ul::-webkit-scrollbar { display: none; }
#site-navigation .main-nav ul li { flex: 0 0 auto; float: none; }
#site-navigation .main-nav ul li a,
#site-navigation .main-nav ul li a:visited {
	color: var(--td-ink-2) !important;
	background: transparent !important;
	font-size: 0.94rem !important;
	font-weight: 600;
	line-height: 1.25 !important;
	padding: 8px 12px !important;
	margin: 0 !important;
	border-radius: 999px;
	display: inline-block;
	height: auto !important;
	white-space: nowrap;
}
#site-navigation .main-nav ul li a:hover,
#site-navigation .main-nav ul li.current-menu-item > a,
#site-navigation .main-nav ul li.current-menu-ancestor > a {
	color: var(--td-orange-700) !important;
	background: var(--td-apricot-50) !important;
}
#site-navigation .menu-toggle,
#site-navigation .mobile-menu-control-wrapper,
.site-header .mobile-menu-control-wrapper { display: none !important; }

@media (max-width: 768px) {
	.site-header .inside-header { padding: 9px 14px 8px; gap: 10px; }
	#site-navigation .inside-navigation { padding: 0 10px; }
	#site-navigation .main-nav ul { padding: 5px 0 6px; }
	#site-navigation .main-nav ul li a { font-size: 0.88rem !important; padding: 7px 10px !important; }
}

/* 대표 이미지는 본문 첫 이미지와 겹치므로 글 상단에서는 숨긴다(목록/공유 미리보기는 유지) */
body.single .inside-article .featured-image { display: none; }

/* 채워지지 않은 광고는 자리만 차지하지 않도록 접는다 */
.td-ad.is-empty { display: none; }

/* ==========================================================================
   기본 링크 색 (GeneratePress 파란 기본값 덮기)
   ========================================================================== */
a, a:visited { color: var(--td-orange-600); }
a:hover, a:focus { color: var(--td-orange-500); }
.entry-title a, .entry-title a:visited { color: var(--td-ink) !important; }
.entry-title a:hover { color: var(--td-orange-600) !important; }
.site-title a, .main-title a { color: var(--td-ink) !important; }

/* ==========================================================================
   글 목록(홈·카테고리·검색) — 2단 카드 그리드
   ========================================================================== */
body.blog #main.site-main,
body.archive #main.site-main,
body.search #main.site-main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	align-items: stretch;
}
body.blog #main > .paging-navigation,
body.archive #main > .paging-navigation,
body.search #main > .paging-navigation { grid-column: 1 / -1; }
body.blog #main > article,
body.archive #main > article,
body.search #main > article { margin: 0; }
body.blog #main .inside-article,
body.archive #main .inside-article,
body.search #main .inside-article {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
	transition: box-shadow 0.18s, transform 0.18s;
}
body.blog #main .inside-article:hover,
body.archive #main .inside-article:hover,
body.search #main .inside-article:hover { box-shadow: 0 14px 34px rgba(31, 41, 55, 0.10); }
body.blog #main .post-image,
body.archive #main .post-image,
body.search #main .post-image { margin: 0; }
body.blog #main .post-image img,
body.archive #main .post-image img,
body.search #main .post-image img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 0;
	display: block;
}
body.blog #main .entry-header,
body.archive #main .entry-header,
body.search #main .entry-header { padding: 16px 18px 0; margin-bottom: 8px; }
body.blog #main .entry-title,
body.archive #main .entry-title,
body.search #main .entry-title {
	font-size: 1.12rem !important;
	line-height: 1.45;
	letter-spacing: -0.02em;
	margin: 0 0 8px !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.blog #main .entry-summary,
body.archive #main .entry-summary,
body.search #main .entry-summary { padding: 0 18px; font-size: 0.92rem; color: var(--td-ink-3); line-height: 1.68; }
body.blog #main .entry-summary p,
body.archive #main .entry-summary p,
body.search #main .entry-summary p {
	margin: 0 0 0.5em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.blog #main footer.entry-meta,
body.archive #main footer.entry-meta,
body.search #main footer.entry-meta { padding: 12px 18px 16px; margin-top: auto; border-top: 0; }
body.blog #main .entry-meta .posted-on,
body.archive #main .entry-meta .posted-on { font-size: 0.8rem; color: var(--td-ink-4); }
body.blog .paging-navigation .nav-previous,
body.archive .paging-navigation .nav-previous { margin-bottom: 10px; }
.paging-navigation .page-numbers {
	display: inline-block;
	min-width: 38px;
	text-align: center;
	padding: 8px 10px;
	border: 1px solid var(--td-line-warm);
	border-radius: 8px;
	margin-right: 6px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--td-ink-2);
}
@media (max-width: 900px) {
	body.blog #main.site-main,
	body.archive #main.site-main,
	body.search #main.site-main { grid-template-columns: 1fr; gap: 16px; }
	body.blog #main .post-image img,
	body.archive #main .post-image img,
	body.search #main .post-image img { height: 170px; }
}

/* 목록 카드 세부 조정 */
body.blog #main .inside-article > .post-image,
body.archive #main .inside-article > .post-image,
body.search #main .inside-article > .post-image { order: -1; }
body.blog #main .post-image img,
body.archive #main .post-image img,
body.search #main .post-image img { height: 200px; object-fit: cover; object-position: top center; }
body.blog #main .entry-header,
body.archive #main .entry-header,
body.search #main .entry-header { padding-top: 15px; }
body.blog #main .tags-links,
body.archive #main .tags-links,
body.search #main .tags-links,
body.blog #main .comments-link,
body.archive #main .comments-link,
body.search #main .comments-link,
body.blog #main .byline,
body.archive #main .byline,
body.search #main .byline { display: none !important; }
body.blog #main .entry-meta,
body.archive #main .entry-meta,
body.search #main .entry-meta { display: flex; align-items: center; gap: 10px; }
body.blog #main .cat-links,
body.archive #main .cat-links,
body.search #main .cat-links { order: 2; }
body.blog #main .posted-on,
body.archive #main .posted-on,
body.search #main .posted-on { order: 1; }
.entry-summary .read-more { font-weight: 800; color: var(--td-orange-600); text-decoration: none; font-size: 0.86rem; }

.cat-links .gp-icon, .tags-links .gp-icon, .posted-on .gp-icon, .comments-link .gp-icon, .entry-meta .gp-icon { display: none !important; }
.screen-reader-text + a[rel="category tag"] { }

.td-search__toggle svg, .td-share-btn svg, .td-jump svg { width: 19px !important; min-width: 19px; height: 19px; flex: 0 0 auto; }
.td-jump button svg { width: 20px !important; height: 20px; }

/* 아카이브 머리글은 그리드 전체 폭 사용 */
body.blog #main > .page-header,
body.archive #main > .page-header,
body.search #main > .page-header {
	grid-column: 1 / -1;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 2px 4px 4px;
	margin: 0;
}
body.blog #main > .page-header .page-title,
body.archive #main > .page-header .page-title,
body.search #main > .page-header .page-title {
	font-size: 1.55rem !important;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 6px !important;
	color: var(--td-ink);
}
body.archive #main > .page-header .taxonomy-description { color: var(--td-ink-3); font-size: 0.94rem; margin: 0; }
@media (max-width: 768px) {
	body.blog #main > .page-header .page-title,
	body.archive #main > .page-header .page-title,
	body.search #main > .page-header .page-title { font-size: 1.3rem !important; }
}

/* 모바일 목차는 높이를 제한해 스크롤 */
@media (max-width: 1024px) {
	.td-toc ol { max-height: 250px; overflow: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
	.td-toc.is-in-side ol { max-height: none; }
}

/* 푸터 */
.site-footer { background: #fff; border-top: 1px solid var(--td-line-warm); }
.site-info, .site-info a { color: var(--td-ink-3) !important; }
.site-info a { text-decoration: underline; text-underline-offset: 2px; }
.site-info a:hover { color: var(--td-orange-600) !important; }
.copyright-bar { font-size: 0.84rem; line-height: 1.7; text-align: center; }
