@font-face { font-family: Pretendard; font-weight: 400; font-display: swap; src: url(fonts/Pretendard-Regular.subset.woff2) format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 700; font-display: swap; src: url(fonts/Pretendard-Bold.subset.woff2) format("woff2"); }

:root { --dark: #1e1e23; --text: #1e1e23; --body: #505660; --muted: #686d76; --line: #e3e5e8; --chip: #f5f6f8; --tint: #eff0f2; --brand: #2a4fb8; --accent-line: #b4b9c1; --accent: #30343b; --accent-ink: #3f444c; --wash: #f8f9fa; --radius: 16px; --gutter: clamp(16px, 2.4vw, 24px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 15px/1.6 Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; word-break: keep-all; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(1240px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.top { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.logo { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.logo img { display: block; width: auto; height: 22px; }
.logo span { padding-left: 10px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
.top-row .logo { margin-right: 20px; }
.menu { display: flex; flex: 1; gap: 22px; min-width: 0; overflow: hidden; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.menu a:hover { color: var(--accent-ink); opacity: .7; }
.menu .on { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.top.is-home { border-bottom: 1px solid transparent; }
.top.is-home.scrolled { border-bottom-color: var(--line); }
.search { flex: none; display: flex; align-items: center; justify-content: flex-end; width: 36px; height: 36px; border-radius: 999px; }
.search.is-hidden { display: none; }
.search input { flex: 1; width: 0; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font: 400 14px Pretendard, sans-serif; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search.open { width: 230px; background: var(--chip); }
.search.open input { padding-left: 14px; }
.search button { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.burger { display: none; flex: none; flex-direction: column; justify-content: center; gap: 4px; width: 36px; height: 36px; padding: 0 8px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); }
.top-tel { flex: none; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.menu-tel { display: none; }
.top-tel::after { content: ""; width: 1px; height: 14px; background: var(--line); }
.top-cta { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 700; }
.top-search { display: flex; align-items: center; width: min(720px, 100%); height: 58px; gap: 12px; margin: 28px auto 0; padding: 0 12px 0 26px; border: 2px solid var(--brand); border-radius: 999px; background: #fff; }
.top-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; width: min(720px, 100%); margin: 10px auto 0; font-size: 14px; color: var(--body); }
.top-keys a + a { position: relative; }
.top-keys a + a::before { content: "·"; position: absolute; left: -9px; color: var(--accent-line); }
.top-keys a:hover { color: var(--text); text-decoration: underline; }
.top-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 17px Pretendard, sans-serif; color: var(--text); }
.top-search input::placeholder { color: var(--muted); }
.top-search button { display: flex; padding: 8px; border: 0; background: none; color: var(--brand); cursor: pointer; }
.top-search svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hero-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero-main .promo { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 130px; padding: 20px 32px; border: 1px solid #e2e6ef; border-radius: var(--radius); background: radial-gradient(120% 170% at 100% 0%, #d9e0ef 0%, rgba(217, 224, 239, 0) 58%), linear-gradient(115deg, #fbfbfd 0%, #eef1f7 100%); }
.promo p { font-size: 14px; letter-spacing: .01em; color: #566078; }
.promo h1 { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -.03em; color: #18233f; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px 28px; align-items: stretch; padding-top: 20px; }
#pickSig { flex: none; width: 100%; height: 42px; margin-top: 14px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 15px Pretendard, sans-serif; color: var(--text); }
.pick-list { max-height: 460px; margin-top: 10px; overflow-y: auto; overscroll-behavior: contain; }
.pick-list > li { padding: 11px 0; border-top: 1px solid var(--line); }
.pick-list i { float: right; margin-left: 8px; font-size: 12px; font-style: normal; color: var(--muted); }
.pick-list i.off { background: #fff; color: var(--muted); }
.pick-list b { display: block; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.pick-list span { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.hero-main .quick { flex: none; }
.quick { display: flex; flex-direction: column; padding: 20px 24px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quick-tabs { display: flex; align-items: center; }
.quick-tabs h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.quick-tabs span { margin-left: 8px; font-size: 13px; color: var(--muted); }
.quick-tabs a { margin-left: auto; font-size: 13px; color: var(--body); }
.quick-filter { display: flex; gap: 16px; margin-top: 10px; box-shadow: inset 0 -1px 0 var(--line); overflow-x: auto; scrollbar-width: none; }
.quick-filter::-webkit-scrollbar { display: none; }
.quick-filter button { flex: none; padding: 10px 0; border: 0; background: none; color: var(--body); font: 400 14px/1.5 Pretendard, sans-serif; cursor: pointer; }
.quick-filter button:hover { color: var(--text); }
.quick-filter button.on { color: var(--text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--text); }
.quick-body { display: flex; flex: 1; flex-direction: column; margin-top: 8px; }
.quick-head { display: grid; grid-template-columns: minmax(0, 1fr) 110px 62px 78px; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--body); }
.quick-list { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; }
.quick-list > li + li { border-top: 1px solid var(--chip); }
.quick-list a { display: grid; grid-template-columns: minmax(0, 1fr) 110px 62px 78px; align-items: baseline; gap: 12px; padding: 7px 0; }
.quick-list.short { justify-content: flex-start; }
.quick-list a[aria-current] { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; background: var(--chip); }
.quick-list a[aria-current] b { font-weight: 700; }
.quick-list b { overflow: hidden; font-size: 14px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.quick-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.quick-list span { overflow: hidden; font-size: 12px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.quick-hint { margin-top: 2px; font-size: 12px; color: var(--muted); }
.quick-search { display: flex; align-items: center; gap: 10px; margin-top: 2px; font-size: 12px; font-weight: 700; }
.quick-search button { padding: 0; border: 0; background: none; color: var(--body); font: 400 12px Pretendard, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quick-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
@media (min-width: 961px) { .quick-body { min-height: 372px; } }
.quick-empty b { display: block; font-size: 15px; }
.quick-empty p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.quick-empty a { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }
.quick-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--body); }
.quick-pager button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); font: 400 18px/1 Pretendard, sans-serif; cursor: pointer; }
.quick-pager button:disabled { color: var(--line); cursor: default; }
.hero-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.profile, .issues { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.profile { position: relative; display: flex; align-items: center; min-height: 320px; overflow: hidden; }
.profile-text { position: relative; z-index: 1; }
.profile-text span { font-size: 13px; color: var(--muted); }
.profile-text b { display: block; margin-top: 2px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.profile-text p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--body); }
.profile-cta { display: inline-flex; align-items: center; height: 44px; margin-top: 16px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.profile > img { position: absolute; right: 24px; bottom: 0; width: auto; height: 94%; max-width: 50%; object-fit: contain; object-position: bottom right; }
.issues-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.issues-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.issues-head span { font-size: 12px; color: var(--muted); }
.issues ul { margin-top: 10px; }
.issues li + li { border-top: 1px solid var(--line); }
.issues li a { display: block; padding: 9px 0; }
.issues li b { display: block; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text); letter-spacing: -.01em; }
.issues li a:hover b { text-decoration: underline; }
.issues li span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#cases { flex: 1; }
.issues-head a { flex: none; font-size: 13px; font-weight: 700; color: var(--text); }
.issues-head a:hover { text-decoration: underline; }
.issues li .st { font-size: 12px; font-style: normal; font-weight: 700; }
.issues li .st::after { content: "·"; margin: 0 5px; font-weight: 400; color: var(--muted); }
.issues-head button { flex: none; padding: 0; border: 0; background: none; color: var(--body); font: 700 13px Pretendard, sans-serif; cursor: pointer; }
.issues-head button:hover { color: var(--text); text-decoration: underline; }
/* 상태는 뱃지 없이 글자 굵기·진하기로만 구분 */
.st-run { color: var(--text); }
.st-check, .st-wait { color: var(--body); }
.issues small { display: block; margin-top: 8px; font-size: 11px; line-height: 1.5; color: var(--muted); }



/* 현장 진행 상황: 메인 오른쪽 카드, 모바일·지도에서는 그 줄 아래에 펼친다 */
.site-info { margin-top: 12px; }
.site-info h3 { font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.site-place { margin-top: 2px; font-size: 13px; color: var(--body); }
.site-state { margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: var(--wash); font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.site-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; }
.site-steps li { position: relative; padding-top: 18px; text-align: center; color: var(--muted); }
.site-steps li::before { content: ""; position: absolute; z-index: 1; top: 2px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--accent-line); }
.site-steps li + li::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.site-steps li.done, .site-steps li.now { color: var(--text); }
.site-steps li.done::before { background: var(--accent); box-shadow: none; }
.site-steps li.done::after, .site-steps li.now::after { background: var(--accent); }
.site-steps li.now::before { top: 0; left: calc(50% - 7px); width: 14px; height: 14px; background: var(--accent); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--accent); }
.site-steps b { display: block; font-size: 12px; font-weight: 400; white-space: nowrap; }
.site-steps .now b { font-weight: 700; }
.site-steps span { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-facts { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 4px; font-size: 13px; }
.site-facts > div { display: flex; gap: 5px; }
.site-facts dt { color: var(--body); }
.site-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.site-steps span.planned, .quick-list .site-steps span.planned { overflow: visible; white-space: normal; text-overflow: clip; line-height: 1.3; }
.site-age { margin-top: 14px; font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.site-source { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.site-age + .site-source { margin-top: 4px; }
.site-facts + .site-source { margin-top: 8px; }
.site-source + .site-source { margin-top: 0; }
.site-cta { display: flex; align-items: center; justify-content: center; height: 42px; margin-top: 12px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.quick-list a[aria-current] { scroll-margin-top: 72px; }
.quick-list a.site-cta { display: flex; align-items: center; padding: 0; }
.quick-list li > .site-info, .pick-list li > .site-info { margin: 4px 0 14px; padding: 14px; border-radius: 12px; background: var(--wash); }
.pick-list button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pick-list button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.qs fieldset:target { margin: 0 -12px; padding-left: 14px; padding-right: 14px; border-radius: 10px; background: var(--chip); }

.sec { margin-top: clamp(44px, 5vw, 64px); }
.prec-list { border-top: 1px solid var(--text); }
.prec-list li { border-bottom: 1px solid var(--line); }
.prec-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px 88px; gap: 12px; align-items: baseline; padding: 14px 4px; font-size: 13px; color: var(--muted); }
.prec-list b { font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: -.01em; }
.prec-list a:hover b { text-decoration: underline; }
.prec-list .prec-kind { font-weight: 700; color: var(--accent-ink); }
.prec-list a span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .prec-list a { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .prec-list b { order: -1; width: 100%; }
}
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.head em { font-style: normal; }
.head p { margin-top: 2px; font-size: 14px; color: var(--body); }
.more { flex: none; font-size: 14px; color: var(--body); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; padding: 6px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.card { display: block; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.tag { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.card h3 { margin-top: 2px; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.card p { margin-top: 2px; font-size: 13px; color: var(--body); }

.checker { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.qs { border-top: 1px solid var(--line); }
.qs fieldset { margin: 0; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); }
.qs legend { float: left; width: 100%; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.opts { clear: both; display: flex; gap: 8px; padding-top: 12px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; padding: 5px 14px; border-radius: 999px; background: var(--chip); font-size: 13px; font-weight: 700; color: var(--body); }
.opts input:checked + span { background: var(--accent); color: #fff; }
.opts input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.result { position: sticky; top: 92px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.result h3 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.empty { margin-top: 12px; color: var(--muted); }
.result li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.result li b { font-size: 15px; }
.result li i { margin-left: 8px; font-size: 12px; font-style: normal; color: var(--muted); }
.result li i::before { content: "· "; }
.result li p { margin-top: 4px; font-size: 14px; color: var(--body); }
.fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.cta { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps b { font-size: 13px; color: var(--accent-ink); }
.steps h3 { margin-top: 2px; font-size: 15px; font-weight: 700; }
.steps p { margin-top: 6px; font-size: 14px; color: var(--body); }

.consult { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: clamp(44px, 5vw, 64px); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.consult h2 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.consult > div p { margin-top: 8px; color: var(--body); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--body); }
.form input:not([type=checkbox]), .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 400 16px Pretendard, sans-serif; color: var(--text); }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--accent-ink); }
.form .agree { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }

.check-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 4vw, 44px); padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.check-link:hover { background: var(--chip); }
.check-link b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.check-link small { display: block; margin-top: 2px; font-size: 14px; color: var(--body); }
.check-link em { flex: none; font-size: 14px; font-style: normal; font-weight: 700; }
.foot { padding: 36px 0 32px; background: #fff; color: var(--body); font-size: 13px; }
.foot-logo { display: block; width: auto; height: 24px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; }
.foot h2 { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--text); }
.foot-cols p + p { margin-top: 10px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.foot-bottom a { color: var(--text); font-weight: 700; }
.foot-note { margin-top: 12px; font-size: 12px; color: var(--muted); }

.map-sec { margin-top: 32px; }
.page-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpis div { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.kpis b { display: block; font-size: 26px; letter-spacing: -.02em; }
.kpis span { font-size: 13px; color: var(--body); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.map-box { position: relative; margin: 0; }
#map { display: block; width: 100%; height: auto; }
#map path.rg { stroke: #fff; stroke-width: 1; cursor: pointer; outline: 0; transition: opacity .12s; }
#map path.rg:hover { opacity: .82; }
#map path.none { fill: var(--chip); stroke: var(--muted); stroke-dasharray: 3 3; }
#map .sel { fill: none; stroke: var(--text); stroke-width: 2; pointer-events: none; }
#map text { font-family: Pretendard, sans-serif; font-size: 13px; text-anchor: middle; fill: var(--text); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
#map text b, #map .n { font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; font-size: 13px; color: var(--body); }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 5px; border-radius: 4px; vertical-align: -2px; }
.legend .none { background: var(--chip); border: 1px dashed var(--muted); }
.tip { position: absolute; z-index: 5; padding: 8px 12px; border-radius: 10px; background: var(--dark); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); }
.panel { position: sticky; top: 88px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.panel-head button { padding: 5px 12px; border: 0; border-radius: 999px; background: var(--chip); color: var(--body); font: 700 13px Pretendard, sans-serif; cursor: pointer; }
.panel-total { margin-top: 2px; color: var(--body); }
.bars { margin-top: 18px; }
.bars li { display: grid; grid-template-columns: 84px 1fr 32px; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.bars span { color: var(--body); white-space: nowrap; }
.bars i { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--accent-ink); }
.bars b { text-align: right; font-weight: 700; }
.panel h3 { margin-top: 20px; font-size: 14px; font-weight: 700; }
.list-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.table-title { margin-top: 48px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.scroll { margin-top: 14px; overflow-x: auto; }
.tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.tbl th { font-size: 13px; font-weight: 700; color: var(--muted); }
.tbl :is(th, td):first-child { text-align: left; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: var(--chip); }
.tbl td.t { font-weight: 700; }
.tbl tfoot td { font-weight: 700; border-bottom: 0; }
.data-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

.auth-page { min-height: 100svh; display: grid; place-items: center; padding: 16px; }
.auth-box { width: min(400px, 100%); }
.auth-box h1 { margin: 24px 0 20px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.auth-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--body); }
.auth-box input:not([type=checkbox]) { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: 400 16px Pretendard, sans-serif; color: var(--text); }
.auth-box input:focus { outline: 0; border-color: var(--accent-ink); }
.auth-box .agree { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.submit { height: 46px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: 700 15px Pretendard, sans-serif; cursor: pointer; }
.note { font-size: 13px; color: var(--muted); text-align: center; }
.alt { margin-top: 18px; font-size: 14px; color: var(--body); text-align: center; }
.alt a { font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
    .checker, .consult, .map-grid, .hero-grid { grid-template-columns: 1fr; }
    .panel { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .result { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 16px; }
    .logo { gap: 8px; }
  .logo img { height: 18px; }
  .logo span { padding-left: 8px; font-size: 13px; }
    .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .top-tel { display: none; }
  .quick { padding: 16px; }
  .quick-head { display: none; }
  .quick-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .quick-list a b { grid-column: 1 / -1; }
  .quick-list a span:last-child { display: none; }
            .profile > img { right: 8px; max-width: 46%; }
  .top-search { height: 50px; gap: 8px; margin-top: 16px; padding-left: 14px; }
  .top-search input { font-size: 15px; }
  .top-keys a + a::before { content: none; }
      .foot-cols { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 1220px) { /* 메뉴에 '전국' 이 붙어 길어져 1120 → 1220 */
  .top-row { flex-wrap: wrap; }
  .top-row .logo { margin-right: auto; }
  .menu { order: 5; flex: 0 0 100%; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .top-tel, .menu { display: none; }
  .logo span { display: none; }
  .top-row .logo { margin-right: auto; }
  .search.is-hidden { display: none; }
  .search { display: none; order: 6; flex: 0 0 100%; width: 100%; background: var(--chip); }
  .search input { padding-left: 14px; }
  .burger { display: flex; }
  .top-cta { height: 32px; padding: 0 12px; }
  .top.menu-open .menu { display: flex; flex-direction: column; gap: 0; }
  .top.menu-open .menu a { padding: 10px 0; border-top: 1px solid var(--line); }
  .top.menu-open .menu a.menu-tel { display: block; font-weight: 700; }
  .top.menu-open .search { display: flex; }
  .top.menu-open .search.is-hidden { display: none; }
  html { scroll-padding-top: 76px; }
}

/* 빠른 상담: 로율 시안의 오른쪽 배너를 이 사이트 톤(검정·회색)으로 다시 해석. 본문 1240 + 양쪽 136 = 1512 이상에서만, 모바일에는 없다 */
.q-rail { position: fixed; z-index: 40; right: 20px; top: 50%; display: flex; flex-direction: column; gap: 6px; width: 176px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(30, 30, 35, .08); transform: translateY(-50%); }
.q-title { margin-bottom: 4px; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.q-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 8px; background: var(--tint); font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; }
.q-btn:hover { background: var(--line); }
.q-btn svg { flex: none; width: 15px; height: 15px; }
.q-kakao, .q-kakao:hover { background: #fee500; color: #191919; }
.q-kakao:hover { background: #f5dc00; }
.q-main { margin-top: 4px; background: var(--accent); color: #fff; }
.q-main:hover { background: #111; }
.q-card { position: relative; overflow: hidden; margin-top: 6px; padding-top: 12px; border-radius: 10px; background: var(--wash); text-align: center; }
.q-call { display: block; }
.q-call span { display: block; font-size: 12px; color: var(--body); }
.q-call b { display: block; margin-top: 1px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-qr { width: 84px; margin: 8px auto 0; padding: 5px; border-radius: 6px; background: #fff; }
.q-qr img { display: block; width: 100%; height: auto; }
.q-person { position: relative; height: 128px; margin-top: 8px; overflow: hidden; }
.q-person img { position: absolute; left: 50%; top: 0; width: 132px; height: auto; transform: translateX(-50%); }
.q-person span { position: absolute; left: 50%; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
/* 노트북 폭에서는 본문을 가리지 않게 좁게, 키가 작은 화면에서는 사진을 뺀다 */
@media (max-width: 1659px) {
  .q-rail { right: 8px; gap: 5px; width: 112px; padding: 8px; }
  .q-title { font-size: 13px; }
  .q-btn { height: auto; min-height: 36px; padding: 6px 2px; font-size: 11.5px; }
  .q-btn svg { display: none; }
  .q-call b { font-size: 12px; letter-spacing: -.02em; }
  .q-qr { width: 72px; }
  .q-person { display: none; }
  .q-card { padding-bottom: 8px; }
}
@media (max-height: 680px) { .q-person { display: none; } .q-card { padding-bottom: 10px; } }
@media (max-width: 1511px) { .q-rail { display: none; } }
@media (max-width: 640px) {
  .check-link { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
}

/* 메인: 판례는 왼쪽 열, 사건 절차는 오른쪽 열에 카드로 쌓는다. 두 열은 따로 쌓여 아래 끝이 맞지 않아도 된다 */
.hero-grid .sec { margin-top: 0; padding: 20px 24px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hero-grid .head { margin-bottom: 10px; }
.hero-grid .head h2 { font-size: 16px; letter-spacing: -.02em; }
.hero-grid .head p { font-size: 12px; color: var(--muted); }
.hero-grid .prec-list { border-top: 1px solid var(--line); }
.hero-grid .prec-list li:last-child, .hero-grid .steps li:last-child { border-bottom: 0; }
.hero-grid .prec-list a { grid-template-columns: 52px minmax(0, 1fr) 84px; padding: 12px 0; }
.hero-grid .prec-list b { font-size: 14px; }
.hero-grid .prec-list a > span:nth-child(3) { display: none; }
.hero-grid .steps { display: block; border-top: 1px solid var(--line); }
.hero-grid .steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 1px 8px; align-items: baseline; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.hero-grid .steps h3 { margin: 0; font-size: 14px; }
.hero-grid .steps p { grid-column: 2; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.hero-top + main > .check-link { margin-top: 28px; }
/* 두 열의 아래 끝은 맞춘다: 각 열의 마지막 카드가 남는 높이를 채운다 (안쪽 카드 경계는 엇갈려도 된다) */
.hero-main > :last-child, .hero-side > :last-child { flex: 1 0 auto; }
@media (max-width: 640px) {
  .hero-grid .sec { padding: 18px 18px 8px; }
  .hero-grid .prec-list a { display: flex; }
}
/* 한 열일 때는 두 열을 풀어 현장 → 변호사 → 진행 중인 건 → 판례 → 절차 순서로 */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-main, .hero-side { display: contents; }
  .hero-grid > * > * { min-width: 0; }
  .hero-grid #profile { order: 1; }
  .hero-grid #cases { order: 2; }
  .hero-grid #precedents { order: 3; }
  .hero-grid #process { order: 4; }
}

/* 현장 상세 모달: 서브페이지급(넓은 2단 + 상담 칸). 바깥을 누르면 닫히도록 dialog 자체에는 여백을 두지 않는다 */
.site-modal { width: min(760px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 32px 80px rgba(20, 22, 28, .28); overflow: hidden; }
.site-modal[open] { display: flex; flex-direction: column; }
.site-modal::backdrop { background: rgba(20, 22, 28, .55); }
.site-modal-bar { flex: none; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 16px 0 32px; border-bottom: 1px solid var(--line); }
.site-modal-bar span { font-size: 14px; font-weight: 700; color: var(--body); }
.site-modal-bar button { display: flex; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--body); cursor: pointer; }
.site-modal-bar button:hover { background: var(--chip); color: var(--text); }
.site-modal-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-modal-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.site-modal-grid > #siteBody { flex: 1; }
.site-modal #siteBody { min-height: 0; overflow-y: auto; padding: 28px 32px 32px; overscroll-behavior: contain; }

.sd-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sd-chips { font-size: 13px; color: var(--body); }
.sd-chips .sd-stage { font-weight: 700; color: var(--text); }
.sd-chips .sd-stage::before { content: "·"; margin: 0 6px; font-weight: 400; color: var(--muted); }
.sd-head h2 { margin-top: 12px; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.035em; }
.sd-place { margin-top: 4px; font-size: 15px; color: var(--body); }
.sd-block { margin-top: 28px; }
.sd-block h3 { margin-bottom: 14px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.sd-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 22px 8px 18px; border-radius: 14px; background: var(--wash); }
.sd-steps li { position: relative; padding-top: 28px; text-align: center; color: var(--muted); }
.sd-steps li::before { content: ""; position: absolute; z-index: 1; top: 2px; left: calc(50% - 8px); width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--accent-line); }
.sd-steps li + li::after { content: ""; position: absolute; top: 9px; right: 50%; width: 100%; height: 2px; background: var(--accent-line); }
.sd-steps li.done, .sd-steps li.now { color: var(--text); }
.sd-steps li.done::before { background: var(--accent); box-shadow: none; }
.sd-steps li.done::after, .sd-steps li.now::after { background: var(--accent); }
.sd-steps li.now::before { top: -1px; left: calc(50% - 11px); width: 22px; height: 22px; background: var(--accent); box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--accent); }
.sd-steps b { display: block; font-size: 15px; font-weight: 500; }
.sd-steps .now b { font-weight: 700; }
.sd-steps span { display: block; margin-top: 2px; font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; }
.sd-steps em { display: block; margin-top: 4px; font-size: 12px; font-style: normal; color: var(--muted); }
.sd-facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 14px; font-size: 14px; }
.sd-facts > div { display: flex; gap: 6px; padding: 0 14px; border-left: 1px solid var(--line); }
.sd-facts > div:first-child { padding-left: 2px; border-left: 0; }
.sd-facts dt { color: var(--muted); }
.sd-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sd-guide p { font-size: 15px; line-height: 1.6; color: var(--body); }
.sd-guide .sd-lead { font-weight: 700; color: var(--text); }
.sd-links { margin-top: 12px; border-top: 1px solid var(--line); }
.sd-links li { border-bottom: 1px solid var(--line); }
.sd-links a { display: flex; justify-content: space-between; padding: 12px 2px; font-size: 14px; font-weight: 500; }
.sd-links a::after { content: "→"; color: var(--muted); }
.sd-links a:hover { text-decoration: underline; }
.sd-prec { border-top: 1px solid var(--text); }
.sd-prec li { border-bottom: 1px solid var(--line); }
.sd-prec a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 2px; font-size: 13px; color: var(--muted); }
.sd-prec b { font-size: 15px; font-weight: 500; color: var(--text); }
.sd-prec a:hover b { text-decoration: underline; }
.sd-near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.sd-near li { border-bottom: 1px solid var(--line); }
.sd-near button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 2px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.sd-near button:hover b { text-decoration: underline; }
.sd-near b { min-width: 0; overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.sd-near span { flex: none; font-size: 12px; color: var(--muted); }
.sd-near-block h3 { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.sd > .site-source { margin-top: 28px; }

.site-modal-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 24px; border-top: 1px solid var(--line); background: var(--wash); }
.site-modal-foot img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; }
.site-modal-foot p { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--body); }
.site-modal-foot b { flex: none; font-size: 14px; color: var(--text); }
.site-modal-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-modal-foot a { flex: none; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.site-modal-foot .sd-call { border: 1px solid var(--line); background: #fff; }
.site-modal-foot .sd-kakao { background: #fee500; color: #191919; }

@media (max-width: 860px) {
  .site-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .site-modal-bar { padding: 0 8px 0 20px; }
  .site-modal #siteBody { padding: 20px 20px 8px; }
  .sd-head h2 { font-size: 23px; }
  .sd-steps { padding: 18px 2px 14px; }
  .sd-steps b { font-size: 13px; }
  .sd-steps span, .sd-steps em { font-size: 11px; }
  .sd-facts { font-size: 13px; }
  .sd-facts > div { padding: 0 10px; }
  .sd-near { grid-template-columns: minmax(0, 1fr); }
  .sd-prec a { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .sd-prec b { order: -1; width: 100%; }
  .site-modal-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 16px; }
  .site-modal-foot span { display: none; }
}

/* 전국 지도(네이버 지도) + 오른쪽 패널 */
.nmap-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: stretch; }
.nmap-box { min-width: 0; isolation: isolate; }
#nmap { width: 100%; height: min(720px, calc(100vh - 140px)); min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--chip); }
.nmap-legend { position: absolute; left: 12px; bottom: 12px; z-index: 5; display: flex; gap: 12px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-size: 12px; color: var(--body); }
.nmap-legend span { display: flex; align-items: center; gap: 5px; }
.nmap-legend i, .nm-pin { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.nmap-legend i { width: 10px; height: 10px; }
.on { --pin: #1e1e23; } .done { --pin: #7d828b; } .gone { --pin: #c3c7cd; } .unk { --pin: #fff; }
.nmap-legend i, .nm-pin { background: var(--pin); }
.nm-pin { cursor: pointer; transition: transform .12s; }
.nm-pin:hover { transform: scale(1.35); }
.nm-pin.sel { width: 18px; height: 18px; border-width: 3px; box-shadow: 0 0 0 2px #1e1e23, 0 4px 10px rgba(0, 0, 0, .3); }
.nm-bubble { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: rgba(30, 30, 35, .88); color: #fff; box-shadow: 0 0 0 4px rgba(30, 30, 35, .16); cursor: pointer; line-height: 1.1; text-align: center; }
.nm-bubble b { font-size: 14px; font-variant-numeric: tabular-nums; }
.nm-bubble span { max-width: 90%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.nm-bubble:hover { background: #111; }
.nmap-fail { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--body); }
.nmap-grid .panel { position: relative; top: auto; background: #fff; max-height: min(720px, calc(100vh - 140px)); min-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
.nmap-grid .pick-list { max-height: none; overflow: visible; }
.panel-back { padding: 0; border: 0; background: none; font: 700 13px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
.panel-back:hover { color: var(--text); text-decoration: underline; }
.panel-note { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--wash); font-size: 12px; color: var(--body); }
.panel-detail .sd-head { margin-top: 14px; padding-bottom: 18px; }
.panel-detail .sd-head h2 { font-size: 21px; }
.panel-detail .sd-place { font-size: 14px; }
/* 지도 패널 상세: 칸마다 카드로 담아 눈이 갈 곳을 나눈다(사용자 요청 2026-11-09) */
.panel-detail .sd-block { margin-top: 12px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.panel-detail .panel-apply + .sd-block { margin-top: 18px; }
.panel-detail .sd-block h3 { margin-bottom: 10px; font-size: 15px; }
.panel-detail .sd-near-block h3 { font-size: 13px; }
.panel-detail .sd-steps { padding: 18px 0 14px; }
.panel-detail .sd-steps b { font-size: 12px; }
.panel-detail .sd-steps span, .panel-detail .sd-steps em { font-size: 10.5px; }
.panel-detail .sd-facts { font-size: 13px; }
.panel-detail .sd-facts > div { padding: 0 9px; }
.panel-detail .sd-guide p { font-size: 14px; }
.panel-detail .sd-near { grid-template-columns: minmax(0, 1fr); }
.panel-detail .sd-prec a { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.panel-detail .sd-prec b { order: -1; width: 100%; font-size: 14px; }
@media (max-width: 960px) {
  .nmap-grid { grid-template-columns: minmax(0, 1fr); }
  #nmap { height: 62vh; min-height: 360px; }
  .nmap-grid .panel { max-height: none; min-height: 0; overflow: visible; }
  .nmap-legend { gap: 8px; font-size: 11px; }
}

/* 지도 크게 보기 · 패널 접기 */
.nmap-full { position: absolute; top: 12px; right: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); font: 700 13px Pretendard, sans-serif; color: var(--text); cursor: pointer; }
.nmap-full:hover { background: var(--chip); }
.nmap-full svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nmap-full .i-close, .is-full .nmap-full .i-open { display: none; }
.is-full .nmap-full .i-close { display: inline; }
.nmap-grid .panel { padding-top: 20px; }
.side-fold { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--body); cursor: pointer; }
.side-fold:hover { color: var(--text); background: var(--chip); }
.side-fold svg, .side-rail svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nmap-grid .panel-head { padding-right: 40px; }
.panel-detail > .panel-back { margin-right: 40px; }
.side-rail { display: none; flex-direction: column; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 16px 0; border: 0; background: none; font: 700 12px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
.side-rail span { writing-mode: vertical-rl; letter-spacing: .08em; }
.side-rail:hover { color: var(--text); background: var(--chip); }
.nmap-grid.is-collapsed { grid-template-columns: minmax(0, 1fr) 44px; }
.nmap-grid.is-collapsed .panel { padding: 0; overflow: hidden; }
.nmap-grid.is-collapsed .panel > :not(.side-rail) { display: none !important; }
.nmap-grid.is-collapsed .side-rail { display: flex; }

/* 크게 보기: 지도와 패널이 화면 전체를 채운다 */
html.nmap-lock, html.nmap-lock body { overflow: hidden; }
.nmap-grid.is-full { position: fixed; inset: 0; z-index: 300; margin: 0; gap: 0; background: #fff; }
.nmap-grid.is-full #nmap { height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
.nmap-grid.is-full .panel { max-height: none; height: 100dvh; min-height: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
@media (max-width: 960px) {
  .side-fold, .side-rail { display: none !important; }
  .nmap-grid.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .nmap-grid.is-collapsed .panel { padding: 20px; overflow: visible; }
  .nmap-grid.is-collapsed .panel > :not(.side-rail):not(.side-fold) { display: revert !important; }
  .nmap-grid.is-collapsed .panel > [hidden] { display: none !important; }
  /* 모바일 크게 보기: 지도 전체 + 아래 시트 */
  .nmap-grid.is-full { display: block; }
  .nmap-grid.is-full .nmap-box { height: 100dvh; }
  .nmap-grid.is-full .panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; height: auto; max-height: 42dvh; overflow-y: auto; border: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
  .nmap-grid.is-full .nmap-legend { bottom: calc(42dvh + 10px); }
}

/* 상담 신청 페이지 */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.contact-form { padding: 8px 32px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-form fieldset { margin: 0; padding: 24px 0; border: 0; border-bottom: 1px solid var(--line); }
.contact-form legend { float: left; width: 100%; margin-bottom: 14px; padding: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.contact-form legend + * { clear: both; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--body); }
.contact-form label small { font-weight: 400; color: var(--muted); }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-form legend + label, .contact-form legend + .row2 label { margin-top: 0; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 16px Pretendard, sans-serif; color: var(--text); }
.contact-form textarea { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--text); }
.contact-form .hint { font-size: 13px; color: var(--muted); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.checks label { flex-direction: row; align-items: center; gap: 10px; margin: 0; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; }
.contact-form input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--text); }
.contact-form .agree { flex-direction: row; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--text); }
.contact-form .agree a { color: var(--muted); text-decoration: underline; }
.contact-form .submit { width: 100%; height: 52px; margin-top: 18px; border-radius: 12px; font-size: 16px; }
.contact-form .note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.contact-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; }
.cs-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cs-card h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.cs-now { background: var(--tint); border-color: transparent; }
.cs-now p { margin-top: 2px; font-size: 13px; color: var(--body); }
.cs-now a { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 10px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.cs-now .cs-call { margin-top: 14px; background: var(--accent); color: #fff; font-variant-numeric: tabular-nums; }
.cs-now .cs-kakao { background: #fee500; color: #191919; }
.cs-steps { margin-top: 12px; counter-reset: s; }
.cs-steps li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line); counter-increment: s; }
.cs-steps li::before { content: counter(s); position: absolute; left: 2px; top: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cs-steps b { display: block; font-size: 14px; }
.cs-steps span { font-size: 13px; color: var(--body); }
.cs-docs { margin-top: 10px; }
.cs-docs li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cs-fine { margin-top: 8px; font-size: 12px; color: var(--muted); }
.cs-office { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--body); }
.cs-office b { display: block; font-size: 14px; color: var(--text); }
.cs-office a { display: block; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.top-cta.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111; }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-side { position: static; }
}
@media (max-width: 640px) {
  .contact-form { padding: 0 18px 22px; }
  .contact-form .row2, .checks { grid-template-columns: minmax(0, 1fr); }
  .contact-form .row2 label + label { margin-top: 14px; }
}
.site-modal-foot .sd-apply { background: var(--accent); color: #fff; }
.panel-apply { display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 18px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
/* 상담 안내: 변호사 카드, 신청서 제목 */
.cs-lawyer { display: flex; align-items: center; gap: 14px; }
.cs-lawyer img { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--tint); }
.cs-lawyer span { font-size: 12px; color: var(--muted); }
.cs-lawyer b { display: block; font-size: 18px; letter-spacing: -.02em; }
.cs-lawyer p { margin-top: 2px; font-size: 13px; color: var(--body); }
.cf-title { padding-top: 22px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
#form { scroll-margin-top: 84px; }
.head-more { flex: none; font-size: 13px; font-weight: 700; color: var(--body); }
.head-more:hover { color: var(--text); text-decoration: underline; }
.hero-grid .head { display: flex; align-items: flex-start; justify-content: space-between; }
/* 메인 검색창 아래: 키워드 대신 전화 안내 한 줄 */
.top-call { margin-top: 12px; text-align: center; font-size: 14px; color: var(--body); }
.top-call a { margin-left: 6px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.top-call a:hover { text-decoration: underline; }

/* 전국 현장: 네이버 지도처럼 헤더 아래 화면 전체를 지도·패널로 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map-app .nmap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; margin: 0; height: calc(100dvh - var(--top-h, 64px)); }
.map-app .nmap-box { height: 100%; margin: 0; }
.map-app #nmap { height: 100%; min-height: 0; border: 0; border-radius: 0; }
.map-app .panel { position: relative; top: auto; height: 100%; max-height: none; min-height: 0; padding: 22px 22px 28px; border: 0; border-left: 1px solid var(--line); border-radius: 0; overflow-y: auto; }
.map-app .nmap-grid.is-collapsed { grid-template-columns: minmax(0, 1fr) 44px; }
.map-app .nmap-grid.is-collapsed .panel { padding: 0; }
.sido-list { margin-top: 8px; border-top: 1px solid var(--line); }
.sido-list li { border-bottom: 1px solid var(--line); }
.sido-list button { display: grid; grid-template-columns: 1fr auto 76px; gap: 10px; align-items: baseline; width: 100%; padding: 10px 2px; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.sido-list b { font-size: 14px; font-weight: 700; }
.sido-list span { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sido-list em { font-size: 12px; font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sido-list button:hover b { text-decoration: underline; }
.map-app .data-note { margin-top: 18px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) {
  .map-app .nmap-grid { display: block; height: auto; }
  .map-app .nmap-box { height: calc(100dvh - var(--top-h, 64px) - 120px); min-height: 360px; }
  .map-app .panel { height: auto; border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
}

/* 법률 자료 */
.law-tabs { display: flex; gap: 24px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.law-tabs button { position: relative; padding: 12px 0; border: 0; background: none; font: 700 16px Pretendard, sans-serif; color: var(--muted); cursor: pointer; }
.law-tabs button[aria-selected=true] { color: var(--text); }
.law-tabs button[aria-selected=true]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.law-pane { padding-top: 20px; }
.law-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.law-filter { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.law-filter button { padding: 4px 0; border: 0; background: none; font: 500 14px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
.law-filter button.on { font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.law-search input { width: 260px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: 400 15px Pretendard, sans-serif; }
.law-search input:focus { outline: 0; border-color: var(--text); }
.law-count { margin-top: 14px; font-size: 13px; color: var(--muted); }
.case-list { margin-top: 8px; border-top: 1px solid var(--text); }
.case-list li { border-bottom: 1px solid var(--line); }
.case-list a { display: block; padding: 16px 2px; }
.case-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.case-list b { display: block; margin-top: 3px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.case-list a:hover b { text-decoration: underline; }
.case-name { display: block; font-size: 13px; color: var(--body); }
.case-list p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--body); }
.case-tags { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.case-empty { padding: 32px 0; text-align: center; color: var(--muted); }
.law-more { display: block; width: 100%; height: 46px; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 700 14px Pretendard, sans-serif; cursor: pointer; }
.law-more:hover { background: var(--chip); }
.law-note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.col-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.col-list a { display: block; height: 100%; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.col-list a:hover { background: var(--chip); }
.col-list span { font-size: 12px; font-weight: 700; color: var(--muted); }
.col-list b { display: block; margin-top: 6px; font-size: 18px; line-height: 1.4; letter-spacing: -.03em; }
.col-list p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--body); }
.col-list em { display: block; margin-top: 14px; font-size: 12px; font-style: normal; color: var(--muted); }
.law-list { border-top: 1px solid var(--text); }
.law-list li { display: grid; grid-template-columns: 150px 200px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.law-list b { font-size: 15px; }
.law-list span { font-size: 15px; font-weight: 700; color: var(--body); }
.law-list p { font-size: 14px; line-height: 1.6; color: var(--body); }
.law-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; }
.law-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .law-search, .law-search input { width: 100%; }
  .col-list { grid-template-columns: minmax(0, 1fr); }
  .law-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* 제목 옆 ⓘ: 올리거나(키보드 포커스) 누르면 설명 */
.info-tip { position: relative; display: inline-flex; margin-left: 4px; }
.info-btn { display: flex; padding: 2px; border: 0; background: none; color: var(--muted); cursor: help; }
.info-btn:hover, .info-btn:focus-visible { color: var(--text); }
.info-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.info-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: -8px; width: min(280px, calc(100vw - 32px)); display: none; padding: 10px 12px; border-radius: 10px; background: #1e1e23; color: #fff; font-size: 12.5px; font-weight: 400; line-height: 1.6; letter-spacing: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity .12s, transform .12s, visibility .12s; pointer-events: none; }
.info-pop::before { content: ""; position: absolute; top: -5px; left: 13px; width: 10px; height: 10px; background: #1e1e23; transform: rotate(45deg); }
.info-tip:hover .info-pop, .info-btn:focus-visible + .info-pop, .info-tip.open .info-pop { display: block; opacity: 1; visibility: visible; transform: none; }
.info-pop::before { left: var(--arrow, 13px); }
.quick-tabs .info-tip { margin-left: 4px; }
.quick-tabs .info-tip + span { margin-left: 4px; }
/* .quick-tabs span 기본 스타일이 설명 상자에 먹지 않게 */
.quick-tabs .info-pop { margin: 0; font-size: 12.5px; color: #fff; }
.head-title { display: flex; align-items: center; gap: 2px; }
.head-title .info-tip { margin-left: 2px; }
.issues-head .head-title h2 { margin: 0; }

/* 판례 상세 */
.case-page { max-width: 820px; margin: 0 auto; padding-top: clamp(28px, 4vw, 44px); }
.case-back { font-size: 14px; font-weight: 700; color: var(--body); }
.case-back:hover { color: var(--text); text-decoration: underline; }
.case-head { margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--text); }
.case-head h1 { margin-top: 6px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; }
.case-links { margin-top: 10px; font-size: 13px; }
.case-links a { color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.case-sec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.case-sec h2 { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.case-sec > div { font-size: 15px; line-height: 1.85; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
.case-body > div { font-size: 14.5px; color: #33373e; }
.case-mark { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--text); }
.case-num { font-weight: 700; }
.case-cta { display: flex; align-items: center; justify-content: center; height: 52px; margin: 24px 0 8px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
.law-filters { display: flex; flex-direction: column; gap: 6px; }
.law-kinds button { font-weight: 700; }
.law-kinds { padding-bottom: 6px; border-bottom: 1px dashed var(--line); }

/* 전국 현장: 지도/게시판 전환 */
.view-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--chip); }
.view-switch a { padding: 6px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--body); }
.view-switch a.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.nmap-box .view-switch { position: absolute; z-index: 6; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .96); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.nmap-box .view-switch a.on { background: var(--text); color: #fff; box-shadow: none; }

/* 전국 현장 게시판 */
.board-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.board-top .head { margin-bottom: 0; }
.board-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.board-tools select, .board-search input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 400 15px Pretendard, sans-serif; color: var(--text); }
.board-search { margin-left: auto; }
.board-search input { width: 280px; }
.board-stages { margin-top: 14px; }
.board-table { margin-top: 8px; border-top: 1px solid var(--text); }
.bt-head, .bt-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 1.2fr .8fr .9fr .8fr .7fr; gap: 12px; align-items: center; padding: 0 4px; }
.bt-head { height: 40px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bt-row { width: 100%; min-height: 58px; padding-top: 10px; padding-bottom: 10px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 14px; text-align: left; color: var(--body); cursor: pointer; }
.bt-row:hover { background: var(--chip); }
.bt-row:hover b { text-decoration: underline; }
.bt-name { min-width: 0; }
.bt-name b { display: block; overflow: hidden; font-size: 15px; font-weight: 700; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.bt-name small { display: block; overflow: hidden; margin-top: 1px; font-size: 12.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.bt-stage.on { font-weight: 700; color: var(--text); }
.bt-num { font-variant-numeric: tabular-nums; }
.bt-muted { color: var(--muted); }
.board-pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 22px; }
.board-pager button { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: 500 14px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
.board-pager button:hover { background: var(--chip); }
.board-pager button.on { background: var(--text); color: #fff; font-weight: 700; }
.board-pager span { color: var(--muted); }
@media (max-width: 860px) {
  .board-search { width: 100%; margin-left: 0; }
  .board-search input { width: 100%; }
  .bt-head { display: none; }
  .bt-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .bt-row > :nth-child(2) { grid-column: 1; font-size: 13px; }
  .bt-row > :nth-child(3) { grid-row: 1; grid-column: 2; }
  .bt-row > :nth-child(4) { grid-column: 2; grid-row: 2; font-size: 12.5px; }
  .bt-row > :nth-child(5), .bt-row > :nth-child(6) { display: none; }
}
.quick-tabs .quick-links { display: flex; gap: 12px; margin-left: auto; font-size: 13px; color: var(--body); }
.quick-tabs .quick-links a { margin-left: 0; }
.quick-tabs .quick-links a:hover { color: var(--text); text-decoration: underline; }

/* 핀: 같은 단계에 머문 기간 색 + 올리면 요약 */
.a-green { --pin: #2f9e5b; } .a-amber { --pin: #e3a21a; } .a-red { --pin: #d64545; } .a-old { --pin: #b4b9bf; } .nodate { --pin: #fff; }
.done, .gone { --pin: #a3a8b0; } .unk { --pin: #fff; }
.nmap-legend { flex-wrap: wrap; align-items: center; max-width: calc(100% - 24px); }
.nmap-legend b { font-size: 12px; color: var(--text); }
.nmap-legend i.nodate, .nm-pin.nodate, .nm-pin.unk { box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.nm-pin { position: relative; }
.nm-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; display: none; width: max-content; max-width: 230px; padding: 10px 12px; border-radius: 10px; background: #1e1e23; color: #fff; font-size: 12px; line-height: 1.5; text-align: left; transform: translateX(-50%); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); pointer-events: none; }
.nm-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #1e1e23; transform: translateX(-50%) rotate(45deg); }
.nm-pin:hover .nm-tip { display: block; }
.nm-pin:hover { transform: none; }
.nm-tip b { display: block; font-size: 13.5px; white-space: normal; }
.nm-tip span { display: block; color: #c9ccd2; }
.nm-tip em { display: flex; align-items: center; gap: 6px; margin: 3px 0 1px; font-style: normal; font-weight: 700; color: #fff; }
.nm-tip em::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.nm-tip small { display: block; margin-top: 4px; font-size: 11px; color: #9a9ea6; }
.nm-bubble { position: relative; }
.nm-red { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 9px; background: #d64545; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 700; line-height: 14px; text-align: center; }
.bt-stage { display: flex; align-items: center; gap: 6px; }
.bt-dot { flex: none; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.board-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board-legend { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.board-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cs-areas { margin-top: 10px; }
.cs-areas > div { padding: 9px 0; border-top: 1px solid var(--line); }
.cs-areas dt { font-size: 14px; font-weight: 700; }
.cs-areas dd { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--body); }
.cs-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--body); }
.cs-more:hover { color: var(--text); text-decoration: underline; }
/* 날짜 없음·단계 미상: 흰 점은 지도에 묻혀서, 흰 속 + 진한 회색 굵은 테두리 고리로 */
.nm-pin.nodate, .nm-pin.unk { background: #fff; border: 3px solid #4a4f57; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(0, 0, 0, .35); }
.nmap-legend i.nodate, .nmap-legend i.unk, .bt-dot.nodate, .bt-dot.unk { background: #fff; border: 2px solid #4a4f57; box-shadow: none; box-sizing: border-box; }
.nm-pin.done, .nm-pin.gone { box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
/* 핀이 연한 지도 바탕에 묻히지 않게: 조금 크게, 진한 바깥 테두리 + 그림자 */
.nm-pin { width: 16px; height: 16px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px rgba(30, 30, 35, .7), 0 2px 5px rgba(0, 0, 0, .35); }
.done, .gone { --pin: #6f747d; }
.nm-pin.done, .nm-pin.gone { box-shadow: 0 0 0 1.5px rgba(30, 30, 35, .7), 0 2px 5px rgba(0, 0, 0, .35); }
.nm-pin.nodate, .nm-pin.unk { width: 16px; height: 16px; border: 4px solid #2b2f36; box-shadow: 0 0 0 1.5px #fff, 0 2px 5px rgba(0, 0, 0, .35); }
.nm-pin.sel { width: 20px; height: 20px; border-width: 3px; box-shadow: 0 0 0 2.5px #1e1e23, 0 4px 10px rgba(0, 0, 0, .35); }
.nmap-legend i.done { background: #6f747d; }

/* 판례 전문: 판결문 구조(섹션·번호 단계)에 맞춘 간격 */
.case-page { max-width: 760px; }
.case-sec { padding: 32px 0; }
.case-sec h2 { margin-bottom: 16px; font-size: 18px; }
.case-sec > div { font-size: 16px; line-height: 1.9; color: #2b2f36; }
.cf-meta { margin: 0 0 8px; padding: 14px 18px; border-radius: 12px; background: var(--wash); }
.cf-meta > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 5px 0; font-size: 14px; line-height: 1.6; }
.cf-meta dt { font-weight: 700; color: var(--body); }
.cf-meta dd { margin: 0; color: var(--text); }
.cf-sec { margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--text); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.cf-sec:first-of-type { margin-top: 28px; }
.cf-head { margin: 30px 0 10px; font-size: 17px; font-weight: 700; line-height: 1.6; letter-spacing: -.02em; }
.cf-head.cf-l2 { margin-top: 24px; font-size: 16px; }
.cf-head.cf-l3, .cf-head.cf-l4, .cf-head.cf-l5, .cf-head.cf-l6 { margin-top: 20px; font-size: 15.5px; }
.cf-para, .cf-item, .cf-bullet, .cf-sub { margin: 0 0 16px; }
.cf-item, .cf-bullet, .cf-sub, .cf-head { display: flex; gap: 8px; }
.cf-mk { flex: none; min-width: 1.6em; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cf-sub { margin-bottom: 8px; font-size: 15px; color: #3d424a; }
/* 단계마다 들여쓰기 */
.cf-l2 { padding-left: 16px; } .cf-l3 { padding-left: 32px; } .cf-l4 { padding-left: 46px; }
.cf-l5 { padding-left: 60px; } .cf-l6 { padding-left: 72px; } .cf-l7 { padding-left: 84px; }
.cf-cite { color: var(--muted); }
.cf-points { display: flex; flex-direction: column; gap: 12px; }
.cf-points li { display: flex; gap: 8px; }
@media (max-width: 640px) {
  .case-sec > div { font-size: 15.5px; line-height: 1.85; }
  .cf-meta > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cf-l2 { padding-left: 8px; } .cf-l3 { padding-left: 16px; } .cf-l4, .cf-l5, .cf-l6, .cf-l7 { padding-left: 22px; }
}
.cf-tx { min-width: 0; flex: 1; }

/* 판례 쉬운 해설 */
.case-note { margin-top: 24px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cn-tag { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cn-one { margin-top: 6px; font-size: 19px; font-weight: 700; line-height: 1.55; letter-spacing: -.03em; color: var(--text); }
.case-note h3 { margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--body); }
.case-note > p:not(.cn-tag):not(.cn-one):not(.cn-topics):not(.cn-fine) { margin-top: 6px; font-size: 15.5px; line-height: 1.85; color: #2b2f36; }
.case-note ul { margin-top: 6px; }
.case-note ul li { position: relative; padding-left: 14px; margin-top: 6px; font-size: 15px; line-height: 1.75; color: #2b2f36; }
.case-note ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.cn-quotes { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.cn-quotes summary { font-size: 13px; font-weight: 700; color: var(--body); cursor: pointer; }
.cn-quotes li { font-size: 14px !important; color: var(--body) !important; }
.cn-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.cn-topics a { font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cn-fine { margin-top: 12px; font-size: 12px; color: var(--muted); }
.case-note-tag { margin-right: 8px; font-size: 12px; font-style: normal; font-weight: 700; color: #237a45; }
.law-countrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.law-only { display: flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 6px; font-size: 13px; color: var(--body); cursor: pointer; }
.law-only input { width: 16px; height: 16px; accent-color: var(--text); }
/* 640px 이하 .case-note·.cn-one → mobile.css */

/* 모달 위 '전체 페이지로 보기' */
.sm-full { font-size: 14px; font-weight: 700; color: var(--body); }
.sm-full:hover { color: var(--text); text-decoration: underline; }
.panel-full { display: block; margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700; color: var(--body); }
.panel-full:hover { color: var(--text); text-decoration: underline; }

/* 현장 개별 페이지 */
.site-page { max-width: 820px; margin: 0 auto; padding-top: clamp(24px, 4vw, 40px); }
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.sp-crumbs a { color: var(--body); }
.sp-crumbs a:hover { color: var(--text); text-decoration: underline; }
.sp-head { margin-top: 14px; }
.sp-head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.3; letter-spacing: -.04em; }
.sp-head p { margin-top: 6px; font-size: 16px; color: var(--body); }
.sp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px; margin-top: 22px; padding: 6px 0; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); }
.sp-facts > div { padding: 10px 0; }
.sp-facts dt { font-size: 12.5px; color: var(--muted); }
.sp-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; }
.sp-body .sd > .sd-block:first-child { margin-top: 28px; }
.sp-cta { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin: 32px 0 8px; }
.sp-cta a { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.sp-apply { background: var(--accent); color: #fff; }
.sp-call, .sp-map { border: 1px solid var(--line); background: #fff; font-variant-numeric: tabular-nums; }
.sp-call:hover, .sp-map:hover { background: var(--chip); }
@media (max-width: 640px) { .sp-cta { grid-template-columns: 1fr 1fr; } .sp-apply { grid-column: 1 / -1; } }
@media (max-width: 640px) { .sp-facts { grid-template-columns: 1fr 1fr; gap: 0 16px; } .sp-facts > div:nth-child(2), .sp-facts > div:last-child { grid-column: 1 / -1; } }
/* 모달 위쪽 막대 전체가 현장 페이지로 가는 링크 */
.site-modal-bar { cursor: pointer; }
.site-modal-bar:hover { background: var(--chip); }
.site-modal-bar:hover .sm-full { color: var(--text); text-decoration: underline; }
.site-modal-bar #siteClose { cursor: pointer; }

/* 판례 상세 2단: 왼쪽 판결문 | 오른쪽 쉬운 해설(따라옴). 해설이 없으면 한 단 */
.case-page:has(.has-note) { max-width: 1200px; }
.case-grid.has-note { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.case-grid.has-note .case-note { position: sticky; top: 88px; margin-top: 24px; padding: 22px 22px 18px; }
.case-grid.has-note .cn-one { font-size: 17px; }
.case-grid.has-note .case-note > p:not(.cn-tag):not(.cn-one):not(.cn-topics):not(.cn-fine) { font-size: 14.5px; line-height: 1.8; }
.case-grid.has-note .case-note ul li { font-size: 14px; }
@media (max-width: 1000px) {
  .case-grid.has-note { display: flex; flex-direction: column-reverse; gap: 0; }
  .case-grid.has-note .case-note { position: static; }
}

/* 로율 지주택 AI 채팅창 */
#aiChat { position: fixed; right: 24px; bottom: 24px; z-index: 250; font-family: Pretendard, sans-serif; }
.ai-fab { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 26px; background: #1e1e23; color: #fff; font: 700 15px Pretendard, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); cursor: pointer; }
.ai-fab:hover { background: #000; }
.ai-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#aiChat.open .ai-fab { display: none; }
.ai-panel { display: flex; flex-direction: column; width: 400px; height: min(640px, calc(100dvh - 48px)); border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: 8px; padding: 14px 12px 12px 18px; background: #1e1e23; color: #fff; }
.ai-head div { flex: 1; min-width: 0; }
.ai-head b { display: block; font-size: 16px; }
.ai-head span { display: block; font-size: 12px; color: #b9bdc5; }
.ai-reset { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; background: none; color: #dfe1e5; font: 700 12px Pretendard, sans-serif; cursor: pointer; }
.ai-close { display: flex; padding: 6px; border: 0; border-radius: 8px; background: none; color: #fff; cursor: pointer; }
.ai-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--chip); overscroll-behavior: contain; }
.ai-msg { max-width: 88%; margin-bottom: 12px; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.ai-msg p + p { margin-top: 8px; }
.ai-bot { background: #fff; color: var(--text); border-top-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.ai-me { margin-left: auto; background: #1e1e23; color: #fff; border-top-right-radius: 4px; }
.ai-suggest { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ai-suggest button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 500 13.5px Pretendard, sans-serif; color: var(--text); text-align: left; cursor: pointer; }
.ai-suggest button:hover { background: var(--chip); }
.ai-src { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.ai-src span { color: var(--muted); }
.ai-src a { color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.ai-src a:hover { color: var(--text); }
.ai-err { color: #b23b3b; }
.ai-typing { display: flex; gap: 4px; padding: 4px 0; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: aiDot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: .15s; } .ai-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ai-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: 400 15px/1.5 Pretendard, sans-serif; resize: none; }
.ai-form textarea:focus { outline: 0; border-color: var(--text); }
.ai-form button { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #1e1e23; color: #fff; cursor: pointer; }
.ai-form svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-fine { padding: 0 14px 10px; font-size: 11.5px; color: var(--muted); }
/* 지도 페이지: 오른쪽 패널을 피해서 */
.page-map #aiChat { right: 424px; }
.page-map .nmap-grid.is-collapsed ~ #aiChat, .page-map:has(.nmap-grid.is-collapsed) #aiChat { right: 68px; }
@media (max-width: 960px) { .page-map #aiChat { right: 16px; } }
@media (max-width: 640px) {
  #aiChat { right: 16px; bottom: 16px; }
  .ai-fab { height: 48px; padding: 0 16px 0 14px; font-size: 14px; }
  #aiChat.open { inset: 0; }
  .ai-panel { width: 100vw; height: 100dvh; border-radius: 0; }
}

/* 통합 검색 */
.search-page { max-width: 860px; margin: 0 auto; }
.search-box { display: flex; align-items: center; gap: 10px; height: 56px; margin-top: 16px; padding: 0 10px 0 20px; border: 2px solid var(--text); border-radius: 999px; }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; font: 400 17px Pretendard, sans-serif; background: none; }
.search-box input:focus { outline: 0; }
.search-box button { display: flex; padding: 8px; border: 0; background: none; cursor: pointer; }
.search-box svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.search-sum { margin-top: 16px; font-size: 14px; color: var(--body); }
.search-sum a { color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.s-group { margin-top: 28px; }
.s-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--text); }
.s-head h2 { font-size: 18px; font-weight: 700; }
.s-head h2 span { margin-left: 4px; font-size: 14px; color: var(--muted); }
.s-head a { font-size: 13px; font-weight: 700; color: var(--body); }
.s-group li { border-bottom: 1px solid var(--line); }
.s-group li a { display: block; padding: 13px 2px; }
.s-group li b { font-size: 15.5px; font-weight: 700; }
.s-group li a:hover b { text-decoration: underline; }
.s-meta { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.s-group li p { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--body); }
.s-group mark, .search-sum mark { padding: 0 1px; background: #fff1a8; color: inherit; }
.s-help { margin-top: 24px; font-size: 14px; font-weight: 700; }
.quick-search a { margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--body); }
.quick-search a:hover { color: var(--text); text-decoration: underline; }

/* 메인 전국 현장: 목록 | 지도 */
.quick-view { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 9px; background: var(--chip); }
.quick-tabs .quick-view { margin-left: auto; }
.quick-view button { padding: 4px 12px; border: 0; border-radius: 7px; background: none; font: 700 13px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
.quick-view button[aria-selected=true] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.quick-map { margin-top: 8px; }
#quickMap { position: relative; height: 420px; border-radius: 12px; overflow: hidden; background: var(--chip); isolation: isolate; }
.quick-map-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.quick-map-note span { display: inline-flex; align-items: center; gap: 4px; }
.quick-map-note a { margin-left: auto; font-weight: 700; color: var(--body); }
.quick-map-note a:hover { color: var(--text); text-decoration: underline; }
.quick-map-fail { padding: 40px 16px; text-align: center; color: var(--body); }
@media (max-width: 640px) { #quickMap { height: 360px; } .quick-map-note a { margin-left: 0; } }

/* 칼럼 상세 */
.col-page { max-width: 760px; margin: 0 auto; padding-top: clamp(28px, 4vw, 44px); }
.col-head { margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--text); }
.col-head h1 { margin-top: 6px; font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; }
.col-lead { margin-top: 12px; font-size: 16.5px; line-height: 1.7; color: var(--body); }
.col-by { margin-top: 12px; font-size: 13px; color: var(--muted); }
.col-sec { padding: 26px 0 4px; }
.col-sec h2 { font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -.03em; }
.col-sec p, .col-sec li { font-size: 16px; line-height: 1.9; color: #2b2f36; overflow-wrap: anywhere; }
.col-sec p { margin-top: 12px; }
.col-sec ul { margin-top: 12px; }
.col-sec li { position: relative; padding-left: 16px; margin-top: 6px; }
.col-sec li::before { content: ""; position: absolute; left: 3px; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.col-rel { margin-top: 32px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.col-rel + .col-rel { margin-top: 12px; }
.col-rel h2 { font-size: 15px; font-weight: 700; }
.col-rel-cases li + li { border-top: 1px solid var(--line); }
.col-rel-cases a { display: block; padding: 12px 0; }
.col-rel-cases li:last-child a { padding-bottom: 2px; }
.col-rel-cases b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em; }
.col-rel-cases a:hover b { text-decoration: underline; }
.col-rel-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.col-rel-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--chip); font-size: 14px; font-weight: 700; color: var(--text); }
.col-rel-links a:hover { background: var(--tint); }
.col-page .case-cta { margin-top: 28px; }
.col-more { padding: 0; border: 0; margin-top: 44px; }
.col-more h2 { margin-bottom: 12px; font-size: 17px; }
.col-more .col-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.col-more .col-list a { padding: 16px 20px; }
.col-more .col-list b { font-size: 16px; }
.col-more .col-list em { margin-top: 6px; }
/* 640px 이하 .col-sec·.col-rel → mobile.css */
.col-rel-cases p { margin-top: 3px; font-size: 13.5px; line-height: 1.6; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 메인 현장 목록: 줄 끝 '미리보기'(quick.js 인라인 스타일에서 옮김) */
.quick-list > li { display: flex; align-items: center; gap: 8px; }
.quick-list > li > a { flex: 1; min-width: 0; }
.quick-peek { flex: none; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: 500 12px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
.quick-peek:hover { background: var(--chip); color: var(--text); }
.quick-head { padding-right: 70px; }
.top-call a { white-space: nowrap; }
.issues small { font-size: 12px; }
@media (max-width: 640px) {
  .quick-peek { height: 34px; padding: 0 11px; }
  .quick-view button { padding: 7px 14px; }
}

/* 지도 종류 전환(일반/위성) — 네이버 기본 버튼 대신 */
.nm-type { position: absolute; z-index: 5; top: 12px; left: 12px; display: inline-flex; padding: 3px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); }
.nm-type button { min-width: 44px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; font: 700 13px Pretendard, sans-serif; color: var(--muted); cursor: pointer; }
.nm-type button[aria-pressed=true] { background: var(--accent); color: #fff; }
@media (max-width: 960px) {
  .map-app .nmap-box { height: calc(100dvh - var(--top-h, 64px) - 200px); min-height: 340px; }
}

/* 모바일: 글자 필터 줄(단계·종류)은 한 줄 가로 스크롤, 터치 높이 확보 */
@media (max-width: 640px) {
  .law-filter { flex-wrap: nowrap; gap: 0 16px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .law-filter::-webkit-scrollbar { display: none; }
  .law-filter button { flex: none; min-height: 38px; padding: 8px 0; white-space: nowrap; }
  .law-filters { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .law-filters .law-filter { margin-left: 0; margin-right: calc(-1 * var(--gutter)); padding-left: 0; }
  .law-kinds { border-bottom: 0; }
}
.case-back { display: inline-flex; align-items: center; min-height: 36px; }
.col-list b, .col-head h1, .case-head h1, .col-sec h2 { text-wrap: pretty; }
@media (max-width: 640px) {
  .col-list a { padding: 18px 20px; }
  .foot { padding-bottom: 84px; }
}

/* 메인 상단 카드: 로율 홈페이지 영상 + 은은한 딤 */
.hero-main .promo.has-video { position: relative; overflow: hidden; isolation: isolate; border-color: transparent; background: #2b3038 url(img/promo-bg.jpg) center 62% / cover no-repeat; }
.promo-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; filter: saturate(.8); }
.promo.has-video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 23, 28, .62) 0%, rgba(20, 23, 28, .38) 55%, rgba(20, 23, 28, .18) 100%), linear-gradient(0deg, rgba(20, 23, 28, .22), rgba(20, 23, 28, 0) 60%); }
.promo.has-video p { color: rgba(255, 255, 255, .86); }
.promo.has-video h1 { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .18); }
@media (prefers-reduced-motion: reduce) { .promo-bg { display: none; } }
@media (max-width: 640px) {
  .promo.has-video::before { background: linear-gradient(90deg, rgba(20, 23, 28, .66) 0%, rgba(20, 23, 28, .44) 100%); }
}

/* 페이지 끝 상담 블록: 옅은 바탕 위 흰 카드(문구·버튼 | 챙길 것 | 사진) */
.foot-cta { margin-top: 72px; padding: 64px 0 56px; background: var(--wash); }
.page-map .foot-cta { margin-top: 0; }
.fc-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr) 236px; gap: 40px; align-items: center; padding: 0; } /* 흰 카드 없이 회색 띠 위에 바로(사용자 요청 2026-11-09) */
.fc-main h2 { font-size: clamp(26px, 2.3vw, 31px); font-weight: 700; line-height: 1.3; letter-spacing: -.04em; color: var(--text); text-wrap: pretty; }
.fc-areas { margin-top: 12px; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--text); }
.fc-who { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.foot-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.foot-cta-btns a { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.foot-cta-btns a:hover { background: var(--chip); }
.foot-cta-btns a.fc-tel { gap: 10px; padding: 0 22px; border-color: var(--accent); background: var(--accent); color: #fff; }
.foot-cta-btns a.fc-tel:hover { background: #22262c; }
.fc-tel span { font-size: 14px; font-weight: 500; opacity: .8; }
.fc-tel b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.foot-cta-btns a.kakao { border-color: #fee500; background: #fee500; color: #191919; }
.foot-cta-btns a.kakao:hover { background: #f5dc00; }
.fc-check { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 4px 0 4px 36px; border-left: 1px solid var(--line); }
.fc-check h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.fc-check ul { margin-top: 12px; }
.fc-check li { position: relative; padding: 7px 0 7px 28px; font-size: 15px; color: var(--body); }
.fc-check li::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--chip); }
.fc-check li::after { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border: solid var(--text); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.fc-check p { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.fc-card > img { align-self: end; width: 236px; height: 292px; margin: -64px 0 -56px; object-fit: cover; object-position: top; }
@media (max-width: 1220px) { /* 메뉴에 '전국' 이 붙어 길어져 1120 → 1220 */
  .fc-card { grid-template-columns: minmax(0, 1fr) 200px; grid-template-areas: "main img" "check img"; gap: 28px 32px; }
  .fc-main { grid-area: main; }
  .fc-check { grid-area: check; align-self: start; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .fc-check ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .fc-card > img { grid-area: img; width: 200px; height: 260px; margin-top: 0; }
}
@media (max-width: 640px) {
  .foot-cta { margin-top: 48px; padding: 40px 0 36px; }
  .fc-card { display: block; padding: 0; }
  .fc-main h2 { font-size: 24px; }
  .fc-areas { font-size: 15px; }
  .foot-cta-btns { flex-direction: column; margin-top: 22px; }
  .foot-cta-btns a { width: 100%; }
  .fc-check { margin-top: 24px; padding-top: 20px; }
  .fc-check li { font-size: 14.5px; }
  .fc-card > img { display: none; }
}

/* 컨테이너 원칙: 내용 덩어리는 흰 카드(1px 선·큰 radius)로 감싼다. 카드 사이 16~20px, 안쪽 24~28px(모바일 18px) */
.law-pane, .s-group, .case-main, .col-body, .col-more { border: 1px solid var(--line); border-radius: 20px; background: #fff; }
/* 판례·법령 */
.law-pane { margin-top: 18px; padding: 24px 28px 28px; }
.case-list, .law-list { border-top: 0; }
.case-list li:last-child, .law-list li:last-child { border-bottom: 0; }
.law-countrow { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
/* 통합 검색 */
.s-group { margin-top: 18px; padding: 22px 28px 8px; }
.s-head { border-bottom-color: var(--line); }
.s-group li:last-child { border-bottom: 0; }
/* 현장 목록 */
.board-table { margin-top: 10px; }
#bRows > :last-child { border-bottom: 0; }
/* 판례 상세 본문 */
.case-main { margin-top: 24px; padding: 4px 28px 28px; }
.case-main .case-sec:last-of-type { border-bottom: 0; }
/* 칼럼 상세 */
.col-body { margin-top: 24px; padding: 4px 28px 30px; }
.col-rel { margin-top: 16px; padding: 22px 28px; }
.col-rel + .col-rel { margin-top: 16px; }
.col-more { margin-top: 16px; padding: 22px 28px 28px; }
.col-more h2 { font-size: 15px; }
.col-more .col-list a { border: 0; background: var(--wash); }
.col-more .col-list a:hover { background: var(--chip); }
/* 640px 이하 카드 여백(law-pane·s-group·case-main·col-*)·판례 필터 끝 → mobile.css (휴대폰은 카드를 걷어냄) */

/* 접근성: 키보드 포커스 표시, 본문 바로가기 */
:where(a[href], button, summary, select, [tabindex]:not([tabindex="-1"]), input[type=checkbox], input[type=radio]):focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.search:focus-within, .search-box:focus-within, .top-search:focus-within { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* 컨테이너는 한 겹만: 카드 안에는 바탕색·테두리 상자를 두지 않고 소제목·간격으로 나눈다 */
.site-state { padding: 0; border-radius: 0; background: none; }
.quick-list li > .site-info, .pick-list li > .site-info { padding: 4px 0 0; border-radius: 0; background: none; }
.q-card { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.sd-steps { padding: 8px 0 4px; border-radius: 0; background: none; }
.panel-note { padding: 0; border-radius: 0; background: none; color: var(--muted); }
.cf-meta { padding: 4px 0 14px; border-radius: 0; border-bottom: 1px solid var(--line); background: none; }
/* 칼럼 상세: 다른 칼럼은 줄 목록, 관련 안내는 텍스트 링크 */
.col-more .col-list { gap: 0; }
.col-more .col-list li + li { border-top: 1px solid var(--line); }
.col-more .col-list a, .col-more .col-list a:hover { padding: 14px 0; border: 0; border-radius: 0; background: none; }
.col-more .col-list li:last-child a { padding-bottom: 2px; }
.col-more .col-list a:hover b { text-decoration: underline; }
.col-rel-links { gap: 6px 18px; }
.col-rel-links a, .col-rel-links a:hover { min-height: 0; padding: 4px 0; border-radius: 0; background: none; text-decoration: underline; text-underline-offset: 4px; }
.col-rel-links a::after { content: " →"; }
/* 판례 상세: 판결에 나온 조문(조문 페이지로) */
.case-laws ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.case-laws li { display: flex; align-items: baseline; gap: 8px; min-width: 0; padding: 4px 0; font-size: 15px; }
.case-laws a { flex: none; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.case-laws span { overflow: hidden; font-size: 13.5px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .case-laws ul { grid-template-columns: minmax(0, 1fr); } }

/* 메인 카드 머리 띠: 아주 옅은 회색(사용자 요청 2026-11-09) — 전국 현장·최근 판례·진행 중인 건·사건 진행 */
.hero-grid #quick > .quick-tabs,
.hero-grid #precedents > .head,
.hero-grid #cases > .issues-head,
.hero-grid #process > .head { margin: -20px -24px 12px; padding: 16px 24px 14px; border-radius: 15px 15px 0 0; background: var(--wash); }
/* 640px 이하 머리 띠 여백 → mobile.css */
/* 머리 띠 바로 아래 목록의 윗선은 뺀다(띠가 경계 역할, 사용자 요청 2026-11-09) */
.hero-grid #precedents > .head + .prec-list, .hero-grid #process > .head + .steps,
.hero-grid #precedents .prec-list, .hero-grid #process ol.steps { border-top: 0; }

/* 모바일 터치 크기(스타일, v=163): 로고·바닥글 링크는 보이는 크기는 그대로, 누르는 범위만 44px 가까이 */
@media (max-width: 760px) {
  .top-row .logo { padding: 12px 0; margin-top: -12px; margin-bottom: -12px; }
  .foot-bottom a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
@media (max-width: 760px) {
  .sp-crumbs a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}

/* 왼쪽 목차 레일(toc-rail.js, 스타일 v=165): 1360px 이상에서만. 상자 없이 글자 목차, 폭 200px */
.toc-rail { display: none; }
@media (min-width: 1360px) {
  body.has-rail main.wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; max-width: calc(1240px + 232px + var(--gutter) * 2); }
  body.has-rail main.wrap > :not(.toc-rail) { grid-column: 2; min-width: 0; }
  .toc-rail { display: block; grid-column: 1; grid-row: 1 / span 200; }
  .toc-rail-in { position: sticky; top: 96px; padding-top: clamp(28px, 4vw, 44px); max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: none; }
  .toc-rail-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
  .toc-rail ol, .toc-rail ul { margin: 0; padding: 0; list-style: none; }
  .toc-rail ol a, .toc-rail-recent a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
  .toc-rail ol a:hover, .toc-rail-recent a:hover { color: var(--text); }
  .toc-rail ol a.on { color: var(--text); font-weight: 700; }
  .toc-rail-recent { margin-bottom: 8px; }
  .toc-rail ol + .toc-rail-h { margin-top: 28px; }
  .toc-rail-recent a { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.has-rail .toc-src { display: none; }
}

/* 칼럼(콘텐츠 세션 요청, v=166): 본문 근거 링크, 끝 안내문, 목록 머리의 글 수·주제 줄 */
.col-sec a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--muted); }
.col-sec a:hover { text-decoration-color: var(--text); }
.col-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.75; color: var(--body); }
.column-page .head p.col-count { margin-top: 8px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* 휴대폰 사용성(오케스트레이터 iOS 점검, 스타일 v=167) */
/* 1) iOS Safari 는 16px 미만 입력칸을 누르면 화면을 확대한다 */
@media (max-width: 960px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}
/* 2) AI 버튼: 휴대폰에서는 56px 원형 아이콘, 안전영역 위, 아래로 스크롤하면 숨김(header.js 가 body.scroll-down) */
@media (max-width: 640px) {
  #aiChat { bottom: calc(16px + env(safe-area-inset-bottom)); transition: transform .25s ease, opacity .25s ease; }
  .ai-fab { justify-content: center; width: 56px; height: 56px; padding: 0; border-radius: 50%; }
  .ai-fab svg { width: 24px; height: 24px; }
  .ai-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.scroll-down #aiChat:not(.open) { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
  #aiChat.open { bottom: 0; transform: none; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { #aiChat { transition: none; } }
/* 3) 휴대폰 메뉴: 열면 뒤 본문은 잠그고(header.js) 반투명 배경, 메뉴가 길면 메뉴 안에서 스크롤 */
.menu-scrim { display: none; }
@media (max-width: 640px) {
  .menu-scrim { position: fixed; inset: 0; z-index: 9; background: rgba(30, 30, 35, .38); }
  body.menu-lock .menu-scrim { display: block; }
  body.menu-lock .top { position: fixed; left: 0; right: 0; top: 0; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
}
/* 4) 메인 '전국 현장': 머리 띠와 시도 탭 사이 여백 줄이기(머리 띠 규칙은 그대로) */
@media (max-width: 640px) {
  #quick .quick-tabs { margin-bottom: 4px; }
  #quick .quick-filter { margin-top: 0; }
}
/* 5) 현장 미리보기 하단: 좁으면 사진·이름 빼고 세 버튼 같은 폭 */
@media (max-width: 640px) {
  .site-modal-foot { gap: 8px; padding-left: 12px; }
  .site-modal-foot img, .site-modal-foot p { display: none; }
  .site-modal-foot a { flex: 1 1 0; justify-content: center; height: 44px; padding: 0 6px; white-space: nowrap; }
}
.site-modal:focus { outline: 0; }

/* ── 휴대폰 앱 모양(640px 이하, 스타일 v=169): 머리 아이콘·아래 탭바·메뉴 시트(header.js), 메인 앱 홈(home-m.js) ── */
.top-icons, .tabbar, .tab-sheet, .m-home, .promo-by, .m-fold { display: none; }
@media (max-width: 640px) {
  :root { --tabbar-h: calc(58px + env(safe-area-inset-bottom)); }
  /* 머리: 로고 + 검색·전화 아이콘. 큰 상담 버튼·햄버거는 탭바로 */
  .top-cta, .burger, .top .search { display: none !important; }
  .top-icons { display: flex; gap: 2px; margin-right: -10px; }
  .top-icons a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--text); }
  .top-icons a:active { background: var(--chip); }
  .top-icons svg, .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  /* 아래 탭바 */
  body.has-tabbar { padding-bottom: var(--tabbar-h); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; font: 500 12px/1.2 Pretendard, sans-serif; color: var(--muted); cursor: pointer; }
  .tabbar [aria-current], .tabbar button[aria-expanded=true] { color: var(--text); font-weight: 700; }
  .tabbar [aria-current] svg { stroke-width: 2.1; }
  body:has(.nmap-grid.is-full) .tabbar, body:has(dialog[open]) .tabbar { display: none; }
  #aiChat { bottom: calc(var(--tabbar-h) + 12px); }
  .foot { padding-bottom: 8px; }
  /* 메뉴 시트 */
  body.sheet-open .menu-scrim { display: block; z-index: 61; }
  .tab-sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 62; max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); }
  .tab-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: var(--line); }
  .sheet-h { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
  .tab-sheet nav a { display: flex; align-items: center; min-height: 50px; border-top: 1px solid var(--line); font-size: 16px; color: var(--text); }
  .tab-sheet nav a:first-child { border-top: 0; }
  .tab-sheet nav a[aria-current] { font-weight: 700; }
  .tab-sheet .sheet-tel { font-weight: 700; }
  body.menu-lock .top { position: static; max-height: none; overflow: visible; }
  /* 지도 페이지: 탭바만큼 지도 높이를 줄인다 */
  .map-app .nmap-box { height: calc(100dvh - var(--top-h, 64px) - 200px - var(--tabbar-h)); }

  /* 메인: 검색 → 낮은 히어로 → 빠른 메뉴 → 가로 카드 → 현장 요약 → 접힌 카드 */
  .top-call, #quick, #profile { display: none !important; } /* #precedents(메인 것만) → mobile.css */
  .hero-main .promo, .hero-main .promo.has-video { min-height: 0; height: 140px; padding: 18px 20px; gap: 4px; justify-content: flex-end; }
  .promo.has-video p { display: none; }
  .promo h1 { font-size: 20px; }
  .promo-by { display: block; font-size: 13px; color: rgba(255, 255, 255, .86); }
  .m-home { display: flex; flex-direction: column; gap: 28px; margin-top: 16px; }
  .m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .m-tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; padding: 12px 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--text); text-align: center; word-break: keep-all; }
  .m-tiles a:active { background: var(--wash); }
  .m-tiles svg { width: 26px; height: 26px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .m-row-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
  .m-row-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
  .m-row-head a { margin-left: auto; padding: 6px 0; font-size: 13.5px; font-weight: 700; color: var(--body); }
  .m-row-head span { font-size: 13px; color: var(--muted); }
  /* .m-cards·.m-meta(가로 판례·칼럼 카드) → mobile.css */
  /* .m-sites → mobile.css */
  .m-site-sum { margin: 0; padding: 0; list-style: none; }
  .m-site-sum .m-sum-line { padding-bottom: 10px; font-size: 14px; line-height: 1.6; color: var(--body); }
  .m-site-sum .m-sum-line b { color: var(--text); }
  .m-site-sum a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
  .m-site-sum a b { overflow: hidden; font-size: 15px; font-weight: 700; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
  .m-site-sum a span { font-size: 12.5px; color: var(--muted); }
  .m-site-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .m-site-btns a { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; font-size: 14.5px; font-weight: 700; }
  .m-site-btns a:first-child { background: var(--accent); color: #fff; }
  .m-site-btns a:last-child { border: 1px solid var(--line); color: var(--text); }
  /* 진행 중인 건·사건 진행 순서: 접어 둔다(제목 줄 오른쪽 '펼치기') */
  .m-fold { display: inline-flex; align-items: center; min-height: 36px; margin-left: auto; padding: 0 2px; border: 0; background: none; font: 700 13.5px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
  #cases.m-folded ul, #cases.m-folded small, #process.m-folded .steps { display: none; }
  #cases .issues-head, #process .head { display: flex; align-items: center; }
  #process .head-more { display: none; }
}

/* 휴대폰에서 누를 때 회색 덩어리가 번쩍이지 않게(탭바·타일 등) */
html { -webkit-tap-highlight-color: transparent; }
/* 누를 때 반응(탭 강조 대신, 스타일 v=171): 탭바·빠른 메뉴 타일만 */
@media (max-width: 640px) {
  .tabbar a, .tabbar button, .m-tiles a { transition: transform .12s ease, background-color .12s ease; }
  .tabbar a:active, .tabbar button:active { transform: scale(.94); }
  .m-tiles a:active { transform: scale(.97); background: var(--wash); }
}
@media (prefers-reduced-motion: reduce) { .tabbar a, .tabbar button, .m-tiles a { transition: none; } }

/* ── 휴대폰 2차(스타일 v=172) ── */
/* 지도: 화면 전체 지도 + 아래 시트(접힘·반·전체, map.js 가 높이를 정한다) */
.sheet-grip { display: none; }
@media (max-width: 640px) {
  .map-app .nmap-grid { position: relative; display: block; height: calc(100dvh - var(--top-h, 64px) - var(--tabbar-h)); min-height: 0; overflow: hidden; }
  .map-app .nmap-box { height: 100% !important; min-height: 0; }
  .map-app .nmap-full { display: none; }
  /* .map-app .nmap-legend(휴대폰 범례 위치) → mobile.css */
  .map-app .panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; height: 128px; max-height: none; padding: 0 18px 20px; border: 0; border-radius: 18px 18px 0 0; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .14); overflow-y: auto; overscroll-behavior: contain; transition: height .22s cubic-bezier(.2, .8, .2, 1); }
  .map-app .panel.no-anim { transition: none; }
  .map-app .panel[data-sheet=peek] { overflow: hidden; }
  .sheet-grip { position: sticky; top: 0; z-index: 3; display: block; width: calc(100% + 36px); height: 28px; margin: 0 -18px 4px; border: 0; background: #fff; cursor: grab; touch-action: none; }
  .sheet-grip::before { content: ""; display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 3px; background: #c9ccd2; }
  .map-app .nmap-grid .panel-head { padding-right: 0; }
  .panel-detail > .panel-back { margin-right: 0; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .map-app .panel { transition: none; } }
/* 검색 시트(header.js) */
.search-sheet { display: none; }
@media (max-width: 640px) {
  .search-sheet:not([hidden]) { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); background: #fff; animation: ssUp .2s cubic-bezier(.2, .8, .2, 1); }
  @keyframes ssUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .ss-bar { display: flex; align-items: center; gap: 10px; margin: 12px var(--gutter) 6px; padding: 0 6px 0 14px; height: 50px; border: 1.5px solid var(--text); border-radius: 14px; }
  .ss-bar svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
  .ss-bar input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 16px Pretendard, sans-serif; color: var(--text); }
  .ss-close { flex: none; height: 40px; padding: 0 10px; border: 0; background: none; font: 700 15px Pretendard, sans-serif; color: var(--body); cursor: pointer; }
  .ss-auto { margin: 0 var(--gutter); padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
  .ss-auto a { display: flex; flex-direction: column; gap: 2px; padding: 11px 2px; border-top: 1px solid var(--line); }
  .ss-auto li:first-child a { border-top: 0; }
  .ss-auto b { font-size: 15px; font-weight: 700; color: var(--text); }
  .ss-auto span { font-size: 12.5px; color: var(--muted); }
  .ss-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
  .ss-body section + section { margin-top: 24px; }
  .ss-h { display: flex; align-items: center; margin: 14px 0 10px; }
  .ss-h h2 { font-size: 14px; font-weight: 700; color: var(--body); }
  .ss-clear { margin-left: auto; min-height: 32px; padding: 0 2px; border: 0; background: none; font: 400 13px Pretendard, sans-serif; color: var(--muted); cursor: pointer; }
  .ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .ss-chips a, .ss-chips button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 14px Pretendard, sans-serif; color: var(--text); cursor: pointer; }
  .ss-chips a:active, .ss-chips button:active { background: var(--wash); }
  body.ss-open .tabbar { display: none; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .search-sheet:not([hidden]) { animation: none; } }
/* 메인: 최근 본 현장 칩(검색창 아래), 내 상황 칩(빠른 메뉴 아래) */
.m-recent, .m-situ { display: none; }
@media (max-width: 640px) {
  .m-recent { display: flex; align-items: center; gap: 8px; margin: 10px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .m-recent::-webkit-scrollbar, .m-situ::-webkit-scrollbar { display: none; }
  .m-recent span { flex: none; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .m-recent a { flex: none; max-width: 70%; overflow: hidden; padding: 8px 12px; border-radius: 999px; background: var(--chip); font-size: 13.5px; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
  .m-situ { display: flex; gap: 8px; margin: -16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 2px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .m-situ a { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
  .m-situ a:active { background: var(--wash); }
}
/* 홈 화면에 추가(standalone)로 열었을 때 위쪽 안전영역 */
@media (display-mode: standalone) {
  .top { padding-top: env(safe-area-inset-top); }
  .map-app .nmap-grid { height: calc(100dvh - var(--top-h, 64px) - var(--tabbar-h, 0px)); }
}
/* 페이지 이동 때 흰 깜빡임 줄이기(지원하는 브라우저만, 짧게) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* 휴대폰 홈 3차(스타일 v=176): 빠른 메뉴 아래 짧은 변호사 소개 줄, 빠른 메뉴 아이콘 차분한 색 */
.m-lawyer { display: none; }
@media (max-width: 640px) {
  .m-lawyer { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
  .m-lawyer img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: var(--wash); }
  .m-lawyer div { flex: 1; min-width: 0; }
  .m-lawyer b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--text); word-break: keep-all; }
  .m-lawyer p { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--body); word-break: keep-all; }
  .m-lawyer a { flex: none; display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
  /* 빠른 메뉴 아이콘: 옅은 원 + 같은 계열 진한 선(채도 낮게), 글자는 그대로 */
  .m-tiles svg { box-sizing: border-box; width: 44px; height: 44px; padding: 10px; border-radius: 50%; }
  .m-tiles a:nth-child(1) svg { background: #ecf0f4; stroke: #4d5d78; }  /* 슬레이트 블루(탁하게) */
  .m-tiles a:nth-child(2) svg { background: #edf3ef; stroke: #4e6b57; }  /* 세이지 그린 */
  .m-tiles a:nth-child(3) svg { background: #f6ece8; stroke: #9a5440; }  /* 테라코타 */
  .m-tiles a:nth-child(4) svg { background: #f7f1e4; stroke: #8a6420; }  /* 앰버 */
  .m-tiles a:nth-child(5) svg { background: #f0eef4; stroke: #6a6080; }  /* 라벤더 그레이 */
  .m-tiles a:nth-child(6) svg { background: #f3f0e8; stroke: #7a6e55; }  /* 샌드 */
  .m-tiles a { gap: 6px; min-height: 92px; }
}

/* 휴대폰 홈 빠른 메뉴 다시(스타일 v=177): 칸 상자 없이 아이콘+이름만, 아이콘은 작은 둥근 사각형 */
@media (max-width: 640px) {
  .m-tiles { grid-template-columns: repeat(3, 1fr); gap: 18px 8px; padding: 4px 0; }
  .m-tiles a { min-height: 0; padding: 0; gap: 8px; border: 0; border-radius: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--accent-ink); }
  .m-tiles a:active { background: none; transform: scale(.96); }
  .m-tiles svg { width: 48px; height: 48px; padding: 12px; border-radius: 14px; stroke-width: 1.8; }
  .m-situ a { border: 0; background: var(--chip); font-weight: 500; }
  .m-situ a:active { background: var(--tint); }
}
/* 빠른 메뉴 아이콘 색(스타일 v=178): 맑은 연한 바탕 + 선명한 중간 채도 선. 이 색은 빠른 메뉴 아이콘에만 쓴다 */
@media (max-width: 640px) {
  .m-tiles svg { stroke-width: 1.9; }
  .m-tiles a:nth-child(1) svg { background: #eaf2ff; stroke: #4f7be8; }  /* 스카이(생 파랑보다 살짝 눌러) */
  .m-tiles a:nth-child(2) svg { background: #e6f8f1; stroke: #10a37f; }  /* 민트 */
  .m-tiles a:nth-child(3) svg { background: #fff0ec; stroke: #f0643c; }  /* 코랄 */
  .m-tiles a:nth-child(4) svg { background: #fff6dd; stroke: #e8a100; }  /* 옐로 */
  .m-tiles a:nth-child(5) svg { background: #f1edff; stroke: #7a5af8; }  /* 바이올렛 */
  .m-tiles a:nth-child(6) svg { background: #e6f7fa; stroke: #0e9ab0; }  /* 틸 */
}

/* 휴대폰 변호사 소개 카드(header.js, 스타일 v=179): 방문자당 한 번, 탭바 위 */
.lawyer-pop { display: none; }
@media (max-width: 640px) {
  .lawyer-pop:not([hidden]) { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + 10px); z-index: 58; display: block; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20, 23, 28, .16); transform: translateY(calc(100% + 24px)); opacity: 0; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; touch-action: none; }
  .lawyer-pop.in { transform: none; opacity: 1; }
  .lawyer-pop.out { transform: translateY(calc(100% + 24px)) !important; opacity: 0; }
  .lawyer-pop::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
  .lp-x { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
  .lp-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .lp-row { display: flex; align-items: center; gap: 14px; padding-right: 28px; }
  .lp-row img { flex: none; width: 88px; height: 96px; border-radius: 14px; object-fit: cover; object-position: 50% 6%; background: var(--wash); }
  .lp-row span { display: block; font-size: 12.5px; color: var(--muted); }
  .lp-row b { display: block; margin-top: 1px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
  .lp-row p { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--body); word-break: keep-all; }
  .lp-btns { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin-top: 14px; }
  .lp-btns a { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
  .lp-btns .lp-call { border-color: var(--accent); background: var(--accent); color: #fff; font-variant-numeric: tabular-nums; }
  body.sp-bar-on .lawyer-pop:not([hidden]) { bottom: calc(var(--tabbar-h) + 72px); }
  body.ss-open .lawyer-pop, body.sheet-open .lawyer-pop { display: none; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .lawyer-pop:not([hidden]) { transition: none; } }
/* 변호사 소개: iOS 바텀시트 모양(스타일 v=180) — 아래에 꽉 차게, 위 모서리만 둥글게, 탭바를 덮는다 */
.lawyer-veil { display: none; }
@media (max-width: 640px) {
  .lawyer-veil { position: fixed; inset: 0; z-index: 65; display: block; background: rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  .lawyer-veil.in { opacity: 1; pointer-events: auto; }
  .lawyer-pop:not([hidden]) { left: 0; right: 0; bottom: 0; z-index: 66; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); transform: translateY(100%); opacity: 1; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
  .lawyer-pop.in { transform: none; }
  .lawyer-pop.out { transform: translateY(100%) !important; }
  .lawyer-pop.drag { transition: none; }
  .lawyer-pop::before { top: 9px; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: #d4d7dc; }
  .lp-x { top: 14px; right: 12px; }
  .lp-row { gap: 16px; }
  .lp-row img { width: 100px; height: 110px; border-radius: 16px; }
  .lp-row b { font-size: 20px; }
  .lp-btns { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .lp-btns a { height: 50px; font-size: 15.5px; }
  body.sp-bar-on .lawyer-pop:not([hidden]) { bottom: 0; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .lawyer-veil, .lawyer-pop:not([hidden]) { transition: none; } }
/* 변호사 바텀시트: iOS 26 Safari 의 떠 있는 주소 막대에 버튼이 가리지 않게(스타일 v=182) — 높이 줄이고 아래 여백 넉넉히 */
@media (max-width: 640px) {
  .lawyer-pop:not([hidden]) { padding: 24px 18px calc(env(safe-area-inset-bottom) + 64px); max-height: 45dvh; }
  .lp-row img { width: 84px; height: 92px; }
  .lp-row b { font-size: 19px; }
  .lp-row p { margin-top: 4px; font-size: 13.5px; }
  .lp-btns { grid-template-columns: 1.5fr 1fr; margin-top: 14px; }
  .lp-btns a { height: 48px; font-size: 14.5px; }
}
@media (max-width: 640px) and (display-mode: standalone) { .lawyer-pop:not([hidden]) { padding-bottom: calc(env(safe-area-inset-bottom) + 16px); } }

/* ── 휴대폰 시트 표준 .m-sheet / .m-veil (스타일 v=183, 사용자 결정: 변호사 소개 시트 모양) ──
   아래에 붙어 좌우 꽉, 위 모서리 24px, 손잡이(.m-grip)·위쪽 그림자, 뒤는 옅게 어둡게, 0.35초 감속, 끌어내리면 닫힘(header.js).
   쓰는 곳: 탭바 메뉴 시트, 검색 시트, 변호사 소개. 지도 시트(.map-app .panel)는 3단 높이를 지키며 같은 모양만 맞춘다 */
.m-veil, .m-grip { display: none; }
@media (max-width: 640px) {
  .m-veil:not([hidden]) { position: fixed; inset: 0; z-index: 65; display: block; background: rgba(0, 0, 0, .18); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  .m-veil.in { opacity: 1; pointer-events: auto; }
  .m-sheet:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 66; display: block; border: 0; border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); transform: translateY(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); padding-bottom: calc(env(safe-area-inset-bottom) + 64px); animation: none; }
  .m-sheet.in { transform: none; }
  .m-sheet.drag { transition: none; }
  .m-grip { position: relative; display: block; height: 26px; margin-bottom: 2px; touch-action: none; cursor: grab; }
  .m-grip::before, .lawyer-pop::before, .map-app .sheet-grip::before { content: ""; position: absolute; top: 9px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: #d4d7dc; }
  /* 메뉴 시트 */
  .tab-sheet.m-sheet:not([hidden]) { max-height: 82dvh; overflow-y: auto; padding-top: 0; }
  .tab-sheet::before { content: none; }
  /* 검색 시트: 위쪽만 조금 남기고 거의 전체 높이 */
  .search-sheet.m-sheet:not([hidden]) { display: flex; top: calc(env(safe-area-inset-top) + 18px); padding-top: 0; padding-bottom: 0; }
  .search-sheet .ss-bar { margin-top: 2px; }
  .search-sheet .ss-body { padding-bottom: calc(env(safe-area-inset-bottom) + 64px); }
  body.ss-open .m-veil:not([hidden]) { z-index: 79; }
  .search-sheet.m-sheet { z-index: 80; }
  /* 지도 시트: 같은 모서리·그림자·손잡이·움직임(3단 높이는 map.js 그대로) */
  .map-app .panel { border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); transition: height .35s cubic-bezier(.2, .8, .2, 1); }
  .map-app .sheet-grip { position: sticky; }
  .map-app .sheet-grip::before { position: absolute; margin-left: -18px; }
}
@media (max-width: 640px) and (display-mode: standalone) { .m-sheet:not([hidden]) { padding-bottom: calc(env(safe-area-inset-bottom) + 16px); } .search-sheet .ss-body { padding-bottom: calc(env(safe-area-inset-bottom) + 16px); } }
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .m-veil:not([hidden]), .m-sheet:not([hidden]), .map-app .panel { transition: none; } }
/* 지도 페이지 휴대폰(스타일 v=184): 지도+시트만, 페이지 자체는 스크롤하지 않는다(바닥글·상담 섹션 숨김, 사업자 정보는 메뉴 시트에) */
.sheet-biz { display: none; }
@media (max-width: 640px) {
  html:has(.map-app), body:has(.map-app) { overflow: hidden; overscroll-behavior: none; }
  body:has(.map-app) .foot-cta, body:has(.map-app) .foot { display: none; }
  .map-app .nmap-grid { overscroll-behavior: none; }
  .map-app .panel[data-sheet=peek] { touch-action: none; }
  .map-app .panel { overscroll-behavior: contain; }
  .sheet-biz { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
  .sheet-biz p { margin: 0 0 6px; font-size: 12px; line-height: 1.6; color: var(--muted); word-break: keep-all; }
  .sheet-biz a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
  .tab-sheet nav a.sheet-tel { border-bottom: 0; }
}
/* 메인 배경 영상 멈춤 버튼(적법성·접근성 점검, 스타일 v=185) */
.promo-pause { position: absolute; right: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(20, 23, 28, .45); color: #fff; cursor: pointer; }
.promo-pause:hover { background: rgba(20, 23, 28, .65); }
.promo-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.promo-pause .i-play { display: none; fill: currentColor; stroke: none; }
.promo-pause.paused .i-pause { display: none; }
.promo-pause.paused .i-play { display: inline; }
@media (prefers-reduced-motion: reduce) { .promo-pause { display: none; } }
/* 네이버 지도 데이터 저작권 표시를 켜면서 범례를 조금 올린다(왼쪽 아래 겹침 방지) */
@media (min-width: 641px) { .nmap-box .nmap-legend { bottom: 34px; } }
/* 지도 시트: 지도 표시 수와 목록 수가 다른 까닭 한 줄(UX P4, 스타일 v=188) */
.panel-geo { margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* 진행 사례 시안 페이지(work.html·work/, jiju-content 생성기에서 옮김, 스타일 v=190). 휴대폰 줄바꿈은 mobile.css */
.work-demo { margin: 0 0 20px; padding: 10px 14px; border-radius: 10px; background: var(--wash); font-size: 13px; font-weight: 700; color: var(--body); }
.col-list .work-demo-tag { display: block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.col-sec .work-stages { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: ws; }
.col-sec .work-stages li { flex: 1; min-width: 0; margin: 0; padding: 10px 8px; border-radius: 10px; background: var(--wash); font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; counter-increment: ws; }
.col-sec .work-stages li::before { content: counter(ws); position: static; display: block; width: auto; height: auto; border-radius: 0; background: none; font-size: 11px; font-weight: 700; }
.col-sec .work-stages .done { color: var(--body); }
.col-sec .work-stages .now { background: var(--text); color: #fff; font-weight: 700; }
.col-sec .work-stages-note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* 진행 사례 첫 화면(work.html, jiju-content 생성기에서 옮김, 스타일 v=191). 색 없이 회색 3단 */
.work-sum { margin-top: 10px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.work-filter button { padding: 7px 14px; border: 0; border-radius: 999px; background: var(--chip); color: var(--body); font: 700 13px Pretendard, sans-serif; cursor: pointer; }
.work-filter button:hover { color: var(--text); }
.work-filter button.on { background: var(--text); color: #fff; }
.work-shown { margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.work-list li[hidden] { display: none; }
.col-list .work-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--body); }
.col-list .work-list em, .work-list em { margin-top: 8px; }
.work-bar { display: flex; gap: 3px; margin-top: 14px; }
.work-bar i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.work-bar i.done { background: var(--accent-line); }
.work-bar i.now { background: var(--text); }
.col-list .work-bar-label { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.col-list .work-more { display: block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--text); }
.work-next { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.work-next h2 { font-size: 20px; letter-spacing: -.03em; }
.work-next p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--body); }
.work-next-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.work-next-links .case-cta { margin: 0; padding: 0 28px; }
.work-next-links a:not(.case-cta) { font-size: 14px; font-weight: 700; color: var(--text); }

/* 판결문 강조 표시(case-highlight.js, 스타일 v=192) — 사용자가 허락한 색 예외. 판례·법령 페이지 공용 클래스 */
.hl-key { color: #1f3a7a; font-weight: 700; }
.hl-line { text-decoration: underline; text-decoration-color: #1f3a7a; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hl-mark { padding: 0 1px; background: linear-gradient(transparent 40%, #fff1a8 40%); color: inherit; }
.hl-legend { margin: 16px 0 -4px; font-size: 13px; color: var(--muted); }
.hl-legend .hl { margin-right: 2px; }
