/* ==========================================================================
   Clearline — 티스토리 스킨 스타일
   원칙: 시스템 폰트 · 최소 요청 · 본문 가독성 우선 · 모바일 퍼스트
   ========================================================================== */

:root {
  --accent: #1f4e79;
  --accent-soft: #eaf1f8;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-code: #f3f4f6;
  --radius: 6px;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-body: 17px;
  --lh-body: 1.85;
  --content-w: 760px;
  --sidebar-w: 300px;
  --gap: 48px;
}

/* --------------------------------------------------------------------------
   Reset (최소)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
figure { margin: 0; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { max-width: calc(var(--content-w) + var(--sidebar-w) + var(--gap)); margin: 0 auto; padding: 0 20px; }
body.no-sidebar .wrap { max-width: var(--content-w); }
.layout { display: block; padding: 32px 0 64px; }
.main { min-width: 0; width: 100%; }
.sidebar { margin-top: 56px; }

@media (min-width: 1024px) {
  .layout { display: flex; gap: var(--gap); align-items: flex-start; }
  .main { flex: 1 1 auto; max-width: var(--content-w); }
  .sidebar { flex: 0 0 var(--sidebar-w); margin-top: 0; position: sticky; top: 24px; }
  body.no-sidebar .layout { display: block; }
  body.no-sidebar .main { max-width: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 18px; padding-bottom: 14px; }
.site-brand { min-width: 0; }
.site-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.site-title a { color: var(--text); }
.site-title a:hover { text-decoration: none; color: var(--accent); }
.site-desc { margin: 2px 0 0; font-size: 13.5px; color: var(--text-muted); }

.site-search { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-search input[type="text"] {
  width: 180px; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: 14px;
}
.site-search input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.site-search button {
  height: 36px; padding: 0 12px; border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: #fff; font-size: 14px;
}

.site-nav { flex-basis: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block; padding: 8px 10px; font-size: 15px; font-weight: 600;
  color: var(--text); border-bottom: 2px solid transparent;
}
.site-nav a:hover { text-decoration: none; color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 640px) {
  .site-title { font-size: 19px; }
  .site-search { flex-basis: 100%; margin-left: 0; }
  .site-search input[type="text"] { flex: 1 1 auto; width: auto; }
}

/* --------------------------------------------------------------------------
   Ad slots (티스토리 광고 치환자 영역)
   -------------------------------------------------------------------------- */
.ad-slot { margin: 0 0 24px; }
.ad-slot:empty { display: none; }

/* --------------------------------------------------------------------------
   Post (permalink)
   -------------------------------------------------------------------------- */
.post { margin: 0; }
#tt-body-page .post, .post.protected { margin-bottom: 48px; }

.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb li:has(a:empty) { display: none; }

.post-header { margin-bottom: 24px; }
.post-title {
  margin: 0; font-size: 30px; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; color: var(--text);
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.post-meta.is-bottom { margin: 32px 0 0; padding-top: 14px; border-top: 1px solid var(--border); }

/* 글 정보(작성자·날짜) 표시 옵션: meta-hide / meta-bottom / meta-top */
body.meta-hide .post-meta { display: none !important; }
body.meta-bottom .post-header .post-meta { display: none; }

/* 글 페이지 집중 모드: 검색 유입 독자에게 제목 → 본문이 바로 보이도록 상단 요소 숨김 */
#tt-body-page.post-focus .site-header { display: none; }
#tt-body-page.post-focus .layout { padding-top: 20px; }
#tt-body-page.post-focus .breadcrumb { display: none; }
@media (min-width: 1024px) { #tt-body-page.post-focus .layout { padding-top: 32px; } }
.post-meta > * { display: inline-flex; align-items: center; gap: 4px; }
.post-meta .post-author { font-weight: 600; color: var(--text); }
.post-meta .post-author::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 4px; }
.post-meta a { color: var(--text-muted); }
.post-meta [hidden] { display: none !important; }

@media (max-width: 640px) {
  .post-title { font-size: 24px; }
}

/* 목차 — 기본 접힘 (details/summary) */
.toc {
  margin: 0 0 24px; padding: 0 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--bg-soft); font-size: 15px;
}
.toc[hidden], body.toc-off .toc { display: none; }
.toc-title {
  margin: 0; padding: 10px 0; font-size: 14px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; user-select: none;
}
.toc-title::-webkit-details-marker { display: none; }
.toc-title::before { content: "▸"; font-size: 12px; color: var(--accent); transition: transform .15s; }
.toc[open] .toc-title::before { transform: rotate(90deg); }
.toc[open] .toc-title { border-bottom: 1px solid var(--border); }
.toc > ol { margin: 0; padding: 10px 0 12px 1.2em; counter-reset: toc; list-style: none; }
.toc ol ol { margin: 0; padding-left: 1.1em; list-style: none; }
.toc li { margin: 4px 0; counter-increment: toc; }
.toc li::before { content: counters(toc, ".") ". "; color: var(--accent); font-weight: 600; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }

/* 본문 */
.entry-content { font-size: var(--fs-body); line-height: var(--lh-body); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-weight: 800; letter-spacing: -0.01em; line-height: 1.4; color: var(--text); scroll-margin-top: 24px;
}
.entry-content h2 { font-size: 24px; margin: 2.2em 0 0.8em; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.entry-content h3 { font-size: 20px; margin: 1.8em 0 0.6em; padding-left: 12px; border-left: 4px solid var(--accent); }
.entry-content h4 { font-size: 18px; margin: 1.5em 0 0.5em; }
.entry-content h1 { font-size: 24px; margin: 2.2em 0 0.8em; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.entry-content li { margin: 0.3em 0; }
.entry-content li > p { margin: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.entry-content img { display: block; margin: 0 auto; border-radius: var(--radius); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figure img { margin: 0 auto; }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--text-muted); text-align: center; }
.entry-content blockquote {
  margin: 1.5em 0; padding: 14px 18px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); color: var(--text); border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code { font-family: var(--font-mono); font-size: 0.9em; padding: 2px 6px; background: var(--bg-code); border-radius: 4px; }
.entry-content pre { margin: 1.5em 0; padding: 16px 18px; background: #1f2937; color: #f3f4f6; border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.entry-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }

/* 밑줄 링크 → 버튼 (단독 문단의 링크만 script.js가 변환) */
.entry-content .btn-wrap { text-align: center; margin: 1.6em 0; }
.entry-content .btn-wrap br { display: none; }
.entry-content a.btn-link {
  display: inline-block; margin: 4px; padding: 13px 28px; max-width: 100%;
  background: var(--accent); color: #fff !important; font-weight: 700; font-size: 16px; line-height: 1.4;
  border-radius: 8px; text-decoration: none !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .12s, box-shadow .12s;
}
.entry-content a.btn-link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
.entry-content a.btn-link u, .entry-content a.btn-link span { text-decoration: none !important; color: inherit !important; }
@media (max-width: 640px) { .entry-content a.btn-link { display: block; margin: 8px 0; } }

/* 표 — 정보성 글의 핵심 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5em 0; }
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15.5px; line-height: 1.6;
  border-top: 2px solid var(--accent);
}
.table-scroll table { margin: 0; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.entry-content th { background: var(--bg-soft); font-weight: 700; color: var(--text); white-space: nowrap; }
.entry-content tbody tr:nth-child(even) td { background: #fbfcfd; }
.entry-content td p, .entry-content th p { margin: 0; }

/* 티스토리 에디터 기본 요소 정리 */
.entry-content .contents_style { font-size: inherit; line-height: inherit; }
.entry-content .imageblock, .entry-content .fileblock, .entry-content .moreless_content { margin: 1.5em 0; }
.entry-content .fileblock { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); font-size: 15px; }
.entry-content .txt_file_name { font-weight: 600; }
.entry-content .og-link, .entry-content [data-ke-type="opengraph"] { display: block; margin: 1.5em 0; }
.entry-content .btn-toggle-moreless { padding: 8px 14px; border: 1px solid var(--border-strong); background: var(--bg); border-radius: var(--radius); font-size: 14px; }

/* 태그 */
.post-tags { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-tags .tags-label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-right: 4px; }
.post-tags a {
  display: inline-block; padding: 4px 10px; font-size: 13.5px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
}
.post-tags a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.post-tags a::before { content: "#"; color: var(--text-light); margin-right: 1px; }

/* 관리 */
.post-admin { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.post-admin a { color: var(--text-muted); margin-right: 10px; }

/* 이전/다음 글 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 0; }
.post-nav a {
  display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); background: var(--bg);
}
.post-nav a:hover { border-color: var(--accent); text-decoration: none; }
.post-nav .nav-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.post-nav .nav-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.45; }
.post-nav .nav-next { text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .nav-next { text-align: left; } }

/* 관련 글 */
.related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-title { margin: 0 0 12px; font-size: 17px; font-weight: 800; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.related li:last-child { border-bottom: 0; }
.related .thumb { flex: 0 0 64px; width: 64px; height: 48px; overflow: hidden; border-radius: 4px; background: var(--bg-soft); }
.related .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related .title { flex: 1 1 auto; color: var(--text); font-size: 15.5px; line-height: 1.45; }
.related .date { flex: 0 0 auto; font-size: 13px; color: var(--text-light); }
.related .more { display: inline-block; margin-top: 10px; font-size: 14px; }

/* 댓글 */
.comments { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.comments .tt-comment-cont { font-family: inherit; }

/* --------------------------------------------------------------------------
   Index / list cards
   -------------------------------------------------------------------------- */
.post-card {
  display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border);
}
.post-card:first-of-type { padding-top: 0; }
.post-card-thumb { flex: 0 0 160px; width: 160px; height: 110px; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-body { flex: 1 1 auto; min-width: 0; }
.post-card-cat { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.post-card-cat:empty { display: none; }
.post-card-title { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -0.01em; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }
.post-card-summary {
  margin: 0 0 10px; font-size: 15px; color: var(--text-muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-meta { font-size: 13px; color: var(--text-light); display: flex; gap: 12px; }
@media (max-width: 640px) {
  .post-card { flex-direction: column; gap: 12px; }
  .post-card-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; flex-basis: auto; }
  .post-card-title { font-size: 18px; }
}

/* 카테고리/태그/검색 목록 */
.list-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.list-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.list-title .list-count { font-size: 14px; font-weight: 600; color: var(--text-muted); margin-left: 8px; }
.list-desc { margin: 6px 0 0; font-size: 14.5px; color: var(--text-muted); }
.list-desc:empty { display: none; }
.list-items { list-style: none; margin: 0 0 40px; padding: 0; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-item-title { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.list-item-title a { color: var(--text); }
.list-item-title a:hover { color: var(--accent); }
.list-item .list-cat { flex: 0 0 auto; font-size: 12.5px; color: var(--accent); font-weight: 700; }
.list-item .list-cat:empty { display: none; }
.list-item time { flex: 0 0 auto; font-size: 13px; color: var(--text-light); }
.list-empty { padding: 32px 0; text-align: center; color: var(--text-muted); }
@media (max-width: 640px) {
  .list-item { flex-wrap: wrap; gap: 4px 10px; }
  .list-item-title { flex-basis: 100%; }
}

/* 페이징 */
.paging { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 40px 0 0; font-size: 14.5px; }
.paging a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--radius); color: var(--text); border: 1px solid transparent;
}
.paging a:hover { background: var(--bg-soft); text-decoration: none; }
.paging a:not([href]) { background: var(--accent); color: #fff; font-weight: 700; }
.paging a.no-more-prev, .paging a.no-more-next { visibility: hidden; }

/* --------------------------------------------------------------------------
   Notice / Page / Protected / Guestbook / Tags
   -------------------------------------------------------------------------- */
.protected { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.protected h1 { margin: 0 0 8px; font-size: 22px; }
.protected p { margin: 0 0 14px; color: var(--text-muted); font-size: 15px; }
.protected .field { display: flex; gap: 8px; max-width: 360px; }
.protected input[type="password"] { flex: 1 1 auto; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); }
.protected button { height: 40px; padding: 0 16px; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius); }

.guestbook, .taglog { margin-bottom: 48px; }
.section-title { margin: 0 0 20px; padding-bottom: 12px; font-size: 22px; font-weight: 800; border-bottom: 2px solid var(--accent); }
.taglog ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taglog a { display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 14px; }
.taglog a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.taglog a.cloud1 { font-weight: 800; font-size: 16px; }
.taglog a.cloud2 { font-weight: 700; font-size: 15.5px; }
.taglog a.cloud3 { font-weight: 600; }
.taglog a.cloud4 { color: var(--text-muted); }
.taglog a.cloud5 { color: var(--text-light); font-size: 13px; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.widget { margin-bottom: 32px; font-size: 14.5px; }
.widget-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }
.widget .cnt { margin-left: 4px; font-size: 12px; color: var(--text-light); }

.profile { display: flex; gap: 12px; align-items: flex-start; }
.profile-image { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--bg-soft); }
.profile-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-name { font-weight: 700; margin: 0 0 2px; }
.profile-desc { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.55; }

/* 카테고리 (티스토리 category_list 출력 구조) */
.widget .tt_category { font-size: 14.5px; }
.widget .tt_category ul { list-style: none; margin: 0; padding: 0; }
.widget .tt_category li { padding: 0; border: 0; }
.widget .tt_category .link_tit { display: block; padding: 8px 0; font-weight: 700; border-bottom: 1px solid var(--border); }
.widget .tt_category .category_list > li > .link_item { display: block; padding: 7px 0; border-bottom: 1px solid var(--border); }
.widget .tt_category .sub_category_list > li > .link_item { display: block; padding: 5px 0 5px 14px; font-size: 13.5px; color: var(--text-muted); }
.widget .tt_category .sub_category_list > li > .link_item::before { content: "–"; margin-right: 6px; color: var(--text-light); }
.widget .tt_category .c_cnt { font-size: 12px; color: var(--text-light); margin-left: 3px; }

.recent-item { display: flex; gap: 10px; align-items: center; }
.recent-item .thumb { flex: 0 0 52px; width: 52px; height: 40px; border-radius: 4px; overflow: hidden; background: var(--bg-soft); }
.recent-item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-item .txt { flex: 1 1 auto; min-width: 0; }
.recent-item .title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .date { display: block; font-size: 12px; color: var(--text-light); }

.recent-comment .name { font-weight: 600; font-size: 13px; }
.recent-comment .desc { display: block; color: var(--text-muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a { padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; }
.tag-cloud a:hover { border-color: var(--accent); text-decoration: none; }

.counter { display: flex; gap: 14px; font-size: 13.5px; color: var(--text-muted); }
.counter strong { color: var(--text); font-weight: 700; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); font-size: 13.5px; color: var(--text-muted); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; }
.footer-brand { font-weight: 800; color: var(--text); font-size: 15px; }
.footer-desc { margin: 4px 0 12px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; padding: 0; list-style: none; }
.footer-nav a { color: var(--text); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; padding: 0; list-style: none; }
.footer-links a { color: var(--text-muted); }
.footer-note { margin: 0 0 8px; line-height: 1.6; }
.footer-note:empty { display: none; }
.footer-copy { margin: 0; }

/* 맨 위로 */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 50;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .sidebar, .site-footer, .to-top, .comments, .related, .post-nav, .ad-slot, .toc { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .entry-content a { color: #000; text-decoration: underline; }
}
