@charset "utf-8";

/*
 *  Warm Lifestyle Tistory Skin
 *
 *  01. Font Import
 *  02. CSS Variables (Light / Dark)
 *  03. Reset
 *  04. Utility Classes (txt, fw, w)
 *  05. Layout
 *  06. Header & Navigation
 *  07. Theme Toggle
 *  08. Components
 *  09. Cover Pages
 *  10. Post List (Card Box Grid)
 *  11. Article View
 *  12. Tags & Related
 *  13. Comments
 *  14. Pagination
 *  15. Footer
 *  16. Tistory Editor Content
 *  17. Main Categories
 *  18. Article TOC Sidebar
 *  19. tt_category Category Widget
 *  20. Tistory Post Management
 *  21. Quick Menu
 *  22. Hero Banner
 *  23. Dark Mode Adjustments
 *  24. Media Queries
 */

/* 01. Font Import */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');

/* 02. CSS Variables */
:root { --bg-page: #faf5ee; --bg-surface: #ffffff; --bg-surface-alt: #f3ebdd; --bg-soft: #f6ede0; --text-primary: #2a1f17; --text-secondary: #6b5847; --text-tertiary: #9c8975; --accent: #b8714f; --accent-hover: #9c5d3f; --accent-soft: #f1dac8; --border: #ebe0d0; --border-strong: #d6c8b0; --shadow-sm: 0 2px 8px rgba(70, 45, 25, .05); --shadow-md: 0 6px 24px rgba(70, 45, 25, .08); --ease: cubic-bezier(.4, 0, .2, 1); }

body.dark { --bg-page: #181310; --bg-surface: #221b15; --bg-surface-alt: #2d241c; --bg-soft: #261e18; --text-primary: #f5ebdc; --text-secondary: #c4b3a0; --text-tertiary: #8a7866; --accent: #d49477; --accent-hover: #e4a489; --accent-soft: #3a2a20; --border: #3a2c22; --border-strong: #4d3c2e; --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25); --shadow-md: 0 6px 24px rgba(0, 0, 0, .35); }

/* 03. Reset */
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; padding: 0; }
body { font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-primary); background-color: var(--bg-page); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background-color .4s var(--ease), color .4s var(--ease); }
div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, figure { margin: 0; padding: 0; }
header, footer, section, article, aside, nav, hgroup, details, menu, figure, figcaption { display: block; }
button, input[type=submit], input[type=reset], input[type=button] { overflow: visible; cursor: pointer; font-family: inherit; }
input[type=text], input[type=email], input[type=password], input[type=submit], textarea { -webkit-appearance: none; }
input, select, textarea, button { font-family: inherit; font-size: 100%; border-radius: 0; }
button { margin: 0; padding: 0; border: 0; background: transparent; color: inherit; }
ul li { list-style: none; }
img, fieldset { border: none; vertical-align: top; max-width: 100%; }
hr { display: none; }
a { color: inherit; text-decoration: none; }

/* 04. Utility Classes - Font Size */
.txt10 { font-size: 10px; }
.txt11 { font-size: 11px; }
.txt12 { font-size: 12px; }
.txt13 { font-size: 13px; }
.txt14 { font-size: 14px; }
.txt15 { font-size: 15px; }
.txt16 { font-size: 16px; }
.txt17 { font-size: 17px; }
.txt18 { font-size: 18px; }
.txt20 { font-size: 20px; }
.txt22 { font-size: 22px; }
.txt24 { font-size: 24px; }
.txt26 { font-size: 26px; }
.txt28 { font-size: 28px; }
.txt32 { font-size: 32px; }
.txt36 { font-size: 36px; }
.txt40 { font-size: 40px; }
.txt48 { font-size: 48px; }
.txt56 { font-size: 56px; }
.txt64 { font-size: 64px; }
.txt72 { font-size: 72px; }

/* Utility Classes - Font Weight */
.fw300 { font-weight: 300; }
.fw400 { font-weight: 400; }
.fw500 { font-weight: 500; }
.fw600 { font-weight: 600; }
.fw700 { font-weight: 700; }
.fw800 { font-weight: 800; }

/* Utility Classes - Max Width */
.w720 { max-width: 720px; margin-left: auto; margin-right: auto; }
.w860 { max-width: 860px; margin-left: auto; margin-right: auto; }
.w960 { max-width: 960px; margin-left: auto; margin-right: auto; }
.w1080 { max-width: 1080px; margin-left: auto; margin-right: auto; }
.w1200 { max-width: 1200px; margin-left: auto; margin-right: auto; }
.w1400 { max-width: 1400px; margin-left: auto; margin-right: auto; }
.w1600 { max-width: 1600px; margin-left: auto; margin-right: auto; }

/* Accessibility Navigation */
#acc-nav { position: absolute; top: 0; left: 0; z-index: 1000; width: 100%; height: 0; }
#acc-nav a { display: block; position: absolute; left: 0; top: 0; overflow: hidden; width: 1px; height: 1px; margin-left: -1px; margin-bottom: -1px; text-align: center; font-weight: 700; font-size: 14px; color: var(--text-primary); white-space: nowrap; }
#acc-nav a:focus, #acc-nav a:hover, #acc-nav a:active { width: 100%; height: auto; padding: 10px 0; background: var(--text-primary); color: var(--bg-page); z-index: 1000; }

/* 05. Layout */
#wrap { min-height: 100vh; display: flex; flex-direction: column; }
.container { flex: 1; }

/* 06. Header */
#header { position: sticky; top: 0; z-index: 200; background-color: var(--bg-page); border-bottom: 1px solid var(--border); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
#header .header-inner { max-width: 1400px; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#header h1 { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 24px; font-weight: 500; line-height: 1; letter-spacing: -0.01em; flex-shrink: 0; }
#header h1 a { display: inline-block; color: var(--text-primary); transition: color .2s var(--ease); }
#header h1 a:hover { color: var(--accent); }

/* Mobile Menu Button */
#header .mobile-menu { display: none; position: relative; width: 40px; height: 40px; outline: none; flex-shrink: 0; }
#header .mobile-menu span { position: absolute; top: 50%; left: 50%; width: 22px; height: 1.5px; margin: -1px 0 0 -11px; background-color: var(--text-primary); transition: background-color .3s var(--ease); }
#header .mobile-menu:before, #header .mobile-menu:after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 1.5px; margin-left: -11px; background-color: var(--text-primary); transition: transform .3s var(--ease), margin-top .3s var(--ease); }
#header .mobile-menu:before { margin-top: -7px; }
#header .mobile-menu:after { margin-top: 6px; }
#header .mobile-menu.on span { opacity: 0; }
#header .mobile-menu.on:before { margin-top: -1px; transform: rotate(-45deg); }
#header .mobile-menu.on:after { margin-top: -1px; transform: rotate(45deg); }

/* Subscribe Button (티스토리 자체 구독 - .btn_subscription 클래스로 SDK 자동 동작) */
.tt-subscribe-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 50px; background-color: var(--accent); color: #fff; transition: background-color .2s var(--ease); white-space: nowrap; cursor: pointer; font-style: normal; }
.tt-subscribe-btn:hover { background-color: var(--accent-hover); }
.tt-subscribe-btn svg { width: 14px; height: 14px; }
.tt-subscribe-btn .txt_state { font-style: normal; }

/* GNB */
#header .menu { display: flex; align-items: center; gap: 24px; flex: 1; }
#gnb { flex: 1; }
#gnb ul.tt_category { display: flex; padding: 0; margin: 0; gap: 0; align-items: center; list-style: none; }
#gnb ul.tt_category > li { margin: 0; padding: 0; position: relative; }
#gnb ul.tt_category > li > a.link_tit { display: none; }
#gnb ul.tt_category > li > ul.category_list { display: flex; gap: 28px; padding: 0; margin: 0; border: none; list-style: none; flex-direction: row; }
#gnb ul.tt_category > li > ul.category_list > li { margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
#gnb ul.tt_category > li > ul.category_list > li > a { display: inline-block; padding: 6px 0; color: var(--text-primary); position: relative; transition: color .2s var(--ease); border-radius: 0; }
#gnb ul.tt_category > li > ul.category_list > li > a:hover { color: var(--accent); background-color: transparent; }
#gnb ul.tt_category > li > ul.category_list > li > a:after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1px; background-color: var(--accent); transition: width .25s var(--ease); }
#gnb ul.tt_category > li > ul.category_list > li > a:hover:after { width: 100%; }
#gnb ul.tt_category > li > ul.category_list > li > a img { display: inline-block; width: 14px; height: auto; margin-left: 2px; vertical-align: middle; }
#gnb ul.tt_category .c_cnt { font-size: 12px; color: var(--text-tertiary); margin-left: 2px; font-weight: 400; }
#gnb ul.tt_category .cat-toggle { display: none; }

/* Header Right Tools */
.header-tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-tools .social-link { display: flex; gap: 8px; padding-right: 12px; border-right: 1px solid var(--border); }
.header-tools .social-link a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); border-radius: 50%; transition: background-color .2s var(--ease), color .2s var(--ease); }
.header-tools .social-link a:hover { background-color: var(--accent-soft); color: var(--accent); }
.header-tools .social-link a svg { width: 16px; height: 16px; }

/* Search */
#header .search { position: relative; }
#header .search-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-primary); transition: background-color .2s var(--ease); }
#header .search-btn:hover { background-color: var(--bg-surface-alt); }
#header .search-btn svg { width: 18px; height: 18px; }
#header .search-form { display: none; position: absolute; top: calc(100% + 12px); right: 0; width: 320px; padding: 12px; background-color: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); z-index: 100; }
#header .search.on .search-form { display: flex; gap: 8px; }
#header .search input { flex: 1; height: 40px; padding: 0 14px; font-size: 14px; color: var(--text-primary); background-color: var(--bg-surface-alt); border: none; outline: none; border-radius: 8px; }
#header .search button[type=submit] { padding: 0 16px; height: 40px; font-size: 13px; font-weight: 500; background-color: var(--accent); color: #fff; border-radius: 8px; transition: background-color .2s var(--ease); }
#header .search button[type=submit]:hover { background-color: var(--accent-hover); }

/* 07. Theme Toggle */
.theme-toggle { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-primary); transition: background-color .2s var(--ease); position: relative; overflow: hidden; }
.theme-toggle:hover { background-color: var(--bg-surface-alt); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
body.dark .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
body.dark .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

/* Mobile Side Menu */
.side-menu { position: fixed; top: 0; right: -360px; z-index: 400; width: 320px; max-width: 85vw; height: 100%; padding: 80px 32px 40px; background-color: var(--bg-surface); transition: right .4s var(--ease); display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
.side-menu.on { right: 0; }
.side-menu .side-gnb ul { display: flex; flex-direction: column; gap: 16px; }
.side-menu .side-gnb ul li { font-size: 18px; font-weight: 500; }
.side-menu .side-gnb ul li a { display: block; padding: 4px 0; color: var(--text-primary); }
.side-menu .side-gnb ul li ul { margin-top: 12px; padding-left: 12px; gap: 8px; border-left: 1px solid var(--border); }
.side-menu .side-gnb ul li ul li { font-size: 14px; font-weight: 400; }
.side-menu .side-gnb ul li ul li a { color: var(--text-secondary); }
.side-menu .side-social { display: flex; gap: 10px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--border); }
.side-menu .side-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: var(--bg-surface-alt); color: var(--text-secondary); transition: all .2s var(--ease); }
.side-menu .side-social a:hover { background-color: var(--accent); color: #fff; }
.side-menu .side-social a svg { width: 14px; height: 14px; }
.side-menu .side-footer { font-size: 11px; color: var(--text-tertiary); letter-spacing: .12em; text-transform: uppercase; }

#dimmed { position: fixed; top: 0; left: 0; z-index: 300; width: 100%; height: 100%; background-color: rgba(20, 14, 10, .5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
#dimmed.on { opacity: 1; pointer-events: auto; }

/* 08. Components */
.btn, a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 158px; height: 50px; padding: 0 24px; border: 1px solid var(--border-strong); border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--text-primary); background: transparent; transition: all .25s var(--ease); }
.btn:hover, a.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background-color: var(--accent); border-color: var(--accent); color: #fff !important; }
.btn-primary:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); color: #fff !important; }

/* 09. Cover Pages */
/* Cover: Thumbnail List */
.cover-thumbnail-list { padding: 80px 32px 56px; max-width: 1400px; margin: 0 auto; }
.cover-thumbnail-list h2 { font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cover-thumbnail-list ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.cover-thumbnail-list ul li a { display: block; color: var(--text-primary); }
.cover-thumbnail-list ul li .thum { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 16px; background-color: var(--bg-surface-alt); border-radius: 12px; }
.cover-thumbnail-list ul li .thum:before { content: "NO IMAGE"; position: absolute; top: 50%; left: 0; z-index: 0; width: 100%; transform: translateY(-50%); text-align: center; font-size: 13px; letter-spacing: .2em; color: var(--text-tertiary); }
.cover-thumbnail-list ul li .thum img { position: absolute; top: 0; left: 0; z-index: 10; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover-thumbnail-list ul li a:hover .thum img { transform: scale(1.04); }
.cover-thumbnail-list ul li .category { display: inline-block; margin-bottom: 8px; font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.cover-thumbnail-list ul li .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 16px; line-height: 1.5; letter-spacing: -0.015em; }
.cover-thumbnail-list ul li a:hover .title { color: var(--accent); }

/* Cover: Slider */
.cover-slider { position: relative; overflow: hidden; width: 100%; background-color: var(--text-primary); }
.cover-slider ul { display: flex; }
.cover-slider ul li { flex: 0 0 100%; height: 540px; position: relative; background-position: 50% 50%; background-size: cover; }
.cover-slider ul li a { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 100%; padding: 0 40px; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(20, 14, 10, .2), rgba(20, 14, 10, .55)); }
.cover-slider ul li .category { display: inline-block; padding: 6px 16px; margin-bottom: 24px; background-color: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .4); border-radius: 50px; font-size: 12px; letter-spacing: .04em; backdrop-filter: blur(6px); }
.cover-slider ul li .title { font-weight: 700; max-width: 720px; margin-bottom: 36px; font-size: 44px; line-height: 1.25; letter-spacing: -0.03em; }
.cover-slider ul li .btn { border-color: rgba(255, 255, 255, .6); color: #fff; }
.cover-slider ul li .btn:hover { background-color: #fff; color: var(--text-primary); border-color: #fff; }
.cover-slider .prev, .cover-slider .next { position: absolute; top: 50%; z-index: 20; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background-color: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: background-color .2s var(--ease); }
.cover-slider .prev { left: 40px; }
.cover-slider .next { right: 40px; }
.cover-slider .prev:hover, .cover-slider .next:hover { background-color: rgba(255, 255, 255, .25); }
.cover-slider .prev svg, .cover-slider .next svg { width: 20px; height: 20px; }

/* Cover: Masonry */
.cover-masonry { padding: 80px 32px; max-width: 1400px; margin: 0 auto; }
.cover-masonry h2 { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cover-masonry ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 36px; }
.cover-masonry ul li a { display: block; color: var(--text-primary); }
.cover-masonry ul li .thum { display: block; overflow: hidden; border-radius: 12px; margin-bottom: 16px; position: relative; aspect-ratio: 4 / 3; background-color: var(--bg-surface-alt); }
.cover-masonry ul li .thum:before { content: "NO IMAGE"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: .2em; color: var(--text-tertiary); z-index: 0; }
.cover-masonry ul li .thum img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover-masonry ul li a:hover .thum img { transform: scale(1.04); }
.cover-masonry ul li .category { display: inline-block; margin-bottom: 10px; font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.cover-masonry ul li .title { display: block; font-weight: 600; font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 10px; }
.cover-masonry ul li a:hover .title { color: var(--accent); }
.cover-masonry ul li .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* Cover: List */
.cover-list { padding: 60px 32px; max-width: 1080px; margin: 0 auto; }
.cover-list h2 { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cover-list ul li { border-bottom: 1px solid var(--border); }
.cover-list ul li:last-child { border-bottom: 0; }
.cover-list ul li a { display: flex; align-items: center; gap: 40px; padding: 32px 0; color: var(--text-primary); }
.cover-list ul li figure { position: relative; flex-shrink: 0; width: 200px; height: 160px; background-color: var(--bg-surface-alt); border-radius: 12px; overflow: hidden; order: 2; }
.cover-list ul li figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover-list ul li a:hover figure img { transform: scale(1.04); }
.cover-list ul li figure:before { content: "NO IMAGE"; position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--text-tertiary); }
.cover-list ul li .content { flex: 1; order: 1; }
.cover-list ul li .category { display: inline-block; margin-bottom: 12px; font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.cover-list ul li .title { display: block; font-weight: 600; font-size: 22px; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 12px; }
.cover-list ul li a:hover .title { color: var(--accent); }
.cover-list ul li .excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

/* Cover: Gallery */
.cover-gallery { padding: 80px 32px; max-width: 1400px; margin: 0 auto; }
.cover-gallery h2 { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cover-gallery ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cover-gallery ul li a { display: block; position: relative; overflow: hidden; border-radius: 12px; background-color: var(--bg-surface-alt); }
.cover-gallery ul li figure { aspect-ratio: 1 / 1; }
.cover-gallery ul li figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cover-gallery ul li a:hover figure img { transform: scale(1.06); }
.cover-gallery ul li a:before { content: "NO IMAGE"; position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--text-tertiary); }
.cover-gallery ul li .title { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 20px 20px; background: linear-gradient(180deg, transparent, rgba(20, 14, 10, .85)); color: #fff; font-size: 16px; font-weight: 500; line-height: 1.4; opacity: 0; transition: opacity .3s var(--ease); }
.cover-gallery ul li a:hover .title { opacity: 1; }

/* Cover Footer */
.cover-footer { padding: 80px 32px; max-width: 960px; margin: 0 auto; text-align: center; }
.cover-footer .image { height: 320px; margin-bottom: 56px; background-position: 50% 50%; background-size: cover; border-radius: 16px; }
.cover-footer p { margin-bottom: 24px; font-size: 22px; font-weight: 500; line-height: 1.5; color: var(--text-primary); }
.cover-footer .social-link { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.cover-footer .social-link a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: var(--bg-surface-alt); color: var(--text-secondary); transition: all .2s var(--ease); }
.cover-footer .social-link a:hover { background-color: var(--accent); color: #fff; }
.cover-footer .social-link a svg { width: 16px; height: 16px; }
.cover-footer .menu ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; padding-top: 32px; border-top: 1px solid var(--border); }
.cover-footer .menu ul li { font-size: 14px; }
.cover-footer .menu ul li a { color: var(--text-secondary); transition: color .2s var(--ease); }
.cover-footer .menu ul li a:hover { color: var(--accent); }

/* 10. Post List (Card Box Grid) */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1400px; margin: 0 auto; padding: 64px 32px 80px; }
/* 뷰페이지일 때(article-layout이 안에 있을 때) 그리드 해제 - 본문/댓글/관련글이 셀에 갇히지 않도록 */
.post-list:has(.article-layout) { display: block; max-width: none; margin: 0; padding: 0; }
.post-item { width: 100%; }
.post-item a { display: flex; flex-direction: column; height: 100%; background-color: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); color: var(--text-primary); }
.post-item a:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(70, 45, 25, .12); }
.post-item .thum { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background-color: var(--bg-surface-alt); border-bottom: 1px solid var(--border); }
.post-item .thum img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-item a:hover .thum img { transform: scale(1.05); }
.post-item .content { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.post-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.post-item .category { display: inline-block; padding: 5px 12px; background-color: var(--accent-soft); color: var(--accent); border-radius: 6px; letter-spacing: .04em; line-height: 1.5; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-item .post-lock-badge { display: inline-block; padding: 5px 12px; background-color: var(--bg-surface-alt); color: var(--text-tertiary); border-radius: 6px; letter-spacing: .15em; text-transform: uppercase; line-height: 1.5; }
.post-item .post-date { color: var(--text-tertiary); letter-spacing: .03em; flex-shrink: 0; }
.post-item .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; line-height: 1.4; letter-spacing: -0.02em; color: var(--text-primary); transition: color .2s var(--ease); }
.post-item a:hover .title { color: var(--accent); }
.post-item .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; color: var(--text-secondary); }
.post-item .excerpt.protected { display: flex; align-items: center; gap: 8px; }
.post-item .excerpt.protected:before { content: ""; display: inline-block; width: 12px; height: 14px; background: var(--text-tertiary); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M12 1C8.7 1 6 3.7 6 7v3H4v12h16V10h-2V7c0-3.3-2.7-6-6-6zm4 9H8V7c0-2.2 1.8-4 4-4s4 1.8 4 4v3z'/></svg>") no-repeat center/contain; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M12 1C8.7 1 6 3.7 6 7v3H4v12h16V10h-2V7c0-3.3-2.7-6-6-6zm4 9H8V7c0-2.2 1.8-4 4-4s4 1.8 4 4v3z'/></svg>") no-repeat center/contain; }

/* Thumbnail Post Type Toggle */
.post-type-thumbnail .post-list { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.post-type-thumbnail .post-item .thum { aspect-ratio: 16 / 10; }
.post-type-thumbnail .post-item .content { padding: 28px 30px 30px; }

/* 11. Article View */
.hgroup { max-width: 860px; margin: 0 auto; padding: 80px 32px 48px; text-align: center; }
.hgroup .category { display: inline-block; margin-bottom: 24px; padding: 6px 16px; background-color: var(--accent-soft); color: var(--accent); border-radius: 50px; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.hgroup h1 { font-weight: 700; font-size: 40px; line-height: 1.3; letter-spacing: -0.03em; margin-bottom: 24px; color: var(--text-primary); }
.hgroup .post-meta { font-size: 13px; color: var(--text-tertiary); display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.hgroup .post-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.hgroup .post-meta > span:before { content: ""; width: 4px; height: 4px; border-radius: 50%; background-color: var(--border-strong); }
.hgroup .post-meta > span:first-child:before { display: none; }
.hgroup .post-meta a { color: var(--text-tertiary); }
.hgroup .post-meta a:hover { color: var(--accent); }

.entry-content { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* 12. Tags & Related */
.tags { max-width: 760px; margin: 64px auto; padding: 32px; background-color: var(--bg-surface-alt); border-radius: 16px; }
.tags h2 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.tags .items { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .items a { display: inline-block; padding: 6px 14px; background-color: var(--bg-surface); border: 1px solid var(--border); border-radius: 50px; font-size: 13px; color: var(--text-secondary); transition: all .2s var(--ease); }
.tags .items a:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.tags .items a:before { content: "#"; margin-right: 2px; color: var(--text-tertiary); }
.tags .items a:hover:before { color: rgba(255, 255, 255, .7); }

.related-articles { max-width: 1080px; margin: 80px auto; padding: 0 32px; }
.related-articles h2 { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.related-articles h2 strong { font-weight: 500; color: var(--text-primary); text-transform: none; letter-spacing: 0; }
.related-articles ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.related-articles ul li a { display: block; color: var(--text-primary); }
.related-articles ul li .thum { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 14px; background-color: var(--bg-surface-alt); border-radius: 12px; }
.related-articles ul li .thum:before { content: "NO IMAGE"; position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--text-tertiary); }
.related-articles ul li .thum img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); display: block; }
.related-articles ul li a:hover .thum img { transform: scale(1.04); }
.related-articles ul li .category { display: inline-block; margin-bottom: 8px; font-size: 12px; color: var(--accent); }
.related-articles ul li .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: 15px; line-height: 1.5; }
.related-articles ul li a:hover .title { color: var(--accent); }

/* 13. Comments */
.comments { max-width: 760px; margin: 0 auto 80px; padding: 0 32px; }
.comments h2 { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.comments .comment-list { margin-bottom: 32px; }
.comments .comment-list ul li { position: relative; padding: 28px 0; border-bottom: 1px solid var(--border); min-height: 48px; }
.comments .comment-list ul li:first-child { padding-top: 12px; }
.comments .comment-list ul li ul li { padding: 24px 0 0 60px; border-top: 0; border-bottom: 0; }
.comments .comment-list ul li .author-meta { position: relative; padding-left: 60px; min-height: 48px; }
.comments .comment-list ul li .author-meta .avatar { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; }
.comments .comment-list ul li .author-meta .nickname { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.comments .comment-list ul li .author-meta .nickname a { color: var(--text-primary); }
.comments .comment-list ul li .author-meta .date { font-size: 12px; color: var(--text-tertiary); }
.comments .comment-list ul li .author-meta .date a { color: var(--text-tertiary); margin-left: 8px; }
.comments .comment-list ul li .author-meta .date a:hover { color: var(--accent); }
.comments .comment-list ul li .control { position: absolute; top: 28px; right: 0; display: flex; gap: 8px; }
.comments .comment-list ul li .control a { font-size: 12px; color: var(--text-tertiary); transition: color .2s var(--ease); }
.comments .comment-list ul li .control a:hover { color: var(--accent); }
.comments .comment-list ul li p { margin: 16px 0 0 60px; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }

.comments .comment-form .field { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.comments .comment-form input[type=text], .comments .comment-form input[type=password] { width: 160px; height: 44px; padding: 0 14px; background-color: var(--bg-surface-alt); border: 1px solid transparent; border-radius: 8px; font-size: 14px; color: var(--text-primary); transition: border-color .2s var(--ease); }
.comments .comment-form input[type=text]:focus, .comments .comment-form input[type=password]:focus { border-color: var(--accent); outline: none; }
.comments .comment-form textarea { display: block; width: 100%; min-height: 120px; margin-bottom: 16px; padding: 14px; background-color: var(--bg-surface-alt); border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--text-primary); resize: vertical; transition: border-color .2s var(--ease); }
.comments .comment-form textarea:focus { border-color: var(--accent); outline: none; }
.comments .comment-form input::placeholder, .comments .comment-form textarea::placeholder { color: var(--text-tertiary); }
.comments .comment-form .field .secret { display: inline-flex; align-items: center; }
.comments .comment-form .field .secret input { display: none; }
.comments .comment-form .field .secret label { font-size: 13px; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 44px; }
.comments .comment-form .field .secret label:before { content: ""; display: inline-block; width: 18px; height: 18px; background-color: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 4px; transition: all .2s var(--ease); }
.comments .comment-form .field .secret input[type=checkbox]:checked + label:before { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.comments .comment-form .field .submit { margin-left: auto; height: 44px; padding: 0 24px; background-color: var(--accent); color: #fff; border-radius: 50px; font-size: 13px; font-weight: 500; transition: background-color .2s var(--ease); }
.comments .comment-form .field .submit:hover { background-color: var(--accent-hover); }

/* 14. Pagination */
.pagination { max-width: 860px; margin: 64px auto 120px; padding: 0 32px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 50%; font-size: 14px; font-weight: 500; color: var(--text-tertiary); transition: all .2s var(--ease); }
.pagination a:hover { background-color: var(--bg-surface-alt); color: var(--accent); }
.pagination .selected { background-color: transparent; color: var(--accent); font-weight: 700; position: relative; cursor: default; }
.pagination .selected:hover { background-color: transparent; color: var(--accent); }
.pagination .selected:after { content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 2px; background-color: var(--accent); border-radius: 2px; }
.pagination .prev, .pagination .next { width: 44px; height: 44px; border: 1px solid var(--border); color: var(--text-primary); }
.pagination .prev:hover, .pagination .next:hover { border-color: var(--accent); background-color: transparent; color: var(--accent); }
.pagination .no-more-prev, .pagination .no-more-next { opacity: .3; pointer-events: none; }
.pagination .current { display: none; }
.pagination .view-more { min-width: 180px; height: 50px; padding: 0 32px; border: 1px solid var(--border-strong); border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.pagination .view-more:hover { border-color: var(--accent); color: var(--accent); background-color: transparent; }

/* 15. Footer */
#footer { padding: 48px 32px; border-top: 1px solid var(--border); margin-top: 80px; }
#footer p { text-align: center; font-size: 12px; color: var(--text-tertiary); letter-spacing: .04em; }
#footer p a { color: var(--text-tertiary); margin: 0 4px; transition: color .2s var(--ease); }
#footer p a:hover { color: var(--accent); }
#footer .admin:before { content: "·"; margin: 0 8px; color: var(--border-strong); }
#tt-body-index #footer { margin-top: 0; }

/* 16. Tistory Editor Content */
#article-view { padding: 0; word-wrap: break-word; color: var(--text-primary); min-height: 200px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.005em; }
#article-view * { line-height: 1.8; }
#article-view h2[data-ke-size], #article-view h2 { font-weight: 700; font-size: 28px; line-height: 1.4; letter-spacing: -0.025em; color: var(--text-primary); margin: 56px 0 16px; }
#article-view h3[data-ke-size], #article-view h3 { font-weight: 600; font-size: 22px; line-height: 1.5; letter-spacing: -0.02em; color: var(--text-primary); margin: 40px 0 14px; }
#article-view h4[data-ke-size], #article-view h4 { font-weight: 600; font-size: 18px; line-height: 1.5; color: var(--text-primary); margin: 32px 0 12px; }
#article-view p { font-size: 16px; line-height: 1.85; color: var(--text-primary); margin: 0 0 24px; }
#article-view p[data-ke-size='size18'] { font-size: 18px; line-height: 1.7; }
#article-view p[data-ke-size='size16'] { font-size: 16px; line-height: 1.85; }
#article-view p[data-ke-size='size14'] { font-size: 14px; line-height: 1.75; color: var(--text-secondary); }
#article-view a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
#article-view a:hover { text-decoration-color: var(--accent); }
#article-view strong, #article-view b { font-weight: 600; }

#article-view blockquote { margin: 32px 0; padding: 20px 24px; background-color: var(--bg-surface-alt); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }
#article-view blockquote p { margin-bottom: 0; font-size: 15px; line-height: 1.75; color: var(--text-secondary); }
#article-view blockquote[data-ke-style='style1'] { text-align: center; background-color: transparent; border: none; border-radius: 0; padding: 24px 0; }
#article-view blockquote[data-ke-style='style1'] p { font-size: 18px; line-height: 1.7; color: var(--text-primary); font-style: normal; font-weight: 500; letter-spacing: -0.01em; }
#article-view blockquote[data-ke-style='style2'] { background-color: transparent; border-radius: 0; padding: 4px 16px; }
#article-view blockquote[data-ke-style='style3'] { background-color: var(--bg-surface-alt); border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }

#article-view ul, #article-view ol { margin: 0 0 24px; padding: 0 0 0 24px; }
#article-view ul li, #article-view ol li { margin: 0 0 6px; line-height: 1.8; color: var(--text-primary); }
#article-view ul { list-style: disc; }
#article-view ol { list-style: decimal; }

#article-view figure { max-width: 100%; clear: both; margin: 32px 0; }
#article-view figure.imageblock { display: block; text-align: center; }
#article-view figure.imageblock img { max-width: 100%; height: auto; display: inline-block; border-radius: 12px; }
#article-view figure.imageblock.alignCenter { margin-left: auto; margin-right: auto; text-align: center; }
#article-view figure.imageblock.alignRight { text-align: right; margin-left: auto; }
#article-view figure.imageblock.alignLeft { text-align: left; }
#article-view figure.imageblock.floatLeft { float: left; max-width: 50%; margin: 8px 24px 16px 0; }
#article-view figure.imageblock.floatRight { float: right; max-width: 50%; margin: 8px 0 16px 24px; }
#article-view figure.imageblock.widthContent { display: block; }
#article-view figure.imageblock.widthContent img { width: 100%; }
#article-view figure img { display: inline-block; }
#article-view figure img:not([width]), #article-view figure iframe:not([width]) { width: 100%; }
#article-view figure figcaption { font-size: 13px; color: var(--text-tertiary); text-align: center; padding-top: 12px; word-break: break-word; }
#article-view figure span { display: inline-block; max-width: 100%; line-height: 0; }
#article-view figure span img { display: block; }
#article-view figure.imagegridblock .image-container span img { width: 100%; height: auto; }
#article-view figure.imageslideblock div.image-container img { max-width: 100%; max-height: 860px; height: auto; display: block; }

#article-view figure.fileblock { width: 100%; max-width: 470px; height: auto; position: relative; border: 1px solid var(--border); border-radius: 12px; margin: 24px 0; background-color: var(--bg-surface-alt); transition: border-color .2s var(--ease); }
#article-view figure.fileblock:hover { border-color: var(--accent); }
#article-view figure.fileblock a { display: flex; align-items: center; padding: 16px 20px; gap: 16px; }
#article-view figure.fileblock .image { width: 30px; height: 30px; flex-shrink: 0; background-color: var(--accent-soft); border-radius: 6px; background-image: none; margin: 0; position: relative; }
#article-view figure.fileblock .image:before { content: ""; position: absolute; inset: 0; background: var(--accent); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/></svg>") no-repeat center/16px; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/></svg>") no-repeat center/16px; }
#article-view figure.fileblock .desc { position: static; flex: 1; min-width: 0; }
#article-view figure.fileblock .filename { color: var(--text-primary); font-size: 14px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#article-view figure.fileblock .size { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
#article-view figure.fileblock a::after { content: "↓"; position: static; background: none; width: auto; height: auto; font-size: 18px; color: var(--text-tertiary); }

#article-view hr[data-ke-style] { border: none; height: 1px; background-color: var(--border); background-image: none; padding: 0; margin: 48px auto; width: 64px; }
#article-view hr[data-ke-style='style4'] { width: 1px; height: 60px; padding: 0; margin: 32px auto; }
#article-view hr[data-ke-style='style5'], #article-view hr[data-ke-style='style6'] { width: 100%; max-width: 200px; }

#article-view table { width: 100%; margin: 24px 0; border-collapse: collapse; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
#article-view table td { padding: 12px 16px; font-size: 14px; border: 1px solid var(--border); }
#article-view table[data-ke-style='style4'] tr:nth-child(2n) td, #article-view table[data-ke-style='style5'] tr:nth-child(2n) td, #article-view table[data-ke-style='style6'] tr:nth-child(2n) td, #article-view table[data-ke-style='style7'] tr:nth-child(2n) td { background-color: var(--bg-surface-alt); }

#article-view pre code.hljs { display: block; padding: 24px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; font-size: 13px; line-height: 1.7; background-color: var(--bg-surface-alt); border: 1px solid var(--border); border-radius: 12px; overflow: auto; color: var(--text-primary); }

#article-view div[data-ke-type='moreLess'] { background-color: var(--bg-surface-alt); padding: 20px 24px; margin: 24px 0; border: 1px dashed var(--border-strong); border-radius: 12px; color: var(--text-secondary); }
#article-view div[data-ke-type='moreLess'] .btn-toggle-moreless { color: var(--accent); font-size: 14px; cursor: pointer; font-weight: 500; }

#article-view figure[data-ke-type='opengraph'] { margin: 24px 0; }
#article-view figure[data-ke-type='opengraph'] a { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; color: var(--text-primary); transition: border-color .2s var(--ease); }
#article-view figure[data-ke-type='opengraph'] a:hover { border-color: var(--accent); }
#article-view figure[data-ke-type='opengraph'] div.og-image { width: 200px; height: 160px; background-size: cover; background-position: center; flex-shrink: 0; }
#article-view figure[data-ke-type='opengraph'] div.og-text { padding: 20px 24px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
#article-view figure[data-ke-type='opengraph'] p.og-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--text-primary); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#article-view figure[data-ke-type='opengraph'] .og-desc { font-size: 13px; line-height: 1.6; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

#article-view .protected_form { margin: 32px 0; padding: 80px 32px; background-color: var(--bg-surface-alt); border-radius: 16px; text-align: center; }
#article-view .protected_form p { margin-bottom: 24px; color: var(--text-secondary); font-size: 14px; }
#article-view .protected_form p:before { content: "🔒"; display: block; font-size: 32px; margin-bottom: 16px; }
#article-view .protected_form input { width: 240px; height: 48px; padding: 0 16px; border: 1px solid var(--border); background-color: var(--bg-surface); border-radius: 8px; font-size: 14px; margin: 0 8px 8px 0; vertical-align: top; }
#article-view .protected_form .btn { width: auto; min-width: 100px; height: 48px; background-color: var(--accent); color: #fff; border-color: var(--accent); }
#article-view .protected_form .btn:hover { background-color: var(--accent-hover); color: #fff; }

#article-view img { max-width: 100%; height: auto; display: inline-block; }

/* Guestbook */
.guest_inner { max-width: 860px; margin: 60px auto; padding: 0 32px; }

/* Revenue (광고) */
.revenue_unit_wrap.position_list { max-width: 860px; margin: 32px auto; padding: 0 32px; }

/* Tistory comment widget overrides */
.tt-comment-cont .tt-box-total .tt_txt_g, .tt-comment-cont .tt-box-total .tt_num_g, .tt-comment-cont .tt-wrap-cmt .tt-link-user { font-size: 14px; color: var(--text-primary); }
.tt-comment-cont .tt-wrap-cmt .tt_desc { font-size: 14px; color: var(--text-secondary); }
.tt-comment-cont .tt-txt-mention { color: var(--accent); }
.tt-comment-cont .tt-btn_register { min-width: 120px; height: 44px; background-color: var(--accent); color: #fff; border-radius: 50px; border-color: var(--accent); font-weight: 500; }
.tt-comment-cont .tt-btn_register:hover, .tt-comment-cont .tt-btn_register:focus { background-color: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

/* 17. Main Categories (메인 페이지 카테고리 트리) */
.main-categories { background-color: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.main-cats-inner { max-width: 1400px; margin: 0 auto; padding: 48px 32px; }
.main-cats-title { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; display: inline-flex; align-items: center; gap: 12px; }
.main-cats-title:before { content: ""; width: 24px; height: 1px; background-color: var(--accent); }
.main-categories > .main-cats-inner > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 28px; }
.main-categories > .main-cats-inner > ul > li { font-size: 15px; }
.main-categories > .main-cats-inner > ul > li > a { display: block; padding: 0 0 10px; font-weight: 700; font-size: 15px; letter-spacing: -0.015em; color: var(--text-primary); border-bottom: 1px solid var(--border); margin-bottom: 14px; transition: all .2s var(--ease); }
.main-categories > .main-cats-inner > ul > li > a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.main-categories > .main-cats-inner > ul > li > ul { display: flex; flex-direction: column; gap: 6px; }
.main-categories > .main-cats-inner > ul > li > ul > li { font-size: 13px; }
.main-categories > .main-cats-inner > ul > li > ul > li > a { display: inline-block; color: var(--text-secondary); padding: 1px 0; transition: color .2s var(--ease); font-weight: 500; }
.main-categories > .main-cats-inner > ul > li > ul > li > a:hover { color: var(--accent); }
.main-categories > .main-cats-inner > ul > li:has(> ul):first-child > a, .main-categories > .main-cats-inner > ul > li:first-child:not(:has(> ul)) > a { color: var(--accent); }
.post-list:has(.article-layout) > .main-categories { display: none; }

/* 18. Article TOC Sidebar (본문 페이지 목차) */
.article-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; max-width: 1280px; margin: 0 auto; padding: 0 32px; align-items: start; }
.article-aside { position: sticky; top: 92px; padding-top: 80px; }
.article-aside-inner { padding: 24px 16px; background-color: var(--bg-surface-alt); border-radius: 16px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.article-aside-inner::-webkit-scrollbar { width: 4px; }
.article-aside-inner::-webkit-scrollbar-thumb { background-color: var(--border-strong); border-radius: 4px; }
.article-aside-title { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; padding: 0 12px; }
.article-toc ul { display: flex; flex-direction: column; gap: 1px; }
.article-toc li { font-size: 13px; line-height: 1.5; }
.article-toc li a { display: block; padding: 7px 12px; color: var(--text-secondary); border-radius: 8px; transition: all .2s var(--ease); font-weight: 500; border-left: 2px solid transparent; }
.article-toc li a:hover { background-color: var(--bg-surface); color: var(--text-primary); }
.article-toc li a.active { background-color: var(--bg-surface); color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.article-toc li.toc-h3 a { padding-left: 24px; font-size: 14px; color: var(--text-tertiary); font-weight: 400; }
.article-toc li.toc-h3 a.active { color: var(--accent); font-weight: 500; }
.article-toc:empty { min-height: 24px; }
.article-layout .hgroup { max-width: 100%; margin: 0 auto; padding: 80px 0 48px; }
.article-layout .entry-content { max-width: 720px; margin: 0 auto; padding: 0; }
.article-layout .tags { max-width: 720px; margin: 60px auto; }

/* 19. tt_category 카테고리 위젯 (사이드 메뉴용) */
ul.tt_category { list-style: none; margin: 0; padding: 12px 0; }
ul.tt_category ul { list-style: none; margin: 0; padding: 0; }
ul.tt_category li { position: relative; margin: 0; }
ul.tt_category li > a { display: block; padding: 12px 16px; color: var(--text-primary); font-weight: 500; line-height: 1.4; border-radius: 8px; transition: all .2s var(--ease); }
ul.tt_category li > a:hover { background-color: var(--bg-soft); color: var(--accent); }
ul.tt_category li > a img { display: inline-block; vertical-align: middle; margin-left: 4px; width: 16px; height: auto; }
ul.tt_category .c_cnt { color: var(--text-tertiary); font-weight: 400; font-size: 0.85em; margin-left: 4px; }
ul.tt_category > li > a { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; padding: 16px 18px; color: var(--text-primary); }
ul.tt_category > li > ul { padding-left: 8px; margin: 4px 0 12px 22px; border-left: 1px solid var(--border); }
ul.tt_category > li > ul > li > a { font-size: 14px; padding: 10px 14px; color: var(--text-secondary); font-weight: 500; }
ul.tt_category > li > ul > li > a:hover { color: var(--accent); }
ul.tt_category > li > ul > li > ul { padding-left: 8px; margin: 2px 0 4px 14px; border-left: 1px solid var(--border); }
ul.tt_category > li > ul > li > ul > li > a { font-size: 13px; padding: 8px 12px; color: var(--text-tertiary); }
ul.tt_category > li > ul > li > ul > li > a:hover { color: var(--accent); }
ul.tt_category li.has-children > a { padding-right: 48px; cursor: pointer; font-weight: 600; }
ul.tt_category li.has-children.expanded > a { color: var(--accent); }
ul.tt_category .cat-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 28px; height: 28px; padding: 0; border: 0; background-color: transparent; color: var(--text-secondary); border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .2s var(--ease); z-index: 2; }
ul.tt_category .cat-toggle:hover { background-color: var(--bg-soft); color: var(--accent); }
ul.tt_category .cat-toggle svg { transition: transform .25s var(--ease); display: block; }
ul.tt_category li.has-children.collapsed > .cat-toggle svg { transform: rotate(-90deg); }
ul.tt_category li.has-children.expanded > .cat-toggle svg { transform: rotate(0deg); }

/* 20. Tistory Post Management Dropdowns */
.my_edit { position: relative; display: inline-flex; align-items: center; }
.my_edit .btn_etc { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; color: var(--text-tertiary); background: transparent; transition: all .2s var(--ease); }
.my_edit .btn_etc:hover { background-color: var(--bg-surface-alt); color: var(--text-primary); }
.my_edit .btn_etc .ico_more { width: 14px; height: 14px; fill: currentColor; }
.my_edit .btn_etc title { display: none; }
.my_edit .layer_edit { display: none !important; position: absolute; top: calc(100% + 6px); right: 0; z-index: 100; min-width: 140px; padding: 6px; background-color: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); white-space: nowrap; }
.my_edit[aria-expanded="true"] .layer_edit { display: block !important; }
.my_edit .layer_edit a { display: block; padding: 8px 12px; font-size: 13px; color: var(--text-secondary); border-radius: 6px; transition: all .15s var(--ease); text-decoration: none; }
.my_edit .layer_edit a:hover { background-color: var(--bg-surface-alt); color: var(--accent); }
.my_edit .layer_edit .ico_arrb { display: none; }
.container_postbtn { display: flex; justify-content: center; align-items: center; gap: 8px; max-width: 720px; margin: 32px auto 0; padding: 24px 0 8px; flex-wrap: wrap; }
.container_postbtn .wrap_btn { position: relative; }
.container_postbtn .wrap_btn .btn_post { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; font-size: 13px; color: var(--text-secondary); background: transparent; border: 1px solid var(--border); border-radius: 50px; transition: all .2s var(--ease); }
.container_postbtn .wrap_btn .btn_post:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.container_postbtn .wrap_btn .btn_post .ico_postbtn { font-size: 12px; }
.container_postbtn .wrap_btn > .layer_post { display: none !important; position: absolute; }
.container_postbtn .wrap_btn > .btn_post[aria-expanded="true"] + .layer_post { display: block !important; }

/* 21. Quick Menu (Floating) */
.quick-menu { position: fixed !important; right: 24px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; opacity: 1; pointer-events: auto; transition: opacity .3s ease, transform .3s ease; }
.quick-menu.on { opacity: 1; pointer-events: auto; }
.quick-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background-color: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border); box-shadow: var(--shadow-md); cursor: pointer; transition: all .2s var(--ease); }
.quick-btn:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.quick-btn svg { width: 18px; height: 18px; }
.quick-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(10px); padding: 6px 12px; background-color: var(--text-primary); color: var(--bg-page); border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
.quick-label:after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px; background-color: var(--text-primary); }
.quick-btn:hover .quick-label { opacity: 1; transform: translateY(-50%) translateX(0); }
.quick-top { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.quick-top:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); }

/* 22. Hero Banner (Main & Category) */
.hero-banner { position: relative; overflow: hidden; padding: 80px 32px 96px; margin-bottom: 0; background: linear-gradient(135deg, var(--bg-soft) 0%, var(--accent-soft) 100%); border-bottom: 1px solid var(--border); transition: background .4s var(--ease); }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-tag { display: inline-block; padding: 6px 14px; margin-bottom: 20px; background-color: var(--bg-surface); color: var(--accent); border-radius: 50px; letter-spacing: .15em; text-transform: uppercase; box-shadow: var(--shadow-sm); }
.hero-title { display: block; margin-bottom: 16px; color: var(--text-primary); line-height: 1.25; letter-spacing: -0.03em; }
.hero-desc { display: block; max-width: 560px; margin: 0 auto; color: var(--text-secondary); line-height: 1.6; letter-spacing: -0.01em; }
.hero-deco { position: absolute; top: 50%; left: 50%; width: 800px; height: 800px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(184, 113, 79, .08) 0%, transparent 60%); pointer-events: none; z-index: 1; }
body.dark .hero-banner { background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-alt) 100%); }
body.dark .hero-deco { background: radial-gradient(circle, rgba(212, 148, 119, .12) 0%, transparent 60%); }

/* 23. Dark mode image adjustments */
body.dark .cover-thumbnail-list ul li .thum img, body.dark .cover-list ul li figure img, body.dark .cover-masonry ul li .thum img, body.dark .cover-gallery ul li figure img, body.dark .post-item .thum img, body.dark .related-articles ul li .thum img, body.dark #article-view figure.imageblock img { filter: brightness(.92); }
body.dark .post-item a:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }

/* 24. Media Queries */
@media screen and (max-width: 1199px) {
  .article-layout { grid-template-columns: 200px 1fr; gap: 40px; padding: 0 24px; }
}

@media screen and (max-width: 1023px) {
  #header .header-inner { padding: 16px 24px; gap: 16px; }
  #header .menu { display: none; }
  #header .mobile-menu { display: flex; align-items: center; justify-content: center; }
  .header-tools .social-link { display: none; }
  .tt-subscribe-btn { padding: 0; width: 36px; height: 36px; justify-content: center; }
  .tt-subscribe-btn .txt_state { display: none; }
  .cover-thumbnail-list ul { grid-template-columns: repeat(3, 1fr); }
  .cover-masonry ul { grid-template-columns: repeat(2, 1fr); }
  .cover-gallery ul { grid-template-columns: repeat(3, 1fr); }
  .related-articles ul { grid-template-columns: repeat(3, 1fr); }
  .post-list { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 48px 24px 64px; }
  .post-list:has(.article-layout) { display: block; padding: 0; }
  .post-type-thumbnail .post-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cover-slider ul li { height: 420px; }
  .cover-slider ul li .title { font-size: 32px; }
  .cover-slider .prev { left: 16px; }
  .cover-slider .next { right: 16px; }
  .hgroup { padding: 60px 24px 36px; }
  .hgroup h1 { font-size: 32px; }
  .entry-content, .related-articles, .comments, .pagination, #footer, .cover-thumbnail-list, .cover-masonry, .cover-list, .cover-gallery, .cover-footer { padding-left: 24px; padding-right: 24px; }
  .main-cats-inner { padding: 32px 24px; }
  .main-categories > .main-cats-inner > ul { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 20px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; padding: 0 24px; }
  .article-aside { position: relative; top: 0; padding-top: 32px; }
  .article-aside-inner { padding: 16px; max-height: none; overflow: visible; }
  .article-aside-title { margin-bottom: 12px; }
  .article-toc ul { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .article-toc ul::-webkit-scrollbar { display: none; }
  .article-toc li { flex-shrink: 0; }
  .article-toc li a { padding: 7px 14px; font-size: 13px; background-color: var(--bg-surface); border-radius: 50px; border-left: none; white-space: nowrap; }
  .article-toc li.toc-h3 a { padding-left: 14px; }
  .article-toc li.toc-h3 a:before { content: "└"; margin-right: 4px; color: var(--text-tertiary); }
  .article-toc li a.active { border-left: none; background-color: var(--accent-soft); }
  .article-layout .hgroup { max-width: none; padding: 40px 0 32px; }
  .article-layout .entry-content { max-width: none; padding: 0; }
  .article-layout .tags { max-width: none; margin: 40px 0; }
  .hero-banner { padding: 60px 24px 72px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 16px; }
}

@media screen and (max-width: 767px) {
  .cover-thumbnail-list { padding: 48px 20px; }
  .cover-thumbnail-list ul { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .cover-masonry { padding: 48px 20px; }
  .cover-masonry ul { grid-template-columns: 1fr; gap: 32px; }
  .cover-masonry ul li .title { font-size: 20px; }
  .cover-list { padding: 40px 20px; }
  .cover-list ul li a { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px 0; }
  .cover-list ul li figure { width: 100%; height: 200px; order: 1; }
  .cover-list ul li .content { order: 2; }
  .cover-list ul li .title { font-size: 18px; }
  .cover-gallery { padding: 48px 20px; }
  .cover-gallery ul { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cover-slider ul li { height: 380px; }
  .cover-slider ul li .title { font-size: 26px; padding: 0 20px; }
  .post-list { grid-template-columns: 1fr; gap: 16px; padding: 32px 20px 56px; }
  .post-list:has(.article-layout) { display: block; padding: 0; }
  .post-item .content { padding: 22px 22px 24px; }
  .post-item .title { font-size: 19px; }
  .post-type-thumbnail .post-list { grid-template-columns: 1fr; gap: 16px; padding: 32px 20px 56px; }
  .hgroup { padding: 48px 20px 32px; }
  .hgroup h1 { font-size: 26px; }
  .entry-content { padding: 0 20px; }
  #article-view h2 { font-size: 22px; margin: 40px 0 12px; }
  #article-view h3 { font-size: 18px; margin: 32px 0 10px; }
  #article-view p { font-size: 15px; }
  .tags { margin: 40px 20px; padding: 24px; }
  .related-articles { padding: 0 20px; margin: 56px auto; }
  .related-articles ul { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .comments { padding: 0 20px; }
  .comments .comment-list ul li ul li { padding-left: 40px; }
  .comments .comment-form input[type=text], .comments .comment-form input[type=password] { width: calc(50% - 4px); }
  .comments .comment-form .field { flex-wrap: wrap; }
  .comments .comment-form .field .submit { width: 100%; margin-left: 0; margin-top: 8px; }
  .pagination { padding: 0 20px; margin: 48px auto 80px; }
  .pagination a:not(.prev):not(.next):not(.selected):not(.view-more) { display: none; }
  .pagination .selected, .pagination .prev, .pagination .next { display: inline-flex; }
  #footer { padding: 32px 20px; margin-top: 60px; }
  .cover-footer { padding: 48px 20px; }
  .cover-footer .image { height: 220px; margin-bottom: 32px; }
  .cover-footer p { font-size: 18px; }
  .main-cats-inner { padding: 28px 20px; }
  .main-categories > .main-cats-inner > ul { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .article-layout { padding: 0 20px; }
  .hero-banner { padding: 48px 20px 56px; }
  .hero-tag { font-size: 11px; margin-bottom: 16px; }
  .hero-title { font-size: 26px; margin-bottom: 12px; }
  .hero-desc { font-size: 14px; }
  .quick-menu { right: 16px; bottom: 16px; gap: 6px; }
  .quick-btn { width: 44px; height: 44px; }
  .quick-btn svg { width: 16px; height: 16px; }
  .quick-label { display: none; }
}