/* ==========================================================
   refine.css  (v3.107, 2026-11-18)  디자인 정리. 모든 페이지 <head> 맨 끝에서 불러온다(postbuild_1118.py).
   되돌리기: postbuild_1118.py 의 REFINE=False 로 빌드하면 이 파일 없이 이전 모양 그대로 나온다.
   1 버튼 DS · 2 글자 크기 기준 · 3 폭과 정렬 · 4 줄바꿈 · 5 패키지 목록 · 6 진행과정 · 7 하단 안내 · 8 유튜브 영상
   ========================================================== */

/* ---------- 1. 버튼 DS ----------
   크기: 기본 48px / 작은 형 44px (모바일도 44px 이상). 모서리 2px.
   역할: 채움(.btn) · 테두리(.btn.ghost) · 텍스트 링크(.tlink). 어두운 바탕(첫 화면·하단 안내·견적 합계 줄) 위에서는 색이 뒤집힌다.
   인터랙션: 모든 버튼에 hover · active · focus-visible · disabled. */
:root{--btn-h:48px;--btn-h-sm:44px;--btn-r:2px;--btn-t:background-color .16s ease,color .16s ease,border-color .16s ease,opacity .16s ease}
.btn{box-sizing:border-box;min-height:var(--btn-h);padding:0 26px!important;border-radius:var(--btn-r)!important;font-size:15px;font-weight:600;line-height:1.25;text-align:center;text-decoration:none;white-space:nowrap;transition:var(--btn-t);-webkit-tap-highlight-color:transparent}
.btn.sm{min-height:var(--btn-h-sm);padding:0 18px!important;font-size:14px}
/* 채움 */
.btn{background:var(--ink);color:#fff;border:1px solid var(--ink)}
.btn:active{background:#000;border-color:#000}
/* 테두리 */
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--ink)}
.btn.ghost:active{background:#000;border-color:#000;color:#fff}
/* 어두운 바탕 위: 흰 채움 / 흰 테두리 */
.hero .btn,.cta .btn,.totbar .btn{background:#fff;color:var(--ink);border-color:#fff}
.hero .btn:active,.cta .btn:active,.totbar .btn:active{background:#cfcfc9;border-color:#cfcfc9}
.hero .btn.ghost,.cta .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.hero .btn.ghost:active,.cta .btn.ghost:active{background:#fff;border-color:#fff;color:var(--ink)}
@media(hover:hover){
  .btn:hover{background:#4a4a46;border-color:#4a4a46;color:#fff}
  .btn.ghost:hover{background:var(--ink);border-color:var(--ink);color:#fff}
  .hero .btn:hover,.cta .btn:hover,.totbar .btn:hover{background:#e3e3dd;border-color:#e3e3dd;color:var(--ink)}
  .hero .btn.ghost:hover,.cta .btn.ghost:hover{background:#fff;border-color:#fff;color:var(--ink)}
}
.btn:focus-visible,.tlink:focus-visible,.cs-nav button:focus-visible,.presets button:focus-visible,.pklist a:focus-visible,#tabs button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.hero .btn:focus-visible,.cta .btn:focus-visible,.totbar .btn:focus-visible{outline-color:#fff}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;cursor:default;pointer-events:none}
/* 텍스트 링크 */
.tlink{display:inline-flex;align-items:center;min-height:var(--btn-h-sm);font-size:14px;font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:var(--ink4);text-underline-offset:4px;transition:text-decoration-color .16s ease,color .16s ease}
@media(hover:hover){.tlink:hover{text-decoration-color:var(--ink)}}
.tlink:active{color:#000}
/* 이미 밑줄이 있는 기존 텍스트 링크(더 보기 · 자세히 보기 · 후기 전체 보기): 모양은 그대로, 반응만 통일 */
.more a,a.detail,.rvl-b>a:last-child,.ins-more a,.pf-more a{transition:opacity .16s ease}
@media(hover:hover){.more a:hover,a.detail:hover,.rvl-b>a:last-child:hover,.ins-more a:hover,.pf-more a:hover{opacity:.55}}
.more a:active,a.detail:active,.rvl-b>a:last-child:active{opacity:.4}
/* 버튼처럼 쓰는 나머지: 패키지 바로가기 · 빠른 선택 · 이전/다음 · 닫기 */
.pklist a,.presets button{box-sizing:border-box;min-height:var(--btn-h-sm);display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:var(--btn-r)!important;transition:var(--btn-t)}
@media(hover:hover){
  .pklist a:not(.on):hover,.presets button:not(.on):not(:disabled):hover{background:var(--ink);border-color:var(--ink);color:#fff}
  .pklist a.on:hover,.presets button.on:hover{background:#4a4a46;border-color:#4a4a46}
  #tabs button:not([aria-selected="true"]):not(:disabled):hover{background:var(--bg2)}
  #tabs button[aria-selected="true"]:hover{background:#2b2b28}
}
.pklist a:active,.presets button:active{background:#000;border-color:#000;color:#fff}
.cs-nav button{width:var(--btn-h-sm);height:var(--btn-h-sm);border-radius:var(--btn-r);border:1px solid var(--ink);background:transparent;color:var(--ink);transition:var(--btn-t)}
.cs-nav button:disabled{opacity:.3}
@media(hover:hover){.cs-nav button:not(:disabled):hover{background:var(--ink);border-color:var(--ink);color:#fff}}
.cs-nav button:not(:disabled):active{background:#000;border-color:#000;color:#fff}
.pc-nx,.pc-pv{transition:background-color .16s ease}
@media(hover:hover){.pc-nx:hover,.pc-pv:hover{background:#fff}}
#itsheet .sh-x{min-height:var(--btn-h-sm);display:flex;align-items:center;justify-content:center;padding:0 16px;border-color:var(--ink);cursor:pointer;transition:var(--btn-t)}
#itsheet .sh-x:active{background:var(--ink);color:#fff}
.sb-recent a{transition:var(--btn-t)}
@media(hover:hover){.sb-recent a:hover{background:var(--ink);border-color:var(--ink);color:#fff}}
/* 헤더: 44px 버튼이 들어가도 줄 높이는 그대로 */
.nav .btn.sm.hcta{min-height:var(--btn-h-sm)}
/* 좁은 화면에서 버튼 글자가 길면 줄바꿈 허용 */
@media(max-width:420px){.btn{white-space:normal;padding:8px 18px!important}.btn.sm{padding:6px 14px!important}}
.lockbar .btn{white-space:nowrap}
@media(max-width:720px){.lockbar .btn{white-space:normal}}

/* ---------- 2. 글자 크기 기준: 페이지 제목 44 · 섹션 36 · 본문 16 ---------- */
:root{--t1:clamp(30px,4.4vw,44px);--sec:clamp(24px,3.6vw,36px)}
.ptitle h1,.head h1.pkh,.head h1.ash2,#reviews .head h1.ash2,.ptitle.lbl h1{font-size:var(--t1);font-weight:600;letter-spacing:-.03em;line-height:1.2;color:var(--ink)}
main .sec .head h2:not(.h),.cta h2{font-size:var(--sec)}

/* ---------- 3. 폭과 정렬: 좁은 본문은 가운데 열, 글은 왼쪽 정렬 ---------- */
@media(min-width:961px){
  /* 큐레이션랩스 소개: 880px 열을 가운데에 */
  .aboutpg .article{max-width:880px;margin-left:auto;margin-right:auto}
  .aboutpg #principles .head,.aboutpg #principles .pts,.aboutpg #principles .hero2{max-width:880px;margin-left:auto;margin-right:auto}
  .ptitle:has(+ .aboutpg) .wrap>*{max-width:880px;margin-left:auto;margin-right:auto}
  .ptitle:has(+ .aboutpg) .wrap>p{max-width:880px}
  /* 고객후기 · 인사이트 · FAQ: 목록 열을 가운데에 */
  #reviews .wrap>*,.ptitle.lbl .wrap>*,#insight .wrap>*{max-width:880px;margin-left:auto;margin-right:auto}
  #reviews .rvl-feed{max-width:880px}
}

/* ---------- 4. 줄바꿈 (v3.108, 11-18 2차): 짧은 설명은 PC 에서도 문장 끝에서 줄을 바꾼다. 모바일은 그대로 ----------
   폭은 넓게(720px) 두어 한 문장이 한 줄에 들어가게 한다. 문장 중간에서 끊기거나 꼬리 한 단어만 넘어가는 일을 막는다.
   네 줄 이상으로 쌓이는 설명(패키지 안내 리드)만 문단으로 흘려 쓴다. 소개 본문은 11-10 에 정한 줄 그대로(site.css).
   span.ln 은 원고의 줄 표시(모바일·PC 공통), span.lnp 는 postbuild_1118 _lnp() 가 넣는 PC 전용 줄 표시. */
.sc,.lead,figcaption,.sb-sub,.sb-lt span,h3,h4,summary,p.h,.st,.ti{text-wrap:pretty}
@media(min-width:601px){
  .lnp{display:block}
  .cta p .ln{display:block}
  .ptitle p:has(.ln:nth-of-type(4)) .ln,.sec .head p.lead:has(.ln:nth-of-type(4)) .ln,.pc-hd p:has(.ln:nth-of-type(4)) .ln,.cta p:has(.ln:nth-of-type(4)) .ln,
  p:has(.lnp:nth-of-type(4)) .lnp{display:inline}
  .ptitle p,.sec .head p.lead,.aboutpg .head p.lead{max-width:720px}
  .cta h2{text-wrap:wrap}
  .cta h2 .hl2{display:inline-block}
}

/* ---------- 5. 큐레이션 패키지 목록(랜딩 · /package/): 글 열 720px, 공사일은 제목 위, 제목 행간 1.3 ---------- */
.card h3{line-height:1.3}
.card h3 a{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:4px}
.card h3 small{margin-left:0;font-size:14px;font-weight:600;color:var(--ink3);letter-spacing:0}
@media(min-width:1101px){.card{grid-template-columns:minmax(0,1fr) 720px;gap:40px}}
/* 반복되는 줄에서는 가격이 먼저 보이게: 셀프 견적은 채움 버튼, 자세히 보기는 텍스트 링크 */
.card .pr{align-items:center}
.card .pr .acts{align-items:center;gap:18px}
.card .pr .acts .btn{min-height:var(--btn-h-sm);padding:0 18px!important;font-size:14px}
.card .pr .acts .btn.ghost{min-height:var(--btn-h-sm);padding:0!important;border:0;background:transparent;color:var(--ink);text-decoration:underline;text-decoration-color:var(--ink4);text-underline-offset:4px;font-weight:600}
@media(hover:hover){.card .pr .acts .btn.ghost:hover{background:transparent;color:var(--ink);text-decoration-color:var(--ink)}}
.card .pr .acts .btn.ghost:active{background:transparent;color:#000}
.card .pr .acts .btn.ghost::after{content:"→";margin-left:4px;text-decoration:none;display:inline-block}

/* ---------- 6. 진행과정: 아홉 단계를 한 줄씩. 결제는 네 번만 표시 ---------- */
.step:not(.pay) .pay{display:none}
.step.after .pay{display:block}
@media(min-width:861px){
  #process .steps,.steps{grid-template-columns:1fr}
  .step,.step:nth-child(n){display:grid;grid-template-columns:44px 250px minmax(0,1fr) 230px;column-gap:28px;align-items:center;padding:20px 0;border-right:0;border-bottom:1px solid var(--line);font-size:15px}
  .step:last-child{border-bottom:0}
  .step .no{grid-column:1;grid-row:1/3;margin:0;width:40px;height:40px}
  .step .when{grid-column:2;grid-row:1;align-self:end;font-size:13px}
  .step h4{grid-column:2;grid-row:2;align-self:start;margin:2px 0 0;font-size:18px;line-height:1.4}
  .step p{grid-column:3;grid-row:1/3;font-size:15px;line-height:1.7;max-width:560px}
  .step .pay{grid-column:4;grid-row:1/3;margin:0;padding:0}
  .step .pay span{border:0;padding:0;text-align:right;font-size:13px;color:var(--ink3)}
  .step .pay b{font-size:17px;font-weight:700;color:var(--ink)}
}

/* ---------- 7. 하단 안내(검은 띠): 넓은 글 열 + 버튼 열 ---------- */
.cta h2{max-width:none}
.cta p{max-width:720px;text-wrap:pretty}
@media(min-width:961px){
  .cta .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:56px;align-items:center}
  .cta .wrap>h2,.cta .wrap>p{grid-column:1}
  .cta .wrap>.acts{grid-column:2;grid-row:1/span 2;margin-top:0;flex-wrap:nowrap}
}

/* ---------- 8. 랜딩 유튜브 영상: PC 는 네 개만 보이고 다섯째부터 옆으로 넘김 ---------- */
@media(min-width:721px){
  #youtube .ytg{flex-wrap:nowrap;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  #youtube .ytg::-webkit-scrollbar{display:none}
  #youtube .ytg>.ytc{flex:0 0 calc((100% - 48px) / 4);width:auto;min-width:0;scroll-snap-align:start}
  #youtube .head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
  #youtube .yt-nav{display:flex}
  #youtube .yt-nav.one{display:none}
}
