/* 도구에 연결한 글 (components/tool-content.tsx, lib/tool-content.mjs) */
[data-tool-page] [hidden].tcx-next,[data-tool-page] .tcx-slot[hidden]{display:none!important}
/* ① 입력 도움 */
.tcx-help{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin-top:10px;font-size:13px;line-height:1.6}
.tcx-help>span{font-weight:700;color:var(--ink)}
.tcx-help a{color:var(--blue)}
@media(hover:hover){.tcx-help a:hover{text-decoration:underline;text-underline-offset:3px}}
/* ② 다음에 할 일 */
.tcx-next{margin-top:28px;padding:18px;border:1px solid #d9dcd5;border-radius:8px;background:#f5f7fe}
.tcx-next h3{font-size:17px;font-weight:700}
.tcx-slot{margin-top:14px}
.tcx-slot-title{font-size:14px;font-weight:700;color:#2a2d2f}
/* 다음에 할 일: 작은 썸네일 + 제목 목록(결과를 가리지 않도록 가볍게) */
[data-tool-page] .tcx-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:8px 0 0;padding:0;list-style:none}
[data-tool-page] .tcx-mini li+li{border-top:0}
[data-tool-page] .tcx-mini a{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:12px;padding:8px;border-radius:6px;background:#fff;color:var(--ink)}
.tcx-mini img,.tcx-mini .tcx-blank{display:block;width:88px;height:50px;object-fit:cover;border-radius:4px;background:#e9ebe5}
.tcx-mini a>span:last-child{display:-webkit-box;font-size:14px;font-weight:600;line-height:1.5;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(hover:hover){[data-tool-page] .tcx-mini a:hover{box-shadow:inset 0 0 0 1px var(--blue)}[data-tool-page] .tcx-mini a:hover>span:last-child{color:var(--blue)}}
/* 썸네일 + 제목 카드: 한 줄에 4개(모바일 2개) */
[data-tool-page] .tcx-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 20px;margin:10px 0 0;padding:0;list-style:none}
[data-tool-page] .tcx-cards li+li{border-top:0}
[data-tool-page] .tcx-cards a{display:block;padding:0;color:var(--ink)}
.tcx-cards img,.tcx-blank{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:6px;background:#e9ebe5}
.tcx-cards a>span:last-child{display:-webkit-box;margin-top:8px;font-size:14px;font-weight:600;line-height:1.55;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(hover:hover){[data-tool-page] .tcx-cards a:hover>span:last-child{color:var(--blue)}}
/* ③ 더 알아보기 */
.tcx-hub-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px}
[data-tool-page] .tcx-hub-head p{margin:0;font-size:14px;color:var(--muted)}
.tcx-group{margin-top:10px;border:1px solid #d9dcd5;border-radius:8px;background:#fff}
.tcx-hub .tcx-group:first-of-type{margin-top:16px}
.tcx-group[open]{border-color:var(--ink)}
.tcx-group summary{display:flex;align-items:center;gap:14px;padding:14px 18px;cursor:pointer;list-style:none}
.tcx-group summary::-webkit-details-marker{display:none}
.tcx-group summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:8px}
.tcx-group-no{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f0f2eb;font-size:13px;font-weight:700}
.tcx-group[open] .tcx-group-no{background:var(--ink);color:#fff}
.tcx-group summary strong{flex:1;min-width:0;font-size:17px;font-weight:700;letter-spacing:-.3px}
.tcx-group-count{flex:none;padding:3px 10px;border-radius:999px;background:#f0f2eb;font-size:13px;font-weight:600}
.tcx-group-toggle{flex:none;display:flex;align-items:center;gap:6px;min-width:58px;justify-content:flex-end;font-size:13px;color:var(--blue)}
.tcx-group-toggle::before{content:'펼치기'}
.tcx-group[open] .tcx-group-toggle::before{content:'접기'}
.tcx-group-toggle::after{content:'';width:7px;height:7px;margin-top:-3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.tcx-group[open] .tcx-group-toggle::after{margin-top:3px;transform:rotate(-135deg)}
.tcx-group .tcx-cards{padding:4px 18px 20px}
@media(max-width:760px){
 [data-tool-page] .tcx-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.tcx-cards a>span:last-child{font-size:13px}
 .tcx-next{padding:14px}[data-tool-page] .tcx-mini{grid-template-columns:1fr}.tcx-group summary{gap:10px;padding:12px 14px}.tcx-group summary strong{font-size:16px}.tcx-group-toggle{min-width:0}.tcx-group-toggle::before{display:none}.tcx-group .tcx-cards{padding:4px 14px 16px}
}
/* 예전 글 비교(로컬에서만 html.tcx-compare): 새 글 오른쪽에 점선 상자로 붙인다 */
[data-legacy-compare]{display:none!important}
html.tcx-compare [data-legacy-compare]{display:flex!important;flex-direction:column;gap:4px;padding:8px 10px;border:1px dashed #c9a24a;border-radius:6px;background:#fffaf0;font-size:12px;line-height:1.5;min-width:0}
.tcx-legacy b{font-size:11px;font-weight:700;color:#8a5a00}
.tcx-legacy a{color:#5a4300;text-decoration:underline;text-underline-offset:2px}
.tcx-compare-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
html.tcx-compare .tcx-compare-row:has(.tcx-legacy){grid-template-columns:minmax(0,1fr) 220px}
html.tcx-compare .tcx-help .tcx-legacy{display:inline-flex!important;flex-direction:row;flex-wrap:wrap;gap:4px 8px;padding:2px 8px}
.tcx-hub-row{padding:4px 18px 20px}.tcx-hub-row .tcx-cards{padding:0!important}
html.tcx-compare [data-tool-page] .tcx-hub-row:has(.tcx-legacy) .tcx-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
/* 체크 항목: ‘준비 방법 보기’ 바로 오른쪽에 한 줄로 */
html.tcx-compare .tc2-desc .tcx-legacy{display:inline-flex!important;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin-left:10px;padding:1px 8px;vertical-align:baseline}
@media(max-width:760px){html.tcx-compare .tcx-compare-row:has(.tcx-legacy){grid-template-columns:1fr}}
@media print{.tcx-next,.tcx-hub,.tcx-help,[data-legacy-compare]{display:none!important}}
/* 글 아래 ‘함께 확인할 글’: 구분선·앞 여백을 ‘출처 및 공식 자료’ 제목과 같게(위 40px, 선, 안쪽 22px) */
.article-tool-hub .tcx-hub{margin-top:40px;padding-top:22px;border-top:1px solid #d9dcd5}
.article-tool-hub .tcx-hub-head h2{margin-top:0;padding-top:0;border-top:0}
