:root {
  --bg: #f6f7f9; --card: #ffffff; --ink: #111418; --muted: #4a5360; --line: #d5dae1;
  --brand: #1f4f8f; --brand-ink: #ffffff;
  --green: #12723a; --green-bg: #e3f5ea; --amber: #8a5300; --amber-bg: #fff3d6;
  --red: #b3261e; --red-bg: #fde7e5; --grey: #4a5360; --grey-bg: #eceff3;
  --head-bg: #1f4f8f; --head-ink: #ffffff; --brand-soft: #d3e2f7; --field: #858f9d; --ph: #6b7480; --shade: rgba(16, 24, 40, 0.16); --busy: #ffb020;
  color-scheme: light dark; accent-color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121418; --card: #1c1f25; --ink: #f2f4f7; --muted: #b8c0cc; --line: #343a44;
    --brand: #6fa8ff; --brand-ink: #0b1220;
    --green: #7fe0a4; --green-bg: #12301f; --amber: #ffcf70; --amber-bg: #3a2c0c;
    --red: #ff9a90; --red-bg: #3d1513; --grey: #c3cad4; --grey-bg: #2a2f37;
    --head-bg: #17243b; --head-ink: #e8eef8; --brand-soft: #23406e; --field: #6b7584; --ph: #8d96a3; --shade: rgba(0, 0, 0, 0.55); --busy: #ffcf70;
  }
}
* { box-sizing: border-box; }
html { font-size: clamp(16.5px, 16px + 0.2vw, 17px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; }
header { background: var(--head-bg); color: var(--head-ink);
  padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); }
header .wrap { max-width: 1240px; }
header .head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
header a { color: var(--head-ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
header form { margin: 0; }
header button { background: transparent; color: var(--head-ink); border: 2px solid var(--head-ink);
  border-radius: 10px; font-size: 0.85rem; padding: 6px 12px; min-height: 44px; cursor: pointer; }
.wrap { max-width: 760px; margin: 0 auto; }
main.wrap { padding: 18px max(16px, env(safe-area-inset-right)) 60px max(16px, env(safe-area-inset-left));
  overflow-wrap: anywhere; word-break: keep-all; }
h1 { font-size: 1.5rem; margin: 6px 0 14px; }
h2 { font-size: 1.2rem; margin: 0 0 10px; }
p { margin: 6px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 16px; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, select { width: 100%; font-size: 1.1rem; padding: 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); min-height: 56px; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn { display: block; width: 100%; margin-top: 16px; font-size: 1.15rem; font-weight: 800; padding: 14px;
  min-height: 60px; border-radius: 14px; border: none; background: var(--brand); color: var(--brand-ink); cursor: pointer;
  text-align: center; text-decoration: none; }
.btn.light { background: var(--grey-bg); color: var(--ink); border: 2px solid var(--line); }
.hint { color: var(--muted); font-size: 0.9rem; }
.error { background: var(--red-bg); color: var(--red); border-radius: 12px; padding: 12px 14px; font-weight: 700; margin-bottom: 12px; }
.ok { background: var(--green-bg); color: var(--green); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.verdict { border-radius: 18px; padding: 20px; margin-bottom: 16px; border: 3px solid currentColor; }
.verdict .big { font-size: 1.6rem; font-weight: 900; line-height: 1.3; }
.verdict .mark { font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; }
.v-green { background: var(--green-bg); color: var(--green); }
.v-amber { background: var(--amber-bg); color: var(--amber); }
.v-red { background: var(--red-bg); color: var(--red); }
.v-grey { background: var(--grey-bg); color: var(--grey); }
.verdict p { color: var(--ink); font-size: 1.05rem; }
dl.facts { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 12px; margin: 0; }
dl.facts dt { color: var(--muted); font-weight: 700; }
dl.facts dd { margin: 0; font-weight: 700; min-width: 0; }
.scroll { overflow-x: auto; }
.money { display: grid; grid-template-columns: 1fr; gap: 10px; }
.money .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  border-bottom: 1px solid var(--line); padding: 8px 0; }
.money .row:last-child { border-bottom: none; }
.money .k { color: var(--muted); font-weight: 700; }
.money .v { font-size: 1.2rem; font-weight: 900; text-align: right; }
.money .row.key .v { font-size: 1.4rem; color: var(--brand); }
ul.plain { margin: 0; padding-left: 1.2em; }
ul.plain li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
td.num, th.num { white-space: nowrap; }
ul.sales li { padding: 8px 0; border-bottom: 1px solid var(--line); }   /* 공개 시장 최근 낙찰 — 휴대폰에서 6칸 표가 한 글자씩 꺾여 목록으로 (a136) */   /* 공개 시장 표의 '54건'·'20%' 가 꺾이지 않게 (a136) */
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); }
.tag { display: inline-block; border-radius: 8px; padding: 2px 8px; font-weight: 800; font-size: 0.85rem; }
.tag.fail { background: var(--amber-bg); color: var(--amber); }
.tag.sold { background: var(--green-bg); color: var(--green); }
.tag.next { background: var(--grey-bg); color: var(--ink); }
.list a { display: block; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list a:last-child { border-bottom: none; }
.list b { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 7px solid var(--line); border-top-color: var(--brand);
  animation: spin 1s linear infinite; margin: 16px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
/* ── 상세분석: 접었다 펴는 칸 ── */
h3 { font-size: 1.05rem; margin: 18px 0 8px; }
details.fold { padding: 0 18px; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; margin: 0 -18px;
  justify-content: space-between; gap: 6px 12px; padding: 16px 18px; min-height: 60px; font-weight: 800; font-size: 1.1rem; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "눌러서 펼치기 ▾"; font-size: 0.95rem; color: var(--ink); font-weight: 700; }
details.fold[open] > summary::after { content: "접기 ▴"; }
details.fold > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: 16px; }
details.fold > summary .s { margin-left: auto; color: var(--muted); font-size: 0.95rem; }
details.fold[open] { padding-bottom: 14px; }
.fold-hint { margin: 4px 2px 10px; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.c-green { background: var(--green-bg); color: var(--green); }
.c-amber { background: var(--amber-bg); color: var(--amber); }
.c-red { background: var(--red-bg); color: var(--red); }
.c-grey { background: var(--grey-bg); color: var(--grey); }
dl.qa { margin: 0; }
dl.qa dt { color: var(--muted); font-weight: 800; margin-top: 10px; }
dl.qa dt:first-child { margin-top: 0; }
dl.qa dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
ol.stages { margin: 8px 0 0; padding-left: 1.3em; }
ol.stages > li { margin: 10px 0; }
.occ { border-top: 1px solid var(--line); padding: 10px 0; }
.occ:first-of-type { border-top: none; }
ul.checks { margin: 0; padding-left: 0; list-style: none; }
ul.checks li { padding: 8px 0 8px 1.6em; position: relative; border-bottom: 1px solid var(--line); }
ul.checks li::before { content: "□"; position: absolute; left: 0; font-weight: 900; }
ul.bars { list-style: none; margin: 0; padding: 0; }
ul.bars li { display: grid; grid-template-columns: 6.5em 1fr; gap: 2px 10px; align-items: center; padding: 6px 0; }
ul.bars .bn { font-weight: 700; }
ul.bars .bar { height: 14px; border-radius: 7px; background: var(--grey-bg); overflow: hidden; }
ul.bars .bar > span { display: block; height: 100%; background: var(--brand); border-radius: 7px; }
ul.bars .bl { grid-column: 2; color: var(--muted); font-size: 0.85rem; }
.maps { margin: 12px 0 4px; }
.maps .btn { margin-top: 0; }
/* ── 입찰가 계산기 ── */
input[type="range"] { padding: 0; border: none; min-height: 48px; background: transparent; accent-color: var(--brand); }
.step .btn { margin-top: 6px; min-height: 52px; }
.bidnow { font-size: 1.3rem; margin: 10px 0 4px; }
.bidnow b { color: var(--brand); font-size: 1.5rem; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.jumps button { font-size: 0.9rem; font-weight: 700; padding: 8px 12px; min-height: 44px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); }
.verdict.mini { padding: 10px 14px; border-width: 2px; border-radius: 12px; font-weight: 800; margin: 6px 0 10px; }
/* ── '?' 도움말 ── */
.tip { display: inline; cursor: pointer; outline: none; }
.tip .tipq { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; margin-left: 2px;
  border-radius: 50%; border: 2px solid var(--muted); color: var(--muted); font-size: 0.75rem; font-weight: 900; vertical-align: middle; }
.tip:focus .tipq, .tip:focus-visible .tipq { background: var(--brand); border-color: var(--brand); color: var(--brand-ink);
  outline: 3px solid var(--brand); outline-offset: 2px; }
.tip .tipbody { display: none; }
.tip:focus .tipbody { display: block; margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: var(--grey-bg);
  color: var(--ink); font-weight: 500; font-size: 0.9rem; text-align: left; white-space: normal; }
/* ── 입찰표 ── */
.bigko { font-size: 1.15rem; font-weight: 800; color: var(--brand); min-height: 1.6em; margin: 8px 0; }
.digits { display: grid; gap: 4px; margin: 6px 0; }
.drow { display: grid; grid-template-columns: 3.2em repeat(12, 1fr); gap: 2px; align-items: center; }
.drow.lab { padding-left: 3.2em; grid-template-columns: repeat(12, 1fr); font-size: 0.6rem; color: var(--muted); text-align: center; }
.drow .rl { font-size: 0.75rem; color: var(--muted); }
.drow span { text-align: center; }
.drow.ref span, .drow.mine span { border: 2px solid var(--line); border-radius: 6px; min-height: 2em; line-height: 1.8em; font-weight: 900; }
.drow.mine span { border-color: var(--brand); font-size: 1.1rem; }
li.bad { color: var(--red); font-weight: 800; }
li.warn { color: var(--amber); font-weight: 800; }
/* ── 현장 메모 ── */
label.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 10px 0 4px; min-height: 44px; }
label.check input { width: 26px; height: 26px; min-height: 0; flex: none; }
fieldset { border: none; margin: 0; padding: 0; }
fieldset.ck { border-top: 1px solid var(--line); padding: 8px 0 12px; }
fieldset.checks-inline legend { font-weight: 700; margin-top: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
img.photo { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin: 8px 0; }
label.file { font-weight: 700; margin-top: 8px; }
label.file input { margin-top: 6px; font-size: 0.95rem; padding: 10px; }
.savebar { position: sticky; bottom: 0; padding: 8px 0 12px; background: var(--bg); }
/* ── 가이드 ── */
h2.chapter { margin: 24px 2px 10px; }
.md table { font-size: 0.9rem; display: block; overflow-x: auto; }
.md pre { white-space: pre-wrap; background: var(--grey-bg); padding: 10px; border-radius: 10px; font-size: 0.85rem; }
.md blockquote { margin: 10px 0; padding: 8px 12px; border-left: 4px solid var(--brand); background: var(--grey-bg); border-radius: 6px; }
.card.salenote { border: 3px solid var(--amber); background: var(--amber-bg); }
.card.salenote h2 { color: var(--amber); }
/* ── 공유 ── */
#share-url { font-size: 0.95rem; }
.btn.kakao { background: #fee500; color: #191919; }
/* ── 물건 목록(/new): 칩·가진 돈·결과 줄 (2026-11-03, 40~50대 첫 사용자 검토 반영) ── */
.tag { font-size: 1rem; padding: 4px 10px; }
.tag.danger { background: var(--red-bg); color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.iname { margin-top: 8px; font-size: 1.15rem; font-weight: 900; line-height: 1.35; }
/* 사건번호 — 법정에서 '2025타경71712' 를 부를 때 카드에서 바로 찾게 (11/12 사용자) */
.caseno { font-size: 1.1rem; margin: 0 0 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.caseno b { font-weight: 900; letter-spacing: 0.01em; }
.caseno .itemno { font-weight: 800; color: var(--brand); white-space: nowrap; }
.isub { font-size: 0.95rem; margin: 2px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.chipa { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 6px 14px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: 1rem; text-decoration: none; }
a.chipa small { color: var(--muted); font-weight: 700; font-size: 0.85rem; }
a.chipa.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
a.chipa.on small { color: var(--brand-ink); }
a.chipa.sm { min-height: 44px; font-size: 0.95rem; padding: 4px 12px; }
a.chipa.off { background: var(--grey-bg); }
.moneyin { display: flex; align-items: center; gap: 8px; }
.moneyin input { font-size: 1.4rem; min-height: 64px; font-weight: 800; }
.moneyin span { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.echo { font-size: 1.15rem; font-weight: 800; color: var(--brand); min-height: 1.6em; }
.resultbar { background: var(--bg); padding: 10px 0; margin-bottom: 8px; font-size: 1.1rem; border-bottom: 2px solid var(--line); }
/* 정렬 칩은 한 줄 가로로 밀기 — 화면 위를 가리지 않게(휴대폰 390px 실측: 고정 줄이 화면 1/3을 덮었다) */
.chips.sorts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chips.sorts a.chipa { flex: none; }
.resultbar .chips { margin-top: 6px; }
.dayhead { margin: 18px 2px 10px; font-size: 1.1rem; }
.money .v.good { color: var(--green); }
.money .v.bad { color: var(--red); }
details.more { margin-top: 14px; }
details.more > summary { cursor: pointer; font-weight: 800; min-height: 48px; display: flex; align-items: center; color: var(--brand); }
@supports not (container-type: inline-size) {
  @media (max-width: 480px) { dl.facts { grid-template-columns: 6.5em 1fr; } .two { grid-template-columns: 1fr; }
    .two.step { grid-template-columns: 1fr 1fr; } ul.bars li { grid-template-columns: 5.5em 1fr; } }
}

/* 유찰돼 곧 다시 나올 물건 (11/03 밤) — 눈에 띄되 경고색은 아님 */
.card.nextround { display: block; border-left: 6px solid var(--brand); text-decoration: none; color: inherit; }
.card.nextround b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.card.nextround .hint { display: block; }

/* ═══════════ 반응형 개편 (2026-11-08, 윈도우) ═══════════
   기준: 휴대폰 = 아래 고정 메뉴(엄지 닿는 곳), 넓은 화면 = 머리 아래 한 줄 + 목록 2단.
   새 기능(컨테이너 쿼리·:has·화면 전환·details 애니메이션)은 모르는 브라우저에선 그냥 예전처럼 보이게만 쓴다. */

/* 본문으로 바로 가기 — Tab 을 누를 때만 보인다 */
.skip { position: absolute; left: 8px; top: -80px; z-index: 200; background: var(--card); color: var(--ink);
  padding: 10px 14px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 8px; }

/* ── 머리: 이름(앱 아이콘과 같은 집)·가이드·나가기 (11/08 디자인 검토) ── */
header a.brand { display: inline-flex; align-items: center; gap: 8px; }
header .logo { width: 1.25em; height: 1.25em; flex: none; }
.head-end { display: flex; align-items: center; gap: 8px; }
header .head-link { font-size: 0.9rem; font-weight: 700; padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center;
  gap: 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.14); }
header .head-link[aria-current] { background: var(--head-ink); color: var(--head-bg); }
header .public-nav { display: flex; gap: 4px; margin-top: 8px; white-space: nowrap; overflow-x: auto; }
header .public-nav a:focus-visible { outline-color: var(--head-ink); outline-offset: -2px; }
/* 나가기는 가이드보다 조용하게 — 잘못 누르면 비밀번호를 다시 넣어야 한다 */
header button { border: 1.5px solid rgba(255, 255, 255, 0.55); font-weight: 700; }
/* 파란 머리 위 파란 초점 테두리는 안 보였다(라이트 1.0:1) */
header .head :focus-visible, header .nav a:focus-visible { outline-color: var(--head-ink); }
@media (min-width: 900px) { header .head-end .head-link:not(.head-login) { display: none; } }
/* 좁은 휴대폰: 이름·가이드·나가기가 한 줄에 들어가게 (390px 실측 — 두 줄로 접히던 것) */
@media (max-width: 480px) {
  header a.brand { font-size: 1rem; }
  header .head-link, header button { font-size: 0.8rem; padding: 6px 9px; }
  header .public-nav .head-link { padding-inline: 4px; }
  header .head-end { gap: 6px; }
}
@media (max-width: 420px) { header .head-link .ic { display: none; } }

/* ── 손으로 그린 선 아이콘: 24칸, 글자색을 따른다 ── */
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
header .head-link .i, header .nav .i { width: 20px; height: 20px; }

/* ── 메뉴: 넓은 화면(900px~) — 비활성은 바탕 없음, 지금 화면은 흰 알약 ── */
header .nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; }
header .nav a { font-size: 0.9rem; font-weight: 700; padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center;
  gap: 6px; border-radius: 10px; }
header .nav .ic { display: inline-grid; place-items: center; }
header .nav .sh { display: none; }
header .nav a[aria-current] { background: var(--head-ink); color: var(--head-bg); }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  header .nav a:not([aria-current]):hover { background: rgba(255, 255, 255, 0.14); }
}
/* 1200px~: 이름·메뉴·나가기 한 줄(117→64px). grid·contents 는 쌓임 맥락을 만들지 않는다 —
   header 에 transform·z-index·view-transition-name 금지(§3-12)는 그대로 */
@media (min-width: 1200px) {
  header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 24px;
    padding-left: max(16px, calc((100% - 1240px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1240px) / 2 + 16px)); }
  header .head { display: contents; }
  header .brand { grid-area: 1 / 1; }
  header .nav { grid-area: 1 / 2; margin: 0; max-width: none; }
  header .public-nav { grid-area: 1 / 2; margin: 0; }
  header .head-end { grid-area: 1 / 3; }
}

/* ── 메뉴: 휴대폰·작은 태블릿(~899px) — 화면 아래 고정 4칸, 아이콘 위·글자 아래 ── */
@media (max-width: 899.98px) {
  header .nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-width: none; margin: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px;
    padding: 4px max(4px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -2px 14px var(--shade); }
  header .nav a { flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 4px 0;
    background: none; color: var(--muted); font-size: 0.85rem; font-weight: 500; border-radius: 12px; white-space: nowrap; }
  header .nav .ic { width: 56px; height: 30px; border-radius: 15px; }
  header .nav .i { width: 24px; height: 24px; }
  header .nav .lb { overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; line-height: 1.25; }
  header .nav .lg, header .nav .wide-only { display: none; }
  header .nav .sh { display: inline; }
  /* 지금 화면: 색만이 아니라 알약 + 채운 아이콘 + 굵기(500→800, 맑은 고딕은 400·700 뿐) — 전엔 색 차이 1.05:1 뿐이었다 */
  header .nav a[aria-current] { background: none; color: var(--brand); font-weight: 800; }
  header .nav a[aria-current] .ic { background: var(--brand-soft); }
  header .nav a[aria-current] .i { fill: currentColor; fill-opacity: 0.25; stroke-width: 2.4; }
  header .nav a:focus-visible { outline-color: var(--brand); outline-offset: -2px; }
  body.has-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-nav .savebar { bottom: calc(72px + env(safe-area-inset-bottom)); }   /* 저장 줄은 메뉴 위에 고정 — 입력 중에도 안 움직인다 */
  /* 글자를 넣는 동안(자판이 올라옴)은 아래 메뉴를 감춘다. 다시 보이는 것은 0.3초 뒤 —
     입력칸에서 바로 아래 버튼을 누를 때 메뉴가 먼저 튀어나와 그 누름을 가로채지 않게 (검토 11/08) */
  header .nav { transition: visibility 0s linear 0.3s; }
  body:has(:is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="submit"], [type="button"]), textarea, select):focus) header .nav { visibility: hidden; transition: none; }
}
/* 600~899px: 칸이 넓으니 긴 이름 ('담아 둔 물건'·'카톡 알림') */
@media (min-width: 600px) and (max-width: 899.98px) { header .nav .lg { display: inline; } header .nav .sh { display: none; } }

/* ── 누른 뒤 다음 화면이 뜰 때까지 맨 위 움직이는 줄 (base.html 스크립트가 html.busy 를 붙인다) ── */
html.busy body::before { content: ""; position: fixed; z-index: 300; top: 0; left: 0; right: 0; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--busy) 50%, transparent) no-repeat; background-size: 40% 100%;
  animation: busy 1.1s ease-in-out infinite; }
@keyframes busy { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* ── 화면 넘길 때 부드럽게 바뀜 (크롬·엣지 126+, 사파리 18.2+ / 그 밖엔 예전처럼 바로 바뀜) ── */
@view-transition { navigation: auto; }
/* 이름은 아래 메뉴에만 — header 에 붙이면 header 가 쌓임 맥락이 되어 고정 메뉴(z-index)가 그 안에 갇히고
   본문(position:relative 인 체크리스트 등)이 메뉴 위로 올라와 누름을 가로챘다 (검토 11/08 재현) */
header .nav { view-transition-name: page-nav; }
::view-transition-group(*) { animation-duration: 0.18s; }

/* ── 컨테이너 쿼리: 화면 폭이 아니라 '들어 있는 칸의 폭'으로 배치 (목록이 2단이 되면 카드가 좁아진다) ── */
main.wrap { container: page / inline-size; }
.item, details.fold, .filters { container-type: inline-size; }
@container (max-width: 24rem) {
  .two { grid-template-columns: 1fr; }
  .two.step { grid-template-columns: 1fr 1fr; }
  dl.facts { grid-template-columns: 6.5em 1fr; }
  ul.bars li { grid-template-columns: 5.5em 1fr; }
}

/* ── 넓은 화면 목록(/new, 담아 둔 물건): 최대 1240px, 카드는 칸이 되는 만큼 여러 줄 ── */
.wide-page main.wrap { max-width: 1240px; }
.wide-page .narrow { max-width: 760px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 16px; align-items: stretch; }
.items > .card { margin: 0; }
.items > .dayhead, .items > .gh { grid-column: 1 / -1; margin: 10px 2px 0; }
.item { display: flex; flex-direction: column; scroll-margin-top: 12px; }
.item > .two { margin-top: auto; }
.item[data-mark="green"] { border-left: 6px solid var(--green); }
.item[data-mark="amber"] { border-left: 6px solid var(--amber); }
.item[data-mark="red"] { border-left: 6px solid var(--red); }
.item:target { outline: 3px solid var(--brand); outline-offset: 2px; }     /* ⭐ 담기 뒤 돌아온 카드 */
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 10px; margin: 12px 0; }
.actions .btn { margin-top: 0; }
.jump { font-weight: 800; color: var(--brand); }

/* 1100px~: 왼쪽 조건(따라 내려옴) · 오른쪽 결과 */
@media (min-width: 1100px) {
  .browse { display: grid; grid-template-columns: 20rem minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .browse > .filters { position: sticky; top: 12px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain;
    scrollbar-width: thin; padding-right: 2px; }
  .browse > .filters .card { margin-bottom: 12px; }
  .narrow-only { display: none; }
}

/* ── 글 줄바꿈: 제목은 줄 길이 고르게, 본문은 한 글자만 남는 줄 줄이기 ── */
h1, h2, h3, .iname, .verdict .big { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* ── 숫자 자리 맞춤 (금액 비교가 쉬워짐) ── */
.money .v, .bidnow, .echo, td { font-variant-numeric: tabular-nums; }

/* ── 옆으로 밀리는 표·정렬 칩: 더 있으면 가장자리에 그림자 ── */
.scroll { background:
    linear-gradient(to right, var(--card) 30%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--card) 30%, transparent) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--shade), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--shade), transparent) right / 12px 100% no-repeat scroll; }
.resultbar .chips.sorts { background:
    linear-gradient(to right, var(--bg) 30%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--bg) 30%, transparent) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--shade), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--shade), transparent) right / 12px 100% no-repeat scroll;
  scroll-snap-type: x proximity; }
.chips.sorts a.chipa { scroll-snap-align: start; }

/* ── 누르는 느낌 · 마우스 올림(마우스가 있는 기기만) ── */
.btn, a.chipa, .jumps button { -webkit-tap-highlight-color: transparent; }
.btn:active, a.chipa:active, .jumps button:active { transform: translateY(1px); filter: brightness(0.95); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); }
  a.chipa:hover, .jumps button:hover { border-color: var(--brand); }
  a.card:hover { border-color: var(--brand); }
}

/* ── 접는 칸 열고 닫을 때 부드럽게 (크롬 131+ 만, 나머지는 예전처럼 바로) ── */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    details.fold::details-content, details.more::details-content { block-size: 0; overflow: clip; overflow-clip-margin: 8px;
      transition: block-size 0.25s ease, content-visibility 0.25s allow-discrete; }
    details.fold[open]::details-content, details.more[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ── 움직임 줄이기를 켠 사람: 전환·줄 움직임 끔 ── */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  html.busy body::before { animation: none; background: var(--busy); }
  .btn:active, a.chipa:active, .jumps button:active { transform: none; }
}

/* ── 인쇄: 메뉴·진행 줄 빼기 ── */
@media print {
  header .nav, .skip { display: none !important; }
  body.has-nav { padding-bottom: 0; }
  html.busy body::before { display: none; }
}

/* ═══════════ 문서 확인 도우미 (2026-11-08) — 원문 확인 줄·전입세대열람·한눈에 정리 ═══════════ */
[hidden] { display: none !important; }     /* .btn 의 display:block 이 hidden 을 이기지 않게 */

/* 원문 확인 줄: 판정이 아니라 '무엇을 원문으로 확인했나' — 판정 박스보다 작게(과신 막기, UX 검토) */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 16px; font-size: 0.9rem; }
.proof .pl { color: var(--muted); font-weight: 700; margin-right: 2px; }
.pf { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.pf-ok { color: var(--green); background: var(--green-bg); }
.pf-warn { color: var(--amber); background: var(--amber-bg); }
.pf-bad { color: var(--red); background: var(--red-bg); }
.pf-wait, .pf-miss { color: var(--grey); background: var(--grey-bg); }
.sum-card .proof { margin: 10px 0 0; }

/* 전입세대열람 칸 ('사는 사람' 접는 칸 안) */
.movein { border-radius: 12px; padding: 12px 14px; margin: 12px 0 4px; border: 2px solid var(--line); }
.movein.mv-amber { border-color: var(--amber); background: var(--amber-bg); }
.movein.mv-amber > p > b { color: var(--amber); }
.movein.mv-grey { background: var(--grey-bg); }
.movein ul.plain li { margin: 4px 0; }
.movein details.more { margin-top: 6px; }

/* 한눈에 정리 */
.sum-head { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.sum-no { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8em; height: 1.8em; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 900; }
ul.todo { list-style: none; margin: 0; padding: 0; }
ul.todo li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.todo li:last-child { border-bottom: none; }
ul.todo .what { flex: 1; min-width: 0; padding-top: 8px; }
ul.todo .who { font-weight: 900; color: var(--brand); }
ul.todo .by { display: inline-block; margin-left: 4px; border-radius: 8px; padding: 1px 8px; font-size: 0.8rem; font-weight: 800;
  background: var(--green-bg); color: var(--green); }
ul.todo li.done .what { color: var(--muted); }
ul.todo li.risk .what { color: var(--red); font-weight: 700; }
ul.todo form.tick { margin: 0; flex: none; }
ul.todo form.tick button { min-width: 48px; min-height: 48px; font-size: 1.5rem; line-height: 1; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--line); background: var(--card); color: var(--ink); }
ul.todo li.done form.tick button { border-color: var(--green); color: var(--green); }
ul.todo .tick-static { flex: none; min-width: 48px; text-align: center; padding-top: 8px; font-size: 1.2rem; color: var(--muted); }
.kakao-box textarea { width: 100%; font-size: 0.95rem; line-height: 1.55; padding: 12px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font-family: inherit; resize: vertical; }
#pick label.check span { font-weight: 600; }
@media print { .kakao-box, #pick, ul.todo form.tick button { display: none !important; } }

/* 등기부로 한 번 더 확인 (2026-11-08) */
ul.regfind li { padding: 6px 0 6px 10px; border-left: 4px solid var(--line); margin: 8px 0; }
ul.regfind li.rf-red { border-color: var(--red); }
ul.regfind li.rf-amber { border-color: var(--amber); }
ul.regfind li.rf-green { border-color: var(--green); }
ul.regrows { list-style: none; margin: 0; padding: 0; }
ul.regrows li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.regrows.gone li { color: var(--muted); font-size: 0.92rem; }
.verdict.mini.v-grey { background: var(--grey-bg); color: var(--grey); }

/* ═══════════ 홈 (2026-11-08, UX 전문가 설계) — templates/home.html ═══════════ */
.home-page main.wrap { max-width: 760px; }
@media (min-width: 1000px) { .home-page main.wrap { max-width: 1240px; } }
.home-h { font-size: 1.15rem; margin: 0 0 12px; }
.find > label { margin-top: 0; font-size: 1.15rem; }
.find .error { margin: 0 0 10px; }
.findrow { display: flex; gap: 8px; align-items: stretch; }
.findrow input { flex: 1; min-width: 0; }
.findrow .btn { flex: none; width: auto; margin: 0; min-height: 56px; padding: 0 22px; }
.find details.more { margin-top: 4px; }
.find details.more > summary { min-height: 44px; font-size: 0.95rem; }
.h-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) {
  .find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .find > label, .find details.more { margin: 0; }
  .find > .error, .find > .hint, .find details[open] { flex-basis: 100%; }
  .find .findrow { flex: 1 1 24rem; max-width: 40rem; }
  .h-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 24px; align-items: start; }
}
/* 한 줄 = 누르는 칸 하나 (입찰·소식·먼저 볼 물건·도구) */
ul.rows { list-style: none; margin: 0; padding: 0; }
ul.rows > li + li { border-top: 1px solid var(--line); }
ul.rows a { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 10px 0; color: inherit; text-decoration: none; }
ul.rows .rb { flex: 1; min-width: 0; }
ul.rows .rb b { display: block; line-height: 1.35; }
ul.rows .rb .chip { white-space: normal; }          /* 판정 문구가 길면 줄바꿈 (390px 에서 칸 약 180px) */
ul.rows .go { flex: none; color: var(--muted); font-size: 1.4rem; font-weight: 900; }
.when { flex: none; align-self: flex-start; width: 5.4em; padding: 6px 4px; border-radius: 12px; text-align: center; line-height: 1.25;
  background: var(--brand-soft); color: var(--brand); font-weight: 900; font-variant-numeric: tabular-nums; }
.when small { display: block; font-size: 0.85rem; font-weight: 800; }
.when.soon { background: var(--brand); color: var(--brand-ink); }       /* 오늘·내일 */
.card.due { border: 3px solid var(--brand); }
.more-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; margin-top: 10px;
  padding-top: 8px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 800; text-decoration: none; }
ol.steps { list-style: none; margin: 0; padding: 0; }
ol.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
ol.steps .sum-no { flex: none; margin-top: 2px; }

/* ═══════════ 디자인 정리 (2026-11-08, 웹 디자인 검토) ═══════════ */
/* 폼 요소도 본문 글꼴 — '나가기'·입력칸만 다른 글꼴·가는 굵기로 보였다 */
button, input, select, textarea { font-family: inherit; }
/* 입력칸 테두리 3:1 이상(전엔 1.4:1) · 예시 글자 4.5:1 이상 */
input, select, .kakao-box textarea { border-color: var(--field); }
input[type="range"] { border: none; }
::placeholder { color: var(--ph); opacity: 1; }
h1, h2, h3 { line-height: 1.3; }

/* 버튼 위계: 채움 = 그 칸의 할 일 하나 / 흰 바탕 파란 테두리 = 보조 / › 줄 = 다른 화면으로 */
.btn { font-size: 1.1rem; line-height: 1.35; }
.btn.light { background: var(--card); color: var(--brand); border: 2px solid var(--brand); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:active { transform: none; filter: none; }
.btn.row { position: relative; text-align: left; margin-top: 8px; min-height: 56px; padding: 12px 44px 12px 16px;
  font-size: 1.05rem; font-weight: 700; background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.btn.row::after { content: "›"; position: absolute; right: 16px; top: 50%; translate: 0 -50%;
  font-size: 1.6rem; line-height: 1; color: var(--brand); }

/* 누르지 않는 표시는 네모, 알약은 누르는 칩(.chipa)만 */
.chip, .pf { border-radius: 8px; }
/* '?' 도움말: 보이는 원 30px, 누르는 칸은 44px 그대로 */
.tip .tipq { position: relative; min-width: 30px; height: 30px; margin: 0 4px; }
.tip .tipq::after { content: ""; position: absolute; inset: -7px; }

/* 항목별 비용 범위 (11/12) — 휴대폰에서 항목 이름은 한 줄 전체, 금액은 그 아래 세 칸 */
.crange { margin: 8px 0 12px; }
.cr-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cr-name { margin-bottom: 4px; }
.cr-one { font-weight: 800; font-variant-numeric: tabular-nums; }
.cr-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-variant-numeric: tabular-nums; font-weight: 700; }
.cr-vals small { display: block; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.cr-vals .mid { color: var(--brand); }
/* 항목별 비용 범위 (11/12) — 휴대폰 390px 에서 네 칸이 넘치지 않게 금액은 작게, 항목 칸만 넓게 */
table.range { font-size: 0.85rem; margin: 8px 0 12px; }
table.range th[scope=row] { color: var(--ink, inherit); font-weight: 700; width: 38%; }
table.range td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding: 10px 3px; }
table.range td[colspan] { text-align: left; white-space: normal; }
table.range thead th { text-align: right; } table.range thead th:first-child { text-align: left; }
ol.paysteps { padding-left: 1.3em; margin: 6px 0 0; } ol.paysteps li { margin: 8px 0; }

/* 바닥 줄(약관·출처 고지)과 공개 첫 화면 — 2026-11-24 jibsem 새단장 */
.foot { padding: 8px 2px 24px; font-size: 0.9rem; color: var(--muted); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
.hero { padding: 8px 0 4px; }
.hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.3; margin: 8px 0 10px; }
.hero .lead { font-size: 1.1rem; line-height: 1.6; margin: 0 0 6px; }
.cta { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 560px) { .cta { grid-template-columns: 1fr 1fr; gap: 12px; } }
.feat h2 { font-size: 1.2rem; margin: 0 0 8px; }
.feat ul { margin: 6px 0 0; padding-left: 1.2em; line-height: 1.6; }
.feat li { margin: 4px 0; }
.legal h2 { font-size: 1.1rem; margin: 18px 0 6px; }
.legal p, .legal li { line-height: 1.65; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-weight: 400; line-height: 1.5; }
.agree input { width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* 2026-11-25 글자 크기 — 기본은 보통(20·30대), html.big 은 예전 큰 글씨(50·60대·회원 기본). 단추는 머리 줄 '가 크게' */
html.big { font-size: clamp(19px, 18.2px + 0.2vw, 20px); }
header button.fs-toggle { font-weight: 800; white-space: nowrap; }
/* 공개 계산기 (/tools) */
.calc label { display: block; margin: 14px 0 0; font-weight: 700; }
.calc label:first-of-type { margin-top: 0; }
.calc label input, .calc label select { margin-top: 6px; font-weight: 600; }
.calc label.check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.calc label.check input { width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--brand); }
.calc .sub { margin: 4px 0 0; }
.calc .echo.sub { font-size: 1rem; min-height: 1.4em; }
dl.faq dt { font-weight: 800; margin: 14px 0 0; }
dl.faq dt:first-child { margin-top: 0; }
dl.faq dd { margin: 4px 0 0; color: var(--ink); }
ul.tools li { margin: 10px 0; }

/* ═══════════ 공개 화면 편집 디자인 (2026-11-28, 3인 수석 협업 — Claude·Codex·Gemini) ═══════════
   철학: "첫 입찰 전에 펼치는 비용 명세서" — 공공·금융 문서의 단정함. 색은 남색 하나와 상태색만, 위계는 굵기·크기·여백으로.
   비회원 공개 화면(body.pub)에만 — 회원 앱(큰 글씨·큰 단추, 50·60대 가족)은 그대로 둔다. 광고 자리 없음(코드 무관). */
body.pub {
  --t-meta: .875rem; --t-body: 1rem; --t-section: 1.25rem; --t-title: 1.875rem;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px;
  background: var(--card); line-height: 1.7;
}
/* 머리: 파란 덩어리 대신 흰 지면 + 아래 실선, 이름은 남색. 지금 위치만 밑줄 */
body.pub header { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
body.pub header a, body.pub header .brand { color: var(--brand); }
body.pub header button { color: var(--ink); border: 1px solid var(--line); border-radius: 6px; min-height: 40px; font-weight: 600; }
body.pub header .head-link { background: transparent; color: var(--ink); font-weight: 600; border-radius: 0; }
body.pub header .head-link.head-login { color: var(--brand); }
body.pub header .public-nav .head-link[aria-current] { background: transparent; color: var(--brand);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .45em; }
body.pub header .head :focus-visible, body.pub header .public-nav a:focus-visible { outline-color: var(--brand); }
@media (hover: hover) and (pointer: fine) { body.pub header .public-nav .head-link:not([aria-current]):hover { color: var(--brand); } }
/* 글자 위계: 900 남발을 걷고 제목 700·본문 400·금액 600, 한글 제목은 자간을 살짝 좁힌다 */
body.pub h1 { font-size: var(--t-title); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin: var(--s1) 0 var(--s2); }
body.pub h2 { font-size: var(--t-section); font-weight: 700; letter-spacing: -.01em; margin: 0 0 var(--s1); }
body.pub .hero h1 { font-size: clamp(1.75rem, 5vw, 2.4rem); }
body.pub .hero .lead { font-size: 1.125rem; }
body.pub .hero-links { margin: var(--s2) 0 0; font-size: var(--t-meta); color: var(--muted); }
body.pub .hint { font-size: var(--t-meta); }
/* 구역: 모든 걸 둥근 상자에 넣지 않는다 — 설명 구역은 위 실선으로, 상자는 입력지·결과 두 개만 */
body.pub main.wrap > section.card:not(#result), body.pub main.wrap > .card.feat {
  background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: var(--s3) 0; margin: 0; }
body.pub form.card.calc, body.pub #result.card { border-radius: 6px; padding: var(--s3) var(--s2); margin: var(--s2) 0 var(--s3); }
body.pub form.card.calc { background: var(--bg); border: 1px solid var(--line); }
body.pub #result.card { border: 1px solid var(--line); border-top: 3px solid var(--brand); }
/* 입력지: 공문서 서식처럼 — 낮고 단정하게(누르는 칸 44px 이상은 지킨다) */
body.pub .calc label { font-weight: 600; }
body.pub .calc label :is(input:not([type="checkbox"]), select) { min-height: 48px; padding: 10px 12px; font-size: 1.05rem;
  border-width: 1px; border-radius: 4px; background: var(--card); }
body.pub .btn { min-height: 52px; border-radius: 4px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
body.pub .btn.light { border-width: 1px; }
body.pub .hero .cta { gap: var(--s1) var(--s2); }
/* 계산 결과 = 명세서: 항목 왼쪽(보통 굵기)·금액 오른쪽(600), 합계 한 줄에서만 멈춘다 */
body.pub #result .money { gap: 0; }
body.pub #result .money .row { padding: 10px 0; border-bottom: 1px solid var(--line); }
body.pub #result .money .k { font-weight: 400; color: var(--muted); }
body.pub #result .money .v { margin-left: auto; font-size: 1.125rem; font-weight: 600; }
body.pub #result .money .row.key { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px; padding-top: 12px; }
body.pub #result .money .row.key .k { color: var(--ink); font-weight: 700; }
body.pub #result .money .row.key .v { font-size: 1.5rem; font-weight: 700; color: var(--brand); }
/* 결과 아래 주의문: 이모지 대신 왼쪽 호박색 막대 */
body.pub .note { margin: var(--s1) 0 0; padding: 6px 0 6px 12px; border-left: 3px solid var(--amber); font-size: var(--t-meta); color: var(--ink); }
/* 읽는 글: 한 줄 36em 안팎, 행간 1.75 */
body.pub .legal p, body.pub .legal li, body.pub main.wrap > section.card > p, body.pub main.wrap > section.card li,
body.pub .md p, body.pub .md li { max-width: 38em; line-height: 1.75; }
body.pub table th { font-weight: 600; font-size: var(--t-meta); }
body.pub .chip { font-weight: 700; }
body.pub dl.faq dt { font-weight: 700; }
body.pub a { text-underline-offset: .18em; }
body.pub .foot { border-top: 1px solid var(--line); margin-top: var(--s4); padding-top: var(--s3); }
@media (prefers-color-scheme: dark) {
  body.pub:not([data-theme="light"]) { background: var(--bg); }
  body.pub form.card.calc { background: var(--card); }
}
body.pub .hero { padding-bottom: var(--s3); }
/* 3인 협업 2차(Gemini 보강): 다크 모드에서 본문 링크가 브라우저 기본 파랑·보라로 뜨던 것, 괘선 편집 리듬 */
body.pub a { color: var(--brand); text-decoration-thickness: 1px; }
body.pub .btn { color: var(--brand-ink); } body.pub .btn.light { color: var(--brand); }
body.pub ul.tools { list-style: none; padding-left: 0; }
body.pub ul.tools li { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
body.pub ul.tools li:last-child { border-bottom: none; }
body.pub dl.faq dt { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
body.pub dl.faq dt:first-child { margin-top: 0; padding-top: 0; border-top: none; }
body.pub dl.faq dd { line-height: 1.75; }
body.pub main table { border-top: 2px solid var(--ink); }
body.pub .calc label :is(input:not([type="checkbox"]), select):focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }
/* 공개 가이드 '현금 명세서' 그림 (11/28 a152) — 폭에 맞춰 줄고, 다크 모드에선 흰 그림에 테두리 */
figure.sheet { margin: 4px 0 18px; }
figure.sheet img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
figure.sheet figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
@media (prefers-color-scheme: dark) { figure.sheet img { border-color: #3a4250; } }
