@charset "utf-8";
/* =========================================================
   KYJ Academy — Tistory Skin
   디자인 토큰은 kyjacademy.com CSS 기준
   ========================================================= */

:root {
	--bg: #ffffff;
	--fg: #0a0a0a;
	--ink: #0d0d0d;
	--muted: #f5f5f5;
	--subtle: #fafafa;
	--muted-fg: #737373;
	--border: #e5e5e5;
	--brand: #ff0000;
	--brand-deep: #dd062c;
	--brand-soft: #fff1f1;
	--radius: 12px;
	--radius-lg: 16px;
	--container: 1104px;
	--header-h: 64px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
	--shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .18);
	--font: "Paperlogy", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: -0.01em;
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--fg); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px; }

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 44px; padding: 0 20px;
	border: 1px solid transparent; border-radius: 999px;
	font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: -0.02em;
	white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s;
	background: none;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }
.btn-dark { background: var(--fg); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-outline { border-color: var(--border); background: #fff; color: var(--fg); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--fg); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 0; border-radius: 999px; background: none;
}
.icon-btn:hover { background: var(--muted); }

.badge {
	display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
	border: 1px solid var(--border); border-radius: 999px; background: var(--muted);
	font-size: 11px; font-weight: 700; color: #525252; letter-spacing: 0;
}
.badge-brand { border-color: var(--brand); background: var(--brand); color: #fff; }

.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--brand); }
.section-title { font-size: 28px; font-weight: 800; line-height: 1.3; letter-spacing: -0.035em; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; font-size: 20px; font-weight: 900; letter-spacing: -0.05em; }
.logo img { max-height: 32px; width: auto; }

.gnb { flex: 1; min-width: 0; display: flex; justify-content: center; }
.gnb ul { display: flex; align-items: center; gap: 4px; }
.gnb li { list-style: none; }
.gnb a {
	display: block; padding: 8px 12px; border-radius: 999px;
	font-size: 15px; font-weight: 500; color: #262626; white-space: nowrap;
}
.gnb a:hover { background: var(--muted); color: var(--fg); }
.gnb .current a, .gnb a[aria-current] { color: var(--brand); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.menu-toggle { display: none; }
.menu-toggle .ico-close { display: none; }
.is-menu-open .menu-toggle .ico-open { display: none; }
.is-menu-open .menu-toggle .ico-close { display: block; }

/* search */
.search-bar { display: none; border-top: 1px solid var(--border); background: #fff; }
.is-search-open .search-bar { display: block; }
.search-form { display: flex; align-items: center; gap: 10px; height: 64px; }
.search-form .ico { color: var(--muted-fg); }
.search-form input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font-size: 17px; outline: none; }

/* mobile menu */
.mobile-menu { display: none; border-top: 1px solid var(--border); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu .container { padding-top: 16px; padding-bottom: 24px; }
.mobile-gnb ul { display: flex; flex-wrap: wrap; gap: 6px; }
.mobile-gnb a { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; }
.mobile-cate { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }

/* =========================================================
   Hero (블로그 홈 첫 페이지)
   ========================================================= */
.hero { display: none; position: relative; overflow: hidden; background: #000; color: #fff; }
.is-home-first .hero { display: block; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; opacity: .55; filter: grayscale(1); }
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.2) 40%, rgba(0,0,0,.85) 100%);
}
.hero-inner {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 560px; padding-top: 80px; padding-bottom: 80px; text-align: center;
}
.hero-eyebrow { font-size: 36px; font-weight: 900; letter-spacing: -0.05em; line-height: 1.2; }
.hero-title { margin-top: 8px; font-size: 60px; font-weight: 900; line-height: 1.15; letter-spacing: -0.05em; }
.hero-title em { font-style: normal; color: var(--brand); }
.hero-desc { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.75); }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* =========================================================
   Layout
   ========================================================= */
.site-main { min-height: 50vh; }
.layout { display: block; padding-top: 64px; padding-bottom: 96px; }
.sidebar { display: none; }

.home-head { display: none; margin-bottom: 32px; }
#tt-body-index .home-head { display: flex; align-items: end; justify-content: space-between; }

/* 목록 페이지 (카테고리·검색·태그·보관함) */
.list-head { background: var(--subtle); border-bottom: 1px solid var(--border); }
.list-head .container { padding-top: 56px; padding-bottom: 48px; }
.list-head .section-title { margin-top: 8px; font-size: 36px; }
.list-head .count { color: var(--brand); }
.list-desc { margin-top: 8px; color: var(--muted-fg); }
.list-desc:empty { display: none; }
.section { padding-top: 48px; padding-bottom: 32px; }
#tt-body-category .layout, #tt-body-search .layout, #tt-body-archive .layout { padding-top: 0; }
.empty { padding: 64px 0; text-align: center; color: var(--muted-fg); }

/* ---------- card grid ---------- */
.card-grid,
#tt-body-index .entries {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.card {
	display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
	box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.card-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-empty {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: radial-gradient(120% 90% at 100% 0%, rgba(255,0,0,.35) 0%, rgba(0,0,0,0) 55%), var(--ink);
	color: #fff; font-size: 18px; font-weight: 900; letter-spacing: -0.04em; text-align: center;
}
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.card-title { margin-top: 12px; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -0.04em; }
.card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title img { display: none; } /* New 아이콘 숨김 */
.card-summary {
	margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted-fg);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; gap: 10px; margin-top: 12px; margin-bottom: 20px; font-size: 12px; color: #a3a3a3; }
.card .btn-block { margin-top: auto; }
.card-notice { border-color: rgba(255, 0, 0, .35); }

/* ---------- paging ---------- */
.paging { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 56px; }
.paging-nums { display: flex; gap: 4px; }
.paging a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #525252;
}
.paging a:hover { background: var(--muted); }
.paging-num:has(.selected) { background: var(--fg); color: #fff; }
.paging-num:has(.selected):hover { background: var(--fg); }
.paging-arrow { border: 1px solid var(--border); }
.paging .no-more-prev, .paging .no-more-next { opacity: .35; pointer-events: none; }
#tt-body-page .paging { display: none; }

/* =========================================================
   Post (글 본문)
   ========================================================= */
#tt-body-page .layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-top: 56px;
}
#tt-body-page .sidebar { display: block; }

.post-head { padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.post-cate { display: inline-block; font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: -0.01em; }
.post-title { margin-top: 10px; font-size: 38px; font-weight: 900; line-height: 1.3; letter-spacing: -0.045em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 16px; font-size: 14px; color: var(--muted-fg); }
.post-meta > span:empty { display: none; }
.post-admin { display: inline-flex; gap: 10px; }
.post-admin a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* 본문 타이포그래피 */
.entry-content { padding-top: 36px; font-size: 17px; line-height: 1.85; color: #171717; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { margin: 2.2em 0 .8em; font-size: 28px; font-weight: 800; line-height: 1.35; letter-spacing: -0.04em; }
.entry-content h3 { margin: 2em 0 .7em; font-size: 23px; font-weight: 800; line-height: 1.4; letter-spacing: -0.035em; }
.entry-content h4 { margin: 1.8em 0 .6em; font-size: 19px; font-weight: 700; }
.entry-content h2::before {
	content: ""; display: block; width: 28px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--brand);
}
.entry-content a { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content img { border-radius: 8px; }
.entry-content .imageblock, .entry-content .imagegridblock { margin: 1.6em 0; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { margin-top: 8px; font-size: 13px; color: var(--muted-fg); text-align: center; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--brand); }
.entry-content blockquote {
	margin: 1.6em 0; padding: 20px 24px; border-left: 4px solid var(--brand);
	border-radius: 0 var(--radius) var(--radius) 0; background: var(--subtle); font-size: 18px; font-weight: 600;
}
.entry-content blockquote[data-ke-style="style1"] {
	border: 0; background: none; padding: 32px 16px 16px; text-align: center; font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
	position: relative;
}
.entry-content blockquote[data-ke-style="style1"]::before {
	content: "\201C"; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
	font-size: 56px; line-height: 1; color: var(--brand);
}
.entry-content blockquote[data-ke-style="style3"] { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.entry-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--border); }
.entry-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--border); }
.entry-content th { background: var(--muted); font-weight: 700; }
.entry-content pre { margin: 1.6em 0; overflow-x: auto; padding: 16px 20px; border-radius: var(--radius); background: var(--ink); color: #f5f5f5; font-size: 14px; line-height: 1.6; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.entry-content :not(pre) > code { padding: 2px 6px; border-radius: 6px; background: var(--muted); color: var(--brand-deep); }
.entry-content iframe { max-width: 100%; }

/* 티스토리 자동 삽입 요소 */
.entry-content .another_category { margin: 48px 0 0 !important; padding: 20px 24px !important; border: 1px solid var(--border) !important; border-radius: var(--radius); }
.entry-content .another_category h4 { margin: 0 0 8px; font-size: 15px; }
.entry-content .another_category a { color: inherit; text-decoration: none; }
.entry-content .another_category th, .entry-content .another_category td { border: 0; padding: 4px 0; font-size: 14px; }
.container_postbtn { margin-top: 40px !important; }

/* tags */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; font-size: 0; }
.post-tags-label { margin-right: 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted-fg); }
.post-tags a {
	display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
	border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: #404040;
}
.post-tags a::before { content: "#"; color: var(--brand); margin-right: 2px; }
.post-tags a:hover { border-color: var(--fg); }

/* prev / next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.post-nav:empty { display: none; }
.post-nav-item {
	display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
	border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s;
}
.post-nav-item:hover { border-color: var(--fg); }
.post-nav-item.next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted-fg); }
.post-nav-title { font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* related */
.related { margin-top: 56px; }
.related-title { font-size: 20px; font-weight: 800; letter-spacing: -0.035em; }
.related-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.related-list a { display: flex; flex-direction: column; gap: 8px; }
.related-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--muted); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-text { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-date { font-size: 12px; color: #a3a3a3; }

/* protected */
.protected { margin-top: 36px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--subtle); text-align: center; }
.protected-row { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.protected input { width: 220px; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }

/* =========================================================
   글 하단 자동 삽입 (책 · SNS · 홈페이지)
   ========================================================= */
.promo { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--border); }
.promo-section { padding: 48px 0 8px; }
.promo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.promo-title { margin-top: 6px; font-size: 28px; font-weight: 900; line-height: 1.3; letter-spacing: -0.045em; }
.promo-head-actions { display: flex; gap: 8px; }
.round-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
}
.round-btn:hover { border-color: var(--fg); }
.round-btn:disabled { opacity: .35; cursor: default; border-color: var(--border); }

.book-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding-bottom: 8px; scrollbar-width: none;
}
.book-track::-webkit-scrollbar { display: none; }
.book {
	display: flex; flex-direction: column; scroll-snap-align: start;
	padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
.book-cover { position: relative; display: block; overflow: hidden; padding: 14px; border-radius: 8px; background: var(--muted); aspect-ratio: 3 / 4; }
.book-cover img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); transition: transform .35s; }
.book-cover:hover img { transform: scale(1.04); }
.book-new { position: absolute; top: 10px; left: 10px; z-index: 1; }
.book-title { display: block; margin-top: 14px; font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -0.035em; }
.book-sub {
	margin-top: 4px; min-height: 2.9em; font-size: 12px; line-height: 1.45; color: var(--muted-fg);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.book-stores { display: flex; gap: 4px; margin-top: auto; padding-top: 12px; }
.book-stores a {
	flex: 1; display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 4px; white-space: nowrap;
	border: 1px solid var(--border); border-radius: 999px; font-size: 11px; font-weight: 700; color: #404040;
}
.book-stores a:hover { border-color: var(--brand); color: var(--brand); }

.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.channel { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--subtle); }
.channel-name { margin-bottom: 4px; font-size: 18px; font-weight: 900; letter-spacing: -0.04em; }
.channel-link {
	display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
	border: 1px solid var(--border); border-radius: 999px; background: #fff; font-weight: 700; font-size: 15px;
	transition: border-color .15s, transform .15s;
}
.channel-link:hover { border-color: var(--fg); transform: translateX(2px); }
.channel-link em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: #a3a3a3; }
.channel-link.is-youtube .ico { color: #ff0000; }
.channel-link.is-instagram .ico { color: #e1306c; }
.channel-link.is-tiktok .ico { color: #000; }
.kakao-link {
	display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; margin-top: 16px;
	border-radius: var(--radius); background: #fee500; color: #191919; font-weight: 800; font-size: 16px;
}
.kakao-link:hover { background: #fada0a; }

.promo-band {
	position: relative; overflow: hidden; margin-top: 48px; padding: 48px 32px; border-radius: var(--radius-lg);
	background: radial-gradient(90% 120% at 100% 0%, rgba(255,0,0,.28) 0%, rgba(0,0,0,0) 55%), var(--ink);
	color: #fff; text-align: center;
}
.promo-band-title { margin-top: 10px; font-size: 34px; font-weight: 900; line-height: 1.25; letter-spacing: -0.05em; }
.promo-band-title em { font-style: normal; color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px auto 32px; max-width: 520px; }
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 14px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.stats strong { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.stats span { font-size: 12px; color: rgba(255,255,255,.6); }

/* =========================================================
   Comments / Guestbook (티스토리 기본 댓글 치환자 보정)
   ========================================================= */
.comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.comments .tt-box-total, .guestbook .tt-box-total { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.comments .tt-box-total .tt_num_g, .guestbook .tt-box-total .tt_num_g { color: var(--brand); }
.comments .tt-area-write, .guestbook .tt-area-write { border-radius: var(--radius); }
.comments .tt-btn_register, .guestbook .tt-btn_register {
	border-radius: 999px !important; background: var(--fg) !important; color: #fff !important; font-family: var(--font) !important;
}
.comments .tt-btn_register:disabled, .guestbook .tt-btn_register:disabled { background: #d4d4d4 !important; }
.comments .tt-cmt, .guestbook .tt-cmt, .comments input, .guestbook input { font-family: var(--font) !important; }

/* 태그·방명록 페이지 */
.tag-page .section-title, .guestbook .section-title { margin: 8px 0 32px; font-size: 36px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
	display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
	border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; color: #404040;
}
.tag-cloud a:hover { border-color: var(--fg); color: var(--fg); }
.tag-cloud .cloud1 { border-color: var(--brand); color: var(--brand); font-weight: 800; }
.tag-cloud .cloud2 { color: var(--fg); font-weight: 800; }
.tag-cloud-sm a { height: 30px; padding: 0 12px; font-size: 12px; }

/* =========================================================
   Sidebar
   ========================================================= */
.sidebar-inner { display: flex; flex-direction: column; gap: 20px; }
.widget { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.widget-title { margin-bottom: 14px; font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }

.widget-cta { border: 0; background: radial-gradient(100% 80% at 100% 0%, rgba(255,0,0,.3) 0%, rgba(0,0,0,0) 60%), var(--ink); color: #fff; }
.widget-cta-title { display: block; margin-top: 8px; font-size: 24px; font-weight: 900; line-height: 1.3; letter-spacing: -0.045em; }
.widget-cta-desc { margin: 10px 0 18px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.65); }

.mini-list { display: flex; flex-direction: column; gap: 14px; }
.mini-list a { display: flex; align-items: center; gap: 12px; }
.mini-thumb { flex: none; width: 64px; height: 48px; overflow: hidden; border-radius: 8px; background: var(--muted); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb:empty { display: none; }
.mini-text { min-width: 0; }
.mini-title { font-size: 14px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list a:hover .mini-title { color: var(--brand); }
.mini-date { display: block; margin-top: 2px; font-size: 11px; color: #a3a3a3; }

/* 카테고리 ([##_category_list_##]) */
.tt_category, .tt_category ul { list-style: none; margin: 0; padding: 0; }
.tt_category .link_tit { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.tt_category .category_list > li { border-top: 1px solid var(--muted); }
.tt_category .link_item { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; font-weight: 600; color: #262626; }
.tt_category .link_item:hover, .tt_category .selected > .link_item { color: var(--brand); }
.tt_category .sub_category_list { padding: 0 0 8px 12px; }
.tt_category .link_sub_item { display: block; padding: 4px 0; font-size: 13px; color: var(--muted-fg); }
.tt_category .link_sub_item:hover { color: var(--brand); }
.tt_category .c_cnt { color: #a3a3a3; font-weight: 500; font-size: 12px; }
.tt_category img { display: none; }

.widget-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.widget-count dt { font-size: 11px; font-weight: 700; color: var(--muted-fg); letter-spacing: .05em; }
.widget-count dd { margin-top: 2px; font-size: 18px; font-weight: 800; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--border); background: var(--subtle); }
.site-footer .container { padding-top: 56px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand .logo { font-size: 22px; }
.footer-address { margin-top: 20px; font-size: 13px; color: var(--muted-fg); }
.footer-desc { margin-top: 6px; font-size: 13px; color: var(--muted-fg); }
.footer-desc:empty { display: none; }
.footer-col h4 { margin-bottom: 18px; font-size: 16px; font-weight: 700; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14px; color: #525252; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted-fg); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a:hover { color: var(--fg); }

/* floating CTA (옵션) */
.float-cta {
	position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px 0 10px;
	border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-lg);
	font-size: 15px; font-weight: 700; white-space: nowrap;
}
.float-cta-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--brand); color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
	#tt-body-page .layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}

@media (max-width: 960px) {
	.gnb { display: none; }
	.menu-toggle { display: inline-flex; }
	.is-menu-open .mobile-menu { display: block; }
	.card-grid, #tt-body-index .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#tt-body-page .layout { display: block; }
	#tt-body-page .sidebar { margin-top: 64px; }
	.sidebar-inner { position: static; display: grid; grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.book-track { grid-auto-columns: calc((100% - 48px) / 4); }
}

@media (max-width: 640px) {
	:root { --header-h: 56px; }
	.hide-sm { display: none; }
	.logo { font-size: 18px; }
	.section-title, .list-head .section-title, .tag-page .section-title, .guestbook .section-title { font-size: 24px; }
	.hero-inner { min-height: 440px; padding-top: 56px; padding-bottom: 56px; }
	.hero-eyebrow { font-size: 24px; }
	.hero-title { font-size: 36px; }
	.hero-buttons .btn { height: 46px; padding: 0 18px; font-size: 15px; }
	.layout { padding-top: 40px; padding-bottom: 64px; }
	#tt-body-page .layout { padding-top: 32px; }
	.card-grid, #tt-body-index .entries { grid-template-columns: 1fr; gap: 16px; }
	.card-body { padding: 20px; }
	.card-title { font-size: 20px; }
	.card .btn-block { display: none; }
	.card-meta { margin-bottom: 0; }
	.widget-count { display: none; }
	.post-title { font-size: 28px; }
	.entry-content { font-size: 16px; }
	.entry-content h2 { font-size: 23px; }
	.entry-content h3 { font-size: 20px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-item.next { grid-column: auto; }
	.promo-title { font-size: 22px; }
	.promo-head-actions { display: none; }
	.book-track { grid-auto-columns: 62%; }
	.channel-grid { grid-template-columns: 1fr; }
	.promo-band { padding: 36px 20px; }
	.promo-band-title { font-size: 26px; }
	.stats strong { font-size: 17px; }
	.stats span { font-size: 11px; }
	.sidebar-inner { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
	.footer-brand { grid-column: 1 / -1; }
	.float-cta { bottom: 16px; height: 52px; font-size: 14px; }
}
