/* 학부낑낑이 블로그 스킨 : 왼쪽 카테고리, 위 검색과 light / dark 전환, 유리 패널, 파스텔 배경, 목차 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://cdn.jsdelivr.net/gh/joungkyun/font-d2coding@1.3.2/d2coding.css");

/* ---------------------------------------------------------------- tokens */
:root,
:root[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-image:
    radial-gradient(1100px 620px at 8% -12%, #e6e1ff 0%, rgba(230, 225, 255, 0) 62%),
    radial-gradient(900px 560px at 104% -6%, #d9f4ee 0%, rgba(217, 244, 238, 0) 58%),
    radial-gradient(800px 600px at 60% 120%, #e3ecff 0%, rgba(227, 236, 255, 0) 60%);
  --glass: rgba(255, 255, 255, 0.70);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(255, 255, 255, 0.75);
  --shadow: 0 10px 32px rgba(40, 52, 110, 0.08);
  --blur: 16px;
  --fg: #1c2230;
  --fg-sub: #5a6375;
  --fg-faint: #8b93a3;
  --line: #e2e6ef;
  --line-strong: #c9cfdb;
  --accent: #4b63e6;
  --accent-soft: rgba(75, 99, 230, 0.10);
  --hover: rgba(75, 99, 230, 0.08);
  --code-bg: #f5f7fb;
  --code-fg: #24292f;
  --code-border: #e3e7ef;
  --table-head: #f2f4f9;
  --img-frame: #ffffff;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e1120;
  --bg-image:
    radial-gradient(1100px 620px at 8% -12%, #241f52 0%, rgba(36, 31, 82, 0) 62%),
    radial-gradient(900px 560px at 104% -6%, #0b3a3a 0%, rgba(11, 58, 58, 0) 58%),
    radial-gradient(800px 600px at 60% 120%, #1a2350 0%, rgba(26, 35, 80, 0) 60%);
  --glass: rgba(24, 28, 44, 0.70);
  --glass-strong: rgba(26, 30, 48, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  --fg: #e5e8f1;
  --fg-sub: #a2aabb;
  --fg-faint: #78819a;
  --line: #2a3145;
  --line-strong: #3a4360;
  --accent: #8fa2ff;
  --accent-soft: rgba(143, 162, 255, 0.14);
  --hover: rgba(143, 162, 255, 0.10);
  --code-bg: #141a28;
  --code-fg: #dbe2ef;
  --code-border: #262e44;
  --table-head: #1b2134;
  --img-frame: #ffffff;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-attachment: fixed;
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; height: auto; }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px;
  border-radius: 0; border-left: 0; border-right: 0; border-top: 0;
}
.topbar .menu-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.topbar .menu-btn:hover { background: var(--hover); }
.topbar .menu-btn span, .topbar .menu-btn span::before, .topbar .menu-btn span::after {
  display: block; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; position: relative; content: "";
}
.topbar .menu-btn span::before { position: absolute; top: -6px; }
.topbar .menu-btn span::after { position: absolute; top: 6px; }
.topbar .brand { font-weight: 700; font-size: 17px; white-space: nowrap; letter-spacing: -0.01em; }
.topbar .search { flex: 1; display: flex; justify-content: center; }
.topbar .search form {
  width: min(440px, 100%); height: 38px; display: flex; align-items: center; gap: 8px;
  padding: 0 14px; border-radius: 19px; background: var(--glass-strong); border: 1px solid var(--line);
}
.topbar .search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font: inherit; font-size: 14px; }
.topbar .search svg { width: 16px; height: 16px; stroke: var(--fg-sub); flex: none; }
.theme-btn {
  width: 56px; height: 30px; border-radius: 15px; position: relative; flex: none;
  background: var(--accent-soft); border: 1px solid var(--line);
}
.theme-btn::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #ffc94a; box-shadow: 0 0 0 3px rgba(255, 201, 74, .25);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
:root[data-theme="dark"] .theme-btn::after { transform: translateX(26px); background: #e8ecff; box-shadow: inset -6px -2px 0 0 #8fa2ff; }

/* ---------------------------------------------------------------- sidebar */
.sidebar {
  position: fixed; z-index: 20; top: 60px; left: 0; bottom: 0; width: 248px;
  overflow-y: auto; padding: 18px 14px 32px;
  border-top: 0; border-left: 0; border-bottom: 0;
  transition: transform .25s ease;
}
.sidebar .profile { display: flex; align-items: center; gap: 12px; padding: 6px 8px 16px; }
.sidebar .profile img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--glass-border); }
.sidebar .profile .name { font-weight: 700; font-size: 15px; }
.sidebar .profile .desc { font-size: 12.5px; color: var(--fg-sub); line-height: 1.4; }
.sidebar .nav { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.sidebar .nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14.5px; }
.sidebar .nav a:hover { background: var(--hover); }
.sidebar .nav svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.sidebar h2.side-title { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); margin: 14px 10px 6px; font-weight: 600; }

/* Tistory 카테고리 목록 ([##_category_list_##]) */
.sidebar .tt_category, .sidebar .tt_category ul { list-style: none; margin: 0; padding: 0; }
.sidebar .tt_category a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 9px; font-size: 14px; color: var(--fg); }
.sidebar .tt_category a:hover { background: var(--hover); }
.sidebar .tt_category > li > a { font-weight: 700; }
.sidebar .tt_category ul ul a, .sidebar .tt_category .category_list a { padding-left: 22px; position: relative; }
.sidebar .tt_category .category_list a::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); opacity: .55;
}
.sidebar .tt_category .sub_category_list a { padding-left: 34px; font-size: 13.5px; color: var(--fg-sub); }
.sidebar .tt_category .c_cnt { font-size: 12px; color: var(--fg-faint); font-weight: 500; }
.sidebar .tt_category a.selected, .sidebar .tt_category a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.sidebar .side-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.sidebar .side-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar .side-box li a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 13.5px; color: var(--fg-sub); }
.sidebar .side-box li a:hover { background: var(--hover); color: var(--fg); }
.sidebar .counter { font-size: 12.5px; color: var(--fg-faint); padding: 4px 10px; }
.scrim { display: none; }

/* ---------------------------------------------------------------- main column */
.main { margin-left: 248px; padding: 76px 20px 40px; min-height: 100vh; }
.page { max-width: 1440px; margin: 0 auto; }          /* 글 배경을 넓게 (2026-10-19 사용자 : 낭비되는 부분 없게) */

/* 글 머리 */
.post-head { text-align: center; margin: 4px 0 18px; }
.post-head .cat-pill {
  display: inline-block; padding: 4px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-soft);
}
.post-head h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.32; letter-spacing: -0.02em; margin: 16px 0 12px; font-weight: 800; }
.post-head .meta { font-size: 13.5px; color: var(--fg-sub); }
.post-head .meta span + span::before { content: "|"; margin: 0 10px; color: var(--line-strong); }

.post-card { border-radius: 18px; padding: 30px 36px; }

/* ---------------------------------------------------------------- article body (기존 글의 inline style 과 함께 씀) */
#tt-body-page .tt_article_useless_p_margin {
  font-size: 16.5px; line-height: 1.85; color: var(--fg);
}
#tt-body-page .tt_article_useless_p_margin p { margin: 0 0 2px; }
#tt-body-page .tt_article_useless_p_margin h2 {
  font-size: 1.55em; line-height: 1.4; margin: 2.2em 0 .9em; font-weight: 800; letter-spacing: -0.01em; color: var(--fg);
  border-bottom-color: var(--line-strong) !important;           /* 기존 글의 inline #333333 를 테마 색으로 */
}
#tt-body-page .tt_article_useless_p_margin h3 {
  font-size: 1.25em; line-height: 1.45; margin: 1.8em 0 .7em; font-weight: 700; color: var(--fg);
  padding-left: 12px; border-left: 4px solid var(--accent);
}
#tt-body-page .tt_article_useless_p_margin h4 { font-size: 1.08em; margin: 1.5em 0 .6em; }
#tt-body-page .tt_article_useless_p_margin a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
#tt-body-page .tt_article_useless_p_margin a:hover { border-bottom-color: var(--accent); }
#tt-body-page .tt_article_useless_p_margin b, #tt-body-page .tt_article_useless_p_margin strong { font-weight: 700; color: var(--fg); }
#tt-body-page .tt_article_useless_p_margin ul, #tt-body-page .tt_article_useless_p_margin ol { padding-left: 1.4em; margin: .6em 0; }
#tt-body-page .tt_article_useless_p_margin li { margin: .25em 0; }
#tt-body-page .tt_article_useless_p_margin blockquote {
  margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: var(--fg);
}
#tt-body-page .tt_article_useless_p_margin hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* 캡션 (기존 글 : p[data-ke-size=size14] > span color #888888) */
#tt-body-page .tt_article_useless_p_margin p[data-ke-size="size14"] span[style*="888"] { color: var(--fg-faint) !important; }

/* 그림 : 흰 바탕 PNG 는 테마와 상관없이 흰 판 위에 */
#tt-body-page .tt_article_useless_p_margin figure.imageblock { margin: 1.4em auto .4em; max-width: min(100%, 1000px); text-align: center; }   /* 글은 넓게 쓰되 그림은 1000 에서 멈춤 (1600px 원본이 화면 높이를 넘지 않게) */
#tt-body-page .tt_article_useless_p_margin figure.imageblock img {
  border-radius: 12px; background: var(--img-frame); border: 1px solid var(--line); max-width: 100%; height: auto;
}
:root[data-theme="dark"] #tt-body-page .tt_article_useless_p_margin figure.imageblock img { border-color: transparent; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }

/* 표 */
#tt-body-page .tt_article_useless_p_margin table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .94em; }
#tt-body-page .tt_article_useless_p_margin th, #tt-body-page .tt_article_useless_p_margin td { border: 1px solid var(--line) !important; padding: 8px 12px; vertical-align: top; }
#tt-body-page .tt_article_useless_p_margin thead th, #tt-body-page .tt_article_useless_p_margin tr:first-child th { background: var(--table-head); font-weight: 700; }
#tt-body-page .tt_article_useless_p_margin td { background: transparent; color: var(--fg); }

/* 코드 블록 : 편집기 창 꼴 (제목 줄의 점 셋, 언어, Copy, 줄 번호). 2026-10-19 사용자 "코드를 스킨 입히듯이"
   Tistory 는 highlight.js 10.7.3 + atom-one-light 를 강제로 넣고 언어를 자동으로 고르므로(Verilog 가 objectivec 로 잡힘),
   skin.html 의 script 가 data-ke-language 로 언어를 정해 다시 칠한다. 색은 테마와 상관없이 어두운 편집기 색 */
#tt-body-page .tt_article_useless_p_margin .code-card {
  margin: 1.2em 0; border-radius: 12px; overflow: hidden; background: #1e1e1e; border: 1px solid #2b2b2b;
  box-shadow: 0 6px 22px rgba(15, 20, 40, .16);
}
#tt-body-page .tt_article_useless_p_margin .code-head {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; background: #2d2d30; border-bottom: 1px solid #252526;
  font-family: "Pretendard Variable", sans-serif;
}
#tt-body-page .tt_article_useless_p_margin .code-head .dots { display: flex; gap: 6px; }
#tt-body-page .tt_article_useless_p_margin .code-head .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #ff5f57; }
#tt-body-page .tt_article_useless_p_margin .code-head .dots i:nth-child(2) { background: #febc2e; }
#tt-body-page .tt_article_useless_p_margin .code-head .dots i:nth-child(3) { background: #28c840; }
#tt-body-page .tt_article_useless_p_margin .code-head .lang { flex: 1; font-size: 12px; color: #a0a4ab; letter-spacing: .03em; }
#tt-body-page .tt_article_useless_p_margin .code-head .copy {
  font-size: 12px; color: #c8ccd4; padding: 3px 10px; border-radius: 6px; border: 1px solid #3c3c3c; background: transparent;
}
#tt-body-page .tt_article_useless_p_margin .code-head .copy:hover { background: #3a3d41; }
#tt-body-page .tt_article_useless_p_margin pre {
  position: relative; margin: 1.1em 0; padding: 0; border-radius: 12px; overflow: hidden;
  background: #1e1e1e !important; border: 1px solid #2b2b2b;
}
#tt-body-page .tt_article_useless_p_margin .code-card pre { margin: 0; border: 0; border-radius: 0; }
#tt-body-page .tt_article_useless_p_margin pre code, #tt-body-page .tt_article_useless_p_margin pre code.hljs {
  display: block; overflow-x: auto; padding: 14px 18px; background: transparent !important; color: #d4d4d4 !important;
  font-family: "D2 coding", D2Coding, "JetBrains Mono", Consolas, monospace; font-size: 14px; line-height: 1.65; tab-size: 4;
}
#tt-body-page .tt_article_useless_p_margin pre.has-ln code { padding-left: 58px; }
#tt-body-page .tt_article_useless_p_margin pre .ln {
  position: absolute; top: 14px; left: 0; width: 44px; padding-right: 10px; text-align: right; white-space: pre; user-select: none;
  font-family: "D2 coding", D2Coding, Consolas, monospace; font-size: 14px; line-height: 1.65; color: #6e7681; border-right: 1px solid #2f2f2f;
}
#tt-body-page .tt_article_useless_p_margin pre::selection, #tt-body-page .tt_article_useless_p_margin pre code ::selection { background: #264f78; }
/* VS Code Dark+ 에 가까운 토큰 색 (atom-one-light 를 덮음) */
#tt-body-page .tt_article_useless_p_margin pre .hljs-keyword, #tt-body-page .tt_article_useless_p_margin pre .hljs-selector-tag { color: #569cd6 !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-built_in, #tt-body-page .tt_article_useless_p_margin pre .hljs-name { color: #4fc1ff !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-type, #tt-body-page .tt_article_useless_p_margin pre .hljs-class .hljs-title { color: #4ec9b0 !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-title, #tt-body-page .tt_article_useless_p_margin pre .hljs-title.function_ { color: #dcdcaa !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-string, #tt-body-page .tt_article_useless_p_margin pre .hljs-regexp { color: #ce9178 !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-number, #tt-body-page .tt_article_useless_p_margin pre .hljs-literal { color: #b5cea8 !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-comment, #tt-body-page .tt_article_useless_p_margin pre .hljs-quote { color: #6a9955 !important; font-style: italic; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-meta, #tt-body-page .tt_article_useless_p_margin pre .hljs-meta-keyword { color: #c586c0 !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-variable, #tt-body-page .tt_article_useless_p_margin pre .hljs-attr,
#tt-body-page .tt_article_useless_p_margin pre .hljs-params, #tt-body-page .tt_article_useless_p_margin pre .hljs-attribute { color: #9cdcfe !important; }
#tt-body-page .tt_article_useless_p_margin pre .hljs-symbol, #tt-body-page .tt_article_useless_p_margin pre .hljs-bullet,
#tt-body-page .tt_article_useless_p_margin pre .hljs-link { color: #d7ba7d !important; }
#tt-body-page .tt_article_useless_p_margin pre [class^="hljs-"] { background: transparent !important; }

/* 수식 (MathJax) 이 줄을 넘기면 가로로 넘김 */
#tt-body-page .tt_article_useless_p_margin mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; }

/* ---------------------------------------------------------------- 태그, 이전 / 다음, 댓글 */
.post-tags { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; }
.post-tags a { font-size: 13px; padding: 4px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 0; }
.post-nav a { display: block; padding: 14px 18px; border-radius: 14px; font-size: 14px; }
.post-nav a small { display: block; color: var(--fg-faint); font-size: 12px; margin-bottom: 4px; }
.post-nav a:hover { background: var(--glass-strong); }
.comments { margin-top: 26px; border-radius: 20px; padding: 26px 30px; }

/* ---------------------------------------------------------------- 목록 (홈, 카테고리, 검색) */
.list-head { margin: 4px 0 18px; display: flex; align-items: baseline; gap: 10px; }
.list-head h1 { font-size: 24px; margin: 0; font-weight: 800; }
.list-head .count { color: var(--fg-faint); font-size: 14px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-item a.card { display: flex; gap: 18px; padding: 20px 22px; border-radius: 18px; transition: transform .15s ease, background .15s ease; }
.post-item a.card:hover { transform: translateY(-2px); background: var(--glass-strong); }
.post-item .txt { flex: 1; min-width: 0; }
.post-item .cat { font-size: 12px; font-weight: 600; color: var(--accent); }
.post-item .title { font-size: 18px; font-weight: 700; line-height: 1.45; margin: 4px 0 6px; }
.post-item .summary { font-size: 14px; color: var(--fg-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-item .date { font-size: 12.5px; color: var(--fg-faint); margin-top: 8px; }
.post-item .thumb { flex: none; width: 132px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--img-frame); }
.post-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.paging { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 0; flex-wrap: wrap; }
.paging a, .paging span.num { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; font-size: 14px; }
.paging a:hover { background: var(--hover); }
.paging a:has(span.selected) { background: var(--accent); color: #fff; }
.paging a span.selected { color: #fff; font-weight: 700; }
.paging .no-more-prev, .paging .no-more-next { visibility: hidden; }

.list-empty { padding: 28px; border-radius: 16px; text-align: center; color: var(--fg-sub); }
.tag-cloud { padding: 22px 24px; border-radius: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { padding: 4px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.tag-cloud a.cloud1 { font-size: 18px; font-weight: 700; }
.tag-cloud a.cloud2 { font-size: 16px; font-weight: 600; }
.post-head .admin a { color: var(--accent); }
.protected form { display: flex; gap: 8px; margin-top: 10px; }
.protected input { flex: 1; max-width: 280px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--fg); }
.protected button { height: 38px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- 목차 */
.toc { font-size: 13.5px; }
.toc .toc-title { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 4px 10px; border-left: 2px solid var(--line); color: var(--fg-sub); line-height: 1.45; }
.toc li.h3 a { padding-left: 22px; font-size: 13px; }
.toc li a:hover { color: var(--fg); }
.toc li a.active { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }
.toc-side { display: none; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.toc-side.has-items { display: block; }
.toc-inline { margin: 0 0 18px; border-radius: 14px; padding: 12px 16px; display: none; }
.toc-inline summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.toc-inline ol { margin-top: 10px; }
@media (max-width: 1024px) { .toc-inline.has-items { display: block; } }

/* ---------------------------------------------------------------- footer */
.footer { margin-left: 248px; padding: 0 20px 28px; text-align: center; color: var(--fg-faint); font-size: 12.5px; }

/* ---------------------------------------------------------------- 좁은 화면 : 사이드바를 서랍으로 */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow); }
  body.nav-open .scrim { display: block; position: fixed; inset: 60px 0 0 0; z-index: 15; background: rgba(10, 14, 28, .35); }
  .main, .footer { margin-left: 0; }
  .main { padding: 72px 8px 32px; }
  .post-card { padding: 18px 14px; border-radius: 14px; }
  .comments { padding: 20px 18px; }
}
@media (min-width: 1025px) {
  .topbar .menu-btn { display: none; }
  body.nav-closed .sidebar { transform: translateX(-100%); }
  body.nav-closed .main, body.nav-closed .footer { margin-left: 0; }
}
@media (max-width: 600px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .topbar .brand { display: none; }
  #tt-body-page .tt_article_useless_p_margin { font-size: 16px; }
  .post-item a.card { flex-direction: column; }
  .post-item .thumb { width: 100%; height: 160px; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
