/* 회생·파산 길잡이 — 이사 사이트(tools/moving) 틀을 따르고 색만 바꿨다.
   빚 문제를 다루는 곳이라 들뜬 주황 대신 차분한 청록 버튼 · 남색 글자 · 흰 바탕.
   광고주 규칙상 안내 문구(광고책임 변호사·대출 상담 아님)가 눈에 띄어야 해서 .notice 를 따로 둔다. */
:root {
  color-scheme: light;
  --ink: #15233b;
  --ink-2: #4a5a6e;
  --ink-3: #7b8898;
  --paper: #ffffff;
  --panel: #f2f6f7;
  --line: #dbe3e7;
  --accent: #0e7c6b;
  --accent-deep: #0a5d50;
  --accent-soft: #e6f4f1;
  --gold: #b7791f;
  --gold-soft: #fbf3e4;
  --blue: #2359c4;
  --head: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.75 var(--body); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 56px; max-width: 1080px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 18px/1 var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.logo { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--panel); color: var(--ink); }
.top-cta { flex: none; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.top-cta:hover { background: var(--accent-deep); }
@media (max-width: 640px) {
  .top-in { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .nav { order: 3; width: 100%; margin: 4px -10px 0; padding-bottom: 6px; }
  .top-cta { margin-left: auto; }
}

/* 글 */
.art { padding-top: 18px; padding-bottom: 56px; }
.crumbs { font-size: 14px; color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs i { font-style: normal; color: var(--line); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.025em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(27px, 5.4vw, 36px); line-height: 1.32; margin: 14px 0 10px; }
h2 { font-size: clamp(22px, 4.2vw, 26px); line-height: 1.4; margin: 0 0 14px; }
/* 들머리 아래로 내리고 우측정렬한다 — 제목 바로 밑에 두면 검색 결과 설명에 먼저 잡힌다 */
.byline { margin: 14px 0 18px; font-size: 13px; color: var(--ink-3); text-align: right; }
.lead { margin: 18px 0 8px; }
.lead p { margin: 0 0 14px; font-size: 18px; line-height: 1.8; }
.art section { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
.art section:first-of-type { border-top: 0; }
section[id] { scroll-margin-top: 116px; }
@media (min-width: 641px) { section[id] { scroll-margin-top: 76px; } }
.art p { margin: 0 0 14px; }

/* 관할 법원 카드 — 이 사이트가 지역마다 다르게 주는 정보 */
.court { margin: 18px 0; padding: 18px 20px; border: 2px solid var(--accent); border-radius: 16px; background: var(--paper); }
.court-k { margin: 0 0 2px !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.court-n { margin: 0 0 8px !important; font: 700 24px/1.3 var(--head); }
.court-w { margin: 0 !important; color: var(--ink-2); }
.court-a { margin: 10px 0 0 !important; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--ink-2); }

/* 신청 상자 */
.cta { margin: 26px 0; padding: 20px 18px 16px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); text-align: center; }
.cta--mid { border-width: 1px; border-color: var(--line); background: var(--accent-soft); }
.cta-q { margin: 0 0 12px; font: 700 18px/1.4 var(--head); }
.btn { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; padding: 15px 18px; border-radius: 14px; background: var(--accent); color: #fff; font: 700 18px/1.3 var(--head); text-decoration: none; box-shadow: 0 6px 0 var(--accent-deep); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--accent-deep); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.cta-note { margin: 14px 0 0 !important; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

/* 목차 */
.toc { margin: 8px 0 0; padding: 16px 18px; background: var(--panel); border-radius: 14px; }
.toc p { margin: 0 0 6px; font: 700 15px/1.4 var(--head); color: var(--ink-2); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { position: relative; margin: 4px 0; padding-left: 16px; font-size: 16px; }
.toc li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.toc a { color: var(--ink); text-decoration: none; }

/* 목록 */
.dots { margin: 0 0 16px; padding-left: 22px; }
.dots li { margin: 6px 0; }
.check { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.check li { position: relative; padding: 12px 14px 12px 46px; background: var(--accent-soft); border-radius: 12px; line-height: 1.6; }
.check li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 5px; background: #fff; }
.check li::after { content: ""; position: absolute; left: 20px; top: 17px; width: 7px; height: 12px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.steps { list-style: none; counter-reset: st; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: st; position: relative; padding: 2px 0 0 50px; min-height: 36px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 16px/34px var(--head); text-align: center; }
.steps strong { display: block; font-family: var(--head); font-size: 18px; line-height: 1.5; }
.steps span { display: block; color: var(--ink-2); }
.area { margin: 16px 0; }
.area-h { margin: 0 0 8px !important; font: 700 15px/1.4 var(--head); color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--panel); font-size: 15px; }

/* 알림 상자 */
.box { margin: 18px 0; padding: 16px 18px; border-radius: 14px; }
.box strong { display: block; margin-bottom: 4px; font-family: var(--head); }
.box p { margin: 0 !important; }
.box--note { background: var(--accent-soft); }
.box--note strong { color: var(--accent-deep); }
.box--warn { background: var(--gold-soft); }
.box--warn strong { color: var(--gold); }

/* 표 */
.tbl { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--panel); font-family: var(--head); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 15px 34px 15px 0; font: 700 17px/1.5 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 24px/1 var(--body); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px !important; color: var(--ink-2); }

/* 근거 */
.sources { margin-top: 34px; padding: 16px 18px; background: var(--panel); border-radius: 14px; font-size: 14px; color: var(--ink-2); }
.sources h2 { font-size: 16px; margin: 0 0 6px; }
.sources ul { margin: 0; padding-left: 18px; }
.sources p { margin: 8px 0 0 !important; }

/* 바닥 — 광고주가 요구한 안내를 모든 쪽에 */
.foot { background: var(--panel); border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 700 16px/1 var(--head); color: var(--ink); }
.notice { margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); line-height: 1.7; }
.notice p { margin: 0 0 4px; }
.notice p:last-child { margin: 0; }
.notice strong { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; }
.foot-nav a { color: var(--ink-2); }
.foot-copy { margin: 0; color: var(--ink-3); font-size: 13px; }

/* ── 가까운 지역 (쪽 아래) ───────────────────────────── */
.nearby { margin: 44px 0 0; padding: 22px 24px; background: var(--panel); border-radius: 14px; }
.nearby h2 { margin: 0 0 14px; font-size: 18px; }
.nearby ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nearby li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.nearby li:first-child { border-top: 0; }
.nearby a { font-weight: 600; text-decoration: none; }
.nearby a:hover { text-decoration: underline; }
.nearby span { font-size: 13px; color: var(--ink-3); }

/* ── 홈(지역 목록) ──────────────────────────────────── */
.btn-ghost { display: inline-block; margin: 0 0 30px; padding: 13px 24px; border: 0;
  border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.btn-ghost:hover { background: var(--accent-deep); }
.area { margin: 0 0 30px; }
.area > h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 20px; }
.court-row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--line); }
.court-row:last-child { border-bottom: 0; }
.court-n { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.court-row p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 7px 14px; }
.court-row a { font-size: 15.5px; font-weight: 600; text-decoration: none; }
.court-row a:hover { text-decoration: underline; }
@media (max-width: 640px) { .court-row { grid-template-columns: 1fr; gap: 5px; } }

/* 상담 상자가 있던 자리 — 이제 다른 쪽으로 가는 길 */
.cta-go { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-go a { display: inline-block; padding: 12px 22px; border-radius: 10px; background: var(--accent);
  color: #fff; font-weight: 700; text-decoration: none; }
.cta-go a + a { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.cta-go a:hover { opacity: .9; }
.ad { margin: 30px 0; min-height: 1px; }

/* 홈의 '제도를 더 알고 싶다면' */
.topics { margin: 0; padding: 0; list-style: none; }
.topics li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.topics li:last-child { border-bottom: 0; }
.topics a { font-size: 16.5px; font-weight: 700; text-decoration: none; }
.topics a:hover { text-decoration: underline; }
.topics span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
