@charset "utf-8";
/* =========================================================
   실무대리 사원증 노트 스킨 — style.css
   ---------------------------------------------------------
   1. 토큰 / 기본
   2. 헤더 · 인덱스 탭 · 드로어
   3. 홈 히어로 (사원증 + 노트)
   4. 홈 커버
   5. 목록
   6. 글 화면
   7. 글 서식 컴포넌트 (dg-*)  ← 자동화 글에서 사용
   8. 사이드바 · 페이징 · 푸터
   9. 반응형
   ========================================================= */

/* ---------- 1. 토큰 / 기본 ---------- */
:root {
  --brand: #E8663D;
  --brand-ink: #B8461F;
  --paper: #FAF7F0;
  --paper-2: #F3EEE2;
  --card: #FFFFFF;
  --ink: #26303B;
  --ink-2: #56606C;
  --ink-3: #8A929C;
  --line: #E6DFD0;
  --rule: #ECE5D6;

  --excel: #1D7A46;  --excel-bg: #E6F4EC;
  --hwp:   #1480B8;  --hwp-bg:   #E4F2FA;
  --word:  #2B57A6;  --word-bg:  #E8EEF9;
  --memo:  #FFE27A;  --memo-bg:  #FFF7D1;
  --warn:  #D9434A;  --warn-bg:  #FDEDED;

  --radius: 14px;
  --shadow: 0 1px 0 rgba(38,48,59,.04), 0 8px 22px -12px rgba(38,48,59,.22);
  --shadow-lift: 0 2px 0 rgba(38,48,59,.05), 0 14px 30px -14px rgba(38,48,59,.30);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --hand: "Nanum Pen Script", "Pretendard Variable", cursive;
  --mono: "D2Coding", "JetBrains Mono", Consolas, "SFMono-Regular", Menlo, monospace;

  --wrap: 1140px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(38,48,59,.07) 1px, transparent 1.2px);
  background-size: 22px 22px;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hand { font-family: var(--hand); font-weight: 400; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* 프로그램 색 (JS가 data-program 부여) */
[data-program="excel"] { --pc: var(--excel); --pc-bg: var(--excel-bg); }
[data-program="hwp"]   { --pc: var(--hwp);   --pc-bg: var(--hwp-bg); }
[data-program="word"]  { --pc: var(--word);  --pc-bg: var(--word-bg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 0; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px var(--brand); }
.btn-excel { background: var(--excel); color: #fff; }
.btn-hwp   { background: var(--hwp);   color: #fff; }
.btn-word  { background: var(--word);  color: #fff; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--paper-2); }

.cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: -.01em;
  color: var(--pc, var(--ink-2)); background: var(--pc-bg, var(--paper-2));
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.cat-chip.sm { height: 20px; padding: 0 7px; font-size: 11.5px; }
.chip-notice { color: var(--brand-ink); background: #FFEFE6; }

/* 읽기 진행 막대 */
.dg-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--brand); z-index: 200; transition: width .08s linear;
}

/* ---------- 2. 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,240,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 12px;
}
.menu-btn { margin-left: -8px; }
.logo { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.logo-badge { color: var(--brand); display: inline-flex; }
.logo-text { font-size: 19px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-search { margin-left: auto; width: min(340px, 42vw); }
.search-form {
  display: flex; align-items: center; height: 42px; padding: 0 6px 0 16px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--ink); }
.search-form input::placeholder { color: var(--ink-3); }
.search-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.search-btn:hover { background: var(--paper-2); color: var(--brand); }

/* 인덱스 탭 (노트 옆 색인 탭 느낌) */
.index-tabs { border-bottom: 2px solid var(--ink); }
.tabs-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: flex-end; gap: 6px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px 8px; margin-bottom: -2px;
  font-weight: 700; font-size: 15px; color: var(--ink-2);
  background: var(--paper-2); border: 2px solid var(--ink); border-bottom: 0;
  border-radius: 12px 12px 0 0; white-space: nowrap;
  transition: background .15s ease, color .15s ease, padding .15s ease;
}
.tab:hover, .tab.is-active { background: var(--card); color: var(--ink); padding-top: 12px; }
.tab.is-active { border-bottom: 2px solid var(--card); }
.tab-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tab-excel .tab-dot { background: var(--excel); }
.tab-hwp   .tab-dot { background: var(--hwp); }
.tab-word  .tab-dot { background: var(--word); }
.tab-excel:hover, .tab-excel.is-active { box-shadow: inset 0 4px 0 var(--excel); }
.tab-hwp:hover,   .tab-hwp.is-active   { box-shadow: inset 0 4px 0 var(--hwp); }
.tab-word:hover,  .tab-word.is-active  { box-shadow: inset 0 4px 0 var(--word); }

.tab-menu { margin-left: auto; padding-bottom: 9px; }
.tab-menu ul { display: flex; gap: 2px; list-style: none; }
.tab-menu li a { display: block; padding: 4px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tab-menu li a:hover { color: var(--brand); background: var(--card); }

/* 드로어 */
.drawer-dim { position: fixed; inset: 0; background: rgba(20,24,30,.38); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 300; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw);
  background: var(--card); z-index: 310; overflow-y: auto;
  transform: translateX(-102%); transition: transform .25s ease;
  box-shadow: 10px 0 30px -12px rgba(0,0,0,.25);
  padding: 0 18px 30px;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-dim { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { position: sticky; top: 0; background: var(--card); display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.drawer-head strong { font-size: 17px; }
.drawer-menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.drawer-menu li a { display: block; padding: 6px 12px; background: var(--paper-2); border-radius: 8px; font-size: 14px; font-weight: 600; }
.drawer-cate { padding-top: 10px; }

/* 티스토리 카테고리 트리 공통 */
.tt_category { list-style: none; }
.tt_category ul { list-style: none; }
.tt_category .link_tit { display: block; padding: 8px 4px; font-weight: 800; font-size: 15px; }
.tt_category .category_list > li { border-top: 1px solid var(--rule); }
.tt_category .link_item { display: flex; align-items: center; gap: 6px; padding: 10px 4px; font-weight: 700; font-size: 15px; }
.tt_category .link_item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc, var(--ink-3)); flex: none; }
.tt_category .sub_category_list { padding: 0 0 8px 18px; }
.tt_category .link_sub_item { display: block; padding: 5px 4px; font-size: 14px; color: var(--ink-2); }
.tt_category a:hover { color: var(--brand); }
.tt_category .c_cnt { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.tt_category .c_cnt img, .tt_category img { display: none; }

/* ---------- 3. 홈 히어로 ---------- */
.hero { display: none; }
#tt-body-index .hero { display: block; }
.hero-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 12px;
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: center;
}

/* 사원증 */
.id-card {
  position: relative; margin-top: 34px;
  background: var(--card); border-radius: 18px; border: 2px solid var(--ink);
  box-shadow: 6px 8px 0 rgba(38,48,59,.10);
  transform: rotate(-2.2deg);
  transition: transform .3s ease;
}
.id-card:hover { transform: rotate(0deg) translateY(-2px); }
.lanyard {
  position: absolute; left: 50%; top: -70px; width: 34px; height: 70px; transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, var(--brand) 0 10px, color-mix(in srgb, var(--brand) 78%, #000) 10px 12px);
  border-radius: 3px 3px 0 0;
}
.clip {
  position: absolute; left: 50%; top: -14px; width: 54px; height: 22px; transform: translateX(-50%);
  background: #C9CED6; border: 2px solid var(--ink); border-radius: 7px;
}
.clip::after { content: ""; position: absolute; left: 50%; top: 5px; width: 22px; height: 6px; transform: translateX(-50%); background: var(--card); border: 2px solid var(--ink); border-radius: 4px; }
.id-top {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 18px 18px 12px; border-radius: 16px 16px 0 0;
  background: var(--brand); color: #fff;
}
.id-company { font-weight: 800; font-size: 14px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .85; flex: none; }
.id-body { display: flex; gap: 16px; padding: 18px; align-items: center; }
.id-photo {
  flex: none; width: 88px; height: 108px; border-radius: 10px; overflow: hidden;
  background: var(--paper-2); border: 2px solid var(--ink);
  display: grid; place-items: center;
}
.id-photo img { width: 100%; height: 100%; object-fit: cover; }
.id-photo.no-img::before, .id-photo:empty::before {
  content: ""; width: 44px; height: 54px;
  background:
    radial-gradient(circle at 50% 30%, var(--ink-3) 0 13px, transparent 14px),
    radial-gradient(ellipse at 50% 100%, var(--ink-3) 0 26px, transparent 27px);
  opacity: .55;
}
.id-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.id-team { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.id-name { font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.id-name em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--brand); margin-left: 2px; }
.id-skill { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.sk { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; color: #fff; }
.sk-excel { background: var(--excel); } .sk-hwp { background: var(--hwp); } .sk-word { background: var(--word); }
.id-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 16px; border-top: 2px dashed var(--line); }
.barcode {
  width: 110px; height: 26px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px);
}
.id-no { font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: .04em; white-space: nowrap; }

/* 줄노트 */
.hero-note {
  position: relative; padding: 26px 30px 28px 52px;
  background-color: var(--card);
  background-image:
    linear-gradient(90deg, transparent 34px, rgba(232,102,61,.35) 34px 36px, transparent 36px),
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px);
  background-position: 0 0, 0 18px;
  border-radius: 6px 18px 18px 6px;
  box-shadow: var(--shadow);
}
.note-label { display: inline-block; font-size: 24px; color: var(--brand); transform: rotate(-2deg); background: linear-gradient(transparent 60%, var(--memo) 60%); padding: 0 4px; }
.hero-motto { margin: 8px 0 6px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; letter-spacing: -.035em; line-height: 1.35; }
.hero-desc { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 4. 레이아웃 + 홈 커버 ---------- */
.layout {
  max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 60px;
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start;
}
.content { min-width: 0; }
.covers { display: flex; flex-direction: column; gap: 44px; }
.cover-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cover-title { margin: 0 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.cover-head .cover-title { margin: 0; }
.cover-title .hand, .cover-guide .cover-title .hand { font-size: 30px; }
.more { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.more:hover { color: var(--brand); }

/* 시작 가이드: 포스트잇 */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.guide-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 150px;
  padding: 26px 20px 18px; border-radius: 4px 4px 16px 4px;
  background: var(--pc-bg, var(--memo-bg));
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.guide-card:nth-child(3n+1) { transform: rotate(-1.2deg); }
.guide-card:nth-child(3n+2) { transform: rotate(.8deg); }
.guide-card:nth-child(3n)   { transform: rotate(-.4deg); }
.guide-card:hover { transform: rotate(0) translateY(-3px); box-shadow: var(--shadow-lift); }
.guide-pin { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%); border-radius: 50%; background: var(--pc, var(--brand)); box-shadow: inset -3px -3px 0 rgba(0,0,0,.18), 0 3px 4px rgba(0,0,0,.18); }
.guide-card strong { font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: var(--pc, var(--ink)); }
.guide-card > span:not(.guide-pin) { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.guide-go { margin-top: auto; font-style: normal; font-size: 13px; font-weight: 700; color: var(--pc, var(--brand)); }

/* 카드 그리드 */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.card-thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.thumb-ph {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 24px 18px;
}
.thumb-ph::after { content: "치트키"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--hand); font-size: 30px; color: var(--ink-3); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card-body .cat-chip { align-self: flex-start; }
.card-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title:hover { color: var(--brand); }
.card-sum { margin: 0; font-size: 14px; color: var(--ink-2); }
.card-date { margin-top: auto; font-size: 12.5px; color: var(--ink-3); }

/* 번호 목록 */
.num-list { list-style: none; counter-reset: n; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.num-list li { counter-increment: n; border-bottom: 1px dashed var(--line); }
.num-list li:last-child { border-bottom: 0; }
.num-list a { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 13px 0; }
.num-list a::before { content: counter(n); grid-row: span 2; font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--brand); }
.num-title { font-weight: 700; font-size: 15.5px; }
.num-list a:hover .num-title { color: var(--brand); }
.num-meta { font-size: 12.5px; color: var(--ink-3); }

/* 다운로드 배너 (쿠폰형) */
.dl-banner {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  background: var(--memo-bg); border: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 16px;
  transition: transform .2s ease;
}
.dl-banner:hover { transform: translateY(-2px); }
.dl-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: var(--memo); }
.dl-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-kicker { font-size: 22px; color: var(--brand-ink); line-height: 1.1; }
.dl-text strong { font-size: 18px; font-weight: 800; }
.dl-text span:last-child { font-size: 14px; color: var(--ink-2); }
.dl-go { margin-left: auto; flex: none; font-weight: 800; font-size: 14px; color: var(--ink); background: var(--memo); padding: 9px 14px; border-radius: 999px; }

/* ---------- 5. 목록 ---------- */
.list-head { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.list-kicker { font-size: 22px; color: var(--brand); }
.list-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.035em; color: var(--pc, var(--ink)); }
.list-count { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.list-count b { color: var(--brand); }
.empty { padding: 40px 0; text-align: center; color: var(--ink-3); }

.post-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.post-item .item-link, .index-item .item-link {
  display: flex; gap: 18px; align-items: center; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.index-item { margin-bottom: 12px; }
.item-link:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.item-text { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.item-text .cat-chip { align-self: flex-start; }
.item-title { font-size: 18px; font-weight: 700; letter-spacing: -.025em; line-height: 1.45; }
.item-link:hover .item-title { color: var(--brand); }
.item-sum { margin: 0; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-date { font-size: 12.5px; color: var(--ink-3); }
.item-thumb { flex: none; width: 150px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 6. 글 화면 ---------- */
.post { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px 44px; box-shadow: var(--shadow); }
.post-head { padding-bottom: 22px; margin-bottom: 28px; border-bottom: 2px dashed var(--line); }
.post-title { margin: 12px 0 14px; font-size: clamp(25px, 3.4vw, 33px); font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.meta-author { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.mini-badge { width: 16px; height: 20px; border: 2px solid var(--ink); border-radius: 4px; background: linear-gradient(var(--brand) 0 6px, var(--card) 6px); position: relative; }
.mini-badge::before { content: ""; position: absolute; left: 50%; top: -6px; width: 6px; height: 5px; transform: translateX(-50%); background: var(--ink); border-radius: 2px; }
.meta-date::before, .meta-rp::before { content: "·"; margin-right: 14px; color: var(--ink-3); }
.admin-bar { margin-top: 12px; display: flex; gap: 10px; font-size: 13px; }
.admin-bar a { color: var(--ink-3); text-decoration: underline; }

/* 본문 타이포 */
.article-view { font-size: 17px; line-height: 1.85; letter-spacing: -.005em; color: var(--ink); }
.article-view p { margin: 0 0 1.05em; }
.article-view h2, .article-view h3, .article-view h4 { letter-spacing: -.03em; line-height: 1.4; scroll-margin-top: 90px; }
.article-view h2 {
  margin: 2.2em 0 .8em; padding: 0 0 10px; font-size: 25px; font-weight: 800;
  border-bottom: 2px solid var(--ink); position: relative;
}
.article-view h2::before { content: ""; display: inline-block; width: 10px; height: 22px; margin-right: 10px; vertical-align: -3px; background: var(--brand); border-radius: 2px; }
.article-view h3 { position: relative; margin: 1.8em 0 .6em; padding-left: 22px; font-size: 21px; font-weight: 800; }
.article-view h3::before { content: ""; position: absolute; left: 0; top: .38em; width: 13px; height: 13px; border-radius: 3px; background: var(--memo); border: 2px solid var(--ink); }
.article-view h4 { margin: 1.6em 0 .5em; font-size: 18.5px; font-weight: 800; color: var(--ink-2); }
.article-view a:not(.dg-btn) { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-view strong, .article-view b { font-weight: 800; }
.article-view mark, .article-view .dg-hl { background: linear-gradient(transparent 55%, var(--memo) 55%); color: inherit; padding: 0 2px; }
.article-view ul, .article-view ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article-view li { margin: .3em 0; }
.article-view li::marker { color: var(--brand); font-weight: 700; }
.article-view blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--ink);
  background: var(--paper); border-radius: 0 10px 10px 0; color: var(--ink-2);
}
.article-view hr { border: 0; border-top: 2px dashed var(--line); margin: 2.2em 0; }
.article-view img { border-radius: 10px; }
.article-view figure { margin: 1.4em 0; }
.article-view figure.imageblock img, .article-view .imageblock img { border: 1px solid var(--line); }
.article-view figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-3); text-align: center; }
.article-view code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; color: var(--brand-ink); }
.article-view pre { overflow-x: auto; padding: 16px 18px; border-radius: 12px; background: #1F2630; color: #E8ECF1; font-size: 14.5px; line-height: 1.6; }
.article-view pre code { background: none; color: inherit; padding: 0; }
.article-view kbd {
  display: inline-block; min-width: 26px; padding: 1px 8px; margin: 0 1px;
  font-family: var(--font); font-size: .82em; font-weight: 700; line-height: 1.7; text-align: center;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-bottom-width: 3.5px; border-radius: 6px;
  vertical-align: 1px;
}
.article-view table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15.5px; line-height: 1.55; }
.article-view th, .article-view td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.article-view th, .article-view thead td { background: var(--paper-2); font-weight: 800; }
.article-view .table-wrap, .article-view .dg-table { overflow-x: auto; }

/* 자동 목차 */
.dg-toc {
  margin: 0 0 2em; padding: 18px 22px 16px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--line);
}
.dg-toc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dg-toc-title { font-family: var(--hand); font-size: 26px; line-height: 1; color: var(--ink); }
.dg-toc-toggle { border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 4px 6px; }
.dg-toc ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: toc; }
.dg-toc li { margin: 0; }
.dg-toc li.lv2 { counter-increment: toc; }
.dg-toc a { display: block; padding: 5px 0; font-size: 15px; font-weight: 600; color: var(--ink-2) !important; text-decoration: none !important; }
.dg-toc li.lv2 > a::before { content: counter(toc) ". "; color: var(--brand); font-weight: 800; }
.dg-toc li.lv3 > a { padding-left: 20px; font-size: 14px; font-weight: 500; }
.dg-toc a:hover, .dg-toc a.is-current { color: var(--brand) !important; }
.dg-toc.is-folded ol { display: none; }

/* 태그 · 작성자 카드 · 관련글 · 이전/다음 */
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 36px 0 0; font-size: 14px; }
.tags-label { font-weight: 800; margin-right: 4px; }
.post-tags a { padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.post-tags a:hover { background: var(--brand); color: #fff; }

.author-card {
  display: flex; align-items: center; gap: 18px; margin: 32px 0 0; padding: 20px 22px;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
}
.ac-badge { position: relative; flex: none; width: 64px; height: 78px; border: 2px solid var(--ink); border-radius: 10px; background: linear-gradient(var(--brand) 0 16px, var(--card) 16px); display: grid; place-items: end center; padding-bottom: 8px; }
.ac-clip { position: absolute; top: -9px; left: 50%; width: 22px; height: 12px; transform: translateX(-50%); background: #C9CED6; border: 2px solid var(--ink); border-radius: 4px; }
.ac-photo { width: 40px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.ac-photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-text { flex: 1; min-width: 0; }
.ac-team { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.ac-text strong { display: block; font-size: 18px; font-weight: 800; }
.ac-text p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ac-more { flex: none; height: 38px; font-size: 14px; }

.related { margin-top: 40px; }
.related-title { font-size: 19px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.03em; }
.related-title .hand { font-size: 25px; color: var(--brand); font-weight: 400; }
.related-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.related-list a { display: flex; flex-direction: column; gap: 6px; }
.rel-thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper-2) repeating-linear-gradient(to bottom, transparent 0 17px, var(--rule) 17px 18px); border: 1px solid var(--line); }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-title { font-size: 14.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-list a:hover .rel-title { color: var(--brand); }
.rel-date { font-size: 12px; color: var(--ink-3); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); min-width: 0; }
.pn span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.pn strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn:hover { border-color: var(--brand); }
.pn-next { text-align: right; grid-column: 2; }

.comments { margin-top: 40px; padding-top: 24px; border-top: 2px dashed var(--line); }
.comments .tt-btn_register, .guestbook .tt-btn_register { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; border-radius: 999px !important; }

.protected-box { padding: 24px; text-align: center; background: var(--paper); border-radius: 14px; }
.protected-form { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.protected-form input { height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; }

/* 티스토리 자동 삽입 영역 정리 */
.article-view .another_category { margin-top: 2em !important; border-radius: 12px; }
.article-view .container_postbtn { margin-top: 28px; }

/* ---------- 7. 글 서식 컴포넌트 (dg-*) ---------- */
.dg-label {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px !important;
  font-size: 13px !important; font-weight: 800; letter-spacing: .02em; line-height: 1.4 !important;
}

/* 이 글의 치트키 (요약) */
.dg-summary {
  position: relative; margin: 0 0 2em; padding: 22px 24px 18px;
  background-color: var(--memo-bg);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(38,48,59,.07) 31px 32px);
  background-position: 0 8px;
  border-radius: 4px 4px 18px 4px; box-shadow: var(--shadow);
}
.dg-summary::before { content: ""; position: absolute; top: -10px; left: 28px; width: 80px; height: 20px; background: rgba(255,255,255,.65); border: 1px solid rgba(38,48,59,.08); transform: rotate(-3deg); }
.dg-summary .dg-label { font-family: var(--hand); font-size: 25px !important; font-weight: 400; color: var(--brand-ink); letter-spacing: 0; }
.dg-summary ul, .dg-summary ol { margin: 0; padding-left: 0; list-style: none; }
.dg-summary li { position: relative; padding-left: 28px; margin: .35em 0; font-weight: 600; }
.dg-summary li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 4px; background: var(--card); }
.dg-summary li::after { content: ""; position: absolute; left: 7px; top: .45em; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 3px 3px 0; transform: rotate(40deg); }

/* STEP 박스 */
.dg-step {
  position: relative; margin: 1.6em 0; padding: 20px 22px 8px 22px;
  background: var(--card); border: 1.5px solid var(--line); border-left: 5px solid var(--pc, var(--brand));
  border-radius: 6px 14px 14px 6px;
}
.dg-step-no {
  display: inline-block; margin: 0 0 6px !important; padding: 2px 10px;
  font-size: 12.5px !important; font-weight: 900; letter-spacing: .08em; line-height: 1.6 !important;
  color: #fff; background: var(--pc, var(--brand)); border-radius: 6px;
}
.dg-step-title { margin: 0 0 8px !important; font-size: 18.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.45 !important; }

/* TIP / 주의 / 참고 */
.dg-tip, .dg-warn, .dg-note {
  position: relative; margin: 1.5em 0; padding: 16px 20px 6px 56px; border-radius: 12px;
}
.dg-tip::before, .dg-warn::before, .dg-note::before {
  position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 15px; line-height: 1;
}
.dg-tip  { background: var(--memo-bg); border: 1.5px solid color-mix(in srgb, var(--memo) 80%, #b58b00); }
.dg-tip::before  { content: "!"; background: var(--memo); color: var(--ink); border: 2px solid var(--ink); }
.dg-tip .dg-label { color: #8a6400; }
.dg-warn { background: var(--warn-bg); border: 1.5px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.dg-warn::before { content: "×"; background: var(--warn); color: #fff; font-size: 19px; }
.dg-warn .dg-label { color: var(--warn); }
.dg-note { background: var(--paper); border: 1.5px solid var(--line); }
.dg-note::before { content: "i"; background: var(--ink); color: #fff; font-family: Georgia, serif; font-style: italic; }
.dg-note .dg-label { color: var(--ink-2); }

/* 수식 / 함수 */
.dg-formula {
  position: relative; margin: 1.4em 0; padding: 14px 18px 16px;
  background: #1F2630; color: #E8ECF1; border-radius: 12px;
}
.dg-formula .dg-label { color: #9FE0B8; }
.dg-formula code, .dg-formula .dg-code {
  display: block; margin: 0; padding: 0 64px 0 0; background: none !important;
  font-family: var(--mono); font-size: 16px; line-height: 1.6; color: #FFFFFF !important;
  white-space: pre-wrap; word-break: break-all;
}
.dg-copy {
  position: absolute; top: 12px; right: 12px; height: 30px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.08);
  color: #fff; font-size: 12.5px; font-weight: 700;
}
.dg-copy:hover { background: rgba(255,255,255,.18); }
.dg-copy.is-done { background: #2E9D5B; border-color: #2E9D5B; }

/* 예제 파일 다운로드 */
.dg-download {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 18px;
  margin: 1.8em 0; padding: 18px 22px;
  background: var(--card); border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 14px;
}
.dg-download > * { grid-column: 1; margin: 0 !important; }
.dg-download > .dg-label { color: var(--brand-ink); }
.dg-download > p:not(.dg-label) { font-size: 15.5px; }
.dg-download > .dg-btn { grid-column: 2; grid-row: 1 / span 2; }
.dg-download figure, .dg-download .fileblock { grid-column: 1 / -1; margin-top: 8px !important; }
.dg-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--memo) !important; border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none !important;
}
.dg-btn::before { content: "↓"; font-size: 17px; }
.dg-btn:hover { background: var(--brand); color: #fff !important; }

/* 전/후 비교 */
.dg-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.6em 0; }
.dg-compare > div { padding: 12px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); min-width: 0; }
.dg-compare > div:last-child { border-color: var(--pc, var(--brand)); background: var(--card); }
.dg-compare .dg-label { color: var(--ink-3); }
.dg-compare > div:last-child .dg-label { color: var(--pc, var(--brand)); }
.dg-compare p { margin: 0 0 .5em; }
.dg-compare figure { margin: 0 !important; }

/* 단축키 행 */
.dg-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 1.2em 0; padding: 14px 18px; background: var(--paper); border-radius: 12px; }
.dg-keys p { margin: 0 !important; }

/* 마무리 */
.dg-outro {
  margin: 2.4em 0 0; padding: 20px 22px; border-radius: 14px;
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(38,48,59,.08);
}
.dg-outro .dg-label { font-family: var(--hand); font-size: 25px !important; font-weight: 400; color: var(--brand); letter-spacing: 0; }
.dg-outro p:last-child { margin-bottom: 0; }

/* ---------- 8. 사이드바 · 페이징 · 태그 · 푸터 ---------- */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 124px; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.side-title { margin: 0 0 10px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.side-title .hand { font-size: 22px; font-weight: 400; color: var(--brand); }

.side-profile { position: relative; text-align: center; padding-top: 28px; border: 2px solid var(--ink); background: linear-gradient(var(--brand) 0 58px, var(--card) 58px); }
.sp-clip { position: absolute; top: -10px; left: 50%; width: 38px; height: 16px; transform: translateX(-50%); background: #C9CED6; border: 2px solid var(--ink); border-radius: 5px; }
.sp-photo { display: block; width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; border: 3px solid var(--card); background: var(--paper-2); box-shadow: 0 0 0 2px var(--ink); }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; }
.sp-name { display: block; font-size: 18px; font-weight: 800; }
.sp-name em { font-style: normal; font-size: 13px; color: var(--brand); }
.sp-team { font-size: 12.5px; color: var(--ink-2); }
.sp-desc { margin: 10px 0 2px; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

.rank-list { list-style: none; counter-reset: r; }
.rank-list li { counter-increment: r; border-top: 1px dashed var(--line); }
.rank-list li:first-child { border-top: 0; }
.rank-list a { display: grid; grid-template-columns: 24px 1fr; gap: 6px; padding: 9px 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.rank-list a::before { content: counter(r); font-family: var(--hand); font-size: 22px; line-height: 1; color: var(--ink-3); }
.rank-list li:nth-child(-n+3) a::before { color: var(--brand); }
.rank-list a:hover { color: var(--brand); }

.recent-list { list-style: none; }
.recent-list li { border-top: 1px dashed var(--line); }
.recent-list li:first-child { border-top: 0; }
.recent-list a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px 0; }
.rc-title { font-size: 14px; font-weight: 600; line-height: 1.45; }
.recent-list a:hover .rc-title { color: var(--brand); }

.paging { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 36px 0 0; flex-wrap: wrap; }
.pg-nums { display: flex; gap: 4px; }
.paging a { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); }
.paging a:hover { border-color: var(--brand); color: var(--brand); }
.paging .selected, .paging .pg-num .selected { color: #fff; }
.paging a:has(.selected) { background: var(--ink); color: #fff; border-color: var(--ink); }
.paging .no-more-prev, .paging .no-more-next { opacity: .35; pointer-events: none; }

.tag-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.tag-cloud .cloud1 { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 17px; }
.tag-cloud .cloud2 { border-color: var(--brand); color: var(--brand-ink); font-size: 16px; }
.tag-cloud a:hover { border-color: var(--brand); }

.site-footer { border-top: 2px solid var(--ink); background: var(--card); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 30px var(--gutter) 40px; }
.footer-title { font-size: 17px; font-weight: 800; }
.footer-desc { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.footer-copy { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }

.to-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--card); color: var(--ink); display: grid; place-items: center;
  box-shadow: 3px 4px 0 rgba(38,48,59,.12);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #fff; }

/* 홈에는 히어로 사원증이 있으니 사이드바 프로필은 숨김 */
#tt-body-index .side-profile { display: none; }

/* 글 화면 레이아웃 */
#tt-body-page .layout { grid-template-columns: minmax(0, 820px) 260px; justify-content: center; }

/* ---------- 9. 반응형 ---------- */
@media (max-width: 1024px) {
  .layout, #tt-body-page .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-profile { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; flex-wrap: wrap; }
  .logo-text { font-size: 17.5px; }
  .header-search { order: 3; width: 100%; margin-left: 0; }
  .search-form { height: 40px; }
  .tab { padding: 8px 14px 7px; font-size: 14px; }
  .tab:hover, .tab.is-active { padding-top: 10px; }
  .tab-menu { display: none; }

  .hero-inner { grid-template-columns: 1fr; gap: 22px; padding-top: 30px; }
  .id-card { max-width: 320px; width: 100%; margin: 56px auto 0; }
  .hero-note { padding: 22px 20px 22px 44px; background-image:
    linear-gradient(90deg, transparent 26px, rgba(232,102,61,.35) 26px 28px, transparent 28px),
    repeating-linear-gradient(to bottom, transparent 0 33px, var(--rule) 33px 34px); }
  .hero-actions .btn { flex: 1 1 auto; height: 40px; padding: 0 12px; font-size: 14px; }

  .layout { padding-top: 24px; }
  .covers { gap: 34px; }
  .cover-title { font-size: 20px; }
  .guide-grid { gap: 14px; }
  .guide-card { min-height: 0; padding: 20px 16px 14px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-thumb img { object-position: left center; }
  .card { flex-direction: row; }
  .card-thumb { width: 38%; flex: none; aspect-ratio: auto; min-height: 96px; }
  .thumb-ph::after { font-size: 22px; }
  .card-body { padding: 12px 14px; gap: 6px; }
  .card-title { font-size: 15.5px; }
  .dl-banner { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .dl-go { margin-left: 0; width: 100%; text-align: center; }

  .list-title { font-size: 24px; }
  .post-item .item-link, .index-item .item-link { padding: 14px; gap: 12px; }
  .item-title { font-size: 16px; }
  .item-sum { font-size: 13.5px; -webkit-line-clamp: 2; }
  .item-thumb { width: 92px; }

  .post { padding: 24px 18px; border-radius: 16px; margin: 0 calc(var(--gutter) * -0.5); }
  .article-view { font-size: 16.5px; line-height: 1.8; }
  .article-view h2 { font-size: 21.5px; }
  .article-view h3 { font-size: 18.5px; }
  .article-view table { font-size: 14px; display: block; overflow-x: auto; }
  .dg-step { padding: 16px 16px 6px; }
  .dg-tip, .dg-warn, .dg-note { padding: 14px 16px 4px 50px; }
  .dg-tip::before, .dg-warn::before, .dg-note::before { left: 13px; top: 13px; }
  .dg-compare { grid-template-columns: 1fr; }
  .dg-download { grid-template-columns: 1fr; }
  .dg-download > .dg-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px !important; }
  .dg-formula code, .dg-formula .dg-code { font-size: 14.5px; padding-right: 0; margin-top: 30px; }
  .dg-formula .dg-label + code, .dg-formula .dg-label + .dg-code { margin-top: 4px; }
  .dg-formula { padding-top: 12px; }

  .author-card { flex-wrap: wrap; gap: 14px; padding: 18px; }
  .ac-more { width: 100%; }
  .related-list { gap: 12px; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next { grid-column: auto; }

  .sidebar { grid-template-columns: 1fr; }
}


/* index-item-hide: 목록 페이지에서 '목록+내용' 설정 시 같은 글이 두 번 보이는 것 방지 */
#tt-body-category .index-item,
#tt-body-search .index-item,
#tt-body-tag .index-item,
#tt-body-archive .index-item { display: none; }
