/* 태그 화면(#/tag/…)과 태그 칩(작품 화면·검색에서도 쓴다). 2026-11-19 시안 7. 사이트 글자 규칙(body.editorial)을 이기려고 앞에 붙인다. 앞머리 tgp-.
 * 빨간색은 쓰지 않는다. 고른 것·강조는 남색 #1d2b4a. */
.tgp-page{--tgp-ink:#111318;--tgp-navy:#1d2b4a;--tgp-sub:#5b606a;--tgp-mute:#8c9099;--tgp-line:#ececee;--tgp-bg:#f4f5f7;
 min-height:calc(100vh - 56px);padding:0 0 calc(76px + env(safe-area-inset-bottom,0px));background:#fff;color:var(--tgp-ink);font-family:"Pretendard Variable",Pretendard,"Malgun Gothic",sans-serif;letter-spacing:-.02em;word-break:keep-all;-webkit-font-smoothing:antialiased}
.tgp-wrap{max-width:760px;margin:0 auto}
body.editorial .tgp-page a{color:inherit;text-decoration:none}

/* 태그 칩(어디서나 같은 모양) */
.tgp-chips{display:flex;flex-wrap:wrap;gap:6px}
body.editorial .tgp-chip{display:inline-flex;align-items:center;height:30px;padding:0 11px;border-radius:999px;background:#f4f5f7;color:#3b4150!important;font-size:13px!important;font-weight:600!important;line-height:1;text-decoration:none!important;white-space:nowrap}
body.editorial .tgp-chip:hover{background:#e9ebef}
body.editorial .tgp-chip.is-hl{background:#e8ecf6;color:#1d2b4a!important}
body.editorial .tgp-sm .tgp-chip{height:24px;padding:0 8px;font-size:11.5px!important}
.tgp-chip:focus-visible{outline:2px solid #1d2b4a;outline-offset:2px}

/* 작품 화면: 소개 아래 태그 줄 */
.tgp-wtags{margin-top:12px}
.wdc-sum .tgp-wtags{margin-top:14px}

/* 머리 */
.tgp-head{padding:16px 16px 4px}
body.editorial .tgp-page .tgp-head h1{margin:0;font-size:24px!important;font-weight:900!important;line-height:1.3;letter-spacing:-.04em!important;color:var(--tgp-ink)!important;overflow-wrap:anywhere}
body.editorial .tgp-page .tgp-head p{margin:4px 0 0;font-size:13px!important;color:var(--tgp-mute)!important}
.tgp-rel{padding:12px 16px 4px}
.tgp-rel>small{display:block;margin:0 0 8px;font-size:12px;font-weight:700;color:var(--tgp-mute)}

/* 정렬·완결만 */
.tgp-bar{display:flex;align-items:center;gap:10px;margin-top:8px;padding:12px 16px 8px;border-bottom:1px solid var(--tgp-line);font-size:13px}
.tgp-sort{display:flex;align-items:center;gap:6px}
.tgp-sort i{font-style:normal;color:#c4c7cd}
body.editorial .tgp-page .tgp-sort a{font-size:13.5px!important;font-weight:500;color:var(--tgp-mute)!important}
body.editorial .tgp-page .tgp-sort a.on{font-weight:800;color:var(--tgp-ink)!important}
.tgp-count{flex:1;font-size:12.5px;color:var(--tgp-mute)}
body.editorial .tgp-page .tgp-done{display:inline-flex;align-items:center;gap:7px;font-size:13.5px!important;font-weight:700;color:var(--tgp-sub)!important}
.tgp-sw{position:relative;width:34px;height:20px;border-radius:999px;background:#d5d8de;transition:background .15s}
.tgp-sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.tgp-done[aria-checked="true"] .tgp-sw{background:#1d2b4a}
.tgp-done[aria-checked="true"] .tgp-sw::after{transform:translateX(14px)}
body.editorial .tgp-page .tgp-done[aria-checked="true"]{color:var(--tgp-ink)!important}

/* 작품 줄 */
.tgp-row{display:grid;grid-template-columns:72px 1fr;gap:12px;padding:12px 16px;border-bottom:1px solid var(--tgp-line)}
.tgp-cv{display:block;width:72px;aspect-ratio:3/4.1;overflow:hidden;border-radius:6px;background:#eef0f4}
.tgp-cv .reference-cover,.tgp-cv .reference-cover>*{display:block;width:100%;height:100%}
.tgp-cv img{display:block;width:100%;height:100%;object-fit:cover}
.tgp-tx{min-width:0}
.tgp-title{display:block}
body.editorial .tgp-page .tgp-title strong{display:block;overflow:hidden;font-size:15px!important;font-weight:700!important;line-height:1.4;color:var(--tgp-ink)!important;text-overflow:ellipsis;white-space:nowrap}
body.editorial .tgp-page .tgp-title small{display:block;margin:3px 0 8px;overflow:hidden;font-size:12px!important;color:var(--tgp-mute)!important;text-overflow:ellipsis;white-space:nowrap}

/* 빈 화면·더 보기 */
.tgp-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:56px 16px;text-align:center}
body.editorial .tgp-page .tgp-empty strong{font-size:15px!important;font-weight:700!important;color:var(--tgp-sub)!important}
body.editorial .tgp-page .tgp-empty a{display:inline-flex;align-items:center;height:36px;padding:0 14px;border:1px solid #dcdde1;border-radius:999px;font-size:13px!important;font-weight:600;color:var(--tgp-ink)!important}
.tgp-loading{margin:0;padding:40px 16px;text-align:center;font-size:13.5px;color:var(--tgp-mute)}
body.editorial .tgp-page .tgp-more{display:block;width:calc(100% - 32px);min-height:0;height:44px;margin:16px auto 0;padding:0;border:1px solid #dcdde1;border-radius:10px;background:#fff;box-shadow:none;color:var(--tgp-ink)!important;font-size:14px!important;font-weight:700!important;cursor:pointer}
body.editorial .tgp-page .tgp-more:disabled{color:var(--tgp-mute)!important;cursor:default}

/* 검색(휴대폰 검색 화면·PC 자동완성)의 태그 */
.tgp-srch{margin:0;padding:4px 0 6px;border-bottom:1px solid #ececee}
body.editorial .tgp-srch a.tgp-srow{display:flex;align-items:center;gap:10px;padding:10px 16px;color:#111318!important;text-decoration:none!important;font-size:14.5px!important}
.tgp-hash{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#f4f5f7;font-style:normal;font-weight:800;color:#1d2b4a}
.tgp-srow b{font-weight:700}
.tgp-srow mark{background:none;color:#1d2b4a;font-weight:800}
.tgp-srow small{margin-left:auto;font-size:12px;color:#8c9099;white-space:nowrap}
body.editorial .ssg .ssg-row .tgp-hash{width:34px;height:34px;font-size:15px}

@media(min-width:701px){
 .tgp-page{padding:24px 0 64px;min-height:0}
 .tgp-head{padding:8px 24px 4px}
 body.editorial .tgp-page .tgp-head h1{font-size:30px!important}
 .tgp-rel,.tgp-bar{padding-left:24px;padding-right:24px}
 .tgp-row{grid-template-columns:84px 1fr;gap:16px;padding:16px 24px}
 .tgp-cv{width:84px}
 body.editorial .tgp-page .tgp-more{width:220px}
}
