/* 회생노트(hlgelderabuselawyers.com) — "법원 서류철 위 정리 노트"
   종이빛 회백 바탕 + 흰 정리 면, 법원 남색 포인트, 기한·중요 문장에만 형광 노랑 밑줄.
   레퍼런스: 토스피드(큰 제목·둥근 흰 카드·넓은 여백), 찾기쉬운 생활법령정보(절차 단계도·관련 법령 상자·'알아두세요'),
   대한법률구조공단(상담 전화 목록). 모바일(360px) 먼저, min-width 480 · 768 · 1180 으로 넓힌다.
   토큰은 base.html :root. 이 파일은 var(--*) 만 참조한다. 설명은 DESIGN.md */

/* ── 0. 기본 ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; min-width: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7; font-weight: 400;
  word-break: keep-all; overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-deep); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--font-body); color: var(--text); font-weight: 800; line-height: 1.4; margin: 0;
  letter-spacing: -.02em; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.num, time.num { font-family: var(--font-number); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.skiplink {
  position: absolute; left: 8px; top: -80px; z-index: 200; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-weight: 700;
}
.skiplink:focus { top: 8px; color: #fff; }

.chip-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }

/* ── 1. 헤더 — 흰 띠, 고정하지 않음 ───────────────────── */
.rn-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.rn-head__in {
  max-width: var(--container); margin: 0 auto; padding: 4px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-right: auto;
  color: var(--text); text-decoration: none;
}
.wordmark__mark { flex: none; }
.wordmark__name { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.wordmark:hover { color: var(--primary); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--primary-soft);
  color: var(--primary); font: 700 15px/1 var(--font-body); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* 내비 — 가로 스크롤·가림 효과 없이 줄바꿈 (잘려 보이지 않게). JS 가 있으면 768px 미만에서 접는다 */
.rn-nav { flex: 1 0 100%; }
.rn-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 2px; padding: 0 0 6px; margin: 0 -8px; }
.rn-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: var(--text-dim); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.rn-nav a:hover { color: var(--primary); }
.rn-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }
.js-nav .rn-nav { display: none; }
.js-nav .rn-nav.is-open { display: block; }
.js-nav .rn-nav.is-open ul { flex-direction: column; margin: 0; padding: 4px 0 10px; border-top: 1px solid var(--line); }
.js-nav .rn-nav.is-open a { display: flex; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.js-nav .rn-nav.is-open a[aria-current="page"] { box-shadow: none; color: var(--primary); }

/* ── 2. 공통 틀 ─────────────────────────────────────── */
.rn-main { display: block; padding-bottom: 40px; }
.band {
  max-width: var(--container); margin: 12px var(--gutter) 0; padding: 24px 18px 26px;
  background: var(--surface); border-radius: var(--radius);
}
.band--flat { background: transparent; padding: 18px 0 6px; }
.band__head { margin-bottom: 16px; }
.band__title { font-size: 21px; }
.band__title--sm { font-size: 17px; margin-bottom: 10px; }
.band__note { margin-top: 4px; color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.empty-note { color: var(--text-dim); }
.empty-note p + p, .empty-note p + .chip-row { margin-top: 10px; }

/* 브레드크럼 — 링크마다 44×44 이상 */
.trail ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--text-dim); }
.trail li { display: inline-flex; align-items: center; min-width: 0; }
.trail li + li::before { content: "/"; flex: none; display: inline-block; width: 1.1em; text-align: center; color: var(--border); }
.trail a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px;
  color: var(--text-dim); text-decoration: none;
}
.trail li:first-child a { justify-content: flex-start; padding-left: 0; }
.trail a:hover { color: var(--primary); text-decoration: underline; }
.trail li:last-child:not(:first-child):has(> [aria-current="page"]) { display: none; }
.trail [aria-current="page"] {
  display: inline-block; max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}

/* ── 3. 홈 ─────────────────────────────────────────── */
.intro__in { max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 22px; }
.intro__kicker { font-size: 14px; font-weight: 700; color: var(--primary); }
.intro__title { margin-top: 10px; font-size: 28px; line-height: 1.36; letter-spacing: -.035em; }
.intro__lede { margin-top: 14px; font-size: 17px; line-height: 1.75; color: var(--text); max-width: 38em; }
.intro__notice {
  margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  font-size: 14px; line-height: 1.6; color: var(--text-dim);
}
.intro__badge {
  display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--primary-soft);
  color: var(--primary); font-size: 13px; font-weight: 700; line-height: 1.8;
}

/* 절차 지도 — 생활법령정보 '절차 한눈에 보기' : 번호 + 단계명 + 한 줄 설명, 모바일 1열 → 2열 → 3열 */
.stage-map { list-style: none; display: grid; gap: 8px; counter-reset: none; }
.stage { display: flex; }
.stage__link {
  flex: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "no name" "no hint";
  column-gap: 12px; align-items: start; min-height: 64px; padding: 14px 14px;
  border-radius: var(--radius-sm); background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text); text-decoration: none;
}
a.stage__link:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.stage__no {
  grid-area: no; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 15px;
}
.stage__name { grid-area: name; font-size: 17px; font-weight: 800; line-height: 1.4; }
.stage__hint { grid-area: hint; margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
a.stage__link .stage__name::after { content: " →"; color: var(--primary); font-weight: 700; }

/* 처음 읽을 순서 */
.path { list-style: none; display: grid; gap: 0; }
.path__step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.path__step:first-child { border-top: 0; padding-top: 0; }
.path__no {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-size: 15px;
}
.path__title { font-size: 17px; line-height: 1.45; }
.path__title a { color: var(--text); text-decoration: none; display: inline-block; padding: 4px 0; min-height: 44px; }
.path__title a:hover { color: var(--primary); text-decoration: underline; }
.path__sum { margin-top: 2px; font-size: 15px; line-height: 1.65; color: var(--text-dim); }

/* 주제별 선반 */
.shelf-grid { display: grid; gap: 12px; }
.shelf { padding: 16px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.shelf__h { font-size: 16px; }
.shelf__h a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); text-decoration: none; }
.shelf__h a::after { content: "→"; margin-left: 6px; }
.shelf__list { list-style: none; }
.shelf__list li + li { border-top: 1px solid var(--line); }
.shelf__list a { display: flex; align-items: center; min-height: 48px; padding: 6px 0; color: var(--text); font-size: 15px; line-height: 1.5; text-decoration: none; }
.shelf__list a:hover { color: var(--primary); text-decoration: underline; }

/* 목록 한 줄 */
.note-list { list-style: none; display: grid; gap: 0; }
.note { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.note:first-child { border-top: 0; padding-top: 0; }
.note--pic { grid-template-columns: minmax(0, 1fr) 96px; }
.note__cat { font-size: 13px; font-weight: 700; color: var(--primary); }
.note__title { margin-top: 2px; font-size: 17px; line-height: 1.45; }
.note__title a { color: var(--text); text-decoration: none; }
.note__title a:hover { color: var(--primary); text-decoration: underline; }
.note__sum {
  margin-top: 4px; font-size: 15px; line-height: 1.65; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.note__meta { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.note__pic { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-soft); }

/* 무료 공공 상담처 — 대한법률구조공단 상담 안내처럼 기관 · 번호 · 하는 일 */
.helpdesk {
  max-width: var(--container); margin: 12px var(--gutter) 0; padding: 22px 18px;
  border-radius: var(--radius); background: var(--primary-deep); color: #fff;
}
.after .helpdesk { margin: 12px 0 0; }
.helpdesk__h { color: #fff; font-size: 19px; }
.helpdesk__list { list-style: none; margin-top: 12px; }
.helpdesk__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name no" "what what";
  gap: 2px 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .18);
}
.helpdesk__name { grid-area: name; font-weight: 800; }
.helpdesk__no { grid-area: no; font-size: 19px; color: var(--mark); }
.helpdesk__what { grid-area: what; font-size: 14px; line-height: 1.6; color: #D9E1F2; }
.helpdesk__note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: #C9D3EA; }

/* ── 4. 목록 머리 (카테고리·태그) ──────────────────────── */
.list-head { max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter) 18px; }
.list-head__k { font-size: 13px; font-weight: 700; color: var(--primary); }
.list-head__title { margin-top: 2px; font-size: 26px; letter-spacing: -.035em; }
.list-head__desc { margin-top: 8px; font-size: 16px; line-height: 1.7; color: var(--text-dim); max-width: 40em; }
.list-head__n { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
.list-head__near { margin-top: 16px; }
.list-head__near .chip-row { margin-top: 8px; }

/* ── 5. 글 ─────────────────────────────────────────── */
.sheet { background: var(--surface); padding: 6px var(--gutter) 28px; }
.sheet-head { max-width: var(--reading-width); margin: 0 auto; }
.sheet-head__cat a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); font-size: 14px; font-weight: 700; text-decoration: none;
}
.sheet-head__title { font-size: 25px; line-height: 1.4; letter-spacing: -.035em; }
.sheet-head__dek { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--text-dim); }
.sheet-head__by {
  margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; font-size: 14px; color: var(--text-dim);
}
.sheet-head__author { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 800; text-decoration: none; }
.sheet-cover { max-width: var(--reading-width); margin: 20px auto 0; }
.sheet-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--surface-soft); }

.sheet-foot { max-width: var(--reading-width); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.sheet-foot__h { font-size: 15px; color: var(--text-dim); margin-bottom: 10px; }

/* 면책 문구 (모든 글 고정) */
.disclaimer {
  max-width: var(--reading-width); margin: 32px auto 0; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.7; color: var(--text-dim);
}
.disclaimer__k { color: var(--text); font-weight: 800; font-size: 15px; margin-bottom: 4px; }

.after { max-width: var(--reading-width); margin: 0 auto; padding: 0 var(--gutter); }
.after__box { margin-top: 12px; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); }
.after__h { font-size: 19px; margin-bottom: 12px; }
.about-box { margin-top: 12px; padding: 22px 18px; border-radius: var(--radius); background: var(--surface); }
.about-box__k { font-size: 13px; font-weight: 700; color: var(--primary); }
.about-box__name { margin-top: 2px; font-size: 19px; }
.about-box__bio { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.about-box__links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 0 16px; }
.about-box__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; }

/* ── 6. 본문 (.post-body) — 표준 선택자, 값만 이 사이트 것 ── */
.post-body { max-width: var(--reading-width); margin: 24px auto 0; font-size: 17px; line-height: 1.8; color: var(--text); }
.post-body > * + * { margin-top: 1.1em; }
.post-body .lead { font-size: 18px; line-height: 1.8; font-weight: 700; color: var(--text); }
.post-body h2 {
  margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line);
  font-size: 22px; line-height: 1.45; scroll-margin-top: 16px;
}
.post-body h3 { margin-top: 1.8em; font-size: 19px; line-height: 1.5; color: var(--primary-deep); }
.post-body h4 { font-size: 17px; line-height: 1.5; }
.post-body h2 + *, .post-body h3 + * { margin-top: .8em; }
.post-body strong { font-weight: 800; color: var(--text); }
.post-body a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .4em; }
.post-body li p, .post-body :is(.step, .stat, .helpdesk) p { margin: 0; }
.post-body li::marker { color: var(--primary); }
.post-body hr, .post-body hr.divider { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.post-body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.post-body figure { margin: 1.6em 0 0; }
.post-body figure img { width: 100%; }
.post-body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-dim); }
.post-body .highlight { background: linear-gradient(transparent 55%, var(--mark) 55%); padding: 0 1px; }
.post-body kbd, .post-body .kbd {
  display: inline-block; padding: 0 6px; border-radius: 4px; box-shadow: inset 0 -2px 0 var(--line), inset 0 0 0 1px var(--line);
  font-family: var(--font-number); font-size: .85em;
}

/* 조문 인용 — 생활법령 '관련 법령' 상자: 흰 종이 + 위 '법 조문' 띠, 출처(cite)는 아래 작은 글씨 */
.post-body blockquote {
  margin: 1.6em 0 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.post-body blockquote::before {
  content: "법 조문 · 인용"; display: block; padding: 8px 16px; background: var(--primary-soft);
  color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.post-body blockquote p { padding: 12px 16px 0; font-size: 16px; line-height: 1.8; color: var(--text); }
.post-body blockquote p:last-child { padding-bottom: 14px; }
.post-body blockquote cite {
  display: block; padding: 0 16px 14px; font-style: normal; font-size: 13px; line-height: 1.6; color: var(--text-dim);
}
.post-body blockquote p + cite { margin-top: -4px; }

.post-body .pull-quote {
  display: block; margin: 2em 0 0; padding: 0 0 0 4px; font-size: 21px; font-weight: 800; line-height: 1.55;
  letter-spacing: -.02em; color: var(--primary-deep);
}
.post-body .pull-quote::before { content: "“"; display: block; font-family: var(--font-number); font-size: 40px; line-height: .8; color: var(--primary); }

/* 알림 상자 공통 — 배지 한 줄 위, 본문 아래 (토스피드 '알아두세요' 카드) */
.post-body :is(.warn-box, .info-box, .success-box, .error-box) {
  margin: 1.6em 0 0; padding: 16px 18px; border-radius: var(--radius-sm); font-size: 16px; line-height: 1.75;
}
.post-body :is(.warn-box, .info-box, .success-box, .error-box, .note-box) > .badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 14px; font-weight: 800; line-height: 1.4;
}
.post-body :is(.warn-box, .info-box, .success-box, .error-box) > .badge::before {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--icon) center / 18px 18px no-repeat;
}
/* 기한·주의 — 형광 노랑 면 + 빨간 시계 */
.post-body .warn-box { background: var(--mark-soft); box-shadow: inset 0 0 0 1px #F1DC8A; }
.post-body .warn-box > .badge { color: var(--warn); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23A3251C'/%3E%3Cpath d='M9 4.5V9l3 2' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
.post-body .warn-box strong { background: linear-gradient(transparent 58%, var(--mark) 58%); }
/* TIP — 남색 옅은 면 + 전구 */
.post-body .info-box { background: var(--primary-soft); }
.post-body .info-box > .badge { color: var(--primary); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2324407A'/%3E%3Cpath d='M9 4.5v5.5M9 12.6v.2' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* 확인 — 초록 옅은 면 + 체크 */
.post-body .success-box { background: var(--ok-soft); }
.post-body .success-box > .badge { color: var(--ok); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%231E6B52'/%3E%3Cpath d='m5 9.2 2.6 2.6L13 6.4' stroke='%23fff' stroke-width='1.9' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* 금지 — 흰 면 + 빨간 테두리 + X */
.post-body .error-box { background: var(--surface); box-shadow: inset 0 0 0 2px var(--warn); }
.post-body .error-box > .badge { color: var(--warn); --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23A3251C'/%3E%3Cpath d='m6 6 6 6m0-6-6 6' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* 참고·고지 — 상자 없이 라벨 + 본문 한 흐름 */
.post-body .note-box { margin: 1.4em 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.post-body .note-box > .badge { display: inline; margin: 0 6px 0 0; color: var(--text); }
.post-body .note-box > .badge::after { content: ":"; }
.post-body .note-box > div { display: inline; }
.post-body :is(.warn-box, .info-box, .success-box, .error-box) > div > * + * { margin-top: .5em; }

/* 무료 공공 상담처 (본문용 info-box 변형) */
.post-body .info-box.help-lines { background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary); }
.post-body .help-lines ul { list-style: none; padding: 0; }
.post-body .help-lines li { padding: 8px 0; border-top: 1px solid var(--line); }
.post-body .help-lines li:first-child { border-top: 0; padding-top: 2px; }
.post-body .help-lines li + li { margin-top: 0; }

/* 한눈에 보기 (summary-box) — 토스피드 요약 카드: 항목명 위·값 아래, 768px↑ 두 열 */
.post-body .summary-box, .post-body .key-points {
  margin: 1.6em 0 0; padding: 18px; border-radius: var(--radius); background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line);
}
.post-body .summary-box h3, .post-body .summary-box h4, .post-body .key-points h3, .post-body .key-points h4 {
  margin: 0 0 8px; font-size: 16px; color: var(--primary); line-height: 1.5;
}
.post-body .summary-box dl { margin: 0; }
.post-body .summary-box dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.post-body .summary-box dl > div:first-child { border-top: 0; padding-top: 2px; }
.post-body .summary-box dt { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.post-body .summary-box dd { margin: 2px 0 0; font-size: 16px; line-height: 1.65; font-weight: 700; }
.post-body .summary-box ul, .post-body .key-points ul { padding-left: 1.2em; }
.post-body .key-points ol, .post-body .key-points ul { margin: 0; }

/* 목차 */
.post-body .toc-box { margin: 1.6em 0 0; padding: 16px 18px 10px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.post-body .toc-box h4 { font-size: 14px; color: var(--text-dim); margin-bottom: 4px; }
.post-body .toc-box ol { list-style: none; padding: 0; counter-reset: toc; }
.post-body .toc-box li { counter-increment: toc; margin: 0; border-top: 1px solid var(--line); }
.post-body .toc-box li:first-child { border-top: 0; }
.post-body .toc-box a {
  display: grid; grid-template-columns: 2em minmax(0, 1fr); align-items: start; gap: 4px; padding: 10px 0; min-height: 44px;
  color: var(--text); font-size: 15px; line-height: 1.55; text-decoration: none;
}
.post-body .toc-box a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-number); font-weight: 600; color: var(--primary); }
.post-body .toc-box a:hover { color: var(--primary); text-decoration: underline; }

/* 절차 단계 (.step) — 생활법령 단계도: 남색 원 번호 + 단계 사이 세로선 */
.post-body .step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin-top: 1.4em; position: relative; }
.post-body .step + .step { margin-top: 0; padding-top: 18px; }
.post-body .step + .step::before {
  content: ""; position: absolute; left: 17px; top: -2px; height: 22px; width: 2px; background: var(--line);
}
.post-body .step .num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff; font-family: var(--font-number); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.post-body .step .body { min-width: 0; padding-top: 4px; }
.post-body .step .body h4 { font-size: 17px; line-height: 1.5; }
.post-body .step .body p { margin-top: 4px; font-size: 16px; line-height: 1.75; color: var(--text-dim); }

/* 기간 흐름 (.timeline) — 세로선 + 점, 시점은 Inter */
.post-body .timeline { list-style: none; padding: 0 0 0 20px; margin: 1.6em 0 0; border-left: 2px solid var(--primary-soft); }
.post-body .timeline li { position: relative; padding: 0 0 16px 6px; margin: 0; }
.post-body .timeline li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); box-shadow: inset 0 0 0 3px var(--primary);
}
.post-body .timeline .time { display: block; font-family: var(--font-number); font-weight: 600; font-size: 14px; color: var(--primary); }
.post-body .timeline .event { font-size: 16px; line-height: 1.7; }

/* 표 — 남색 머리줄, 가로 스크롤 상자 (JS 가 감싸고, 720px↓ 행 카드) */
.post-body .scroll-x, .post-body .table-scroll {
  margin: 1.6em 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px var(--line);
}
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; background: var(--surface); }
.post-body > table { margin-top: 1.6em; display: block; overflow-x: auto; }
.post-body caption { caption-side: top; padding: 10px 14px; text-align: left; font-size: 14px; font-weight: 700; color: var(--text-dim); background: var(--surface-soft); }
.post-body th, .post-body td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.post-body thead th { background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.post-body tbody th { font-weight: 800; color: var(--text); }
.post-body td.num { white-space: nowrap; }
.post-body .scroll-x table { min-width: 560px; }

/* 장단점 */
.post-body .pros-cons { display: grid; gap: 10px; margin: 1.6em 0 0; }
.post-body .pros-cons > div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.post-body .pros-cons h4 { font-size: 15px; margin-bottom: 6px; }
.post-body .pros h4 { color: var(--ok); }
.post-body .cons h4 { color: var(--warn); }
.post-body .pros-cons ul { padding-left: 1.2em; font-size: 16px; }

/* 숫자 카드 */
.post-body .stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 1.6em 0 0; }
.post-body .stats-grid .stat { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-soft); min-width: 0; }
.post-body .stats-grid .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.post-body .stats-grid .label { display: block; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.post-body .stats-grid .value { display: block; margin-top: 2px; font-family: var(--font-number); font-weight: 600; font-size: 20px; color: var(--primary-deep); }

/* 체크리스트 — 네모 칸 모양 (입력칸 아님) */
.post-body .prep-box { margin: 1.6em 0 0; padding: 16px 18px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.post-body .prep-box h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.post-body .prep-box ul { list-style: none; padding: 0; }
.post-body .prep-box li { position: relative; padding: 8px 0 8px 30px; margin: 0; border-top: 1px solid var(--line); }
.post-body .prep-box li:first-child { border-top: 0; }
.post-body .prep-box li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--primary);
}

/* FAQ (h2#faq 뒤 h3 + p) — Q/A 글자 머리 */
.post-body h2[id$="faq"] ~ h3:not(h2[id$="faq"] ~ h2 ~ h3),
.post-body dl.faq dt {
  position: relative; margin-top: 1.4em; padding: 0 0 0 34px; font-size: 17px; line-height: 1.55; color: var(--text);
}
.post-body h2[id$="faq"] ~ h3:not(h2[id$="faq"] ~ h2 ~ h3)::before,
.post-body dl.faq dt::before {
  content: "Q"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px;
  background: var(--primary); color: #fff; font-family: var(--font-number); font-size: 14px; font-weight: 600; line-height: 1;
}
.post-body h2[id$="faq"] ~ h3:not(h2[id$="faq"] ~ h2 ~ h3) + p,
.post-body dl.faq dd { margin: .4em 0 0; padding: 0 0 14px 34px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 16px; }
.post-body dl.faq { margin: 1.4em 0 0; }

/* CTA — 다음 글 안내 */
.post-body .cta-box, .post-body .cta {
  margin: 1.8em 0 0; padding: 20px 18px; border-radius: var(--radius); background: var(--primary-soft);
}
.post-body .cta-box h4, .post-body .cta h4 { font-size: 17px; color: var(--primary-deep); }
.post-body .cta-box p, .post-body .cta p { margin-top: 4px; font-size: 15px; line-height: 1.7; color: var(--text-dim); }
.post-body .cta-box .cta-button, .post-body .cta .cta-button { margin-top: 12px; }
.post-body .cta-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none;
}
.post-body .cta-button:hover { background: var(--primary-deep); color: #fff; }

/* 각주·출처 */
.post-body .footnote { display: block; margin-top: 1.6em; font-size: 14px; line-height: 1.65; color: var(--text-dim); padding-left: 2.4em; text-indent: -2.4em; }
.post-body .footnote + .footnote { margin-top: .4em; }
.post-body .footnote .num { display: inline-block; min-width: 2.4em; text-indent: 0; color: var(--primary); }
.post-body .footnote-ref { font-family: var(--font-number); font-size: .75em; }

/* 그 밖의 표준 */
.post-body .image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 1.6em 0 0; }
.post-body .image-grid figure { margin: 0; }
.post-body .before-after { display: grid; gap: 8px; margin: 1.6em 0 0; }
.post-body .before-after .label { display: inline-block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.post-body .video-embed { position: relative; aspect-ratio: 16 / 9; max-width: 100%; margin: 1.6em 0 0; }
.post-body .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.post-body .spoiler { margin: 1.4em 0 0; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.post-body .spoiler summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.post-body .spoiler > :not(summary) { padding: 0 16px 14px; }
.post-body .price-tag { font-family: var(--font-number); font-weight: 600; color: var(--primary-deep); white-space: nowrap; }
.post-body .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.post-body .tag-list .tag { padding: 0 10px; border-radius: 999px; background: var(--surface-soft); font-size: 14px; line-height: 1.9; color: var(--text-dim); }

/* 광고 칸 — 광고 코드가 없으면 숨긴다 */
.ad-slot { display: block; margin: 2em 0 0; padding: 8px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 280px; text-align: center; overflow: hidden; }
.ad-slot:not(:has(> :not(.ad-label))) { display: none; }
.ad-label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }

/* ── 7. 푸터 ───────────────────────────────────────── */
.rn-foot { margin-top: 24px; background: var(--surface); border-top: 1px solid var(--line); }
.rn-foot__in { max-width: var(--container); margin: 0 auto; padding: 28px var(--gutter) 36px; display: grid; gap: 16px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.rn-foot__name { font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.rn-foot__links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.rn-foot__links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); font-weight: 700; text-decoration: none; }
.rn-foot__links a:hover { color: var(--primary); text-decoration: underline; }
.rn-foot__copy { font-family: var(--font-number); font-size: 13px; }

/* ── 8. 표 → 행 카드 (720px 이하, site.js 가 .is-stacked 를 붙였을 때만) ── */
@media (max-width: 720px) {
  .post-body :is(.scroll-x, .table-scroll).is-stacked { overflow: visible; box-shadow: none; border-radius: 0; }
  .post-body table.is-stacked, .post-body table.is-stacked :is(tbody, tr, th, td) { display: block; min-width: 0; width: auto; }
  .post-body table.is-stacked { background: none; }
  .post-body table.is-stacked caption { display: block; padding: 0 0 8px; background: none; }
  .post-body table.is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .post-body table.is-stacked tbody tr { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); }
  .post-body table.is-stacked tbody tr + tr { margin-top: 10px; }
  .post-body table.is-stacked tbody :is(th, td) { border: 0; padding: 8px 14px; }
  .post-body table.is-stacked tbody > tr > :first-child:not([data-label]) { background: var(--primary); color: #fff; font-weight: 800; padding: 10px 14px; }
  .post-body table.is-stacked td[data-label], .post-body table.is-stacked th[data-label] {
    display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); font-weight: 400;
  }
  .post-body table.is-stacked tbody > tr > :first-child:not([data-label]) + [data-label] { border-top: 0; }
  .post-body table.is-stacked [data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 700; color: var(--text-dim); }
  .post-body table.is-stacked td.num { white-space: normal; }
}

/* ── 9. 넓은 화면 ───────────────────────────────────── */
@media (min-width: 480px) {
  .stage-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body .pros-cons { grid-template-columns: 1fr 1fr; }
  .post-body .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-body .stats-grid .stat:last-child:nth-child(odd) { grid-column: auto; }
  .post-body .before-after { grid-template-columns: 1fr 1fr; }
  .note--pic { grid-template-columns: minmax(0, 1fr) 128px; }
  .note__pic { width: 128px; height: 96px; }
}
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  /* JS 가 있어도 768px↑ 는 메뉴를 펼친다 — 머리 아래 한 줄(넘치면 줄바꿈) */
  .nav-toggle { display: none; }
  .js-nav .rn-nav { display: block; }
  .band { margin: 16px auto 0; padding: 30px 32px 32px; width: calc(100% - 2 * var(--gutter)); }
  .band--flat { padding-left: 0; padding-right: 0; }
  .band__title { font-size: 24px; }
  .intro__in { padding: 48px var(--gutter) 30px; }
  .intro__title { font-size: 38px; }
  .intro__lede { font-size: 18px; }
  .stage-map { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .note-list--two .note:nth-child(2) { border-top: 0; padding-top: 0; }
  .helpdesk { margin: 16px auto 0; width: calc(100% - 2 * var(--gutter)); padding: 28px 32px; }
  .after .helpdesk { width: auto; margin: 12px 0 0; }
  .helpdesk__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .helpdesk__row { grid-template-columns: 1fr; grid-template-areas: "name" "no" "what"; }
  .after .helpdesk__list { grid-template-columns: 1fr; }
  .after .helpdesk__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name no" "what what"; }
  .list-head { padding: 16px var(--gutter) 22px; }
  .list-head__title { font-size: 32px; }
  .sheet { max-width: 960px; margin: 20px auto 0; padding: 18px 48px 40px; border-radius: var(--radius); width: calc(100% - 2 * var(--gutter)); }
  .sheet-head__title { font-size: 32px; }
  .post-body { font-size: 18px; line-height: 1.85; }
  .post-body h2 { font-size: 24px; }
  .post-body .summary-box dl > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; }
  .post-body .summary-box dd { margin: 0; }
  .post-body .image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-slot { min-height: 250px; }
  .rn-foot__in { grid-template-columns: 1.4fr 1fr; }
  .rn-foot__note, .rn-foot__copy { grid-column: 1 / -1; }
  .trail li:last-child:not(:first-child):has(> [aria-current="page"]) { display: inline-flex; }
}
@media (min-width: 1180px) {
  /* 머리 한 줄: 워드마크 | 메뉴 */
  .rn-head__in { flex-wrap: nowrap; }
  .rn-nav { flex: 0 1 auto; }
  .rn-nav ul { flex-wrap: nowrap; padding: 0; margin: 0; }
  .band { width: auto; margin-left: auto; margin-right: auto; max-width: calc(var(--container) - 2 * var(--gutter)); }
  .helpdesk { width: auto; max-width: calc(var(--container) - 2 * var(--gutter)); }
  .after .helpdesk { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .rn-head, .rn-foot, .ad-slot, .after, .skiplink { display: none !important; }
}
