/* 철거노트(임시 이름) — 회생 사이트(tools/hoesaeng) 틀을 옮기고 색만 바꿨다.
   공사 현장 느낌: 짙은 회색 글자 · 호박색 버튼 · 흰 바탕. 관할 법원 카드(.court)는 '신청 연결' 카드로 쓴다. */
:root {
  color-scheme: light;
  --ink: #1f2328;
  --ink-2: #4d545c;
  --ink-3: #7c848c;
  --paper: #ffffff;
  --panel: #f4f3f0;
  --line: #e2dfd8;
  --accent: #b45309;
  --accent-deep: #8a3f06;
  --accent-soft: #fdf1e3;
  --gold: #1f6f8b;
  --gold-soft: #e8f3f6;
  --blue: #1d5fbf;
  --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: 0 0 18px; font-size: 14px; color: var(--ink-3); }
.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-ad { display: inline-block; margin: 0 0 8px !important; padding: 2px 8px; border: 1px solid var(--ink-3); border-radius: 6px; font-size: 12px; color: var(--ink-3); }
.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; }

/* 지역 목록·함께 볼 글 — 이사 사이트에서 옮김 */
.regions { list-style: none; display: grid; gap: 8px; margin: 0 0 16px; padding: 0; }
.regions li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel); border-radius: 12px; }
.regions strong { flex: none; width: 3.2em; font: 700 17px/1.4 var(--head); }
.regions span { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.regions a { font-weight: 600; }
.related ul { margin: 0; padding-left: 20px; }
.related li { margin: 8px 0; }
.home { padding-top: 26px; padding-bottom: 56px; }
.home section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--line); }
