/* 토큰: 판결문 + 녹색 회의 천 + 인주. 인주색은 직인과 핵심 결과에만 쓴다. */
:root {
  --baize: #12382e;
  --baize-deep: #0c2a22;
  --baize-text: #f2f6f3;
  --baize-muted: #b7cbc1;
  --ink: #17211d;
  --muted: #55625c;
  --line: #d3dcd7;
  --sage: #edf2ee;
  --paper: #ffffff;
  --seal: #b42a1f;
  --link: #145243;
  --display: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.8 var(--sans); word-break: keep-all; overflow-wrap: anywhere; font-synthesis: none; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--baize-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; }

/* 직인 */
.seal[data-s]::before { content: attr(data-s); }
.seal { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--seal); color: #fff; font: 700 21px/1 var(--display); border-radius: 3px; box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255,255,255,.75); }

/* 머리글 */
.top { background: var(--baize); color: var(--baize-text); }
.top-in { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 20px/1.2 var(--display); }
.brand:hover { color: inherit; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15.5px; }
.field-tag { margin-left: -12px; padding-left: 16px; border-left: 1px solid var(--baize-muted); color: var(--baize-text); text-decoration: none; font: 700 19px/1.2 var(--display); }
.field-tag:hover { color: #fff; }
.top .solo .call-apply { margin-left: auto; }
.nav a { color: var(--baize-text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: #fff; border-bottom-color: var(--baize-muted); }
.call { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 14px; background: var(--paper); color: var(--baize-deep); font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 3px; transition: transform .1s; }
.call:active, .btn:active { transform: translateY(1px); }

/* 메인 히어로: 녹색 천 위에 서류 한 장 */
.hero { background: var(--baize); color: var(--baize-text); padding: clamp(36px, 6vw, 76px) 0 clamp(44px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 { margin: 0 0 24px; font: 700 clamp(36px, 5vw, 64px)/1.22 var(--display); letter-spacing: -.015em; }
.hero-copy { position: sticky; top: 28px; }
.hero-copy p { margin: 0 0 16px; max-width: 34em; color: var(--baize-muted); font-size: 18px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.hero-links a { color: var(--baize-text); }
.sheet { position: relative; background: var(--paper); color: var(--ink); padding: clamp(20px, 3vw, 32px); border-radius: 3px; box-shadow: 0 1px 0 rgba(255,255,255,.1), 0 22px 44px -18px rgba(0,0,0,.55); }
.sheet h2 { margin: 0 0 4px; font: 700 24px/1.35 var(--display); }
.sheet > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* 자가 확인 폼 */
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 15.5px; }
.opts { display: grid; gap: 6px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opts label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; font-size: 15px; line-height: 1.35; cursor: pointer; transition: background .12s, border-color .12s; }
.opts label:hover { background: var(--sage); }
.opts input { accent-color: var(--baize); margin: 0; flex: none; }
.opts label:has(input:checked) { border-color: var(--baize); background: var(--sage); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 3px; background: var(--baize); color: #fff; font: 600 16px/1.3 var(--sans); text-decoration: none; cursor: pointer; transition: transform .1s, background .12s; }
.btn:hover { background: var(--baize-deep); color: #fff; }
.btn.wide { width: 100%; }
.form-error { color: var(--seal); font-size: 14.5px; margin: 8px 0 0; }
.verdict { margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--ink); }
.verdict-label { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.verdict-label span { font: 700 15px/1.3 var(--display); letter-spacing: .4em; color: var(--muted); }
.verdict h3 { margin: 6px 0 8px; font: 700 25px/1.35 var(--display); }
.verdict p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; }
.verdict ul { margin: 0 0 12px; padding: 0; list-style: none; font-size: 15.5px; }
.verdict li { padding: 3px 0; }
.stamp { width: 52px; height: 52px; font-size: 32px; transform: rotate(-6deg); animation: stamp .32s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.7); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.fine { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }

/* 메인 구역 */
.picks { list-style: none; margin: 14px 0 0; padding: 0; }
.picks li { border-top: 1px solid var(--line); }
.picks a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.picks a::after { content: "›"; flex: none; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .15s; }
.picks a:hover strong { color: var(--link); text-decoration: underline; }
.picks a:hover::after { transform: translateX(3px); }
.picks strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; }
.picks small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
#debt { scroll-margin-top: 12px; }
.debt-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.debt-grid .home-fig .fig { margin-top: 0; }
@media (max-width: 960px) { .debt-grid { grid-template-columns: minmax(0, 1fr); } }
.hook { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 34px; padding: 16px 18px; border: 1px solid var(--baize); border-radius: 3px; }
.hook p { margin: 0; font-size: 16.5px; line-height: 1.6; font-weight: 600; }
.hook .btn { flex: none; min-height: 46px; }
.diag { margin: 0 0 34px; }
.diag .diag-title { margin: 0 0 6px; font: 700 26px/1.35 var(--display); }
.diag-lede { margin: 0; font-size: 16.5px; line-height: 1.6; font-weight: 600; }
.diag > .fine { margin: 6px 0 18px; }
.diag label { font-weight: 400; }
.diag .opts label { display: flex; font-size: 15px; }
.diag .opts input { display: block; width: auto; min-height: 0; margin: 0; }
.diag .d-after label { font-weight: 600; margin-bottom: 18px; }
.diag .unlock label { font-weight: 600; }
.diag .opts.three label { padding: 7px 10px; }
.diag .verdict h3 { margin: 6px 0 8px; }
.diag .d-detail { margin-top: 14px; }
.diag .d-detail h3 { font-size: 21px; }
.diag .d-detail ul { padding-left: 18px; list-style: disc; }
.diag .d-detail li { padding: 3px 0; }
@media (max-width: 640px) { .hook { flex-direction: column; align-items: stretch; } .hook .btn { width: 100%; } .diag .opts.three { grid-template-columns: 1fr; } }
.cf-hours { margin: 10px 0 0 !important; font-size: 14.5px; font-weight: 600; text-align: center; }
.kakao { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 10px 16px; border-radius: 3px; background: #fee500; color: #191919; font: 700 16px/1.3 var(--sans); text-decoration: none; transition: transform .1s; }
.kakao:active { transform: translateY(1px); }
.kakao svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.cf-kakao { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 !important; }
.cf-kakao .kakao { flex: 1 1 140px; }
.kakao-fab { position: fixed; right: 24px; bottom: 24px; z-index: 16; display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 10px 20px 10px 16px; border-radius: 999px; background: #fee500; color: #191919; font: 700 16px/1.2 var(--sans); text-decoration: none; list-style: none; cursor: pointer; box-shadow: 0 10px 26px -10px rgba(0,0,0,.55); transition: transform .12s; }
.kakao-fab::-webkit-details-marker { display: none; }
.kakao-fab:hover { transform: translateY(-2px); }
.kakao-fab:active { transform: translateY(1px); }
.kakao-fab svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.kakao-fab small { margin-left: 3px; font-size: 13px; font-weight: 600; opacity: .7; }
.lead-fab { position: fixed; right: 24px; bottom: 24px; z-index: 16; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 24px; border-radius: 999px; background: var(--seal); color: #fff; font: 700 16px/1.2 var(--sans); text-decoration: none; box-shadow: 0 10px 26px -10px rgba(0,0,0,.55); transition: transform .12s; }
.lead-fab.over-kakao { bottom: 90px; }
.lead-fab:hover { transform: translateY(-2px); color: #fff; }
.lead-fab:active { transform: translateY(1px); }
.kakao-menu-list { position: fixed; right: 24px; bottom: 156px; z-index: 16; display: grid; gap: 8px; width: 210px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 36px -14px rgba(0,0,0,.5); }
.kakao-menu-list p { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; }
.cf-kakao-h { margin: 16px 0 0 !important; font-size: 14.5px; font-weight: 600; }
.band { padding: clamp(44px, 6vw, 80px) 0; }
.band.sage { background: var(--sage); }
.band h2.title { margin: 0 0 8px; font: 700 clamp(28px, 3.4vw, 40px)/1.3 var(--display); }
.band .lede { margin: 0 0 28px; color: var(--muted); max-width: 42em; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.way { display: flex; flex-direction: column; }
.way h3 { margin: 0 0 10px; font: 700 28px/1.3 var(--display); }
.way h3 a { color: inherit; text-decoration: none; }
.way h3 a:hover { text-decoration: underline; }
.way dl { margin: 0 0 16px; }
.way dt { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.way dd { margin: 0; font-size: 16px; line-height: 1.55; }
.way .more { margin-top: auto; font-weight: 600; font-size: 15.5px; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); }
.topics h3 { margin: 0 0 8px; font: 700 21px/1.35 var(--display); }
.topics ul { list-style: none; margin: 0; padding: 0; }
.topics li { border-top: 1px solid var(--line); }
.topics a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.45; }
.topics a:hover { color: var(--link); text-decoration: underline; }
.caselist { list-style: none; margin: 0; padding: 0; }
.caselist li { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.caselist .no { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.caselist .no small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.caselist h3 { margin: 0 0 4px; font: 600 18px/1.45 var(--sans); }
.caselist h3 a { color: inherit; text-decoration: none; }
.caselist h3 a:hover { color: var(--link); text-decoration: underline; }
.caselist p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* 본문 */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: var(--seal); transform-origin: 0 50%; transform: scaleX(0); z-index: 20; }
.crumb { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 2px 8px; list-style: none; margin: 0; padding: 0; }
.crumb li + li::before { content: '›'; margin-right: 8px; color: var(--line); }
.crumb a { color: var(--muted); }
.page-head { padding: clamp(18px, 3vw, 30px) 0 clamp(20px, 3vw, 34px); }
.page-head h1 { margin: 0 0 10px; font: 700 clamp(32px, 4.6vw, 52px)/1.25 var(--display); letter-spacing: -.01em; }
.meta { margin: 0; font-size: 14px; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; align-items: start; padding-bottom: 72px; } /* 목차 없이 본문 한 단을 가운데에 둔다 */
.toc { position: sticky; top: 22px; font-size: 14px; line-height: 1.45; max-height: calc(100vh - 44px); overflow-y: auto; }
.toc summary { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; list-style: none; pointer-events: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

/* 시그니처: 판결문의 요지 */
.gist { display: grid; grid-template-columns: 48px minmax(0, 1fr); margin: 0 0 34px; background: var(--sage); border-radius: 3px; overflow: hidden; }
.gist-tag { display: grid; place-items: center; background: var(--baize); color: #fff; font: 700 17px/1 var(--display); writing-mode: vertical-rl; letter-spacing: .5em; padding-top: .5em; }
.gist p { margin: 0; padding: 18px 20px; font-size: 18px; line-height: 1.75; }
.gist strong { font-weight: 700; }

.article h2 { margin: 46px 0 12px; font: 700 clamp(24px, 3vw, 30px)/1.4 var(--display); scroll-margin-top: 20px; }
.article h3 { margin: 28px 0 8px; font: 600 19px/1.45 var(--sans); }
.article p { margin: 0 0 14px; }
.article ul:not(.index) { margin: 0 0 16px; padding-left: 1.2em; }
.article ul:not(.index) li { margin-bottom: 6px; }
.steps { list-style: none; margin: 8px 0 20px; padding: 0; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 0 0 18px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--baize); border-radius: 50%; color: var(--baize); font-size: 14px; font-weight: 600; z-index: 1; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.steps strong { display: block; font-size: 17.5px; }
.tw { margin: 10px 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: normal; }
thead th { background: var(--baize); color: #fff; font-weight: 500; border-bottom: 0; white-space: nowrap; }
tbody th { font-weight: 600; width: 112px; background: var(--sage); }
tbody td:first-child { font-weight: 600; }
.article tbody tr:only-child td { font-weight: 400; }
table.num td:not(:first-child) { font-variant-numeric: tabular-nums; }
.note { margin: 18px 0; padding: 14px 18px; background: var(--sage); font-size: 15.5px; line-height: 1.7; border-radius: 3px; }
.index { list-style: none; margin: 10px 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.index li { border-top: 1px solid var(--line); }
.index a { display: block; padding: 10px 0; font-weight: 500; line-height: 1.45; }
.faq { margin-top: 46px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 13px 28px 13px 0; font-weight: 600; cursor: pointer; line-height: 1.5; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 10px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 16px; }
.refs { margin-top: 44px; padding-top: 18px; border-top: 2px solid var(--ink); font-size: 14.5px; line-height: 1.6; }
.refs h2 { margin: 0 0 8px; font: 600 15px/1.5 var(--sans); }
.refs ul { margin: 0 0 12px; padding-left: 1.2em; }
.refs li { margin-bottom: 4px; }
.refs p { color: var(--muted); margin: 8px 0 0; }
.related { margin-top: 28px; }
.related h2 { margin: 0 0 8px; font: 600 15px/1.5 var(--sans); }

.cta { margin-top: 36px; padding: 24px; background: var(--baize); color: var(--baize-text); border-radius: 3px; }
.cta h2 { margin: 0 0 6px; font: 700 24px/1.35 var(--display); }
.cta p { margin: 0 0 14px; color: var(--baize-muted); font-size: 15.5px; line-height: 1.65; }
.cta .btn { background: var(--paper); color: var(--baize-deep); }

/* 계산기 */
.tool { padding: 20px; border: 1px solid var(--baize); border-radius: 3px; margin: 8px 0 22px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool label { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.tool input, .tool select { display: block; width: 100%; min-height: 46px; margin-top: 5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; font: 400 17px/1.3 var(--sans); font-variant-numeric: tabular-nums; background: var(--paper); color: var(--ink); }
.tool small { font-weight: 400; color: var(--muted); }
.result { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--ink); }
.result-main { font: 700 clamp(30px, 5vw, 40px)/1.25 var(--display); margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; margin: 0; font-size: 15.5px; }
.result dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* 바닥글 */
.foot { background: var(--baize-deep); color: var(--baize-muted); padding: 40px 0 92px; font-size: 14.5px; line-height: 1.7; }
.foot a { color: var(--baize-text); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.foot p { margin: 0 0 8px; }
.foot-brand { color: var(--baize-text); font: 700 20px/1.3 var(--display); margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tbd { color: #f3c9c4; }
.mobile-bar { display: none; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: static; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc summary { min-height: 46px; margin: 0; padding: 11px 14px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; pointer-events: auto; list-style: revert; }
  .toc summary::-webkit-details-marker { display: revert; }
  .toc ul { padding: 0 14px 10px; }
  .toc a { padding: 7px 0; }
  .ways { grid-template-columns: 1fr; gap: 30px; }
  .topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .top-in { gap: 8px 12px; }
  .brand { flex: 1; }
  .nav { order: 3; width: 100%; margin: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 4px; font-size: 15px; }
  .nav a { min-height: 40px; display: inline-flex; align-items: center; }
  .top .call { display: none; }
  .topics { grid-template-columns: 1fr; }
  .caselist li { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .opts.three label { padding: 7px 8px; gap: 5px; font-size: 14px; white-space: nowrap; }
  table { font-size: 14.5px; }
  th, td { padding: 9px 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .gist { grid-template-columns: 38px minmax(0, 1fr); }
  .gist p { padding: 14px; font-size: 17px; }
  thead th { white-space: normal; }
  .mobile-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; min-width: 0; }
  .kakao-fab { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 48px; padding: 8px 15px 8px 13px; font-size: 15px; }
  .kakao-menu-list { right: 16px; bottom: calc(134px + env(safe-area-inset-bottom)); }
  .mobile-bar[hidden] ~ .kakao-fab, .mobile-bar[hidden] ~ .kakao-menu .kakao-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .mobile-bar[hidden] ~ .kakao-menu .kakao-menu-list { bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .top, .foot, .mobile-bar, .kakao-fab, .kakao-menu, .toc, .cta, .progress { display: none; } }

/* 상담 폼 */
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cta label { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--baize-text); }
.cta .cf-grid input, .cta .cf-grid select { display: block; width: 100%; min-height: 48px; margin-top: 5px; padding: 8px 10px; border: 1px solid transparent; border-radius: 3px; background: var(--paper); color: var(--ink); font: 400 16px/1.3 var(--sans); }
.cta [aria-invalid="true"] { border-color: var(--seal) !important; box-shadow: 0 0 0 2px #f3c9c4; }
.cf-consent { display: flex !important; gap: 9px; align-items: flex-start; font-weight: 500 !important; min-height: 28px; cursor: pointer; }
.cf-consent input { width: 19px; height: 19px; margin: 2px 0 0; flex: none; }
.cf-terms { margin: 6px 0 14px; font-size: 14px; color: var(--baize-muted); }
.cf-terms summary { cursor: pointer; padding: 5px 0; }
.cta .cf-terms p { margin: 4px 0 0; font-size: 14px; }
.cta a { color: #fff; }
.cta .btn[disabled] { opacity: .55; cursor: not-allowed; }
.cta .cf-msg { margin: 10px 0 0; color: #f7d4cf; font-size: 14.5px; font-weight: 500; }
.cta .cf-call { margin: 12px 0 0; }
.cf-done h3 { margin: 0 0 6px; font: 700 24px/1.35 var(--display); color: #fff; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tbd-inline { color: var(--seal); font-weight: 600; }
.band .cta { margin-top: 44px; }
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } }

.mobile-bar[hidden] { display: none !important; }

/* 도해 */
.fig { margin: 18px 0 26px; padding: 18px; background: var(--sage); border-radius: 3px; }
.fig figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.fig small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.fig b { font-weight: 600; line-height: 1.4; }
.axis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.axis-seg { padding: 12px; background: var(--paper); min-width: 0; }
.axis-seg b, .axis-seg span { display: block; }
.axis-seg b { font-size: 16px; margin: 3px 0; }
.axis-seg span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.axis-seg.on { background: var(--baize); color: #fff; }
.axis-seg.on small, .axis-seg.on span { color: var(--baize-muted); }
.span { display: flex; align-items: stretch; gap: 3px; }
.span-seg { min-width: 0; padding: 12px; background: var(--paper); }
.span-seg.main { background: var(--baize); color: #fff; }
.span-seg.main small { color: var(--baize-muted); }
.span-seg b, .span-end b { display: block; font-size: 15.5px; }
.span-seg:first-child { flex-basis: 110px !important; flex-grow: 0 !important; flex-shrink: 0; }
.span-end { display: grid; place-items: center; flex: none; padding: 0 14px; background: var(--seal); color: #fff; }
.stacks { display: grid; gap: 14px; }
.stack { display: flex; gap: 2px; margin-top: 5px; font-size: 13.5px; line-height: 1.35; }
.stack span { padding: 10px 8px; min-width: 0; font-weight: 600; }
.s-a { background: #cfdbd4; color: var(--ink); }
.s-b { background: var(--baize); color: #fff; }
.s-c { background: var(--paper); color: var(--seal); box-shadow: inset 0 0 0 1px var(--seal); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.split > div { padding: 14px; background: var(--paper); min-width: 0; }
.split b, .split span { display: block; }
.split b { font-size: 16px; margin-bottom: 6px; }
.split span { font-size: 14.5px; line-height: 1.5; padding: 3px 0; }
.split-a b { color: var(--baize); }
.split-b { box-shadow: inset 0 3px 0 var(--seal); }
.split-a { box-shadow: inset 0 3px 0 var(--baize); }
.split-b b { color: var(--seal); }
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.chain > div { padding: 12px; background: var(--paper); min-width: 0; }
.chain b { display: block; font-size: 14.5px; margin-top: 3px; }
.chain .end { background: var(--baize); color: #fff; }
.chain .end small { color: var(--baize-muted); }
.branch { display: grid; gap: 6px; justify-items: stretch; }
.node { padding: 10px 14px; background: var(--paper); font-weight: 600; font-size: 15px; text-align: center; }
.node.end { background: var(--baize); color: #fff; }
.node.soft { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.node.soft b { display: block; font-size: 15px; color: var(--ink); }
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.dates > div { padding: 12px; background: var(--paper); min-width: 0; }
.dates b, .dates span { display: block; }
.dates b { font-size: 15px; margin-top: 2px; }
.dates span { margin-top: 3px; font-size: 13px; color: var(--seal); font-weight: 600; }
.dates .on { box-shadow: inset 0 3px 0 var(--seal); }
.matrix { display: grid; grid-template-columns: 96px 1fr 1fr; gap: 3px; font-size: 14.5px; }
.matrix > b { display: flex; align-items: center; padding: 8px; font-size: 14px; }
.matrix .cell { display: flex; align-items: center; min-height: 72px; padding: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.4; }
.matrix .cell.strong { background: var(--baize); color: #fff; font: 700 21px/1.3 var(--display); }
.matrix .cell:hover { outline: 2px solid var(--baize); outline-offset: -2px; }
.home-fig { max-width: 820px; }
.home-fig .fig { margin: 16px 0 0; background: #e0e8e3; }
/* 서류 그림 */
.paper { position: relative; background: var(--paper); padding: 18px 18px 16px; border-radius: 2px; box-shadow: 0 1px 2px rgba(18,56,46,.14), 0 16px 26px -18px rgba(18,56,46,.5); font-size: 14px; line-height: 1.45; }
.paper > strong { display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); font: 700 18px/1.3 var(--display); }
.paper dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; }
.paper dt { color: var(--muted); }
.paper dd { margin: 0; font-weight: 500; }
.paper-mark { position: absolute; top: 14px; right: 14px; padding: 2px 6px; color: var(--seal); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--seal); border-radius: 2px; }
.paper-note { margin: 0; font-size: 13.5px; color: var(--seal); }
.paper .hl td { background: #fbeeec; }
.paper .tw { margin-bottom: 8px; }
.way .paper { margin-bottom: 20px; transform: rotate(-.6deg); }
.way:nth-child(2) .paper { transform: rotate(.5deg); }
.page-head.has-paper { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: end; }
.page-head.has-paper .paper { transform: rotate(.7deg); }
@media (max-width: 760px) {
  .page-head.has-paper { grid-template-columns: 1fr; }
  .axis, .chain, .dates { grid-template-columns: 1fr; }
  .dates { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .span { flex-wrap: wrap; }
  .span-seg:first-child { flex: 1 1 100% !important; }
  .span-seg.main { flex: 1 1 60% !important; }
  .matrix { grid-template-columns: 62px 1fr 1fr; }
  .matrix > b { padding: 6px 2px; font-size: 13px; }
  .matrix .cell { padding: 10px 8px; font-size: 13.5px; }
  .matrix .cell.strong { font-size: 18px; }
  .stack { flex-direction: column; }
  .stack span { width: 100% !important; }
}

.opts.three label { padding: 7px 8px; gap: 5px; font-size: 14px; white-space: nowrap; }

.caselist li { display: block; }
.caselist .no { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 400; color: var(--muted); }

.topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chain:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .topics { grid-template-columns: 1fr; }
  .nav { grid-template-columns: repeat(5, auto); font-size: 14px; }
}
@media (max-width: 760px) { .chain:has(> :nth-child(5)) { grid-template-columns: 1fr; } }

@media (max-width: 640px) { .nav { grid-template-columns: repeat(4, auto); font-size: 14px; } }

/* 결과 신청 */
.unlock { margin-top: 14px; padding: 16px; background: var(--baize); color: var(--baize-text); border-radius: 3px; }
.unlock-lede { margin: 0 0 12px !important; font-size: 15px; line-height: 1.6; color: #fff; }
.unlock label { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--baize-text); }
.unlock .cf-grid input, .unlock .cf-grid select { display: block; width: 100%; min-height: 48px; margin-top: 5px; padding: 8px 10px; border: 1px solid transparent; border-radius: 3px; background: var(--paper); color: var(--ink); font: 400 16px/1.3 var(--sans); }
.unlock .btn { background: var(--paper); color: var(--baize-deep); }
.unlock a { color: #fff; }
.unlock .cf-msg { margin: 10px 0 0; color: #f7d4cf; font-size: 14.5px; font-weight: 500; }
.unlock .cf-terms p { margin: 4px 0 0; font-size: 14px; color: var(--baize-muted); }
.unlock .cf-done h3 { margin: 0 0 6px; color: #fff; }
.unlock .cf-done p { margin: 0; color: var(--baize-text); }
.unlock [aria-invalid="true"] { border-color: var(--seal) !important; box-shadow: 0 0 0 2px #f3c9c4; }
.cf-wide { grid-column: 1 / -1; }
.mid-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 0; padding: 14px 16px; background: var(--sage); border-radius: 3px; }
.mid-cta .btn { min-height: 44px; flex: none; }
@media (max-width: 640px) { .mid-cta { flex-direction: column; align-items: stretch; } .mid-cta .btn { width: 100%; } }

/* 상담 팝업 */
.lead-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 4px; background: var(--baize); color: var(--baize-text); overflow-y: auto; box-shadow: 0 30px 70px -20px rgba(0,0,0,.65); }
.lead-dialog[open] { animation: lead-in .18s ease-out; }
.lead-dialog::backdrop { background: rgba(8, 24, 20, .62); }
@keyframes lead-in { from { transform: translateY(14px); } to { transform: none; } }
html:has(.lead-dialog[open]) { overflow: hidden; }
.lead-dialog .unlock { position: relative; margin: 0; padding: 22px 20px 20px; }
.lead-dialog h2 { margin: 0 34px 6px 0; font: 700 25px/1.3 var(--display); color: #fff; }
.lead-dialog .cf-wide { display: none; }
.lead-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lead-done-close { margin-top: 14px; }
.top .call-apply { background: var(--seal); color: #fff; margin-left: 0; }
.top-in .nav + .call-apply { margin-left: -6px; }
@media (max-width: 640px) {
  .lead-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 10px 10px 0 0; max-height: 92dvh; }
  .lead-dialog[open] { animation-name: lead-up; animation-duration: .22s; }
  .lead-dialog .unlock { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@keyframes lead-up { from { transform: translateY(100%); } to { transform: none; } }
.promo { display: grid; gap: 18px; margin: 36px 0; }
.promo img { display: block; width: 100%; height: auto; border-radius: 4px; }
/* 모바일에서는 법인 안내 이미지를 화면 양끝까지 채운다 */
@media (max-width: 640px) {
  .promo { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); gap: 12px; }
  .promo img { border-radius: 0; }
}
/* 모바일: 하단 가로 바 대신 PC와 같은 따라다니는 상담 버튼을 카톡 버튼 위에 둔다 */
@media (max-width: 640px) {
  .mobile-bar { display: none !important; }
  .lead-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); min-height: 50px; padding: 10px 20px; font-size: 15.5px; }
  .lead-fab.over-kakao { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .kakao-fab, .mobile-bar[hidden] ~ .kakao-fab, .mobile-bar[hidden] ~ .kakao-menu .kakao-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .kakao-menu-list, .mobile-bar[hidden] ~ .kakao-menu .kakao-menu-list { bottom: calc(140px + env(safe-area-inset-bottom)); }
}
.article .name-index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 16px; }
.article .name-index li { margin: 0; }
.name-index a { display: block; padding: 6px 0; }

/* 키워드 랜딩 첫 화면 */
.lp-hero { position: relative; overflow: hidden; background: #121110; color: #f4f1ea; text-align: center; padding: clamp(64px, 10vw, 128px) 0 clamp(52px, 8vw, 96px); }
.lp-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(14px) brightness(.32) saturate(.8); transform: scale(1.08); }
.lp-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(18,17,16,.35), rgba(18,17,16,.85) 75%); }
.lp-in { position: relative; z-index: 1; max-width: 860px; }
.lp-hero h1 { margin: 0 0 18px; font: 700 clamp(28px, 4.6vw, 48px)/1.32 var(--display); letter-spacing: -.02em; word-break: keep-all; }
.lp-hero .kw { color: #d6b77c; }
.lp-sub { margin: 0 auto 30px; max-width: 620px; color: #d8d3c8; font-size: clamp(15px, 1.8vw, 17px); line-height: 1.7; }
.lp-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; min-height: 54px; padding: 12px 26px; border-radius: 999px; font: 700 17px/1.2 var(--sans); text-decoration: none; transition: transform .12s, background .12s; }
.lp-btn:active { transform: translateY(1px); }
.lp-main { background: var(--seal); color: #fff; }
.lp-main:hover { color: #fff; filter: brightness(1.08); }
.lp-call { border: 1.5px solid rgba(244,241,234,.7); color: #f4f1ea; }
.lp-call:hover { background: rgba(244,241,234,.1); color: #fff; }
.lp-hours { margin: 16px 0 0; color: #b9b3a6; font-size: 14.5px; }
.lp-note { margin: 22px auto 0; max-width: 640px; color: #8f897d; font-size: 12.5px; line-height: 1.6; }
@media (max-width: 640px) { .lp-btn { flex: 1 1 100%; } }
.lp-sub strong { color: #fff; }
.lp-count { margin: -8px 0 28px; color: #e9e4d8; font-size: 17px; }
.lp-count b { margin: 0 4px; color: #e0603f; font: 800 clamp(40px, 6vw, 58px)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; vertical-align: -6px; }
.case-cta { margin: 34px 0; padding: 24px 24px 26px; background: var(--paper-2, #f4f1ea); border-left: 5px solid var(--seal); border-radius: 4px; }
.case-cta p { margin: 0 0 10px; }
.case-cta .cc-q { font: 700 clamp(19px, 2.4vw, 22px)/1.4 var(--display); color: var(--ink); }
.case-cta .cc-h { font-weight: 700; color: var(--ink); }
.case-cta .btn { margin-top: 8px; background: var(--seal); }
@media (max-width: 640px) { .case-cta .btn { width: 100%; } }
/* 랜딩 첫 화면 바로 아래 이미지는 띄우지 않는다 */
.lp-hero + .wrap .article > .promo:first-child { margin-top: 0; }
/* 랜딩: 이미지를 첫 화면에 이어지는 어두운 띠 안에 가운데로 둔다 */
.lp-promo { background: #121110; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }
.lp-promo .promo, .lp-promo .promo:first-child { max-width: 760px; margin: 0 auto; }
/* 이미지 폭(760px)보다 좁은 화면은 좌우 여백 없이 이미지만 꽉 채운다 */
@media (max-width: 820px) {
  .lp-promo { padding-left: 0; padding-right: 0; }
  .lp-promo .promo, .lp-promo .promo:first-child { margin: 0; max-width: none; }
  .lp-promo .promo img { border-radius: 0; }
  .lp-promo .case-cta { margin: 16px var(--gutter) 0; }
}
.lp-promo + .wrap .article > .gist:first-child, .lp-hero + .wrap .article > .gist:first-child { margin-top: clamp(32px, 5vw, 56px); }
/* 랜딩 머리글: 키워드가 길면 모바일에서 두 줄까지, 상담센터 표시는 숨긴다 */
@media (max-width: 640px) {
  .top-in.lp .brand { min-width: 0; font-size: 15.5px; line-height: 1.3; }
  .top-in.lp .field-tag { display: none; }
}
/* 이미지 바로 아래 상담 블록 */
.lp-promo .case-cta { max-width: 760px; margin: 24px auto 0; box-sizing: border-box; }
@media (max-width: 640px) { .lp-promo .case-cta { margin: 16px var(--gutter) 0; } }
/* 상담 상자 안: 카톡 버튼 글자는 검게, 전화 상담은 잘 보이는 버튼으로 */
.cta a.kakao, .unlock a.kakao { color: #191919; }
.cta .cf-call a, .unlock .cf-call a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 3px; color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.cta .cf-call a:hover, .unlock .cf-call a:hover { background: rgba(255,255,255,.1); }
/* 랜딩 첫 화면이 보이는 동안 따라다니는 버튼을 숨긴다 */
.lead-fab, .kakao-fab { transition: opacity .25s, transform .25s; }
.fab-wait .lead-fab, .fab-wait .kakao-fab, .fab-wait .kakao-menu { opacity: 0; pointer-events: none; transform: translateY(12px); }
/* 접수 중 표시와 빠른 신청 안내 */
.lp-live { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 9px 18px; border: 1px solid rgba(214,183,124,.45); border-radius: 999px; background: rgba(214,183,124,.08); color: #f4f1ea; font-size: clamp(15px, 1.9vw, 17px); }
.lp-live b { color: #d6b77c; }
.lp-live i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #e0603f; box-shadow: 0 0 0 0 rgba(224,96,63,.6); animation: lp-pulse 1.8s infinite; }
@keyframes lp-pulse { 70% { box-shadow: 0 0 0 9px rgba(224,96,63,0); } 100% { box-shadow: 0 0 0 0 rgba(224,96,63,0); } }
@media (prefers-reduced-motion: reduce) { .lp-live i { animation: none; } }
.lp-count { margin: 0 0 26px !important; font-size: 14.5px !important; color: #b9b3a6 !important; }
.lp-count b { font-size: clamp(22px, 3vw, 28px) !important; vertical-align: -2px !important; margin: 0 3px !important; }
.lp-fast { margin: 16px 0 0; color: #f4f1ea; font-weight: 700; font-size: 15.5px; }
.lp-fast + .lp-hours { margin-top: 6px; }
/* 랜딩: 포기하지 말라는 안내 + 변호사 경력 */
.lp-trust { background: #121110; color: #e9e4d8; padding: 8px 0 clamp(44px, 6vw, 72px); border-top: 1px solid rgba(214,183,124,.18); }
.lp-trust-in { max-width: 860px; display: grid; gap: clamp(24px, 4vw, 40px); padding-top: clamp(40px, 6vw, 64px); }
.lp-trust h2 { margin: 0 0 12px; font: 700 clamp(26px, 3.6vw, 36px)/1.3 var(--display); color: #fff; }
.lp-trust-lead { margin: 0 0 12px; font-size: clamp(17px, 2.1vw, 20px); font-weight: 700; color: #d6b77c; }
.lp-trust p { margin: 0; line-height: 1.75; font-size: clamp(15.5px, 1.8vw, 17px); }
.lp-trust strong { color: #fff; }
.lp-trust-b { padding: clamp(22px, 3.5vw, 32px); border: 1px solid rgba(214,183,124,.35); border-radius: 6px; background: linear-gradient(135deg, rgba(214,183,124,.10), rgba(214,183,124,.02)); }
.lp-trust-kicker { margin: 0 0 4px !important; color: #b9b3a6; font-size: 15px !important; }
.lp-trust h3 { margin: 0 0 12px; font: 700 clamp(22px, 3vw, 28px)/1.35 var(--display); color: #d6b77c; }
.lp-trust + .lp-promo { padding-top: 0; }
/* 변호사 경력 강조 */
.lp-trust-b { text-align: center; padding: clamp(30px, 5vw, 48px) clamp(20px, 4vw, 40px); border: 2px solid rgba(214,183,124,.6); background: radial-gradient(ellipse at top, rgba(214,183,124,.18), rgba(214,183,124,.03) 70%); box-shadow: 0 20px 50px -30px rgba(214,183,124,.45); }
.lp-trust-kicker { margin: 0 0 8px !important; color: #f4f1ea !important; font-size: clamp(18px, 2.6vw, 24px) !important; font-weight: 700; }
.lp-trust h3 { margin: 0 0 18px; font-size: clamp(28px, 4.8vw, 44px); line-height: 1.25; letter-spacing: -.02em; color: #e3c48a; }
.lp-trust-b p:last-child { max-width: 560px; margin: 0 auto; color: #d8d3c8; }
/* 성공사례 슬라이드 */
.cases { position: relative; padding: 8px 0 4px; }
.cases-title { margin: 0 0 14px; text-align: center; color: #d6b77c; font-weight: 700; font-size: clamp(17px, 2.2vw, 20px); }
.cases-track { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc((100% - min(84vw, 420px)) / 2); }
.cases-track::-webkit-scrollbar { display: none; }
.cases-track:focus-visible { outline: 2px solid #d6b77c; outline-offset: 4px; }
.cases-slide { flex: 0 0 min(84vw, 420px); scroll-snap-align: center; }
.promo .cases-slide img { border-radius: 8px; box-shadow: 0 16px 36px -18px rgba(0,0,0,.7); }
.cases-btn { position: absolute; top: calc(50% - 14px); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(18,17,16,.75); color: #f4f1ea; font: 400 30px/1 var(--sans); cursor: pointer; box-shadow: 0 0 0 1px rgba(214,183,124,.45); }
.cases-btn:hover { background: rgba(18,17,16,.92); color: #d6b77c; }
.cases-prev { left: 4px; }
.cases-next { right: 4px; }
.cases-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.cases-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(244,241,234,.3); cursor: pointer; }
.cases-dots button[aria-current="true"] { background: #d6b77c; width: 22px; border-radius: 5px; }
@media (max-width: 640px) { .cases-btn { width: 38px; height: 38px; font-size: 24px; } }
/* 신청 팝업: 어두운 배경에 묻히지 않게 밝은 카드로 띄운다 */
.lead-dialog { background: #fff; color: var(--ink); box-shadow: 0 30px 80px -10px rgba(0,0,0,.75), 0 0 0 1px rgba(214,183,124,.5); }
.lead-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.lead-dialog .unlock { background: #fff; color: var(--ink); border-top: 5px solid var(--seal); }
.lead-dialog h2 { color: var(--ink); }
.lead-dialog .unlock-lede { color: #3b3a36; }
.lead-dialog .unlock label { color: var(--ink); }
.lead-dialog .unlock .cf-grid input, .lead-dialog .unlock .cf-grid select { border: 1.5px solid #cfcac0; background: #fff; color: var(--ink); }
.lead-dialog .unlock .cf-grid input:focus { border-color: var(--seal); outline: none; box-shadow: 0 0 0 3px rgba(180,42,31,.15); }
.lead-dialog .unlock .btn { background: var(--seal); color: #fff; font-weight: 700; }
.lead-dialog .unlock a { color: var(--link); }
.lead-dialog .unlock a.kakao { color: #191919; }
.lead-dialog .cf-terms, .lead-dialog .unlock .cf-terms p { color: #6b675f; }
.lead-dialog .cf-hours { color: var(--ink); }
.lead-dialog .unlock .cf-msg { color: var(--seal); }
.lead-dialog .unlock .cf-done h3 { color: var(--ink); }
.lead-dialog .unlock .cf-done p { color: #3b3a36; }
.lead-dialog .lead-close { color: #555; }
.lead-dialog .unlock .cf-call a { border-color: #cfcac0; color: var(--ink); }
.lead-dialog .lead-done-close { background: var(--ink) !important; color: #fff !important; }
.promo > .cases { min-width: 0; max-width: 100%; }
.cf-notice { margin: 4px 0 4px; font-size: 13.5px; line-height: 1.55; opacity: .85; }
.lead-fab svg { width: 18px; height: 18px; margin-right: 8px; flex: none; fill: currentColor; }
/* 신뢰 블록 한 장: 제목과 변호사 경력을 한 카드에 */
.lp-trust-b > h2 { margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(214,183,124,.3); }

/* 키워드 랜딩 첫 화면 (2026-11-03 시안): 제목 + 금색 한 줄, 빨간 전화 · 노란 카톡 버튼, 센터명과 구분선 */
.lp-hero h1 { font-weight: 800; }
.lp-hero h1 em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 1.22em; color: #d6b77c; }
.lp-hero .lp-cta { flex-direction: column; align-items: stretch; max-width: 480px; margin: 0 auto; gap: 14px; }
.lp-hero .lp-btn { gap: 10px; min-height: 64px; border: 0; border-radius: 18px; font-size: clamp(18px, 2.2vw, 20px); font-weight: 800; }
.lp-hero .lp-btn svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.lp-hero .lp-call { background: var(--seal); color: #fff; }
.lp-hero .lp-call:hover { background: var(--seal); color: #fff; filter: brightness(1.08); }
.lp-hero .lp-kakao { background: #fee500; color: #191919; }
.lp-hero .lp-kakao:hover { color: #191919; filter: brightness(1.04); }
.lp-hero .lp-note { margin: 28px auto 0; font-size: 11.5px; line-height: 1.55; opacity: .85; }
.lp-hero .lp-note { margin-top: 18px; }


/* 휴대폰 하단 고정 바: 전화 · 카톡 반반 (첫 화면을 지나면 나타난다) */
.lp-bar { display: none; }
@media (max-width: 760px) {
  .lp-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 17; padding-bottom: env(safe-area-inset-bottom); background: #fee500; transition: transform .25s; }
  .lp-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; font: 800 19px/1 var(--sans); text-decoration: none; }
  .lp-bar svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
  .lp-bar-call { background: var(--seal); color: #fff; }
  .lp-bar-kakao { background: #fee500; color: #191919; }
  .fab-wait .lp-bar { transform: translateY(110%); }
  :root:has(.lp-bar) .lead-fab, :root:has(.lp-bar) .kakao-fab, :root:has(.lp-bar) .kakao-menu { display: none; }
}

/* 휴대폰 글자 키우기 (가독성) */
@media (max-width: 640px) {
  body { font-size: 18px; line-height: 1.8; }
  .article p, .article li { font-size: 18px; }
  .gist p { font-size: 18px; line-height: 1.75; }
  .article h2 { font-size: 25px; }
  .article h3 { font-size: 20.5px; }
  .page-head h1 { font-size: 34px; }
  .meta, .crumb { font-size: 15px; }
  table { font-size: 15.5px; }
  .note, .hook p, .diag-lede, .mid-cta strong, .case-cta p, .cta p, .caselist p, .topics a, .way dd, .result dl, .verdict p, .verdict ul { font-size: 17px; }
  .steps strong { font-size: 18.5px; }
  .faq summary { font-size: 18px; }
  .faq p, .faq div { font-size: 17.5px; }
  .way dt, .picks small, .caselist .no small, .kakao-menu-list p { font-size: 15px; }
  .picks strong { font-size: 18.5px; }
  .way .more, .refs, .cf-hours, .cf-kakao-h { font-size: 16px; }
  .tool label, .cta label { font-size: 16px; }
  .opts label { font-size: 16px; }
  .opts.three label { font-size: 15px; }
  .cf-notice, .cta .cf-terms p { font-size: 15px !important; }
  .foot { font-size: 15.5px; }
  .lp-sub { font-size: 17.5px; }
  .lp-note { font-size: 11.5px; }
  .band .lede { font-size: 17.5px; }
  .hero-copy p { font-size: 18px; }
}
/* 첫 화면이 그려지기 전에는 따라다니는 버튼이 움직이며 나타났다 사라지지 않게 */
:root:not(.fab-ready) .lp-bar, :root:not(.fab-ready) .lead-fab, :root:not(.fab-ready) .kakao-fab { transition: none; }
/* 키워드 랜딩: 좁은 화면에서는 머리글 버튼을 숨긴다(첫 화면에 큰 전화·카톡 버튼이 있다) */
@media (max-width: 820px) { .top-in.lp .call { display: none; } }
