/* 진행 사례 글(/work/p/)과 견적 담기 상자 (2026-11-14, 블로그형). 색·모서리는 theme.css 토큰 */
.post .post-head{padding-top:56px;text-align:center}
.post-head .back{display:inline-flex;align-items:center;min-height:44px;margin-bottom:10px;font-size:15px}
.post-head h1{margin-bottom:0;max-width:20em;margin:0 auto;font-size:clamp(30px,4.4vw,52px);line-height:1.2;letter-spacing:-.02em}
.post-lead{max-width:40em;margin:18px auto 0;color:var(--muted);font-size:18px;line-height:1.7}
.case-facts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 40px;margin:28px 0 0;padding:0;text-align:center}
.case-facts div{display:grid;gap:2px}
.case-facts dt{font-size:13px;color:var(--muted)}
.case-facts dd{margin:0;font-size:16px;font-weight:600;color:var(--ink)}
.case-hero{margin-top:8px}
.case-hero img{display:block;width:auto;max-width:100%;height:auto;max-height:80vh;margin:0 auto;object-fit:contain;border-radius:var(--radius)}

.case-quote{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 48px;align-items:end;margin-top:48px;padding:32px 36px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.case-quote h2{margin:0 0 8px;font-size:26px;line-height:1.35}
.case-quote>div>p{margin:0;color:var(--muted);line-height:1.6}
.case-quote ul{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:0}
.case-quote li{display:grid;grid-template-columns:auto 1fr auto;gap:2px 10px;align-items:baseline;padding:12px 0;border-top:1px solid var(--line)}
.case-quote li b{font-size:16px}
.case-quote li span{color:var(--muted);font-size:14px}
.case-quote li small{grid-column:1/3;color:var(--muted);font-size:13px}
.case-quote li em{grid-row:1/3;grid-column:3;font-style:normal;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;align-self:center}
.case-total{margin:14px 0 0;padding-top:14px;border-top:1px solid var(--ink);font-size:15px}
.case-total b{font-size:20px;font-variant-numeric:tabular-nums;margin-left:4px}
.case-total small{display:block;margin-top:4px;color:var(--muted);font-size:13px}
.case-actions{display:grid;gap:10px;min-width:240px}
.case-actions .button{justify-content:center}

.case-card.is-live img{aspect-ratio:700/460;object-fit:cover}

@media (max-width:760px){
 .case-quote{grid-template-columns:1fr;padding:22px 18px;margin-top:32px}
 .case-actions{min-width:0}
}
.case-actions .case-consult{background:#fff;color:var(--ink);border:1px solid var(--line)}
.case-actions .case-consult:hover{border-color:var(--ink)}

/* 글 본문: 읽기 폭 720px, 사진은 조금 더 넓게 */
.post .post-body{max-width:760px;margin:48px auto 0;font-size:17px;line-height:1.85;color:var(--ink)}
.post-body>p{margin:0 0 1.2em;word-break:keep-all}
.post-body>h2{margin:2.2em 0 .7em;font-size:26px;line-height:1.35;letter-spacing:-.01em}
.post-photos{margin:2em 0;display:grid;gap:10px}
@media (min-width:1000px){.post-photos{margin:2.2em -80px}}
.post-photos.n2{grid-template-columns:1fr 1fr}
.post-photos.n3{grid-template-columns:repeat(3,1fr)}
.post-photos a{display:block;border-radius:12px;overflow:hidden;background:var(--surface)}
.post-photos img{display:block;width:100%;height:auto}
.post-photos.n2 img,.post-photos.n3 img{height:100%;aspect-ratio:4/3;object-fit:contain}
.post-photos figcaption{grid-column:1/-1;margin-top:2px;font-size:14px;color:var(--muted);text-align:center}
@media (max-width:760px){
 .post-head{padding-top:32px}
 .post-lead{font-size:16px}
 .post-body{font-size:16px;margin-top:32px}
 .post-body>h2{font-size:22px}
 .post-photos.n3{grid-template-columns:1fr 1fr}
}

/* 자주 묻는 질문(검색·AI 답변용). 질문은 굵게, 답은 본문과 같게 */
.post-faq{margin:3em 0 0;padding-top:2em;border-top:1px solid var(--line)}
.post-faq>h2{margin:0 0 .8em;font-size:26px;line-height:1.35;letter-spacing:-.01em}
.post-faq-item{padding:1.1em 0;border-bottom:1px solid var(--line)}
.post-faq-item h3{margin:0 0 .4em;font-size:18px;line-height:1.5;word-break:keep-all}
.post-faq-item p{margin:0 0 .6em;word-break:keep-all}
.post-faq-item p:last-child{margin-bottom:0}
@media (max-width:760px){.post-faq>h2{font-size:22px}.post-faq-item h3{font-size:17px}}

/* 글 머리: 게시·수정일 */
.post-dates{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;margin:18px 0 0;font-size:13px;color:var(--muted)}
.case-facts dd a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* 서비스 상세: 이 서비스로 진행한 사례 (서비스 상세 테마에는 --ink 등이 없을 수 있어 기본값을 둠) */
.svc-posts{width:100%;box-sizing:border-box;padding:64px 16px;background:#fff}
.svc-posts-in{max-width:1200px;margin:0 auto}
.svc-posts h2{margin:0 0 24px;font-size:28px;line-height:1.3;letter-spacing:-.01em;color:var(--ink,#111827)}
.svc-posts ul{list-style:none;margin:0 0 20px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:20px}
.svc-posts li a{display:grid;gap:8px;color:var(--ink,#111827);text-decoration:none}
.svc-post-img{display:block;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#f1f3f6}
.svc-post-img img{display:block;width:100%;height:100%;object-fit:contain}
.svc-posts strong{font-size:17px;line-height:1.45;word-break:keep-all}
.svc-posts small{font-size:14px;line-height:1.6;color:var(--muted,#6b7280);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all}
.svc-posts li a:hover strong{text-decoration:underline;text-underline-offset:3px}
.svc-posts-all{display:inline-flex;align-items:center;gap:6px;font-size:15px;font-weight:600;color:var(--ink,#111827);text-decoration:none}
.svc-posts-all svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.svc-posts-all:hover{text-decoration:underline;text-underline-offset:3px}
@media (max-width:760px){.svc-posts{padding:44px 16px}.svc-posts h2{font-size:22px}}

/* 진행 사례 목록: 글 카드 대표 사진은 자르지 않음(디자인 표지가 세로인 경우가 많음) */
[data-cases-live] .is-live img{object-fit:contain;background:#f1f3f6}

/* 글: 한눈에 보기 표, 진행 일정 */
.post-overview{margin:0 0 2.6em}
.post-overview h2,.post-timeline h2{margin:0 0 .7em;font-size:22px;line-height:1.35;letter-spacing:-.01em}
.post-overview table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.6}
.post-overview th,.post-overview td{padding:12px 4px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;word-break:keep-all}
.post-overview tr:first-child th,.post-overview tr:first-child td{border-top:1px solid var(--ink)}
.post-overview th{width:9em;font-weight:600;color:var(--muted)}
.post-timeline{margin:2.6em 0 0}
.post-timeline ol{list-style:none;margin:0;padding:0}
.post-timeline li{position:relative;display:grid;grid-template-columns:7.5em 1fr;gap:12px;padding:0 0 18px 20px}
.post-timeline li:last-child{padding-bottom:0}
.post-timeline li::before{content:"";position:absolute;left:0;top:.55em;width:10px;height:10px;border-radius:50%;background:var(--ink)}
.post-timeline time,.post-tl-d{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.post-timeline li p{margin:0;font-size:16px;line-height:1.7;word-break:keep-all}
@media (max-width:760px){.post-overview th{width:6.5em}.post-timeline li{grid-template-columns:1fr;gap:2px}}

/* 2026-11-17 읽기 보정: 사이트 공통 설정(p 16px/24px, .paran-content p 회색)이 글 화면을 덮지 않게 */
.paran-content .post .post-body>p,.paran-content .post-faq-item p,.paran-content .post-timeline li p{font-size:17px;line-height:1.8;color:var(--ink);letter-spacing:-.003em}
.paran-content .post .post-body>h2,.paran-content .post-overview h2,.paran-content .post-timeline h2,.paran-content .post-faq>h2{font-size:26px;line-height:1.35;letter-spacing:-.01em;text-wrap:balance}
.paran-content .post-faq-item h3{font-weight:700;font-size:18px;line-height:1.5;color:var(--ink);text-wrap:balance}
.paran-content .post-overview th{color:var(--ink)}
.paran-content .post-overview td{color:var(--ink)}
.case-spec-note{margin:14px 0 0;font-size:14px;line-height:1.6;color:var(--muted)}
.case-spec-note b{color:var(--ink);font-weight:600}
@media (max-width:760px){
 .paran-content .post .post-body>p,.paran-content .post-faq-item p,.paran-content .post-timeline li p{font-size:16px;line-height:1.75}
 .paran-content .post .post-body>h2,.paran-content .post-overview h2,.paran-content .post-timeline h2,.paran-content .post-faq>h2,.case-quote h2{font-size:22px}
 .paran-content .post-faq-item h3{font-size:17px}
}

/* 사진 크게 보기: 화면에 맞춰 전체 → [원본 크기]로 확대해 밀어 보기. 이전·다음·Esc·화살표 키 */
.post-photos a{cursor:zoom-in}
.post-lb{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0d0d10;color:#fff}
.post-lb::backdrop{background:rgba(0,0,0,.85)}
.post-lb[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.post-lb-bar{display:flex;align-items:center;gap:8px;padding:10px 12px}
.post-lb-n{margin-right:auto;font-size:14px;font-variant-numeric:tabular-nums;color:#c9c9d1}
.post-lb button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:transparent;color:#fff;font:inherit;font-size:14px;cursor:pointer}
.post-lb button:hover{background:rgba(255,255,255,.1)}
.post-lb button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.post-lb button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.post-lb-stage{position:relative;overflow:auto;display:grid;place-items:center;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom}
.post-lb-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;cursor:zoom-in}
.post-lb.is-zoom .post-lb-stage{place-items:start}
.post-lb.is-zoom .post-lb-stage img{max-width:none;max-height:none;cursor:zoom-out}
.post-lb-foot{display:flex;align-items:center;gap:10px;padding:10px 12px 14px}
.post-lb-cap{flex:1;min-width:0;font-size:14px;line-height:1.5;color:#e4e4ea;text-align:center;word-break:keep-all}
@media (prefers-reduced-motion:no-preference){.post-lb[open]{animation:post-lb-in .2s cubic-bezier(.2,.7,.3,1)}@keyframes post-lb-in{from{opacity:0}to{opacity:1}}}

/* 게시 전 미리보기 안내 띠 */
.post-preview-bar{margin:0;padding:12px 16px;background:#fff8e1;border-bottom:1px solid #f0d58c;font-size:14px;line-height:1.5;text-align:center;color:#5c4400;word-break:keep-all}
.post-preview-bar b{margin-right:6px}

/* 늘 보이는 견적 칸: PC 본문 오른쪽 고정(.case-rail), 폰 아래 막대(.case-bar) */
.case-rail,.case-bar{display:none}
@media (min-width:1100px){
 .post-layout{display:grid;grid-template-columns:minmax(0,800px) 288px;gap:56px;justify-content:center;align-items:start;width:min(1200px,calc(100% - 64px));margin:0 auto}
 .post-layout>.post{min-width:0}
 .post-layout .post-head,.post-layout .case-hero,.post-layout .post-body{width:auto;max-width:none;margin-inline:0}
 .post-layout .post-body{margin-top:48px}
 .post-layout .post-photos{margin-inline:0}
 .post-layout .case-rail{margin-top:56px}
 .case-rail{display:grid;gap:12px;position:sticky;top:80px;padding:22px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;transition:opacity .2s,visibility 0s}
 .case-rail.is-off{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,visibility 0s .2s}
}
.paran-content .case-rail-h{margin:0;font-size:20px;line-height:1.35;font-weight:700;color:var(--ink);letter-spacing:-.01em}
.case-rail ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.case-rail li{display:grid;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.case-rail .button{width:100%;justify-content:center}
@media (max-width:1099px){
 .case-bar{display:flex;align-items:center;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:50;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -6px 18px rgb(20 20 30 / 8%);transition:transform .25s cubic-bezier(.2,.7,.3,1)}
 .case-bar.is-off{transform:translateY(110%);visibility:hidden;transition:transform .25s cubic-bezier(.2,.7,.3,1),visibility 0s .25s}
 .case-bar span{display:grid;flex:1;min-width:0}
 .case-bar b{font-size:15px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .case-bar small{font-size:12px;color:var(--muted)}
 .case-bar .button{flex:none;min-height:44px}
 body.has-case-bar{padding-bottom:76px}
}
@media (prefers-reduced-motion:reduce){.case-bar,.case-rail{transition:none}}

/* 견적 칸 공통: 상담은 서비스 상세처럼 글자 링크, 글 끝 칸의 금액 줄 위 선은 연하게 */
.case-consult-link{justify-content:center;font-size:14px;min-height:44px}
.case-consult-link svg{width:16px;height:16px}
.case-quote .case-actions{align-items:stretch}
.paran-content .case-quote .case-total{border-top:1px solid var(--line)}
.case-quote li small{grid-column:1/3}

/* 오른쪽 칸 간소화(2026-11-17): 서비스·수량 한 줄, 사양 한 줄, 버튼, 짧은 안내 */
.paran-content .case-rail-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0;font-size:16px;color:var(--ink)}
.case-rail-row span{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.case-rail li small{font-size:13px;line-height:1.5;color:var(--muted)}
.paran-content .case-rail-note{margin:-2px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted);text-align:center}

/* 오른쪽 칸 다듬기(임펙커블 재검토): 서비스 상세 칸과 제목 굵기·링크 크기 맞춤, 안내는 왼쪽 정렬 한 줄, 위아래 여백 균형 */
.paran-content .case-rail-h{font-weight:740;letter-spacing:-.02em}
.case-rail-row b{font-size:16px;font-weight:700;color:var(--ink)}
.paran-content .case-rail-note{margin:-2px 0 0;text-align:left}
@media (min-width:1100px){.case-rail{padding:22px 22px 12px}}
.case-rail .case-consult-link{font-size:13px;justify-content:flex-start;min-height:44px}

/* 2026-11-18 예전 사례에서 옮겨 온 현장 영상 */
.post-video{margin:24px 0}.post-video video{display:block;width:100%;aspect-ratio:16/9;border-radius:12px;background:#000}.post-video figcaption{margin-top:8px;font-size:14px;color:var(--muted)}

/* 2026-11-18 진행 사례 목록: 대표 카드는 카드 전체가 눌리게, '사례 더 보기'는 작은 사진·유형 카드 + 유형 고르기 */
[data-cases-live]>div{position:relative!important;cursor:pointer}
[data-cases-live]>div *{position:static!important}
[data-cases-live]>div a.sc-a6a294d0-5::after{content:"";position:absolute;inset:0;z-index:1}
.case-more.is-cards h2{display:flex;align-items:baseline;gap:10px}
.case-more .cm-count{font-size:15px;font-weight:500;color:var(--muted)}
.case-more .cm-filter{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 24px}
.paran-content .case-more .cm-filter button{min-height:44px;padding:8px 16px;border:1px solid #dcdbe2;border-radius:99px;background:#fff;font-size:15px;font-weight:500;color:#3b3a44;cursor:pointer}
.paran-content .case-more .cm-filter button[aria-pressed=true]{border-color:#15141a;box-shadow:inset 0 0 0 1px #15141a;color:#15141a;font-weight:700}
.paran-content .case-more .cm-filter button span{margin-left:4px;font-size:13px;color:var(--muted)}
.case-more.is-cards ul.cm-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px;columns:auto}
.case-more.is-cards .cm-grid li{margin:0;padding:0;border:0;break-inside:auto}
.case-more.is-cards .cm-grid li[hidden]{display:none}
.case-more.is-cards .cm-grid a{display:grid;gap:10px;text-decoration:none;color:var(--ink)}
.case-more.is-cards .cm-grid img,.case-more.is-cards .cm-noimg{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:10px;background:#f1f1f4}
.case-more.is-cards .cm-text{display:grid;gap:4px}
.case-more.is-cards .cm-meta{font-size:13px;color:var(--muted)}
.case-more.is-cards .cm-grid b{font-size:16px;line-height:1.45;font-weight:650}
.case-more.is-cards .cm-grid a:hover b{text-decoration:underline;text-underline-offset:4px}
@media (max-width:1000px){.case-more.is-cards ul.cm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.case-more.is-cards ul.cm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.case-more.is-cards .cm-grid b{font-size:15px}}
/* 2026-11-20 대표 사진이 늦게 뜨면서 아래 글이 밀리던 것: 사진 비율(--ar)로 자리를 먼저 잡는다 */
.case-hero[style*="--ar"] img{aspect-ratio:var(--ar);width:min(100%,calc(80vh * var(--ar)));height:auto;max-height:none}
/* 2026-11-20 서버가 미리 보낸 빈 견적 구성 칸: 자리만 잡고 보이지 않게 */
.case-rail[data-rail-empty]{visibility:hidden;min-height:260px}
