/* 김지수 변호사 사이트 시안 1 — 세 언어 사이트가 함께 쓰는 서식 (2026. 12. 1.)
   색: 흰 종이, 먹색 글, 짙은 솔잎색 띠, 인주색은 전화 단추와 표시에만.
   피한 것: 크림 바탕, 작은 영어 머리글, 같은 카드 3개, 남색·금색 틀, 보라색 그라데이션. */

:root {
  --ink: #1a1f24;
  --ink-2: #47505a;
  --paper: #ffffff;
  --band: #edf1ef;
  --rule: #d3dbd8;
  --pine: #1f3d36;
  --pine-deep: #16302a;
  --on-pine: #ffffff;
  --on-pine-2: #d3e0dc;
  --seal: #b3261e;
  --seal-dark: #8f1d17;
  --on-seal: #ffffff;
  --on-ink: #ffffff;
  --on-pine-line: rgba(255, 255, 255, 0.35);
  --on-pine-rule: rgba(255, 255, 255, 0.18);
  --field-line: #9aa6a2;
  --todo-bg: #fff1c2;
  --todo-ink: #5c4300;

  /* 2026. 12. 3. 변호사님 「글씨체가 조금 더 modern한 거를 원해. 특히 '변호사와 상담' '맡길지 정하기' 이런 글씨체」
     → 후보 셋 가운데 「C Pretendard」, 「세 언어 함께」. 명조 제목(함렛·Literata)을 없애고 제목도 본문 고딕으로.
     Pretendard 에는 베트남어 성조 글자와 러시아어 글자가 없어, vi·ru 쪽은 IBM Plex Sans 를 그대로 쓴다. */
  --sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --s1: 0.5rem;
  --s2: 0.875rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3.25rem;
  --s6: 5.5rem;

  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

:root:lang(vi),
:root:lang(ru) {
  /* 글 속 한국어(법무법인 대진 등)는 latin.css 에 함께 든 IBM Plex Sans KR 로(2026. 12. 3. 목록에 빠져 시스템 글꼴로 나오던 것을 바로잡음) */
  --sans: "IBM Plex Sans", "IBM Plex Sans KR", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:root:lang(vi) body,
:root:lang(ru) body { line-height: 1.65; word-break: normal; overflow-wrap: break-word; }
/* 베트남어·러시아어 글 속 한국어 원문은 낱말 가운데서 끊지 않는다(2026. 12. 3. 휴대폰 첫 화면 '법무 / 법인'으로 갈림) */
:root:lang(vi) [lang="ko"],
:root:lang(ru) [lang="ko"] { word-break: keep-all; }

h1, h2, h3 { font-family: var(--sans); font-weight: 600; color: inherit; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); line-height: 1.3; }
h3 { font-size: 1.375rem; line-height: 1.4; }
/* 한국어 쪽 Pretendard 제목은 미리보기 C 와 같이 조금 더 굵고 좁게 */
:root:lang(ko) h1, :root:lang(ko) h2 { font-weight: 700; letter-spacing: -0.025em; }
:root:lang(ko) h3 { font-weight: 650; letter-spacing: -0.015em; }
/* 한국어 쪽의 언어 전환 단추(Tiếng Việt, Русский)는 Pretendard 에 없는 글자라 그 낱말만 시스템 글꼴로 */
:root:lang(ko) [lang="vi"], :root:lang(ko) [lang="ru"] { font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif; }
p { margin: 0; text-wrap: pretty; }
li, dt, dd { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 36em; }
:root:lang(vi) .measure,
:root:lang(ru) .measure { max-width: 34em; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--seal); color: var(--on-seal); padding: var(--s1) var(--s3);
  border-radius: var(--radius); z-index: 50; text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--s1); }

:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; }

/* 확인 필요 표시 — 시안에서만 쓴다 */
.todo {
  background: var(--todo-bg); color: var(--todo-ink);
  font-size: 0.9375rem; padding: 0.1em 0.45em; border-radius: 4px; font-weight: 500;
}

/* 머리 */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: var(--s4); min-height: 4.5rem; }
/* 2026. 12. 3. 변호사님 「한국어, 베트남어, 러시아어는 오른쪽으로 옮겨주고」: 머리줄 순서는 이름 | 메뉴 | 상담 단추 | 언어.
   이름이 오른쪽을 밀어 메뉴가 숨는 좁은 화면이나 메뉴가 없는 처리방침 쪽에서도 언어 단추가 맨 오른쪽에 온다. */
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.brand b { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; }
.brand span { font-size: 0.9375rem; color: var(--ink-2); }
.nav { display: flex; gap: var(--s3); }
.nav a { text-decoration: none; font-size: 1rem; color: var(--ink-2); padding: var(--s1) 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.langs { display: flex; gap: var(--s2); font-size: 0.9375rem; }
.langs a { text-decoration: none; color: var(--ink-2); padding: 0.25rem 0; }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--seal); }
.call {
  display: inline-flex; align-items: center; gap: 0.4em;
  background: var(--seal); color: var(--on-seal); text-decoration: none; font-weight: 600;
  padding: 0.7rem 1.1rem; border-radius: var(--radius); white-space: nowrap; font-size: 1rem;
}
.call:hover { background: var(--seal-dark); }

/* 첫 화면 (2026. 12. 3. 변호사님 「권진호 변호사 페이지처럼 깔끔하게」 → 가운데 한 줄 메시지: 이름 줄, 큰 제목, 한 줄 설명, 단추 하나) */
.hero { background: var(--pine); color: var(--on-pine); }
.hero .wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: clamp(26rem, 62vh, 40rem); padding-top: var(--s6); padding-bottom: var(--s6);
}
.hero .org { font-size: 1.125rem; color: var(--on-pine-2); }
.hero h1 { margin-top: var(--s3); max-width: 15em; }
:root:lang(vi) .hero h1,
:root:lang(ru) .hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 19em; hyphens: auto; overflow-wrap: break-word; }
.hero .lead { margin-top: var(--s3); font-size: 1.25rem; line-height: 1.7; max-width: 34em; color: var(--on-pine-2); }
.hero .actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2); }
.hero .btn-call { align-items: center; }
.btn-call {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--seal); color: var(--on-seal); text-decoration: none; border-radius: var(--radius);
  padding: 0.85rem 1.4rem; line-height: 1.3;
}
.btn-call small { font-size: 0.9375rem; opacity: 0.95; }
.btn-call strong { font-size: 1.375rem; letter-spacing: 0.01em; }
/* 작은 글 없이 '상담 신청'만 든 단추는 좌우를 넓혀 큰 제목 아래에서 작아 보이지 않게(2026. 12. 3.) */
.btn-call:not(:has(small)) { padding: 0.95rem 2.5rem; }
.btn-call:hover { background: var(--seal-dark); }
.btn-line {
  display: inline-flex; align-items: center; color: var(--on-pine); text-decoration: none;
  border: 1.5px solid var(--on-pine-2); border-radius: var(--radius); padding: 0.85rem 1.4rem; font-weight: 500;
}
.btn-line:hover { background: var(--pine-deep); }

/* 첫 화면 배경 영상(2026. 12. 3. Pexels 8061655 정의의 여신상, 흑백). 솔잎색을 덮어 글자를 읽게 한다.
   움직임 줄이기·데이터 절약이면 hero.js 가 재생하지 않아 정지 그림(poster)만 보인다. */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--pine); opacity: 0.82; mix-blend-mode: multiply;
}
.hero-pause {
  position: absolute; right: var(--s3); bottom: var(--s3);
  font: inherit; font-size: 0.875rem; color: var(--on-pine-2); background: transparent; cursor: pointer;
  border: 1px solid var(--on-pine-line); border-radius: var(--radius); padding: 0.35rem 0.75rem;
}
.hero-pause:hover { color: var(--on-pine); border-color: var(--on-pine-2); }

/* 사진: 인사말 제목 아래(2026. 12. 3. 임시 사진을 받아 넣음) */
.portrait { margin: var(--s4) 0 0; max-width: 16rem; }
.portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
/* 감사장 작은 그림(변호사 소개). 누르면 큰 그림이 열린다(2026. 12. 3. 「사진도 실음」) */
.cert { display: block; width: 8rem; margin-top: var(--s2); }
.cert img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.cert:hover img { border-color: var(--ink-2); }

/* 절 */
.sec { padding: var(--s6) 0 calc(var(--s6) - 0.75rem); }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec.band { background: var(--band); border-top: 0; }
.sec.band + .sec { border-top: 0; }
.sec-head p { margin-top: var(--s2); color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s5); align-items: start; }
.split .sec-head { position: sticky; top: 6.5rem; }

/* 인사말 (한국어 첫 화면, 2026. 12. 3. 머리 메뉴 '인사말') */
.greeting { max-width: 38em; }
.greeting p + p { margin-top: var(--s3); }
.greeting p:first-child { font-family: var(--sans); font-weight: 600; font-size: 1.25rem; }
/* 문장마다 새 줄에서 시작하고, 한 문장이 두 줄이 되면 두 줄 길이를 고르게(변호사님 「문장이 안끊기게」) */
.greeting .s { display: block; text-wrap: balance; }
.greeting .sign { margin-top: var(--s4); font-family: var(--sans); font-weight: 600; font-size: 1.125rem; text-align: right; }

/* 첫 화면 업무분야 카드 (2026. 12. 3. 예전 '상황별 안내' 목록을 바꿈)
   한국어: 머리글 아래 분야 카드 6개 = 3열 2줄(민사·행정을 나눔, 2026. 12. 3.). 베트남어·러시아어(.two): 왼쪽 머리글, 오른쪽 카드 4개 2열.
   카드 안에 카드를 두지 않고, 링크 글에 화살표를 붙이지 않는다(Hallmark 기본 규칙). */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); align-items: stretch; }
.areas.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wrap:not(.split) > .sec-head + .areas { margin-top: var(--s4); }
.area { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s3) var(--s3) var(--s3); background: var(--paper); }
.area h3 { font-size: 1.25rem; padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); }
.area h3 a { text-decoration: none; }
.area h3 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.areas > .area:first-child h3 { border-bottom-color: var(--seal); }
.area ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.area li { border-bottom: 1px solid var(--rule); }
.area li a { display: block; padding: 0.7rem 0; text-decoration: none; }
.area li a:hover { color: var(--seal-dark); text-decoration: underline; text-underline-offset: 5px; }
.area .more { margin-top: var(--s2); }
.area .more a { display: inline-block; padding: 0.6rem 0; font-weight: 600; text-underline-offset: 5px; }
.area .more a:hover { color: var(--seal-dark); }

/* 상담 순서 */
.steps { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s5); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--sans); font-weight: 600;
  font-size: 2.75rem; line-height: 1; color: var(--seal); margin-bottom: var(--s3);
}
.steps p { margin-top: var(--s1); color: var(--ink-2); }

/* 글 목록 */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--rule); }
.posts li:last-child { border-bottom: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; text-decoration: none; }
.posts a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.posts .tag { font-size: 0.9375rem; color: var(--seal-dark); padding-top: 0.15rem; }
.posts strong { font-weight: 500; font-size: 1.1875rem; }
.more { display: inline-block; margin-top: var(--s4); font-weight: 600; text-underline-offset: 5px; }

/* 변호사 소개 */
.facts { margin: 0; display: grid; gap: var(--s3); }
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-2); font-size: 1rem; padding-top: 0.15rem; }
.facts dd { margin: 0; }
.facts ul { margin: 0; padding-left: 1.1em; }
/* 세 단 소개 (2026. 12. 3. 변호사님 답 「변호사 소개를 두세 단으로」): 묶음 이름을 위에, 굵은 밑줄로(업무분야 카드 제목과 같은 꼴) */
.profile { margin-top: var(--s4); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s5); align-items: start; }
.profile .facts { gap: var(--s4); }
.profile .facts div { grid-template-columns: 1fr; gap: var(--s2); padding-bottom: 0; border-bottom: 0; }
.profile .facts dt { padding: 0 0 var(--s1); border-bottom: 2px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
.profile .facts li + li { margin-top: 0.35rem; }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.visit h3 { font-size: 1.125rem; font-family: var(--sans); font-weight: 600; color: var(--ink-2); }
.visit p { margin-top: var(--s1); font-size: 1.1875rem; }
.visit a { text-underline-offset: 5px; }

/* 신청서 */
.form { margin-top: var(--s4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) var(--s4); max-width: 46rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.form input[type="text"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--field-line); border-radius: var(--radius); padding: 0.7rem 0.85rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form .hint { margin: 0 0 0.45rem; font-size: 0.9375rem; color: var(--ink-2); }
/* 연락처 묶음(vi·ru, 2026. 12. 3.): 칸 가운데 하나만 적으면 된다. 넓으면 한 줄, 좁으면 세로로 */
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 0.35rem; font-weight: 600; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; gap: var(--s3) var(--s4); margin-top: var(--s2); }
.form .agree { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 1rem; }
.form .agree input { width: 1.25rem; height: 1.25rem; margin-top: 0.3rem; flex: none; accent-color: var(--seal); }
.form button {
  font: inherit; font-weight: 600; background: var(--ink); color: var(--on-ink); border: 0; border-radius: var(--radius);
  padding: 0.85rem 1.6rem; cursor: pointer; justify-self: start;
}
.form button:hover { background: var(--pine); }
.form-msg { grid-column: 1 / -1; font-size: 1rem; color: var(--ink-2); }
.form-msg a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }
/* 메일 앱이 안 열릴 때 쓰는 '내용 복사'(2026. 12. 3.): 보내기 단추보다 한 단계 낮은 테두리 단추 */
.form-copy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.form .form-copy button { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.form .form-copy button:hover { background: var(--band); }
.form-copy span { font-size: 1rem; color: var(--ink-2); }

/* 꼬리 */
.foot { background: var(--pine-deep); color: var(--on-pine-2); padding: var(--s5) 0 var(--s4); font-size: 1rem; }
.foot .wrap { display: grid; gap: var(--s3); }
.foot b { color: var(--on-pine); font-weight: 600; }
.foot a { color: var(--on-pine); text-underline-offset: 4px; }
.foot .row { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.foot .fine { border-top: 1px solid var(--on-pine-rule); padding-top: var(--s3); font-size: 0.9375rem; }

/* 휴대폰 아래 단추 */
.dock { display: none; }

@media (max-width: 1100px) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .split { grid-template-columns: 1fr; gap: var(--s4); }
  .split .sec-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: var(--s4); }
  .visit { grid-template-columns: 1fr; gap: var(--s3); }
  .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 1.0625rem; padding-bottom: 4.75rem; }
  .top .wrap { gap: var(--s2); min-height: 3.75rem; }
  .top .call { display: none; }
  .langs { margin-left: auto; gap: 0.6rem; font-size: 0.875rem; }
  .brand b { font-size: 1.125rem; }
  .brand span { font-size: 0.875rem; }
  .hero .wrap { min-height: 0; padding-top: var(--s5); padding-bottom: calc(var(--s5) + 1.5rem); }
  .hero-pause { right: var(--s2); bottom: var(--s2); }
  .portrait { max-width: 11rem; }
  .hero .lead { font-size: 1.125rem; }
  .sec { padding: var(--s5) 0 calc(var(--s5) - 0.5rem); }
  .areas,
  .areas.two { grid-template-columns: 1fr; }
  .posts a,
  .facts div { grid-template-columns: 1fr; gap: 0.15rem; }
  .profile { grid-template-columns: 1fr; }
  .profile .facts div { gap: var(--s2); }
  .form { grid-template-columns: 1fr; }
  .dock {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s1);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--rule);
  }
  .dock a { text-align: center; text-decoration: none; font-weight: 600; border-radius: var(--radius); padding: 0.8rem 0.5rem; }
  .dock .d-call { background: var(--seal); color: var(--on-seal); }
  .dock.one { grid-template-columns: 1fr; } /* 전화번호가 없을 때: 이메일 신청 단추 하나 */
  .dock .d-form { border: 1.5px solid var(--ink); color: var(--ink); }
}

/* 개인정보 처리방침 쪽 */
.doc { padding: var(--s5) 0 var(--s6); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.doc h2 { font-size: 1.5rem; margin-top: var(--s5); }
.doc p, .doc ul { margin-top: var(--s2); }
.doc .meta { margin-top: var(--s2); color: var(--ink-2); }
.doc h3 { font-size: 1.1875rem; margin-top: var(--s4); }
.doc ul { padding-left: 1.25rem; list-style: disc; }
.doc li + li { margin-top: 0.35rem; }

/* 세부 쪽 (이혼·가사, 형사, 교통사고·손해배상, 민사·행정) */
.crumbs { border-bottom: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0.65rem 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.45rem; color: var(--ink-2); }
.crumbs a { text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); }

.page-head { background: var(--band); }
.page-head .wrap {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--s5); align-items: end; padding-top: var(--s5); padding-bottom: var(--s5);
}
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
:root:lang(vi) .page-head h1,
:root:lang(ru) .page-head h1 { font-size: clamp(1.875rem, 4.2vw, 2.75rem); hyphens: auto; overflow-wrap: break-word; }
.page-head .lead { margin-top: var(--s3); font-size: 1.1875rem; max-width: 32em; }
.page-head .actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn-ghost {
  display: inline-flex; align-items: center; color: var(--ink); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 0.85rem 1.4rem; font-weight: 500;
}
.btn-ghost:hover { background: var(--paper); }
.jump { border-left: 3px solid var(--pine); padding-left: var(--s3); }
.jump p { font-size: 1rem; color: var(--ink-2); }
.jump ol { list-style: none; margin: var(--s1) 0 0; padding: 0; }
.jump li { padding: 0.2rem 0; }
.jump a { text-decoration: none; }
.jump a:hover { text-decoration: underline; text-underline-offset: 5px; }

.cases { margin: 0; }
.cases div { padding: var(--s3) 0; border-top: 1px solid var(--rule); }
.cases div:last-child { border-bottom: 1px solid var(--rule); }
.cases dt { font-weight: 600; font-size: 1.1875rem; }
.cases dd { margin: 0.3rem 0 0; color: var(--ink-2); }
.cases dd.basis { margin-top: 0.5rem; font-size: 0.9375rem; }

.deadlines { list-style: none; margin: var(--s4) 0 0; padding: 0; max-width: 58rem; }
.deadlines li {
  display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: var(--s4);
  padding: var(--s4) 0; border-top: 1px solid var(--rule);
}
.deadlines li:last-child { border-bottom: 1px solid var(--rule); }
.deadlines .term { font-family: var(--sans); font-weight: 600; font-size: 2.125rem; line-height: 1.15; color: var(--seal); }
.deadlines .term small {
  display: block; margin-top: 0.4rem; font-family: var(--sans); font-weight: 500;
  font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2);
}
.deadlines h3 { font-size: 1.25rem; }
.deadlines p { margin-top: 0.4rem; }
.deadlines .basis { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--ink-2); }
.after-list { margin-top: var(--s3); max-width: 46rem; color: var(--ink-2); font-size: 1rem; }

.callout {
  margin-top: var(--s4); max-width: 58rem; background: var(--band); border: 1px solid var(--rule);
  padding: var(--s3) var(--s4); border-radius: var(--radius);
}
.sec.band .callout { background: var(--paper); }
.callout h3 { font-size: 1.1875rem; }
.callout p { margin-top: var(--s1); }
.callout .basis { font-size: 0.9375rem; color: var(--ink-2); }

.bring { list-style: none; margin: 0; padding: 0; columns: 2 17rem; column-gap: var(--s5); }
.bring li { break-inside: avoid; position: relative; padding: 0.75rem 0 0.75rem 2.1rem; border-bottom: 1px solid var(--rule); }
.bring li::before {
  content: ""; position: absolute; left: 0.15rem; top: 1.1rem;
  width: 1.05rem; height: 1.05rem; border: 2px solid var(--pine); border-radius: 3px;
}

.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }

/* 자주 묻는 질문 */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s3); padding: var(--s3) 0; font-weight: 600; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 500; font-size: 1.5rem; line-height: 1; color: var(--pine); }
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 2px solid var(--pine); outline-offset: 4px; }
.faq .answer { padding: 0 0 var(--s3); }
.faq .answer p + p { margin-top: var(--s1); }
.faq .basis { font-size: 0.9375rem; color: var(--ink-2); }

/* 처리 사례 (카드 내용은 _도구/내용/사례.json) */
.results { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); max-width: 58rem; }
.results li { border-top: 1px solid var(--rule); padding-top: var(--s3); }
.results .tag { font-size: 0.9375rem; color: var(--ink-2); }
.results h3 { margin-top: 0.3rem; font-size: 1.1875rem; }
.results dl { margin: var(--s1) 0 0; }
.results dt { margin-top: var(--s2); font-weight: 600; font-size: 1rem; }
.results dd { margin: 0.2rem 0 0; color: var(--ink-2); }
.results-note { margin-top: var(--s4); font-size: 0.9375rem; color: var(--ink-2); max-width: 58rem; }

/* 검토 변호사와 갱신일 */
.reviewed .wrap { padding-top: var(--s3); padding-bottom: var(--s3); border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--ink-2); }

/* 베트남어·러시아어는 글자가 좁아 한 줄이 길어지므로 본문 폭을 줄인다 */
:root:lang(vi) .deadlines li > div,
:root:lang(ru) .deadlines li > div,
:root:lang(vi) .callout,
:root:lang(ru) .callout,
:root:lang(vi) .cases dd,
:root:lang(ru) .cases dd { max-width: 60ch; }

.cta { background: var(--pine); color: var(--on-pine); }
.cta .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s5);
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta p { margin-top: var(--s1); color: var(--on-pine-2); max-width: 32em; }
.cta .actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

.siblings { list-style: none; margin: var(--s3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.siblings a { font-weight: 500; font-size: 1.1875rem; text-underline-offset: 5px; }

/* 머리 메뉴와 언어 단추는 한 줄로(2026. 12. 2. 가이드 메뉴를 더하며). 베트남어·러시아어는 메뉴 글이 길어
   좁은 화면에서는 메뉴를 숨긴다(가이드는 첫 화면과 세부 쪽의 글 칸에서 이어진다). */
.nav a, .langs a { white-space: nowrap; }
/* 한국어 메뉴가 다섯 개가 되며(인사말 더함, 2026. 12. 3.) 1080px 아래에서는 이름 칸이 눌려 두 줄이 된다. */
@media (max-width: 1080px) {
  .nav { display: none; }
}
/* 베트남어·러시아어도 인사말 탭을 더해(2026. 12. 3.) 메뉴가 다섯 개: 이름 칸이 눌리지 않게 줄이지 않고(flex-shrink 0),
   두 언어는 머리줄·메뉴 간격을 한 단계 좁히고, 1160px 아래에서는 메뉴를 숨긴다. */
@media (min-width: 761px) {
  .top .brand { flex-shrink: 0; }
  :root:lang(vi) .top .wrap,
  :root:lang(ru) .top .wrap { gap: var(--s3); }
}
:root:lang(vi) .nav,
:root:lang(ru) .nav { gap: var(--s2); }
@media (max-width: 1160px) {
  :root:lang(vi) .nav,
  :root:lang(ru) .nav { display: none; }
}

/* 법률 가이드 (글 목록 guide/, 글 guide/<글>/, 2026. 12. 2.) */
.page-head .kicker { font-size: 1rem; font-weight: 500; }
.page-head .kicker a { color: var(--seal-dark); text-underline-offset: 4px; }
.page-head .kicker + h1 { margin-top: var(--s1); }
.page-head .dateline { margin-top: var(--s3); font-size: 0.9375rem; color: var(--ink-2); }
.guide-body .wrap { padding-top: var(--s5); padding-bottom: var(--s5); }
.article { max-width: 44rem; }
:root:lang(vi) .article,
:root:lang(ru) .article { max-width: 56ch; }
.article h2 { font-size: clamp(1.375rem, 2.6vw, 1.75rem); margin-top: var(--s5); }
.article > h2:first-child,
.article > .summary:first-child { margin-top: 0; }
.article p { margin-top: var(--s2); }
.article h2 + p { margin-top: var(--s2); }
.article ul, .article ol { margin: var(--s2) 0 0; padding-left: 1.25em; }
.article li + li { margin-top: 0.45rem; }
.article .summary {
  margin-top: var(--s4); background: var(--band); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s3) var(--s4);
}
.article .summary h2 { margin-top: 0; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; }
.article .summary ul { margin-top: var(--s1); }
.article .table-wrap { margin-top: var(--s5); overflow-x: auto; }
.article .table-wrap:focus-visible { outline: 2px solid var(--pine); outline-offset: 4px; }
.article table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; line-height: 1.55; }
.article caption { text-align: left; font-family: var(--sans); font-weight: 600; font-size: 1.25rem; padding-bottom: var(--s2); }
.article th, .article td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--rule); }
.article thead th { background: var(--band); font-weight: 600; border-bottom: 1.5px solid var(--ink-2); }
.article tbody th { font-weight: 600; }
.article .note { margin-top: var(--s4); font-size: 0.9375rem; color: var(--ink-2); }

.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-top: 1px solid var(--rule); }
.guide-list li:last-child { border-bottom: 1px solid var(--rule); }
.guide-list a { display: block; padding: var(--s3) 0; text-decoration: none; }
.guide-list strong { display: block; font-weight: 500; font-size: 1.1875rem; line-height: 1.45; }
.guide-list a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.guide-list span { display: block; margin-top: 0.35rem; font-size: 1rem; color: var(--ink-2); }
.sec-head .count { margin-top: var(--s1); color: var(--ink-2); font-size: 1rem; }
.sec-head .field-link { margin-top: var(--s2); font-size: 1rem; }
.sec-head .field-link a { text-underline-offset: 4px; }
.related { list-style: none; margin: var(--s3) 0 0; padding: 0; max-width: 46rem; }
.related li { border-top: 1px solid var(--rule); }
.related li:last-child { border-bottom: 1px solid var(--rule); }
.related a { display: block; padding: var(--s2) 0; font-weight: 500; text-underline-offset: 5px; }

@media (max-width: 960px) {
  .page-head .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
  .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-head .wrap { padding-top: var(--s4); padding-bottom: var(--s4); gap: var(--s3); }
  .page-head .actions { display: none; }
  .jump { border-left: 0; padding-left: 0; }
  .jump p { display: none; }
  .jump ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
  .jump li { padding: 0; }
  .jump a {
    display: inline-block; font-size: 0.9375rem; background: var(--paper);
    border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.35rem 0.75rem;
  }
  .deadlines li { grid-template-columns: 1fr; gap: var(--s1); padding: var(--s3) 0; }
  .deadlines .term { font-size: 1.875rem; }
  .steps.four { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; gap: var(--s3); }
  .faq summary { font-size: 1.0625rem; }
  .cta .wrap { padding-top: var(--s4); padding-bottom: var(--s4); }
}
