/* 법길 — 길찾기 노선도 디자인
   초록 노선(--line) 위에 '지금 여기'(--here)와 마감 역(--stop)을 찍는 구조 하나로 화면을 통일합니다. */
:root {
  --mist: #EEF2EC;
  --paper: #FFFFFF;
  --ink: #16201B;
  --ink-2: #4E5A54;
  --line: #0F6B47;
  --line-dark: #0A5236;
  --line-soft: #D5E6DC;
  --here: #FFC928;
  --here-soft: #FFF3C7;
  --stop: #C8302A;
  --stop-soft: #FBE7E4;
  --rule: #D9DFD9;
  --r: 14px;
  --display: 'Black Han Sans', 'Pretendard Variable', sans-serif;
  --sans: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
html.big { font-size: 20px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--sans); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
img, svg { display: block; max-width: 100%; }
a { color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--line-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--here); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* 레이아웃 */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 640px; }
.wrap.wide { max-width: 1120px; }
main { padding-bottom: 56px; }
main.wrap, main.home { padding-top: 28px; }
section { margin: 40px 0; }

/* 글자 */
.display { font-family: var(--display); font-weight: 400; font-size: clamp(2.5rem, 11vw, 3rem); line-height: 1.04; letter-spacing: -0.01em; margin: 6px 0 18px; }
.h1 { font-size: clamp(1.65rem, 5.4vw, 2.2rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; margin: 6px 0 12px; }
.h1:focus { outline: none; box-shadow: none; }
.h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; }
.lead { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--line); margin: 0; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--here); border: 2px solid var(--ink); }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.mono, .mono-num { font-family: var(--mono); font-feature-settings: "tnum"; }
.num { font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }
.big-num { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* 머리말 */
.top { background: var(--paper); border-bottom: 1px solid var(--rule); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 30px; height: 30px; }
.logo span { font-family: var(--display); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.nav a:hover { background: var(--mist); }
.nav a.on { color: var(--line); box-shadow: inset 0 -3px 0 var(--line); border-radius: 0; }
.big-toggle { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--rule); background: var(--paper); font-weight: 800; font-size: 1.05rem; flex: none; }
.big-toggle[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 노선 ── 이 사이트의 서명 */
.route { list-style: none; margin: 20px 0; padding: 0 0 0 44px; position: relative; }
.route::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 6px; border-radius: 3px; background: var(--line); }
.route > .stop { position: relative; margin: 0 0 12px; }
.route > .stop::before { content: ""; position: absolute; left: -38px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 4px solid var(--line); box-sizing: content-box; z-index: 1; }
.route > .stop.here::before { width: 20px; height: 20px; left: -41px; top: 2px; background: var(--here); border: 4px solid var(--ink); }
.route > .stop.here { min-height: 30px; margin-bottom: 18px; }
.here-label { display: inline-block; font-weight: 800; font-size: .9rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 12px; margin-top: 2px; }
.route > .stop.end::before { border-radius: 4px; background: var(--line); }
.end-label { display: inline-block; padding-top: 12px; font-weight: 700; color: var(--ink-2); }
.route > .stop.label-stop::before { display: none; }
.route > .stop.label-stop { margin: 26px 0 10px; }
.seg-label { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }
.route > .stop.deadline::before { border-color: var(--stop); }
.route > .stop.deadline.hot::before { background: var(--stop); }
.route > .stop.deadline.past::before { border-color: var(--ink-2); background: var(--rule); }

@media (prefers-reduced-motion: no-preference) {
  .route > .stop.here::after { content: ""; position: absolute; left: -41px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--here); opacity: .55; animation: here 2.4s ease-out infinite; z-index: 0; }
  @keyframes here { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
}

/* 첫 화면: 사건이 노선에서 갈라지는 역 */
.hero { padding-top: 12px; }
.route-home > .stop:not(.here):not(.end)::after { content: ""; position: absolute; left: -24px; top: 23px; width: 24px; height: 4px; background: var(--line-soft); }
.route-home > .stop:not(.here):not(.end)::before { top: 18px; }
.case-btn { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; width: 100%; min-height: 66px; padding: 14px 16px 14px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); text-align: left; transition: border-color .15s, transform .15s; }
.case-btn:hover { border-color: var(--line); color: var(--ink); transform: translateX(3px); }
.case-t { font-weight: 800; font-size: 1.08rem; line-height: 1.35; }
.case-s { grid-column: 1; font-size: .88rem; color: var(--ink-2); }
.case-btn .pill { grid-column: 1; justify-self: start; margin-top: 6px; }
.go { grid-column: 2; grid-row: 1 / span 3; font-size: 1.3rem; color: var(--line); font-weight: 700; }
.route-home .stop.urgent .case-btn { border-color: #EBC2BE; box-shadow: inset 4px 0 0 var(--stop); }
.route-home .stop.urgent::before { border-color: var(--stop); }
.route-home .stop.urgent::after { background: var(--stop-soft) !important; }
.route-home.compact { margin-top: 18px; }

.pill { display: inline-block; font-size: .78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--line); color: #fff; line-height: 1.6; }
.pill-soft { background: var(--line-soft); color: var(--line-dark); }
.pill-stop { background: var(--stop); color: #fff; }
.pill-here { background: var(--here); color: var(--ink); border: 2px solid var(--ink); line-height: 1.4; }
.free-line { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; font-weight: 800; font-size: 1.05rem; }
.pick-label { font-size: .95rem; font-weight: 800; color: var(--ink-2); margin: 0 0 4px; }

/* 순서표 예시 띠 */
.band { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 36px 0 20px; margin: 48px 0; }
.band .h2 { margin-bottom: 4px; }
.sample { margin-top: 18px; padding: 22px 18px 6px; border-radius: var(--r); background-color: var(--mist); background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.route-sample > .stop:not(.here) { background: var(--paper); border-radius: 12px; padding: 12px 14px; border: 1px solid var(--rule); }
.route-sample > .stop.deadline { border-color: #EBC2BE; background: #FFF8F7; }
.route-sample strong { display: block; font-size: 1.02rem; }
.mini { display: block; font-size: .85rem; color: var(--ink-2); }
.route-sample .here .mini { display: inline; margin-left: 8px; }
.dday { display: inline-block; font-family: var(--display); font-size: 1.05rem; color: var(--stop); letter-spacing: .02em; }

/* 카드·도구 */
.cards3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards3 { grid-template-columns: repeat(3, 1fr); } .cards-col { grid-template-columns: 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.tool-card:hover { border-color: var(--line); color: var(--ink); }
.tool-card .big-num { color: var(--line); }
.tool-card strong { font-size: 1.05rem; }
.tool-card .muted { font-size: .9rem; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 720px) { .doc-list { grid-template-columns: 1fr 1fr; } }
.doc-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.doc-list a:hover { border-color: var(--line); color: var(--ink); }
.doc-list-lg a { align-items: flex-start; padding: 14px; }
.doc-list-lg small { display: block; font-weight: 400; color: var(--ink-2); font-size: .86rem; margin-top: 2px; }
.doc-ico { flex: none; width: 22px; height: 28px; border: 2px solid var(--line); border-radius: 3px 8px 3px 3px; background: linear-gradient(var(--line-soft), var(--line-soft)) 4px 8px / 10px 2px no-repeat, linear-gradient(var(--line-soft), var(--line-soft)) 4px 13px / 10px 2px no-repeat, linear-gradient(var(--line-soft), var(--line-soft)) 4px 18px / 7px 2px no-repeat; }

.help-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.help-list li { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--paper); border-radius: 12px; border: 1px solid var(--rule); }
.help-list strong { display: block; }
.help-list span { font-size: .9rem; color: var(--ink-2); }
.tel-big { flex: none; min-width: 74px; font-family: var(--mono); font-weight: 600; font-size: 1.35rem; text-decoration: none; color: var(--line); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 2px solid transparent; font-weight: 800; font-size: 1rem; text-decoration: none; line-height: 1.2; }
.btn-main { background: var(--line); color: #fff; }
.btn-main:hover { background: var(--line-dark); color: #fff; }
.btn-ghost { background: var(--paper); border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-alarm { background: #fff; color: var(--stop); min-height: 40px; padding: 0 12px; font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--line); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.actions-row, .actions-inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.actions-row .btn { min-height: 44px; padding: 0 14px; font-size: .92rem; }
.cta-end { margin-top: 36px; }

/* 길찾기 질문 */
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.back { background: none; border: 0; min-height: 44px; padding: 0 4px; font-weight: 700; color: var(--ink-2); }
.flow-case { font-size: .85rem; font-weight: 700; color: var(--line); text-align: right; }
.progress { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 8px 2px 26px; height: 20px; }
.ptrack { position: absolute; left: 0; right: 0; top: 8px; height: 4px; background: var(--line-soft); border-radius: 2px; }
.pdot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-soft); }
.pdot.done { background: var(--line); border-color: var(--line); }
.pdot.now { width: 20px; height: 20px; background: var(--here); border-color: var(--ink); }
.q-title { margin-bottom: 8px; }
.q-body { margin-top: 18px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; flex-direction: column; justify-content: center; width: 100%; min-height: 62px; padding: 12px 18px; text-align: left; background: var(--paper); border: 2px solid var(--rule); border-radius: var(--r); }
.opt:hover { border-color: var(--line); }
.opt.sel { border-color: var(--line); background: #F2F8F4; box-shadow: inset 6px 0 0 var(--line); }
.opt-t { font-weight: 700; font-size: 1.05rem; }
.opt-s { font-size: .88rem; color: var(--ink-2); }
.opt-check { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; }
.opt-check input { width: 22px; height: 22px; accent-color: var(--line); flex: none; }
.flow-note { margin-top: 28px; font-size: .85rem; color: var(--ink-2); }

/* 입력 */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; }
.lbl { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; background: var(--paper); border: 2px solid var(--rule); border-radius: 12px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--line); outline: none; box-shadow: 0 0 0 4px var(--line-soft); }
.money-in { position: relative; display: flex; align-items: center; }
.money-in input { padding-right: 64px; font-family: var(--mono); font-weight: 600; }
.money-in .unit { position: absolute; right: 14px; font-weight: 700; color: var(--ink-2); pointer-events: none; }
.money-xl input { font-size: 1.9rem; min-height: 70px; }
.date-xl { font-size: 1.3rem !important; min-height: 62px !important; font-family: var(--mono); }
.hint { font-size: .88rem; color: var(--ink-2); min-height: 1.2em; }
.hint.err { color: var(--stop); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font-family: var(--mono); font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--line); }
.seg { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; margin-bottom: 6px; }
.seg label, .check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--paper); border: 2px solid var(--rule); border-radius: 12px; font-weight: 600; cursor: pointer; }
.seg input, .check input { width: 20px; height: 20px; accent-color: var(--line); }
.checks-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .checks-grid { grid-template-columns: 1fr 1fr; } }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; }
.calc { margin: 20px 0 16px; }
.out { margin: 0 0 24px; }

/* 계산 결과 */
.fee-cards { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fee-cards { grid-template-columns: 1fr 1fr; } }
.fee-card, .dl-card, .aid-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--paper); border-radius: var(--r); border: 2px solid var(--line); }
.fee-card .big-num { color: var(--line); }
.dl-card { border-color: var(--ink); }
.dl-card.hot { border-color: var(--stop); background: #FFF8F7; }
.dl-card.past { border-color: var(--rule); opacity: .8; }
.dl-card .dday { font-size: 1.6rem; }
.dl-card .btn { align-self: flex-start; margin-top: 10px; }
.aid-card { border-color: var(--rule); }
.aid-card.ok { border-color: var(--line); background: #F4FAF6; }
.aid-card.no { border-color: var(--rule); }
.aid-card > strong { font-size: 1.15rem; }
.aid-card p { margin: 6px 0 0; }

/* 순서표 */
.alarm { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; margin: 0 -20px 18px; padding: 12px 20px; background: var(--stop); color: #fff; }
.alarm .dday { color: var(--here); font-size: 1.7rem; }
.alarm div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.alarm .mono { font-size: .85rem; opacity: .9; }
.summary { font-size: .9rem; color: var(--ink-2); margin: 0; }
.cost .fee-cards { margin: 6px 0 10px; }
.route-result > .stop:not(.here):not(.end):not(.label-stop) { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; }
.route-result > .stop.first { border: 2px solid var(--line) !important; }
.route-result h3 { font-size: 1.12rem; margin: 6px 0 0; line-height: 1.35; }
.route-result .where { display: block; font-size: .88rem; color: var(--ink-2); }
.route-result p { margin: 8px 0 0; }
.route-result .deadline { border-color: #EBC2BE !important; background: #FFF8F7 !important; }
.route-result .deadline.past { background: var(--paper) !important; border-color: var(--rule) !important; color: var(--ink-2); }
.route-result .deadline strong { display: block; font-size: 1.08rem; margin-top: 2px; }
.route-result .when { display: block; font-size: .9rem; font-weight: 600; }
.route-result .dday { font-size: 1.25rem; }
.stop-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-weight: 700; }
.stop-links a { min-height: 32px; display: inline-flex; align-items: center; }

.caution, .tips, .deadline-box, .example, .aid-nudge { border-radius: var(--r); padding: 18px 20px; }
.caution { background: var(--stop-soft); box-shadow: inset 4px 0 0 var(--stop); }
.caution ul, .tips ul, .deadline-box ul { margin: 0; padding-left: 1.2em; }
.caution li, .tips li, .deadline-box li { margin: 4px 0; }
.tips { background: var(--line-soft); }
.deadline-box { background: var(--paper); border: 2px solid #EBC2BE; }
.example { background: var(--paper); border: 1px dashed var(--line); }
.example .mono-num { font-size: .95rem; }
.aid-nudge { background: var(--here-soft); }
.tel-inline { font-family: var(--mono); font-weight: 600; font-size: 1.1rem; }
.cost .tbl th[scope], .cost-tbl tbody th { text-align: left; }

/* 표 */
.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--mist); font-size: .85rem; color: var(--ink-2); }
.cost-tbl td { text-align: right; white-space: nowrap; }
.cost-tbl thead th:not(:first-child) { text-align: right; }
.legal .tbl { display: block; overflow-x: auto; }

/* 안내 페이지 */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.crumbs .sep { opacity: .6; }
.facts { display: grid; grid-template-columns: 1fr; gap: 1px; margin: 22px 0; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts div { background: var(--paper); padding: 14px 16px; }
.facts dt { font-size: .8rem; font-weight: 800; color: var(--line); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
.ticks, .checks { list-style: none; padding: 0; margin: 0; }
.ticks li, .checks li { position: relative; padding: 6px 0 6px 30px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--ink-2); background: var(--paper); }
.route-steps > .stop { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; counter-increment: step; }
.route-steps { counter-reset: step; }
.route-steps > .stop:not(.end) h3::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--line); color: #fff; font-family: var(--mono); font-size: .8rem; vertical-align: 2px; }
.route-steps > .stop.end { background: none; border: 0; padding: 0; }
.route-steps h3 { font-size: 1.05rem; margin: 0; }
.route-steps p { margin: 6px 0 0; color: var(--ink-2); }
.route-steps p.miss { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--stop-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--stop); font-size: .94rem; }
.miss strong { color: var(--stop); margin-right: 8px; font-weight: 800; }
.route-list > .stop { margin-bottom: 10px; }
.stop-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.stop-card:hover { border-color: var(--line); color: var(--ink); }
.stop-card strong { font-size: 1.05rem; }
.stop-card .where { width: 100%; font-size: .88rem; color: var(--ink-2); }
.place { font-size: .72rem; font-weight: 800; padding: 1px 8px; border-radius: 6px; background: var(--line-soft); color: var(--line-dark); }
.place-court { background: var(--ink); color: #fff; }
.place-help { background: var(--here-soft); color: var(--ink); }
.official { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.official li { padding: 10px 14px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; font-weight: 700; }
.official .tel { margin-left: 10px; font-family: var(--mono); }
.ext { font-size: .8em; margin-left: 2px; }
.faq { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; margin: 0 0 8px; padding: 0 16px; }
.faq summary { min-height: 52px; display: flex; align-items: center; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-size: 1.2rem; color: var(--line); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 14px; color: var(--ink-2); }
.prose h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.legal { font-size: .95rem; }
.contact-mail { font-family: var(--mono); font-size: 1.2rem; font-weight: 600; }
.nf { text-align: center; padding: 40px 0; }
.nf .big-num { font-size: 3rem; color: var(--line); margin: 0; }

/* 서식 */
.form-layout { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 980px) { .form-layout { grid-template-columns: minmax(340px, 440px) 1fr; align-items: start; } .paper-col { position: sticky; top: 16px; } }
.fields { padding: 20px 18px 6px; }
.prefill-note { background: var(--here-soft); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 0 0 16px; }
.paper-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.paper-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.paper { background: var(--paper); padding: 36px 30px; border-radius: 4px; box-shadow: 0 1px 0 var(--rule), 0 10px 30px rgba(22, 32, 27, .08); font-size: .95rem; line-height: 1.9; min-height: 420px; }
.paper p { margin: 0; white-space: pre-wrap; }
.paper .gap { height: .9em; }
.paper-h { text-align: center; font-size: 1.35rem; letter-spacing: .12em; margin: 0 0 24px; font-weight: 800; }
.blank { background: var(--here-soft); border-radius: 3px; }
.warn-line { background: var(--stop-soft); color: var(--stop); font-weight: 700; padding: 10px 14px; border-radius: 10px; margin-top: 10px; }
.note { font-size: .88rem; color: var(--ink-2); margin-top: 18px; }

/* 광고 자리 */
.ad-slot { margin: 32px auto; min-height: 100px; }
.ad-label { display: block; margin-bottom: 4px; font-size: .72rem; color: var(--ink-2); letter-spacing: .04em; }

/* 꼬리말 */
.foot { background: var(--ink); color: #C9D2CC; padding: 32px 0 40px; font-size: .88rem; }
.foot-in { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.foot strong { color: #fff; }
.foot a { color: #fff; }
.disclaimer { margin: 0 0 10px; }
.privacy-note { margin: 0 0 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 14px; }
.foot-links a { min-height: 40px; display: inline-flex; align-items: center; }
.verified { margin: 0; font-size: .8rem; opacity: .8; font-variant-numeric: tabular-nums; }

@media (max-width: 420px) {
  .nav a { padding: 0 7px; font-size: .9rem; }
  .logo span { font-size: 1.3rem; }
}

/* 인쇄 */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  html, html.big { font-size: 11pt; }
  body { background: #fff; }
  .top, .foot, .skip, .no-print, .actions-row, .actions-inline, .ad-slot, .crumbs, .alarm .btn, .cta-end, .ex-box, .preview-bar, .toast { display: none !important; }
  .alarm { position: static; margin: 0 0 12px; }
  .route > .stop.here::after { display: none; }
  .route-result > .stop, .caution, .tips, .cost, .aid-nudge { break-inside: avoid; }
  body[data-page="form"] main > *:not(.form-layout) { display: none !important; }
  body[data-page="form"] .fields, body[data-page="form"] .paper-bar, body[data-page="form"] .warn-line { display: none !important; }
  body[data-page="form"] .form-layout { display: block; margin: 0; }
  body[data-page="form"] .paper { box-shadow: none; padding: 0; min-height: 0; font-size: 11.5pt; line-height: 1.9; }
  .blank { background: none; }
  a { color: inherit; text-decoration: none; }
}

/* 예시로 채워 보기 */
.fields-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ex-box { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--r); padding: 16px 18px; }
.ex-box p { margin: 0 0 10px; }
.ex-note { background: var(--here-soft); padding: 6px 10px; border-radius: 8px; margin: 10px 0 0 !important; }
.field.ex-filled input, .field.ex-filled select, .field.ex-filled textarea { border-color: #E5B300; background: var(--here-soft); }
.field.ex-filled .lbl::after { content: " · 예시"; font-size: .78rem; font-weight: 700; color: #8A6A00; }
.paper { position: relative; }
.paper.is-example::before { content: "예시"; position: absolute; top: 14px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--here); border: 2px solid var(--ink); font-weight: 800; font-size: .8rem; letter-spacing: .1em; }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(22, 32, 27, .25); }
.paper-actions .btn { min-height: 44px; padding: 0 14px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* PDF로 옮길 때 */
.pdf-sheet { color: var(--ink); font-family: var(--sans); }
.pdf-sheet .paper { box-shadow: none; padding: 0; min-height: 0; border-radius: 0; }
.pdf-sheet .blank { background: none; }
.pdf-sheet .alarm { position: static; margin: 0 0 12px; }
.pdf-sheet .route > .stop.here::after { display: none; }
.pdf-sheet .stop-links, .pdf-sheet .ad-slot { display: none; }
.pdf-sheet .num, .pdf-sheet .mono { font-variant-numeric: normal; font-feature-settings: normal; }
.pdf-sheet .pill, .pdf-sheet .here-label { line-height: 1.1; padding-top: 1px; padding-bottom: 9px; }

/* 한 파일 미리보기 */
.preview-bar { background: var(--here); color: var(--ink); font-size: .85rem; }
.preview-in { max-width: 1120px; margin: 0 auto; padding: 6px 16px; display: flex; align-items: center; gap: 10px; }
.menu-btn { margin-left: auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 800; }
.menu-panel { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; background: rgba(22, 32, 27, .45); }
.menu-sheet { width: min(420px, 100%); height: 100%; overflow-y: auto; background: var(--paper); padding: 0 18px 40px; }
.menu-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; background: var(--paper); }
.menu-x { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--paper); font-weight: 700; }
.menu-search input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--rule); border-radius: 12px; font-size: 1rem; }
.menu-search input:focus { border-color: var(--line); outline: none; box-shadow: 0 0 0 4px var(--line-soft); }
.menu-group h3 { font-size: .8rem; font-weight: 800; color: var(--ink-2); margin: 18px 0 6px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; align-items: center; min-height: 42px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu-list a:hover { background: var(--mist); color: var(--ink); }
.menu-list a.on { background: var(--line-soft); color: var(--line-dark); }
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sample-btn { min-height: 48px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--rule); background: var(--mist); font-size: .85rem; font-weight: 700; text-align: left; line-height: 1.3; }
.sample-btn:hover { border-color: var(--line); }
.sample-badge { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--here-soft); border: 1px solid #F0D98A; font-size: .88rem; font-weight: 700; }
.ad-demo { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--rule); border-radius: var(--r); color: var(--ink-2); font-size: .85rem; font-weight: 700; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(22, 32, 27, .03) 10px 20px); }
.ad-demo small { font-weight: 400; }
body[data-bundle="1"] [data-print], body[data-bundle="1"] [data-ics], body[data-bundle="1"] [data-ics-one] { display: none !important; }
body[data-bundle="1"] main:focus { outline: none; box-shadow: none; }

/* 웹·모바일 같은 화면 — PC·태블릿에서도 가운데에 모바일 화면(430px) 그대로 */
html { background: #DCE4DD; }
body { max-width: 430px; margin: 0 auto; min-height: 100vh; box-shadow: 0 0 0 1px var(--rule), 0 12px 48px rgba(22, 32, 27, .10); }
.wrap, .wrap.narrow, .wrap.wide, .top-in, .foot-in, .preview-in { max-width: 430px; }
.form-layout, .cards3, .doc-list, .fee-cards, .checks-grid, .facts { grid-template-columns: minmax(0, 1fr) !important; }
.paper-col { position: static !important; }
.paper { padding: 28px 22px; }
@media print { html, body { max-width: none; background: #fff; box-shadow: none; } }
