/* 앱형 레이아웃 — factory layouts/Funeral.astro 의 장례 길잡이 디자인(2026-10-21 웹빌더로 옮김). 색은 사이트 디자인 설정(design.colors)에서 */
/* 장례 길잡이 — 짙은 소나무색(브랜드) + 따뜻한 미색 바탕, 제목은 명조. 레퍼런스(주황·검정)와 다른 정체성 */
:root {
  --ink: #1b2420; --ink2: #2f3a35; --sub: #55615c; --muted: #8a948f; --line: #e2e6e3; --line2: #eef1ef; --bg: #ffffff; --band: #f6f7f5;
  --brand: #1f5145; --brand-ink: #163d34; --brand-soft: #e9f2ee; --brand-2: #3f8c78; --brass: #9c7338; --brass-soft: #f6efe3; --page: #efece6;
  --accent: var(--brand); --accent-ink: var(--brand-ink); --accent-soft: var(--brand-soft); --ok: var(--brand); --ok-soft: var(--brand-soft); --warn: #b4501c;
  --dark: var(--brand-soft); --r: 12px; --hh: 110px;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.68; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { max-width: 100%; }
.wrap { width: calc(100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* 상단: [로고 · 찾기 · 상담 · 메뉴] + 둥근 탭 줄 */
.fh { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.fh-wrap { padding: 0 16px; }
.fh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; color: var(--brand-ink); }
.logo img { width: 26px; height: 26px; }
.fh-act { display: flex; align-items: center; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.pill.acc { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill svg { width: 16px; height: 16px; }
.ham { width: 38px; height: 38px; border: 0; background: none; display: grid; place-items: center; color: var(--ink2); }
.ham svg { width: 22px; height: 22px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 6px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--sub); white-space: nowrap; background: var(--band); }
.tabs a[aria-current="page"] { background: var(--brand); color: #fff; }
/* 경로·제목 */
.bc { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.bc a { color: var(--muted); }
.bc a:hover { color: var(--ink); }
.bc span.sep { color: #c3cac6; }
main { padding-bottom: 90px; }
h1 { font-family: var(--serif); font-size: 27px; line-height: 1.35; letter-spacing: -.03em; margin: 4px 0 8px; font-weight: 700; color: var(--ink); }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.025em; margin: 0 0 6px; font-weight: 800; }
h3 { font-size: 16.5px; line-height: 1.45; letter-spacing: -.02em; margin: 0 0 4px; font-weight: 700; }
p { margin: 0 0 12px; }
.lead { color: var(--sub); font-size: 15.5px; }
.count { color: var(--brand); font-weight: 800; }
.sec { padding: 28px 0 4px; }
.sec + .sec { border-top: 1px solid var(--line); margin-top: 26px; }
.sec-h { margin-bottom: 14px; }
.sec-h h2 { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.sec-h p { color: var(--sub); font-size: 15px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 4px; background: var(--band); border: 1px solid var(--line2); color: var(--sub); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.tag.ok { background: var(--brand-soft); border-color: #d2e5dc; color: var(--brand-ink); font-weight: 600; }
.tag.acc { background: var(--brass-soft); border-color: #eadcc4; color: #7d5b29; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 20px; border-radius: 8px; border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; }
.btn.acc { background: var(--brand); }
.btn.line { background: #fff; color: var(--brand-ink); border: 1px solid #c9d8d1; }
.btn.block { display: flex; width: 100%; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; }
a.card:hover { border-color: #c9d8d1; }
.band { background: var(--band); border-radius: var(--r); padding: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th, table.t td { padding: 10px 6px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
table.t thead th { color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 접는 상자: 가격표는 테두리 상자, 자주 묻는 질문은 밑줄 목록 */
details.acc-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
details.acc-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; cursor: pointer; font-weight: 700; }
details.acc-item > summary::-webkit-details-marker { display: none; }
details.acc-item > summary .sub { display: block; font-weight: 500; font-size: 14px; color: var(--sub); margin-top: 2px; }
details.acc-item > summary::after { content: '+'; flex: none; width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-weight: 500; font-size: 18px; line-height: 1; color: var(--brand); background: var(--brand-soft); }
details.acc-item[open] > summary::after { content: '−'; }
details.acc-item > .body { padding: 0 16px 16px; }
.faq details.acc-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.faq details.acc-item > summary { padding: 16px 0; font-size: 16px; }
.faq details.acc-item > .body { padding: 0 0 16px; }
.faq .q { font-family: var(--serif); color: var(--brass); margin-right: 8px; }
.faq .body p { color: var(--ink2); margin: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.on { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand-ink); }
.chip small { font-weight: 500; opacity: .7; }
/* 장례식장·시설 카드 */
.hlist { display: flex; flex-direction: column; gap: 8px; }
.hcard { display: block; border: 1px solid var(--line); border-left: 3px solid var(--brand-soft); border-radius: 10px; padding: 14px 14px 12px; background: #fff; transition: border-color .15s; }
.hcard:hover { border-color: #c9d8d1; border-left-color: var(--brand-2); }
.hcard .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.hcard h3 { font-size: 16.5px; margin: 0; }
.hcard .addr { font-size: 13.5px; color: var(--sub); margin: 3px 0 8px; }
.hcard .price { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line2); font-size: 14px; color: var(--sub); }
.hcard .price b { color: var(--ink); font-size: 15px; }
.hcard .price .main b { color: var(--brand); }
.hcard[hidden] { display: none; }
/* 예상 비용 막대(CostBars) */
.cost { border: 1px solid #d6e5de; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); border-radius: 14px; padding: 18px 16px 16px; }
.cost .kicker { font-size: 13px; font-weight: 600; color: var(--brass); margin: 0 0 4px; }
.cost h2 { font-family: var(--serif); font-weight: 700; font-size: 21px; margin: 0 0 12px; }
.cost .bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cost .bars a { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 10px; }
.cost .bl b { font-size: 15.5px; margin-right: 6px; }
.cost .bl small { color: var(--sub); font-size: 13px; }
.cost .bv { font-weight: 800; font-size: 18px; color: var(--brand-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #dfe9e4; overflow: hidden; }
.cost .bar i { display: block; height: 100%; border-radius: 4px; background: var(--brand-2); }
.cost li:nth-child(2) .bar i { background: var(--brand); }
.cost li:nth-child(3) .bar i { background: var(--brand-ink); }
/* 시설 페이지 요약 상자(.dark 이름은 그대로, 밝은 색) */
.dark { background: var(--brand-soft); color: var(--ink); border: 1px solid #d6e5de; border-radius: 14px; padding: 18px 16px; }
.dark h2 { font-family: var(--serif); font-weight: 700; }
.dark h2 em { color: var(--brand); font-style: normal; }
.dark .muted, .dark .note { color: var(--sub); }
/* 하단 고정 줄 */
.fbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(20,40,34,.06); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.fbar .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.fbar a, .fbar button { height: 48px; border-radius: 8px; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; }
.fbar .b1 { background: #fff; color: var(--brand-ink); border: 1px solid #c9d8d1; }
.fbar .b2 { background: var(--brand); color: #fff; border: 0; }
/* 시트(검색·메뉴·상담) */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet.open { display: block; }
.sheet .dim { position: absolute; inset: 0; background: rgba(16,28,24,.45); }
.sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 10px 0 calc(24px + env(safe-area-inset-bottom)); animation: up .18s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: #d3d9d6; margin: 0 auto 8px; }
.sheet .ph { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px 10px; }
.sheet .ph h2 { margin: 0; font-size: 19px; font-family: var(--serif); font-weight: 700; }
.sheet .x { width: 36px; height: 36px; border: 0; background: var(--line2); border-radius: 18px; font-size: 18px; line-height: 1; }
.sheet .pb { padding: 0 20px; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 14px; }
.sgrid button, .sgrid a { height: 42px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.sgrid button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.sgg-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.sgg-list a { padding: 10px 6px; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 14.5px; font-weight: 600; }
.sgg-list a:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.sgg-list a small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sbox { display: flex; align-items: center; gap: 8px; height: 50px; border-radius: 10px; background: #fff; border: 1.5px solid #c9d8d1; padding: 0 14px; }
.sbox input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; outline: none; min-width: 0; }
.sres a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line2); }
.sres a small { display: block; color: var(--muted); font-size: 13px; }
.menu-links a { display: flex; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line2); font-weight: 600; }
/* 상담 채팅 */
.chat-log { height: 46vh; overflow: auto; background: var(--band); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-log .msg { max-width: 86%; padding: 10px 12px; border-radius: 12px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.chat-log .msg p { margin: 0; }
.chat-log .msg time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.chat-log .visitor { align-self: flex-end; background: var(--brand); color: #fff; }
.chat-log .staff { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat-log .note { align-self: center; background: none; color: var(--muted); font-size: 13px; text-align: center; max-width: 100%; }
.chat-log .note.err { color: var(--warn); }
.chat-log .pending { opacity: .55; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 120px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; font-size: 16px; }
.chat-form button { height: 46px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; font-weight: 700; }
.chat-form button:disabled { opacity: .45; }
/* 직접 그린 그림(Ill.astro) */
.ill { margin: 16px 0; }
.ill img { display: block; width: 100%; height: auto; border-radius: 14px; }
.ill figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.ill-s img { max-width: 220px; margin: 0 auto; border-radius: 12px; }
.card .ill.thumb { margin: -6px -6px 10px; }
.card .ill.thumb img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.card .ill-s.thumb img { max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.sec-h.ic { display: grid; grid-template-columns: 1fr 84px; column-gap: 12px; align-items: start; }
.sec-h.ic .ill { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.sec-h.ic .ill img { width: 84px; border-radius: 12px; }
.sec-h.ic h2, .sec-h.ic p { grid-column: 1; }
.card.step { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; }
.card.step .ill { margin: 2px 0 0; }
.card.step .ill img { width: 72px; border-radius: 10px; }
.side-card.brand .side-ic { display: block; width: 72px; height: auto; border-radius: 12px; margin-bottom: 10px; }
/* 상담 신청서 */
.cf fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.cf-l { display: block; font-size: 14px; font-weight: 700; color: var(--ink2); margin: 0 0 8px; padding: 0; }
.cf-l .req { color: var(--warn); font-weight: 600; font-size: 12.5px; margin-left: 4px; }
.cf-l .opt { color: var(--muted); font-weight: 500; font-size: 12.5px; margin-left: 4px; }
.cf-types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cf-type { position: relative; display: block; cursor: pointer; }
.cf-type.wide { grid-column: 1 / -1; }
.cf-type input { position: absolute; opacity: 0; pointer-events: none; }
.cf-type span { display: block; height: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.cf-type b { display: block; font-size: 15px; }
.cf-type small { display: block; font-size: 12.5px; color: var(--sub); line-height: 1.45; margin-top: 2px; }
.cf-type input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.cf-type input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.cf-in { display: block; width: 100%; border: 1px solid #cfd8d4; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; background: #fff; margin: 0 0 16px; }
textarea.cf-in { min-height: 132px; resize: vertical; line-height: 1.6; }
.cf-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cf-agree { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--band); }
.cf-agree > label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.cf-agree input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.cf-agree b { color: var(--warn); font-weight: 700; }
.cf-agree details { margin-top: 8px; font-size: 13px; color: var(--sub); }
.cf-agree summary { cursor: pointer; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.cf-agree dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 8px 0; }
.cf-agree dt { color: var(--muted); }
.cf-agree dd { margin: 0; }
.cf-agree a { text-decoration: underline; }
.cf-err { min-height: 20px; margin: 10px 0 6px; font-size: 13.5px; color: var(--warn); }
.cf-send[aria-disabled="true"] { background: #b9c7c1; }
.cf-ok { border: 1px solid #d2e5dc; background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.cf-ok b { display: block; font-size: 16px; color: var(--brand-ink); }
.cf-ok span { font-size: 14px; color: var(--sub); }
.cf-ok em { font-style: normal; font-weight: 700; color: var(--ink); }
.cf-done .chat-log { height: 34vh; }
.cf-new { margin-top: 10px; border: 0; background: none; color: var(--sub); text-decoration: underline; font-size: 14px; padding: 4px 0; }
/* 바닥글 */
.ff { background: #f3f5f3; color: var(--sub); font-size: 13.5px; padding: 30px 0 110px; margin-top: 30px; border-top: 1px solid var(--line); }
.ff h2 { font-size: 14.5px; color: var(--ink); margin: 0 0 8px; }
.ff .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 20px; }
.ff .links a { color: var(--sub); }
.ff p { margin: 0 0 8px; }
/* PC: 본문은 모바일 폭(480px) 그대로, 오른쪽에 지역 바로가기·요약·상담 패널 */
.side { display: none; }
@media (min-width: 600px) {
  html, body { background: var(--page); }
  .fh-wrap { max-width: 480px; margin: 0 auto; padding: 0; }
  .shell { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
  .app { width: 480px; flex: none; background: #fff; min-height: calc(100vh - var(--hh)); box-shadow: 0 0 0 1px rgba(27,36,32,.05); }
  .wrap { width: calc(100% - 40px); }
  .fbar { left: calc(50% - 240px); right: auto; width: 480px; }
  .fbar .wrap { width: calc(100% - 32px); }
  .sheet .panel { left: calc(50% - 240px); right: auto; width: 480px; max-height: 86vh; }
}
@media (min-width: 860px) {
  .fh-wrap { max-width: 784px; }
  .side { display: flex; flex-direction: column; gap: 12px; width: 280px; flex: none; position: sticky; top: calc(var(--hh) + 20px); padding: 20px 0 40px; max-height: calc(100vh - var(--hh) - 20px); overflow: auto; scrollbar-width: none; }
  .fbar, .sheet .panel { left: calc(50% - 392px); }
  .side-card { background: #fff; border: 1px solid #e3e0d8; border-radius: 12px; padding: 16px; }
  .side-card h2 { font-family: var(--serif); font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
  .side-search { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; border: 1.5px solid #c9d8d1; border-radius: 8px; background: #fff; padding: 0 12px; color: var(--muted); font-size: 14px; text-align: left; }
  .side-sido { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
  .side-sido a { height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--band); font-size: 13.5px; font-weight: 600; color: var(--ink2); }
  .side-sido a:hover { background: var(--brand-soft); color: var(--brand-ink); }
  .side-stat { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
  .side-stat dt { color: var(--sub); }
  .side-stat dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
  .side-card.brand { background: var(--brand); border-color: var(--brand); color: #fff; }
  .side-card.brand h2 { color: #fff; }
  .side-card.brand p { font-size: 13.5px; color: #cfe2da; margin: 0 0 12px; }
  .side-card.brand button { width: 100%; height: 42px; border: 0; border-radius: 8px; background: #fff; color: var(--brand-ink); font-weight: 700; }
  .side .note { padding: 0 4px; }
}
    
/* 장례비 계산기(components/funeral/Estimator.astro) */
.calc .calc-row { display: grid; gap: 6px; margin-bottom: 14px; }
.calc .lbl { font-size: 14px; font-weight: 700; color: var(--ink2); }
.calc .sel { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; }
.calc .chips { padding: 0; }
.calc .calc-out { border-top: 1px solid var(--line); padding-top: 10px; }
.calc .calc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 4px; font-weight: 700; }
.calc .calc-total b { font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }
/* 웹빌더 일반 블록(앱형 모양) — 글·정보 목록·단계·안내 상자 */
/* 목록·표만 끝 여백을 없앤다(원본은 문단 아래 12px 유지, 목록은 margin:0) */
.md > ol:last-child, .md > ul:last-child, .md > .tscroll:last-child { margin-bottom: 0; }
.md ol, .md ul { padding-left: 20px; margin: 0 0 12px; }
.md ol li { margin-bottom: 8px; }
.md ul li { margin-bottom: 6px; }
.md li:last-child { margin-bottom: 0; }
.md a { text-decoration: underline; text-underline-offset: 3px; }
.md h3 { margin: 18px 0 6px; }
.md .tscroll { margin: 0 0 12px; }
.md table.md-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.md table.md-table th, .md table.md-table td { padding: 10px 6px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
.md table.md-table thead th { color: var(--muted); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); }
.md-compact { font-size: 15px; }
.md-small, .md-small p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.md + .md-small { margin-top: 10px; }
.band .md p:last-child, .band .md ul:last-child, .band .md ol:last-child { margin-bottom: 0; }
.card.step.noimg { grid-template-columns: 1fr; }
