@charset "utf-8";
:root {
  --point: #b9d96a;
  --point-deep: #6f8f2a;
  --text: #3a3e36;
  --card: #ffffff;
  --card-alpha: 95%;
  --page-bg: #e9f2d4;
  --veil: 20%;
  --base-size: 16px;
  --info-color: #afc059;
  --title-color: #4d6320;
  --head-alpha: 62%;
  --bg-image: url('./images/bg.jpg');

  --muted: color-mix(in srgb, var(--text) 55%, transparent);
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --point-soft: color-mix(in srgb, var(--point) 22%, transparent);
  --card-bg: color-mix(in srgb, var(--card) var(--card-alpha), transparent);

  --font-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-title: 'Cormorant Garamond', 'Gowun Batang', serif;
  --font-mono: 'Space Mono', 'Pretendard', monospace;

  --side-w: 240px;
  --gap: 22px;
  --wrap: 1120px;
}

/* ---------- 글꼴 옵션 ---------- */
body.font-gowun-dodum   { --font-body: 'Gowun Dodum', 'Pretendard', sans-serif; }
body.font-gowun-batang  { --font-body: 'Gowun Batang', 'Pretendard', serif; }
body.font-nanum-myeongjo{ --font-body: 'Nanum Myeongjo', 'Pretendard', serif; }
body.title-myeongjo { --font-title: 'Nanum Myeongjo', 'Gowun Batang', serif; }
body.title-sans     { --font-title: 'Pretendard', sans-serif; }

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 배경 ---------- */
.bg-layer {
  position: fixed; inset: 0; z-index: -1;
  background: var(--bg-image) center / cover no-repeat, var(--page-bg);
}
.bg-layer::after {
  content: ""; position: absolute; inset: 0;
  background: color-mix(in srgb, #ffffff var(--veil), transparent);
}
body.blur-light .bg-layer  { filter: blur(3px);  inset: -12px; }
body.blur-strong .bg-layer { filter: blur(10px); inset: -30px; }

/* ---------- 레이아웃 ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px 40px; }
.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.content { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 14px; }

/* 카드 공통 */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid color-mix(in srgb, var(--point) 45%, transparent);
  box-shadow: 0 6px 24px rgba(40, 60, 20, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- 헤더 ---------- */
.site-header { padding-top: 34px; margin-bottom: 18px; }

/* 제목 카드: 반투명 바탕 + 이중 테두리 */
.head-card {
  position: relative;
  padding: 24px 30px 26px;
  background: color-mix(in srgb, var(--card) var(--head-alpha), transparent);
  border: 1px solid color-mix(in srgb, var(--point) 55%, transparent);
  border-bottom: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.head-card::before {
  content: ""; position: absolute; inset: 5px 5px 0;
  border: 1px solid color-mix(in srgb, var(--point) 30%, transparent);
  border-bottom: 0; pointer-events: none;
}

/* 라벨 라인: 선 사이에 끼운 작은 라벨 */
.head-top { display: flex; align-items: center; gap: 12px; }
.head-rule { width: 26px; height: 1px; background: var(--point); flex: none; }
.head-rule.grow { flex: 1; width: auto; }
.head-label {
  font: 700 10px/1.4 var(--font-mono); letter-spacing: .32em;
  color: var(--point-deep); text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}

.title-row { display: flex; align-items: flex-end; gap: 16px; margin-top: 14px; }
.header-icon { width: 68px; height: 68px; object-fit: contain; margin-bottom: 6px; }
.site-title {
  margin: 0; font-family: var(--font-title); font-weight: 600;
  font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -.01em;
  color: var(--title-color);
}
.site-sub {
  margin: 8px 0 0; font-family: var(--font-title); font-style: italic; font-size: 15px;
  color: color-mix(in srgb, var(--title-color) 68%, transparent);
}
body.title-sans .site-sub { font-style: normal; font-size: 13px; }

.info-bar {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 30px; padding: 6px 14px;
  background: #ffffff; border: 1px solid var(--info-color);
  color: var(--info-color);
  font: 600 12px/1.2 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  letter-spacing: .02em; white-space: nowrap; overflow: hidden;
}
.info-bar .n { font-family: Consolas, 'SF Mono', Menlo, monospace; font-weight: 700; font-variant-numeric: tabular-nums; }
.info-bar .d { font-weight: 500; }
.info-bar .s { width: 1px; height: 12px; background: color-mix(in srgb, var(--info-color) 40%, transparent); flex: none; }
.info-bar .l { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.info-bar .l span { overflow: hidden; text-overflow: ellipsis; }
.info-bar svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.info-bar .r {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  padding-left: 10px; border-left: 1px solid color-mix(in srgb, var(--info-color) 40%, transparent);
}
.menu-toggle {
  display: none; margin-left: auto; padding: 2px 8px; flex: none;
  border: 1px solid var(--info-color); background: transparent;
  color: var(--info-color); font: 700 11px/1.2 Consolas, 'SF Mono', Menlo, monospace;
}
.info-bar .r + .menu-toggle { margin-left: 0; }

/* ---------- 사이드바 ---------- */
/* 사이드바 프로필 — 글 속 HTML의 스타일과 이름이 겹쳐도 흔들리지 않게 고정 */
#lnSidebar .ln-profile { padding: 22px 12px 12px !important; text-align: center !important; }
#lnSidebar .ln-side-img { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; border: 2px solid var(--point-soft); }
#lnSidebar .ln-side-img img { width: 100%; height: 100%; object-fit: cover; }
#lnSidebar .ln-side-title {
  margin: 0 !important; padding: 0 !important; text-align: center !important; font-family: var(--font-body) !important;
  font-weight: 700 !important; font-size: 15px !important; line-height: 1.6 !important; letter-spacing: normal !important; color: var(--text) !important;
}
#lnSidebar .ln-side-sub {
  margin: 4px 0 0 !important; padding: 0 !important; text-align: center !important; font-family: var(--font-body) !important;
  font-weight: 400 !important; font-size: 12px !important; line-height: 1.6 !important; letter-spacing: normal !important; color: var(--muted) !important;
}
#lnSidebar .side-menu { text-align: left; }

.side-menu { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.side-menu a {
  position: relative; display: block; padding: 7px 10px 7px 30px;
  font-size: 13px; transition: background .2s, color .2s;
}
.side-menu a::before {
  content: ""; position: absolute; left: 11px; top: 50%;
  width: 9px; height: 9px; transform: translateY(-50%);
  border: 1.5px solid currentColor; border-radius: 2px; opacity: .45;
}
.side-menu a:hover,
.side-menu a.is-active {
  background: linear-gradient(90deg, var(--point-soft), transparent 85%);
  color: var(--point-deep);
}
.side-menu a:hover::before,
.side-menu a.is-active::before { opacity: 1; background: var(--point); border-color: var(--point); }
.side-menu .link_tit { font-weight: 700; }
.side-menu .sub_category_list a { padding-left: 46px; font-size: 12.5px; color: var(--muted); }
.side-menu .sub_category_list a::before { left: 30px; width: 6px; height: 6px; border-radius: 50%; }
.side-menu .c_cnt { margin-left: 2px; font-size: 11px; color: var(--muted); font-weight: 400; }
.side-menu img { display: none; } /* 'new' 아이콘 숨김 */

.side-card { padding: 18px 14px 14px; font-size: 13px; }
.side-label {
  margin: 0 0 8px; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .22em; color: var(--muted); text-transform: uppercase;
}
.side-label .star { color: var(--point); margin-right: 6px; }
.quote-text { margin: 0; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.quote-img { display: block; max-height: 120px; margin: 12px auto 0; object-fit: contain; }

.count-row { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; }
.count-row b { margin-left: 6px; color: var(--point-deep); }

.dday-num {
  margin: 2px 0 0; text-align: center;
  font: 700 26px/1.2 Consolas, 'SF Mono', Menlo, monospace; letter-spacing: .02em;
  color: var(--point-deep);
}
.dday-sub { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 1px; }
.dday-date { font-family: Consolas, 'SF Mono', Menlo, monospace; font-size: 11px; }


.search-card { padding: 12px; }
.search-box { display: flex; border: 1px solid var(--line); background: #fff; }
.search-box input {
  flex: 1; min-width: 0; border: 0; padding: 8px 10px; background: transparent;
  font: inherit; font-size: 13px; color: var(--text); outline: none;
}
.search-box button { border: 0; padding: 0 12px; background: var(--point); color: #fff; font-size: 12px; }

/* ---------- 홈 배너 ---------- */
.home-banner { display: none; padding: 10px 10px 0; }
#tt-body-index .home-banner { display: block; }
.home-banner img { display: block; width: 100%; }
.banner-caption { margin: 0; padding: 10px; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- 공지 ---------- */
.notice-strip { display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-size: 14px; }
.notice-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .15em; color: var(--point-deep); }
.notice-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-date { font-size: 12px; color: var(--muted); }

/* ---------- 글 목록 ---------- */
.list-card { padding: 28px 32px 12px; }
.list-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.eyebrow { width: 100%; margin: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .25em; color: var(--point-deep); }
.list-title { margin: 0; font-size: 20px; font-weight: 700; }
.list-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.list-home-label { display: none; }
#tt-body-index .list-home-label { display: inline; }
#tt-body-index .list-label,
#tt-body-index .list-title,
#tt-body-index .list-count { display: none; }

.post-item a { display: flex; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-item:last-child a { border-bottom: 0; }
.post-text { flex: 1; min-width: 0; }
.post-cate { font-size: 12px; color: var(--point-deep); font-weight: 600; }
.post-title { display: block; margin: 2px 0 6px; font-size: 1.12em; line-height: 1.45; transition: color .2s; }
.post-item a:hover .post-title { color: var(--point-deep); }
.post-summary {
  margin: 0 0 8px; font-size: .9em; line-height: 1.65; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.post-thumb { flex: none; width: 132px; height: 100px; overflow: hidden; background: var(--point-soft); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-item a:hover .post-thumb img { transform: scale(1.04); }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- 글 본문 (가독성 최우선) ---------- */
.article { padding: 44px 56px 36px; }
.article-head { text-align: center; padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-cate {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--point-deep); text-transform: uppercase;
}
.article-title { margin: 8px 0 12px; font-size: 1.65em; line-height: 1.4; font-weight: 700; }
.article-meta { font-size: 12.5px; color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.admin a { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }

.entry-content { font-size: 1em; line-height: 1.9; max-width: 720px; margin: 0 auto; }
.article:not(.is-wide) .entry-content p { margin: 0 0 1.1em; }
.article:not(.is-wide) .entry-content h2, .article:not(.is-wide) .entry-content h3, .article:not(.is-wide) .entry-content h4 { line-height: 1.45; margin: 2em 0 .8em; }
.article:not(.is-wide) .entry-content h2 { font-size: 1.4em; padding-bottom: .4em; border-bottom: 2px solid var(--point-soft); }
.article:not(.is-wide) .entry-content h3 { font-size: 1.22em; padding-left: 12px; border-left: 3px solid var(--point); }
.article:not(.is-wide) .entry-content h4 { font-size: 1.08em; color: var(--point-deep); }
.article:not(.is-wide) .entry-content a { color: var(--point-deep); text-decoration: underline; text-decoration-color: var(--point); text-underline-offset: 3px; }
.article:not(.is-wide) .article:not(.is-wide) .entry-content blockquote {
  margin: 1.6em 0; padding: 14px 20px;
  border-left: 3px solid var(--point); background: var(--point-soft);
}
.article:not(.is-wide) .entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.article:not(.is-wide) .entry-content ul, .article:not(.is-wide) .entry-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article:not(.is-wide) .entry-content ul { list-style: disc; }
.article:not(.is-wide) .entry-content ol { list-style: decimal; }
.article:not(.is-wide) .entry-content li::marker { color: var(--point-deep); }
.article:not(.is-wide) .entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .92em; }
.article:not(.is-wide) .entry-content th, .article:not(.is-wide) .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.article:not(.is-wide) .entry-content th { background: var(--point-soft); }
.article:not(.is-wide) .entry-content code { font-family: var(--font-mono); font-size: .88em; padding: 2px 5px; background: var(--point-soft); }
.article:not(.is-wide) .entry-content pre { overflow-x: auto; padding: 16px; background: #f6f8f1; border: 1px solid var(--line); }
.article:not(.is-wide) .entry-content pre code { padding: 0; background: none; }
.article:not(.is-wide) .entry-content figure { margin: 1.6em 0; }
.article:not(.is-wide) .entry-content figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 6px; }

.article-tags {
  max-width: 720px; margin: 36px auto 0; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: 0; /* 태그 사이 쉼표 숨김 */
}
.tag-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-right: 10px; }
.article-tags a {
  display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px;
  font-size: 12.5px; border: 1px solid var(--point); color: var(--point-deep);
}
.article-tags a:hover { background: var(--point); color: #fff; }

.article-nav { max-width: 720px; margin: 30px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-nav a { display: block; padding: 14px 16px; border: 1px solid var(--line); transition: border-color .2s; }
.article-nav a:hover { border-color: var(--point); }
.article-nav span { display: block; font-size: 11px; color: var(--muted); }
.article-nav strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-next { grid-column: 2; text-align: right; }

.comments { max-width: 720px; margin: 40px auto 0; }
.comments .tt-comment-cont, .comments .tt-comment-cont * { font-family: var(--font-body) !important; }
.comments .tt-btn_register { background: var(--point) !important; border-color: var(--point) !important; color: #fff !important; }

.protected-box { max-width: 380px; margin: 0 auto; text-align: center; color: var(--muted); }

.tag-cloud { padding: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 4px 12px; border: 1px solid var(--line); font-size: 13px; }
.tag-cloud a:hover { border-color: var(--point); color: var(--point-deep); }
.tag-cloud .cloud1 { border-color: var(--point); color: var(--point-deep); font-weight: 700; }

/* ---------- 바로 열기 카테고리의 글: 글 양식·배경 없이 HTML만 ---------- */
.article.is-wide {
  padding: 0; background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.article.is-wide .article-head { border: 0; padding: 0; margin: 0; text-align: right; }
.article.is-wide .article-cate,
.article.is-wide .article-title,
.article.is-wide .article-meta > span:first-child,
.article.is-wide .article-tags,
.article.is-wide .article-nav,
.article.is-wide .comments { display: none; }
.article.is-wide .article-meta { justify-content: flex-end; margin: 0; }
.article.is-wide .admin { display: inline-block; margin-bottom: 8px; padding: 2px 8px; background: var(--card-bg); }
.article.is-wide .entry-content { max-width: none; margin: 0; line-height: normal; font-size: inherit; }
.article.is-wide .entry-content img { max-width: 100%; }

/* ---------- 갤러리 목록 (카테고리 관리에서 '갤러리' 스타일 선택) ---------- */
.post-ph { display: none; }
.list-card.list-gallery {
  padding: 0; background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.list-gallery .list-head { padding: 0 0 10px; border-bottom: 1px solid color-mix(in srgb, #fff 70%, transparent); }
.list-gallery .eyebrow, .list-gallery .list-count { display: none; }
.list-gallery .list-title {
  font: 700 11px/1.4 var(--font-mono); letter-spacing: .35em; text-transform: uppercase;
  color: var(--text);
}
.list-gallery .post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 0 6px; }
body.gcols-2 .list-gallery .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.gcols-4 .list-gallery .post-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list-gallery .post-item a { display: block; padding: 0; border: 0; }
.list-gallery .post-text { display: none; }
.list-gallery .post-thumb,
.list-gallery .post-ph {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  border: 2px solid color-mix(in srgb, #fff 85%, transparent);
  box-shadow: 0 4px 16px rgba(40, 60, 20, .12);
  transition: transform .25s, box-shadow .25s;
}
.list-gallery .post-thumb + .post-ph { display: none; }
.list-gallery .post-ph { background: linear-gradient(135deg, var(--point-soft), transparent), var(--card); position: relative; }
.list-gallery .post-ph::after { content: "✦"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--point); font-size: 22px; }
.list-gallery .post-item a:hover .post-thumb,
.list-gallery .post-item a:hover .post-ph { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(40, 60, 20, .18); }
.list-gallery .post-item a:hover .post-thumb img { transform: none; }
.list-gallery .empty { background: var(--card-bg); }
@media (max-width: 860px) {
  .list-gallery .post-list, body.gcols-4 .list-gallery .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- 갤러리 이미지 팝업 ---------- */
.ln-lb {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 56px 64px; background: rgba(22, 30, 14, .86);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.ln-lb.open { opacity: 1; visibility: visible; }
.ln-lb-img {
  max-width: 100%; max-height: calc(100vh - 112px); object-fit: contain;
  border: 3px solid #fff; box-shadow: 0 16px 50px rgba(0, 0, 0, .4); background: #fff;
}
.ln-lb-btn {
  position: absolute; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08);
  color: #fff; font-size: 26px; line-height: 1; transition: background .2s;
}
.ln-lb-btn:hover { background: rgba(255, 255, 255, .22); }
.ln-lb-close { top: 14px; right: 14px; font-size: 24px; }
.ln-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.ln-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.ln-lb.single .ln-lb-prev, .ln-lb.single .ln-lb-next { display: none; }
.ln-lb-bar {
  position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 18px;
  font: 700 11px/1 Consolas, 'SF Mono', Menlo, monospace; letter-spacing: .18em; color: rgba(255, 255, 255, .8);
}
.ln-lb-bar a { color: var(--point); }
@media (max-width: 860px) {
  .ln-lb { padding: 56px 10px; }
  .ln-lb-prev, .ln-lb-next { top: auto; bottom: 8px; transform: none; width: 38px; height: 38px; }
  .ln-lb-bar { bottom: 20px; }
}

/* ---------- 이미지 저장 방지 ---------- */
body.protect img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* ---------- 페이지 번호 ---------- */
.paging { display: flex; justify-content: center; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; }
.paging a { min-width: 32px; height: 32px; display: grid; place-items: center; background: var(--card-bg); border: 1px solid var(--line); }
.paging a:hover { border-color: var(--point); }
.paging a:has(.selected), .paging a.selected { background: var(--point); border-color: var(--point); color: #fff; }
.paging-nums { display: flex; gap: 6px; }
.paging .no-more-prev, .paging .no-more-next { opacity: .35; pointer-events: none; }

/* ---------- 하단 ---------- */
.site-footer { padding: 40px 0 16px; text-align: center; }
.footer-copy { margin: 0; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .1em; }

.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid var(--point);
  background: var(--card-bg); color: var(--point-deep);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

/* ---------- 모바일 ---------- */
@media (max-width: 480px) {
  .info-bar { gap: 7px; padding: 6px 10px; font-size: 11px; }
  .info-bar .d { display: none; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 14px 30px; }
  .site-header { padding-top: 22px; }
  .head-card { padding: 18px 18px 20px; }
  .title-row { gap: 10px; margin-top: 10px; }
  .header-icon { width: 48px; height: 48px; }
  .site-sub { font-size: 13.5px; }
  .layout { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; }
  .list-card { padding: 22px 18px 6px; }
  .post-item a { gap: 14px; padding: 16px 0; }
  .post-thumb { width: 88px; height: 72px; }
  .article { padding: 30px 20px 26px; }
  .article-title { font-size: 1.4em; }
  .article-nav { grid-template-columns: 1fr; }
  .nav-next { grid-column: auto; }
}

/* 사이드바의 '분류 전체보기' 숨김 */
#lnSidebar .side-menu .link_tit { display: none; }

/* ===== 발췌 위젯 ===== */
.ln-ex { display: none; padding: 22px 30px 26px; }
#tt-body-index .ln-ex { display: block; }
.ln-ex-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font: 700 10px/1.4 var(--font-mono); letter-spacing: .25em; color: var(--point-deep);
}
.ln-ex-next {
  border: 0; background: transparent; padding: 2px 4px;
  color: var(--point-deep); font-size: 16px; line-height: 1;
  transition: transform .3s, color .2s;
}
.ln-ex-next:hover { color: var(--point); transform: rotate(90deg); }
.ln-ex-item { display: flex; flex-direction: column; margin-top: 20px; }
.ln-ex-text {
  position: relative; margin: 0; padding-left: 50px;
  font-family: 'Gowun Batang', 'Nanum Myeongjo', serif; font-size: 16px; line-height: 1.95;
  white-space: pre-line;
}
.ln-ex-text::before {
  content: "\201C"; position: absolute; left: 0; top: -2px;
  font: 700 64px/0.8 'Cormorant Garamond', Georgia, serif; color: var(--point);
}
.ln-ex-src { margin: 16px 0 0; text-align: right; font-size: 12px; color: var(--muted); }
.ln-ex-src::before { content: "— "; }
@media (max-width: 860px) {
  .ln-ex { padding: 18px 18px 20px; }
  .ln-ex-text { padding-left: 36px; font-size: 15px; }
  .ln-ex-text::before { font-size: 48px; }
}

/* ===== 홈에서 최신글 목록 · 페이지 번호 숨기기 ===== */
#tt-body-index .list-card,
#tt-body-index .paging { display: none; }

/* ===== 글 목록: 목차형 (번호 · 제목 · 날짜) ===== */
.list-card:not(.list-gallery) .post-list { counter-reset: lnno; }
.list-card:not(.list-gallery) .post-item a { padding: 13px 4px; gap: 0; }
.list-card:not(.list-gallery) .post-thumb,
.list-card:not(.list-gallery) .post-cate,
.list-card:not(.list-gallery) .post-summary,
.list-card:not(.list-gallery) .post-meta { display: none; }
.list-card:not(.list-gallery) .post-text { display: flex; align-items: baseline; gap: 14px; }
.list-card:not(.list-gallery) .post-text::before {
  counter-increment: lnno; content: counter(lnno, decimal-leading-zero);
  flex: none; width: 22px; font: 700 11px var(--font-mono); color: var(--point);
}
.list-card:not(.list-gallery) .post-title {
  flex: 1; min-width: 0; margin: 0; font-size: 15px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-date { flex: none; font: 11px var(--font-mono); color: var(--muted); }
.list-gallery .post-date { display: none; }

/* ===== 이어 재생 껍데기 ===== */
html.ln-shell, html.ln-shell body { height: 100%; overflow: hidden; }
html.ln-shell body > *:not(#lnFrame):not(#lnBgm):not(script) { display: none !important; }
#lnFrame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; background: var(--page-bg); }

/* ===== BGM 플레이어 (왼쪽 아래 · 접히는 탭) ===== */
.ln-bgm[hidden] { display: none !important; }
.ln-bgm {
  position: fixed; left: 16px; bottom: 0; z-index: 50; width: 290px;
  font-family: var(--font-body); color: var(--text);
}
.ln-bgm-data, .ln-bgm-yt { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.ln-bgm button { border: 0; background: transparent; padding: 0; color: var(--info-color); display: grid; place-items: center; cursor: pointer; }
.ln-bgm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.ln-bgm-tab {
  display: inline-flex !important; align-items: center; gap: 8px; height: 24px; padding: 0 8px 0 10px !important;
  background: var(--info-color) !important; color: #fff !important;
  font: 700 9.5px/1 var(--font-mono); letter-spacing: .2em;
}
.ln-bgm-tab svg { width: 12px; height: 12px; transition: transform .25s; }
.ln-bgm.folded .ln-bgm-tab svg { transform: rotate(180deg); }
.ln-bgm.folded .ln-bgm-box { display: none; }
.ln-bgm.playing .ln-bgm-tab span::after { content: " ·"; animation: lnBlink 1.2s infinite; }
@keyframes lnBlink { 50% { opacity: .2; } }

.ln-bgm-box {
  background: color-mix(in srgb, #fff 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--point) 55%, transparent); border-bottom: 0;
  box-shadow: 0 -6px 24px rgba(40, 60, 20, .14);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ln-bgm-pl { display: none; max-height: 240px; overflow-y: auto; padding: 12px 14px 4px; border-bottom: 1px solid var(--line); }
.ln-bgm.list-open .ln-bgm-pl { display: block; }
.ln-bgm-pl-h { margin: 0 0 4px; font: 700 9.5px var(--font-mono); letter-spacing: .22em; color: var(--muted); }
.ln-bgm-pl ol { margin: 0; padding: 0; list-style: none; }
.ln-bgm-pl li { display: flex; gap: 8px; padding: 6px 2px; font-size: 12px; border-bottom: 1px dashed var(--line); cursor: pointer; white-space: nowrap; overflow: hidden; }
.ln-bgm-pl li:last-child { border-bottom: 0; }
.ln-bgm-pl li:hover { color: var(--point-deep); }
.ln-bgm-pl .n { font: 700 10px var(--font-mono); color: var(--muted); padding-top: 2px; }
.ln-bgm-pl .t { overflow: hidden; text-overflow: ellipsis; }
.ln-bgm-pl li.on { color: var(--point-deep); font-weight: 700; }
.ln-bgm-pl li.on .n { color: var(--point); }

.ln-bgm-card { position: relative; margin: 4px 4px 0; padding: 10px 12px 12px; border: 1px solid color-mix(in srgb, var(--point) 28%, transparent); border-bottom: 0; }
.ln-bgm-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ln-bgm-top .rule { width: 14px; height: 1px; background: var(--point); flex: none; }
.ln-bgm-top .rule.grow { flex: 1; width: auto; }
.ln-bgm-top .lab { font: 700 9px var(--font-mono); letter-spacing: .25em; color: var(--point-deep); }
.ln-bgm-top .tm { font: 10px var(--font-mono); color: var(--muted); }
.ln-bgm-title { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-bgm-title em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.ln-bgm-memo {
  margin: 4px 0 0; font-family: 'Gowun Batang', 'Nanum Myeongjo', serif; font-size: 12px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ln-bgm-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.ln-bgm-ctrl { display: flex; align-items: center; gap: 12px; }
.ln-bgm-ctrl .main { width: 30px; height: 30px; background: var(--info-color) !important; color: #fff !important; }
.ln-bgm .i-pause, .ln-bgm.playing .i-play { display: none; }
.ln-bgm.playing .i-pause { display: block; }
.ln-bgm-listbtn { color: var(--muted) !important; }
.ln-bgm.list-open .ln-bgm-listbtn { color: var(--point-deep) !important; }
.ln-bgm-prog { position: absolute; left: -1px; bottom: 0; height: 2px; width: 0; background: var(--info-color); transition: width .5s linear; }

@media (max-width: 860px) {
  .ln-bgm { left: 10px; width: calc(100% - 76px); max-width: 300px; }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: color-mix(in srgb, var(--point) 12%, #ffffff); }
::-webkit-scrollbar-thumb {
  background: var(--point); border-radius: 10px;
  border: 2px solid color-mix(in srgb, var(--point) 12%, #ffffff);
}
::-webkit-scrollbar-thumb:hover { background: var(--point-deep); }
@supports (-moz-appearance: none) {
  html, .ln-bgm-pl { scrollbar-color: var(--point) color-mix(in srgb, var(--point) 12%, #ffffff); scrollbar-width: thin; }
}

/* ===== 도트 클로버 마우스 커서 + 따라오는 이펙트 ===== */
html, body { cursor: url('./images/px-arrow.png') 2 2, auto; }
a, button, summary, label, select, [onclick], .ln-bgm-pl li, .post-item a { cursor: url('./images/px-arrow.png') 2 2, pointer; }
input[type="text"], input[type="password"], textarea, [contenteditable="true"] { cursor: text; }
.ln-trail {
  position: fixed; z-index: 99999; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  pointer-events: none; background: center / contain no-repeat; image-rendering: pixelated;
  animation: lnTrail 1s ease-out forwards;
}
.ln-trail.c { background-image: url('./images/px-clover.png'); }
.ln-trail.s { background-image: url('./images/px-spark.png'); width: 14px; height: 14px; margin: -7px 0 0 -7px; }
@keyframes lnTrail {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  45%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), 26px) rotate(var(--rot)) scale(.5); }
}