/* =========================================================
   coldlose — Tistory Custom Skin  (minimal dark)
   ========================================================= */
:root{
  --bg:#0b0d10; --surface:#14171c; --surface-2:#1a1e24; --border:#22252b;
  --text:#e7e8ea; --muted:#9a9ea5; --faint:#5c616a;
  --accent:#ffffff; --line-accent:#33373f;
  --radius:10px;
  --sans:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,system-ui,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --mono:ui-monospace,SFMono-Regular,"JetBrains Mono",Menlo,monospace;
  --wrap:880px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--text);
  font-family:var(--sans); font-size:16px; line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%}
a{color:var(--text); text-decoration:none; transition:color .15s ease, border-color .15s ease}
a:hover{color:var(--accent)}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px}

/* ---------- header / menu ---------- */
#header{border-bottom:1px solid var(--border); position:sticky; top:0;
  background:rgba(11,13,16,.82); backdrop-filter:blur(8px); z-index:20}
.header-inner{max-width:var(--wrap); margin:0 auto; padding:0 24px;
  height:60px; display:flex; align-items:center; justify-content:flex-end; gap:18px}
.gnb{display:flex; gap:2px}
.gnb a{font-size:13px; color:var(--muted); padding:8px 12px; border-radius:7px; letter-spacing:.02em}
.gnb a:hover{color:var(--text); background:var(--surface)}
.gnb a.on{color:var(--text)}

/* ---------- page title ---------- */
.page-head{padding:64px 0 22px}
.page-head h1{font-size:56px; font-weight:800; letter-spacing:-.045em; line-height:1; margin:0}
/* 글 본문을 볼 때는 목록용 제목/카테고리/페이징 숨김 */
.wrap:has(.post) .page-head,
.wrap:has(.post) .category-wrap,
.wrap:has(.post) .paging{display:none}

/* ---------- category ([##_category_##], 트리형 테이블 대응) ---------- */
.category-wrap{padding:2px 0 20px; border-bottom:1px solid var(--border); margin-bottom:4px}
.category-wrap table{background:transparent !important; border:0 !important; width:auto !important; border-collapse:collapse}
.category-wrap td{background:transparent !important; padding:0 !important; border:0 !important}
.category-wrap img{display:none !important}   /* 트리 아이콘·new 배지 제거 */
/* 테이블 셀을 가로 흐름으로 */
.category-wrap #treeComponent,
.category-wrap #treeComponent tbody,
.category-wrap #treeComponent tr,
.category-wrap #treeComponent td{display:inline-block !important; vertical-align:middle}
/* 각 카테고리를 칩으로 */
.category-wrap div[id^="text_"]{display:inline-block; cursor:pointer; font-size:13px;
  color:var(--muted) !important; background:transparent !important;
  border:1px solid var(--border); border-radius:999px; padding:6px 13px; margin:0 6px 8px 0}
.category-wrap div[id^="text_"]:hover{color:var(--text) !important; border-color:var(--line-accent)}
.category-wrap span.c_cnt{color:var(--faint) !important; font-size:11px}

/* ---------- post list ---------- */
.post-list{margin-top:2px}
.post-item{display:flex; align-items:baseline; justify-content:space-between; gap:28px;
  padding:19px 4px; border-bottom:1px solid var(--border)}
.post-item .p-title{font-size:17px; font-weight:600; letter-spacing:-.015em; color:var(--text)}
.post-item:hover .p-title{color:var(--accent)}
.post-item .p-date{font-size:13px; color:var(--faint); white-space:nowrap; flex-shrink:0;
  font-variant-numeric:tabular-nums}

/* empty */
.list-empty{padding:60px 0; text-align:center; color:var(--faint); border-bottom:1px solid var(--border)}

/* ---------- pagination ---------- */
.paging{display:flex; justify-content:center; gap:6px; margin:40px 0}
.paging a,.paging span{font-size:13px; color:var(--muted); min-width:36px; height:36px;
  display:grid; place-items:center; border:1px solid var(--border); border-radius:8px; padding:0 8px}
.paging .selected,.paging strong{color:var(--bg); background:var(--accent); border-color:var(--accent)}
.paging a:hover{color:var(--text); border-color:var(--line-accent)}

/* ---------- article (permalink) ---------- */
.post{padding-top:56px}
.post-header{border-bottom:1px solid var(--border); padding-bottom:26px; margin-bottom:30px}
.post-header .meta{font-size:12.5px; color:var(--faint); display:flex; gap:12px; flex-wrap:wrap; margin-bottom:14px}
.post-header .meta .cat a{color:var(--muted)}
.post-header h1{font-size:30px; font-weight:800; letter-spacing:-.03em; line-height:1.28; margin:0}

.article-body{font-size:16px; line-height:1.85; color:#d9dce0; word-break:keep-all; overflow-wrap:break-word}
.article-body > *{margin-top:18px}
.article-body h2,.article-body h3,.article-body h4{color:#fff; letter-spacing:-.02em; line-height:1.4; margin-top:38px}
.article-body h2{font-size:22px} .article-body h3{font-size:18px} .article-body h4{font-size:16px}
.article-body a{color:var(--accent); text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line-accent)}
.article-body a:hover{text-decoration-color:var(--accent)}
.article-body strong{color:#fff}
.article-body ul,.article-body ol{padding-left:22px}
.article-body li{margin-top:6px}
.article-body li::marker{color:var(--faint)}
.article-body blockquote{border-left:2px solid var(--line-accent); padding:6px 18px; margin-left:0;
  color:var(--muted); background:var(--surface); border-radius:0 8px 8px 0}
.article-body img{border-radius:8px; height:auto}
.article-body hr{border:none; border-top:1px solid var(--border)}
.article-body table{width:100%; border-collapse:collapse; font-size:14.5px}
.article-body th,.article-body td{border:1px solid var(--border); padding:10px 14px; text-align:left}
.article-body th{background:var(--surface); color:var(--muted); font-weight:600}
/* code */
.article-body code{font-family:var(--mono); font-size:.9em; background:var(--surface-2);
  border:1px solid var(--border); color:#d4d7dc; padding:1.5px 6px; border-radius:5px}
.article-body pre{background:#0e1116; border:1px solid var(--border); border-left:2px solid var(--line-accent);
  border-radius:var(--radius); padding:16px 18px; overflow-x:auto}
.article-body pre code{background:none; border:none; padding:0; color:#cfd3d8; font-size:13.5px; line-height:1.7}

.post-tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:34px; padding-top:22px; border-top:1px solid var(--border)}
.post-tags a{font-size:12px; color:var(--muted); border:1px solid var(--border); border-radius:999px; padding:5px 12px}
.post-tags a:hover{color:var(--text); border-color:var(--line-accent)}

/* ---------- comments ---------- */
.comments{margin-top:48px}
.comments .c-title{font-size:12px; color:var(--faint); text-transform:uppercase; letter-spacing:.1em; margin-bottom:8px}
.comments .comment{display:flex; gap:14px; padding:18px 2px; border-bottom:1px solid var(--border)}
.comments .avatar{width:38px; height:38px; border-radius:8px; background:var(--surface-2);
  border:1px solid var(--border); flex-shrink:0}
.comments .avatar img{width:100%; height:100%; border-radius:8px}
.comments .c-name{font-weight:600; font-size:14px}
.comments .c-date{font-size:11.5px; color:var(--faint); margin-left:8px}
.comments .c-body{color:#d8dbdf; font-size:14.5px; margin-top:6px}
.comments .c-reply{margin-left:52px; background:var(--surface); border-radius:8px}
.comment-form{margin-top:20px; border:1px solid var(--border); border-radius:var(--radius);
  background:var(--surface); padding:16px}
.comment-form input,.comment-form textarea{width:100%; background:var(--bg); border:1px solid var(--border);
  border-radius:8px; color:var(--text); padding:10px 12px; font-family:var(--sans); margin-bottom:8px}
.comment-form textarea{min-height:80px; resize:vertical}
.comment-form input:focus,.comment-form textarea:focus{outline:none; border-color:var(--line-accent)}
.comment-form .btn,button.btn,.btn{font-size:13px; color:var(--bg); background:var(--accent);
  border:none; border-radius:8px; padding:9px 18px; cursor:pointer; font-weight:600}
.comment-form .btn:hover{background:#d6d7da}

/* ---------- sidebar (optional, hidden by default for minimal look) ---------- */
#sidebar{display:none}

/* ---------- 티스토리 기본 UI 숨김 (미니멀 유지) ---------- */
.container_postbtn,        /* 공감·공유·신고 버튼 */
.wrap_btn_etc,             /* 구독하기 버튼 */
.tt_box_namecard,          /* "님의 블로그" 네임카드 박스 */
.subscription, .tt_subscription,
.box_subscribe, .subscribe,
.another_category,
.revenue_unit_wrap{display:none !important}

/* ---------- footer ---------- */
#footer{border-top:1px solid var(--border); padding:26px 0; margin-top:60px}
.footer-inner{max-width:var(--wrap); margin:0 auto; padding:0 24px;
  display:flex; justify-content:space-between; font-size:12px; color:var(--faint)}
.footer-inner a{color:var(--muted)}

/* =========================================================
   ABOUT page (티스토리 '페이지'에 붙여넣는 콘텐츠용)
   ========================================================= */
/* About 페이지에선 글 기본 헤더/댓글/태그 숨김 (중복 방지) */
.post:has(.about){padding-top:0}
.post:has(.about) .post-header,
.post:has(.about) .comments,
.post:has(.about) .post-tags{display:none}
.about .page-title{padding:64px 0 8px}
.about .page-title h1{font-size:60px; font-weight:800; letter-spacing:-.045em; line-height:1; margin:0}
.about .profile{display:grid; grid-template-columns:1fr auto; gap:36px; align-items:center;
  padding:34px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); margin-top:26px}
.about .p-main{display:flex; gap:24px; align-items:center}
.about .p-photo{width:148px; height:148px; border-radius:18px; border:1px solid var(--border);
  object-fit:contain; object-position:center; flex-shrink:0; background:var(--surface-2)}
.about .p-label{font-size:11.5px; letter-spacing:.12em; color:var(--muted); text-transform:uppercase}
.about .p-name{font-size:30px; font-weight:800; letter-spacing:-.03em; margin:10px 0 12px}
.about .p-name span{color:var(--muted); font-weight:500; font-size:20px; margin-left:6px}
.about .p-bio{color:var(--muted); font-size:14.5px; line-height:1.7; max-width:460px}
.about .contact{display:grid; gap:15px; min-width:220px}
.about .contact .row{display:grid; grid-template-columns:76px 1fr; align-items:baseline; gap:12px}
.about .contact .k{font-size:10.5px; letter-spacing:.06em; color:var(--faint); text-transform:uppercase}
.about .contact .v{font-size:14px; color:var(--text)}
.about .contact .v a{border-bottom:1px solid var(--line-accent)}
.about .contact .v a:hover{border-color:var(--accent)}
.about .section-label{font-size:12px; color:var(--faint); text-transform:uppercase; letter-spacing:.12em;
  display:flex; align-items:center; gap:14px; margin:46px 0 4px}
.about .section-label b{color:var(--text); font-weight:600}
.about .section-label::after{content:""; flex:1; height:1px; background:var(--border)}
.about .record .item{display:flex; gap:16px; align-items:baseline; padding:14px 2px;
  border-bottom:1px solid var(--border); font-size:15px}
.about .record .item:last-child{border-bottom:none}
.about .record .yr{font-size:12.5px; color:var(--muted); flex-shrink:0; width:92px;
  white-space:nowrap; font-variant-numeric:tabular-nums}
.about .record .txt{color:#d9dce0}
.about .record .txt b{color:#fff; font-weight:700}
.about .record .txt .sub{color:var(--faint); font-size:13px; margin-left:2px}
.about .record .txt .org{display:block; font-size:12.5px; color:var(--faint); margin-top:2px; line-height:1.3}
.about .edu{padding:16px 2px}
.about .edu .school{font-size:17px; font-weight:700}
.about .edu .period{font-size:12.5px; color:var(--muted); margin:4px 0 12px}

/* ---------- responsive ---------- */
@media(max-width:720px){
  .page-head h1{font-size:40px}
  .post-item{gap:16px}
  .about .page-title h1{font-size:42px}
  .about .profile{grid-template-columns:1fr; gap:24px}
  .about .p-main{flex-direction:column; align-items:flex-start; gap:18px}
  .about .contact{border-top:1px solid var(--border); padding-top:20px}
  .footer-inner{flex-direction:column; gap:8px; text-align:center}
}
