/* 글씨상점 글 페이지(post.html) 전용 규칙. style.css → editorial.css 뒤에 읽는다.
   헤더·푸터·모바일 하단바는 index 와 같은 규칙(style.css, editorial.css)을 그대로 쓰고, 여기에는 글 본문 규칙만 둔다.
   글꼴 크기·색·여백은 참고 사이트의 작품 상세 다이얼로그(.detail-*, .spec, .size-note, .source-row)와 같은 결로 맞춘다. */
:root{--sans:"Pretendard Variable",Pretendard,"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--post-line:#c3bea4;--post-frame:#ebe8e0}

/* 짧은 글(없는 글 안내 등)에서도 푸터가 화면 아래에 붙도록 */
.post-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.post-page>main{flex:1 0 auto}

/* 읽기 칸: 다이얼로그(900px, 안쪽 여백 38px)와 같은 폭 */
.post{max-width:824px;margin-inline:auto;padding-block:40px 84px;min-width:0}
.post:focus{outline:none}
.post-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;color:var(--muted)}
.post-back:hover{color:var(--ink);text-decoration:underline;text-underline-offset:5px}

/* 머리: 분류 눈썹 → 제목 → 출처 메타 */
.post-head{padding-block:10px 24px;border-bottom:1px solid var(--line);margin-bottom:30px}
.post-head .detail-category{margin-bottom:12px}
.post-head h1{font:400 30px/1.5 var(--sans);letter-spacing:-1.8px;margin:0 0 14px} /* 다이얼로그 제목(.detail-body h2: 30px/1.5, -1.8px)과 동일 */
.post-meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--muted);margin:0}

/* 본문 블록 */
.post-content{font-size:15px;line-height:1.9;color:var(--ink)}
.post-content>p{margin:0 0 14px}
.post-content p.b{font-weight:600}
.post-content h2{font:500 22px/1.5 var(--sans);letter-spacing:-.8px;margin:48px 0 16px;padding-top:28px;border-top:1px solid var(--line)}
.post-content h3{font:400 17px/1.6 var(--serif);letter-spacing:0;margin:30px 0 12px} /* 다이얼로그 소제목(.variant-title: 17px 세리프 400)과 동일 */
.post-content h2+h3{margin-top:4px}
.post-content h3+h3{margin-top:0}
.post-content>:first-child{margin-top:0}
.post-content hr+h2,.post-table-wrap+h2,.post-box+h2{border-top:0;padding-top:0;margin-top:40px} /* 구분선 바로 뒤의 제목은 선을 겹치지 않는다 */
.post-lead{font-size:19px;line-height:1.6;letter-spacing:-.5px;border-left:2px solid var(--red);padding:4px 0 4px 16px;margin:24px 0 28px}
.post-note{font-size:12px;color:var(--muted);line-height:1.9;margin:-4px 0 18px}
.post-content hr{border:0;border-top:1px solid var(--line);margin:40px 0}
.post-content blockquote{margin:0 0 18px;padding-left:16px;border-left:2px solid var(--line);color:var(--muted);white-space:pre-line}
.post-content a{overflow-wrap:anywhere}
.post-inline-link{color:var(--red);text-decoration:underline;text-underline-offset:4px}

/* 이미지·영상: 크림 바탕, 8px 라운드, 오른쪽 아래 '크게 보기' 표시(.zoom-label 은 style.css) */
.post-figure{margin:22px 0}
.post-figure-link{position:relative;display:block;background:var(--post-frame);border-radius:8px;overflow:hidden}
.post-figure-link:focus-visible{outline-offset:3px}
.post-figure img{width:100%;height:auto;display:block}
.post-figure .zoom-label{border-radius:3px}
.post-figure figcaption{font-size:12px;color:var(--muted);line-height:1.8;margin-top:10px}
.post-video-fallback{font-size:13px;color:var(--muted);border:1px dashed var(--post-line);border-radius:6px;padding:12px 16px;margin:0 0 18px}

/* 표 */
.post-table-wrap{overflow-x:auto;max-width:100%;margin:20px 0 26px;border-top:1px solid var(--line);scrollbar-width:thin}
.post-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.75;min-width:520px}
.post-table th,.post-table td{padding:11px 16px 11px 0;border-bottom:1px solid var(--line);vertical-align:top;text-align:left;white-space:pre-line;font-weight:400}
.post-table th{font-size:12px;color:var(--muted)}
.post-table td:first-child{color:var(--muted);white-space:nowrap}
.post-box{padding:16px 18px;background:var(--sage);border-radius:6px;font-size:13px;color:#67735c;line-height:1.9;white-space:pre-line;margin:20px 0 24px}

/* 첨부 파일·링크 카드 */
.post-file{font-size:13px;color:var(--muted);border:1px dashed var(--post-line);border-radius:6px;padding:12px 16px;margin:0 0 18px}
.post-file a,.post-video-fallback a{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.post-link-card{display:block;border:1px solid var(--post-line);border-radius:8px;padding:16px 20px;margin:0 0 18px;transition:background .2s,border-color .2s}
.post-link-card:hover{background:#f5f3be;border-color:#aaa276}
.post-link-card b{display:flex;justify-content:space-between;gap:16px;font-size:15px;font-weight:500}
.post-link-card small{display:block;font-size:12px;color:var(--muted);margin-top:3px}

/* 글 끝: 태그 → 안내 → 출처 → 의뢰 CTA → 이전·다음 */
.post-foot{margin-top:44px;border-top:1px solid var(--line);padding-top:24px}
.post-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 22px}
.post-tags span{font-size:11px;color:var(--muted);border:1px solid var(--post-line);border-radius:20px;padding:3px 9px}
.post-foot .size-note{margin-bottom:20px}
.post-foot .source-row{padding-bottom:20px}
.post-foot .detail-cta{text-align:left}
.post-nav{display:flex;justify-content:space-between;gap:20px;margin-top:30px;padding-top:6px;border-top:1px solid var(--line)}
.post-nav-link{display:flex;flex-direction:column;gap:2px;padding:14px 0;min-height:48px;max-width:48%}
.post-nav-link small{font-size:12px;color:var(--muted)}
.post-nav-link strong{font-size:15px;font-weight:500;line-height:1.5}
.post-nav-link:hover strong{text-decoration:underline;text-underline-offset:4px}
.post-nav-link.next{margin-left:auto;text-align:right;align-items:flex-end}

/* 불러오는 중 · 없는 글 */
.post-status{color:var(--muted);font-size:14px;padding-block:40px;margin:0}
.post-empty{padding-block:24px 40px}
.post-empty h1{font:400 clamp(26px,3vw,34px)/1.45 var(--sans);letter-spacing:-1.3px;margin:0 0 12px}
.post-empty p:not(.detail-category){font-size:14px;color:var(--muted);line-height:1.9;margin:0 0 24px}
.post-empty-actions{display:flex;flex-wrap:wrap;gap:12px 28px;align-items:center}

@media(max-width:760px){
.post{padding-block:22px 44px}
.post-head{padding-bottom:20px;margin-bottom:24px}
.post-head h1{font-size:27px} /* 다이얼로그 모바일 제목 27px */
.post-content{font-size:14px}
.post-content h2{font-size:21px;margin-top:40px;padding-top:24px}
.post-content h3{font-size:18px;margin-top:26px} /* 다이얼로그 모바일 .variant-title 18px */
.post-lead{font-size:17px}
.post-figure{margin:18px 0}
.post-table{min-width:460px;font-size:12px}
.post-foot{margin-top:36px}
.post-nav{gap:14px}
.post-nav-link strong{font-size:14px}
.post-empty-actions .button{width:100%}
}
