/* 월급셈 — 방향: 금융 앱처럼 차분한 회색 바탕 위 흰 카드, 파란 강조 하나, Pretendard 한 가지 글꼴. */
:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --ink: #191f28;
  --ink-2: #4e5968;
  --muted: #6b7684;
  --line: #e8ebee;
  --soft: #f9fafb;
  --blue: #3182f6;
  --blue-ink: #1b64da;
  --blue-soft: #e8f3ff;
  --red: #f04452;
  --red-soft: #ffeeee;
  --green: #03b26c;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px; --s9: 64px;
  --r: 20px; --r-sm: 12px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; width: 100%; overflow-x: clip; }
body { width: 100%; max-width: 100%; overflow-x: clip; }
img, svg, table, input, select, textarea { max-width: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.6; word-break: keep-all; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
button { font-family: inherit; }
/* 배경 그래픽: 위쪽 파란 하늘 띠 + 옅은 모눈(가계부 느낌) + 오른쪽 위 동전·막대 그림 */
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 640px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(242,244,246,0) 0%, var(--bg) 100%),
    linear-gradient(rgba(49,130,246,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(49,130,246,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #dcebff 0%, #eaf3ff 45%, var(--bg) 100%);
}
body::after {
  content: ""; position: absolute; top: 56px; right: max(0px, calc(50% - 640px)); width: 360px; height: 300px; z-index: -1; pointer-events: none;
  background: url("/assets/bg-deco.svg") no-repeat right top / contain;
}
@media (max-width: 720px) { body::after { width: 190px; height: 160px; top: 52px; opacity: .8; } }


.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 680px; }

.top { background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid rgba(0,0,0,.05); position: sticky; top: 0; z-index: 30; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.04em; text-decoration: none; display: flex; align-items: center; gap: var(--s2); }
.brand .logo { width: 26px; height: 26px; display: block; }
.nav { display: flex; gap: var(--s5); font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.35; }
.kicker { font-size: 15px; font-weight: 600; color: var(--ink-2); margin: 0 0 var(--s2); }
.title { font-size: clamp(26px, 6.4vw, 32px); font-weight: 800; }
.lede { font-size: 16px; color: var(--ink-2); margin: var(--s3) 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card { background: var(--card); border-radius: var(--r); padding: var(--s6) var(--s5); box-shadow: 0 1px 3px rgba(25,31,40,.05); }
.stack > * + * { margin-top: var(--s3); }

.calc-page { padding-block: var(--s2) var(--s9); }
.page-hero { padding: var(--s5) var(--s1) var(--s4); max-width: 520px; }
.page-hero .title { font-size: clamp(28px, 7.6vw, 36px); line-height: 1.3; }
.page-hero .lede { font-size: 17px; margin-top: var(--s2); }
.calc { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) { .calc { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; gap: var(--s5); } .side { position: sticky; top: var(--side-top, 72px); } }

.salary { margin-top: 0; }
.salary-label { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: var(--s2); }
.salary .row { display: flex; align-items: baseline; gap: var(--s2); border-bottom: 2px solid var(--line); padding-bottom: var(--s2); transition: border-color .15s; }
.salary .row:focus-within { border-color: var(--blue); }
.salary input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; padding: 0; outline: none; appearance: none; -moz-appearance: textfield; }
.salary input::-webkit-outer-spin-button, .salary input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.salary input::placeholder { color: #c4cad1; }
.salary .unit { font-size: 20px; font-weight: 700; color: var(--muted); }
.salary .lab { font-size: 14px; color: var(--muted); margin-top: var(--s2); }
.salary input { font-size: 34px; }

.fields { display: grid; gap: var(--s4); grid-template-columns: minmax(0,1fr) minmax(0,1fr); margin-top: var(--s6); }
.field label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.field .hint { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.input { position: relative; }
.input input {
  width: 100%; font: inherit; font-size: 17px; font-weight: 600; text-align: right; color: var(--ink);
  padding: 13px 48px 13px 14px; border: 0; border-radius: var(--r-sm); background: var(--bg); appearance: none; -moz-appearance: textfield;
}
.input input::-webkit-outer-spin-button, .input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); background: var(--card); }
.input input::placeholder { color: #9aa3ad; font-weight: 500; font-size: 15px; }
.input .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
@media (max-width: 420px) { .fields { grid-template-columns: minmax(0,1fr); } }

details.acc { background: var(--card); border-radius: var(--r); box-shadow: 0 1px 3px rgba(25,31,40,.05); }
details.acc > summary { list-style: none; cursor: pointer; padding: var(--s5) var(--s5); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc .t { font-size: 18px; font-weight: 700; }
details.acc .s { display: block; font-size: 14.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
details.acc .chev { width: 24px; height: 24px; flex: none; color: var(--muted); transition: transform .2s; }
details.acc[open] .chev { transform: rotate(180deg); }
details.acc .body { padding: 0 var(--s5) var(--s6); }
details.acc .body .fields { margin-top: var(--s2); }

.check { display: flex; gap: var(--s3); align-items: center; font-size: 15px; padding: var(--s2) 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); flex: none; }

.privacy-note { font-size: 14px; color: var(--muted); padding: var(--s2) var(--s2) 0; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

.result .label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.result .amt { font-size: clamp(36px, 10vw, 42px); font-weight: 800; letter-spacing: -0.04em; color: var(--blue); line-height: 1.2; margin-top: var(--s1); }
.result.is-due .amt { color: var(--red); }
.result.is-empty .amt { color: #c4cad1; }
.chip { display: inline-block; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px; margin-top: var(--s2); }
.result.is-due .chip { background: var(--red-soft); color: var(--red); }
.result.is-empty .chip { background: var(--bg); color: var(--muted); }
.ledger { width: 100%; border-collapse: collapse; margin-top: var(--s5); font-size: 15px; }
.ledger td { padding: 10px 0; color: var(--ink-2); }
.ledger td:last-child { text-align: right; color: var(--ink); font-weight: 600; white-space: nowrap; }
.ledger tr.sub td { font-size: 14px; color: var(--muted); padding: 4px 0 4px var(--s3); }
.ledger tr.sub td:last-child { color: var(--muted); font-weight: 500; }
.ledger tr.total td { border-top: 1px solid var(--line); padding-top: var(--s3); font-weight: 800; color: var(--ink); font-size: 16px; }
.more summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--blue-ink); list-style: none; padding: var(--s3) 0 0; }
.more summary::-webkit-details-marker { display: none; }
.note { font-size: 14px; color: var(--muted); margin: var(--s3) 0 0; line-height: 1.55; }

.btn { display: block; width: 100%; text-align: center; border: 0; border-radius: 16px; padding: 16px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: filter .15s, transform .05s; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { filter: brightness(.95); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-kakao:hover { filter: brightness(.97); }
.btn-ghost { background: var(--bg); color: var(--ink-2); }
.btn-row { display: grid; gap: var(--s2); margin-top: var(--s5); }
.share-msg { font-size: 13px; color: var(--blue-ink); text-align: center; margin: var(--s2) 0 0; }
.share-msg:empty { display: none; }

/* 절세 진단서: 영수증 */
.diag { filter: drop-shadow(0 1px 1px rgba(25,31,40,.06)) drop-shadow(0 8px 20px rgba(25,31,40,.07)); }
.receipt-paper {
  --tooth: 9px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  position: relative; background: #fffefa; color: var(--ink);
  padding: calc(var(--tooth) + 26px) 22px calc(var(--tooth) + 22px);
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x;
          mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x;
  font-variant-numeric: tabular-nums;
}
.rc-head { text-align: center; }
.rc-brand { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .32em; padding-left: .32em; color: var(--muted); }
.rc-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.rc-sub { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }
.rc-meta { margin: 18px 0 0; padding: 12px 0; border-top: 1.5px dashed #c5cad1; border-bottom: 1.5px dashed #c5cad1; display: grid; gap: 4px; }
.rc-meta > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.rc-meta dt { color: var(--muted); }
.rc-meta dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.diag-sum { margin-top: 14px; font-size: 15px; color: var(--ink-2); line-height: 1.6; text-align: center; }
.diag-sum b { color: var(--blue-ink); }
.rc-sec { margin-top: 22px; }
.rc-sec h3 { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--ink-2); letter-spacing: .02em; margin-bottom: 4px; }
.rc-sec h3::before, .rc-sec h3::after { content: ""; flex: 1; border-top: 1.5px dashed #c5cad1; }
.rc-item { padding: 10px 0; }
.rc-item + .rc-item { border-top: 1px dotted #dde1e6; }
.rc-line { display: flex; align-items: flex-end; gap: 6px; font-size: 15.5px; line-height: 1.45; }
.rc-line .t { flex: 0 1 auto; font-weight: 700; min-width: 0; }
.rc-line .dots { flex: 1 1 18px; min-width: 18px; border-bottom: 2px dotted #c5cad1; margin-bottom: 6px; }
.rc-line .v { flex: none; font-family: var(--mono); font-size: 14px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.rc-item.todo .v { color: var(--blue-ink); }
.rc-item.ok .v { color: var(--green); }
.rc-item .dd { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 4px; padding-right: 8px; }
.rc-total { margin-top: 24px; padding-top: 14px; border-top: 1.5px dashed #c5cad1; display: grid; gap: 6px; }
.rc-total .rc-line .t { font-weight: 500; color: var(--ink-2); font-size: 15px; }
.rc-total .rc-line .v { color: var(--ink); font-size: 14.5px; }
.rc-total .rc-line.plus .v { color: var(--blue-ink); }
.rc-grand { margin-top: 10px; padding: 12px 0 10px; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.rc-grand > span { font-family: var(--mono); font-weight: 800; font-size: 15px; letter-spacing: .12em; padding-bottom: 4px; }
.rc-grand > div { text-align: right; }
.rc-grand small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rc-grand b { font-family: var(--mono); font-size: clamp(22px, 6.4vw, 27px); font-weight: 800; letter-spacing: -0.03em; color: var(--blue); white-space: nowrap; }
.rc-grand.is-due b { color: var(--red); }
.rc-foot { margin-top: 22px; text-align: center; color: var(--muted); }
.rc-bar { color: var(--ink); }
.rc-bar svg { display: block; width: 78%; max-width: 260px; height: 44px; margin: 0 auto; }
.rc-bar span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .3em; padding-left: .3em; margin-top: 4px; color: var(--ink-2); }
.rc-site { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-top: 10px; letter-spacing: .04em; }
.rc-foot p { font-size: 12.5px; line-height: 1.6; margin-top: 6px; }
@media (max-width: 380px) { .receipt-paper { padding-left: 16px; padding-right: 16px; } .rc-line { font-size: 15px; } }

.sticky-result {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--ink); color: var(--card);
  border-radius: 16px; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: 14px;
  transform: translateY(140%); transition: transform .25s; text-decoration: none;
}
.sticky-result.show { transform: none; }
.sticky-result strong { font-size: 18px; }
@media (min-width: 920px) { .sticky-result { display: none; } }

.page { padding-block: var(--s7) var(--s9); }
.article h1 { font-size: clamp(26px, 6vw, 32px); font-weight: 800; }
.article .meta { margin-top: var(--s3); font-size: 14px; color: var(--muted); }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: 21px; font-weight: 800; margin: var(--s8) 0 var(--s3); }
.prose h3 { font-size: 17px; font-weight: 700; margin: var(--s6) 0 var(--s2); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s1); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--s4) 0 var(--s6); display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; white-space: nowrap; }
.prose th { background: var(--bg); font-weight: 700; }
.prose .callout { background: var(--blue-soft); border-radius: var(--r-sm); padding: var(--s4); margin: var(--s6) 0; font-size: 15.5px; }
.cta-card { margin-top: var(--s7); background: var(--blue); color: #fff; border-radius: var(--r); padding: var(--s6) var(--s5); }
.cta-card b { font-size: 19px; display: block; }
.cta-card span { opacity: .85; font-size: 14px; }
.cta-card .btn { background: #fff; color: var(--blue-ink); margin-top: var(--s4); }
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 var(--s3); }
.breadcrumb a { text-decoration: none; }

.hero { padding-block: var(--s8) var(--s6); }
.hero .title { font-size: clamp(30px, 7.5vw, 42px); }
.hero .btn { max-width: 320px; margin-top: var(--s6); }
.list-card { background: var(--card); border-radius: var(--r); padding: var(--s1) var(--s5); margin-top: var(--s3); }
.list-card a { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s4) 0; text-decoration: none; }
.list-card a + a { border-top: 1px solid var(--line); }
.list-card .t { font-weight: 700; font-size: 16.5px; }
.list-card .d { display: block; font-size: 14.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.list-card .go { color: #c4cad1; font-size: 20px; flex: none; }
.sec-title { font-size: 20px; font-weight: 800; margin: var(--s8) 0 0; }

.ad-slot:empty { display: none; }
.ad-slot { margin: var(--s3) 0; min-height: 100px; }

.foot { padding-block: var(--s7) var(--s9); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-bottom: var(--s3); }
.foot a { text-decoration: none; color: var(--ink-2); }

/* 핵심 숫자 표: 모바일에서 가로 스크롤 없이 줄바꿈 */
.prose table.kv { display: table; table-layout: fixed; }
.prose table.kv th, .prose table.kv td { white-space: normal; vertical-align: top; word-break: keep-all; overflow-wrap: anywhere; }
.prose table.kv td:first-child { font-weight: 700; width: 36%; }
.prose .meta { font-size: 14px; color: var(--muted); }

/* 계산기 공통: 셀렉트·홈 이동 박스·월급→시급 결과 */
.input select { width: 100%; border: 0; border-radius: var(--r-sm); background: var(--bg); padding: 14px; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); appearance: none; }
.input select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); background: var(--card); }
.input input[type="date"] { padding-right: 14px; }
.home-box { margin-top: var(--s4); }
.home-box span { display: block; margin-top: 6px; line-height: 1.55; }
.rev-out { margin: 0; padding: 14px 0; font-weight: 700; color: var(--blue-ink); min-height: 48px; }
.input input[type="date"] { text-align: left; }

/* ===== 계산기 전환 탭 ===== */
.calc-tabs { background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid rgba(0,0,0,.05); }
.calc-tabs .wrap { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; -webkit-mask-image: linear-gradient(90deg,#000 92%,transparent); mask-image: linear-gradient(90deg,#000 92%,transparent); }
.calc-tabs .wrap::-webkit-scrollbar { display: none; }
.calc-tabs-label { font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; margin-right: 4px; flex: none; }
.calc-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--bg); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.calc-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.calc-tabs .ci { border-radius: 6px; }
.list-card .ci { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.list-card a.has-ic { justify-content: flex-start; }
.list-card a.has-ic .t { flex: 1; }

/* ===== 절제된 반응 효과 ===== */
:root { --ease: cubic-bezier(.22,.61,.36,1); }
.btn { transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s ease, filter .25s ease; }
.btn:active { transform: scale(.98); transition-duration: .08s; }
.btn:focus-visible, .list-card a:focus-visible, .calc-tabs a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.list-card { padding: 6px; }
.list-card a { position: relative; transition: background-color .3s ease; padding: var(--s4) 14px; border-radius: 14px; }
.list-card a + a { border-top: 0; }
.list-card a + a::before { content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; background: var(--line); transition: opacity .3s ease; }
.list-card a:hover::before, .list-card a:hover + a::before { opacity: 0; }
.list-card .go { transition: transform .35s var(--ease), color .25s ease; }
.list-card .t { transition: color .25s ease; }
.prose a:not(.btn) { color: var(--blue-ink); text-decoration: none; background: linear-gradient(currentColor,currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
.acc summary { transition: background-color .25s ease; border-radius: 12px; }
.nav a { transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(49,130,246,.65); }
  .cta-card .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
  .btn-ghost:hover, .btn-kakao:hover { filter: brightness(.97); }
  .list-card a:hover { background: #f7f9fb; }
  .list-card a:hover .go { transform: translateX(4px); color: var(--blue); }
  .list-card a:hover .t { color: var(--blue-ink); }
  .calc-tabs a:not([aria-current]):hover { background: var(--blue-soft); color: var(--blue-ink); }
  .prose a:not(.btn):hover { background-size: 0 1px; background-position: 100% 100%; }
  .acc summary:hover { background: var(--bg); }
  .nav a:hover { color: var(--ink); }
}
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
html { scroll-padding-top: 72px; }
.hero-ic { display: block; width: 56px; height: 56px; margin: var(--s2) 0 var(--s1); filter: drop-shadow(0 8px 14px rgba(49,130,246,.18)); }
.list-card a.has-ic { gap: var(--s4); }
.list-card a.has-ic .ci { transition: transform .45s var(--ease); }
@media (hover: hover) and (pointer: fine) { .list-card a.has-ic:hover .ci { transform: translateY(-2px) rotate(-4deg); } }
.callout.summary b { display: block; font-size: 14px; color: var(--blue-ink); margin-bottom: 4px; }
.callout.summary p { margin: 0; }
.callout.summary { background: var(--blue-soft); border-radius: var(--r-sm); padding: var(--s4); margin-top: var(--s5); font-size: 15.5px; line-height: 1.7; }

/* ===== 디자인 점검 수정 ===== */
/* 계산기 아래 설명 카드: 위 계산기 폭과 맞추고 글줄은 읽기 좋은 길이로 */
.calc-after .prose > * { max-width: 720px; }
.calc-after .prose > table.kv { max-width: 720px; }
/* PC 계산기 페이지: 결과 카드 뒤로 배경 그래픽이 비치지 않게 */
@media (min-width: 920px) { body:has(.calc-page)::after { display: none; } }
/* 월급→시급 결과 빈 상태 */
.rev-out:empty::before { content: "월급을 넣으면 여기 나와요"; color: #9aa3ad; font-weight: 500; }
/* 빈 결과 카드 높이 줄이기 */
.result.is-empty .ledger, .result.is-empty #r-notes:empty { display: none; }
/* 히어로 아이콘과 kicker 간격 */
.page-hero .hero-ic + .kicker { margin-top: var(--s2); }
/* 홈 목록 제목 크기 정리 */
.list-card a.has-ic .t { font-size: 16.5px; }
.list-card a.has-ic .d { font-size: 14px; }

/* ===== 연말정산 간단 계산 ===== */
.quick-cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; margin-top: var(--s4); padding: 14px 16px; border: 1px solid #d6e6ff; border-radius: 16px; background: rgba(255,255,255,.9); text-align: left; font: inherit; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s ease; }
.quick-cta .qc-t { font-weight: 800; font-size: 16px; color: var(--ink); }
.quick-cta .qc-s { grid-column: 1; font-size: 14px; color: var(--muted); }
.quick-cta .qc-go { grid-column: 2; grid-row: 1 / 3; font-weight: 700; font-size: 14.5px; color: #fff; background: var(--blue); padding: 10px 14px; border-radius: 12px; white-space: nowrap; transition: transform .35s var(--ease); }
.quick-cta:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .quick-cta:hover { transform: translateY(-2px); border-color: #b9d6ff; box-shadow: 0 12px 28px -16px rgba(49,130,246,.55); } .quick-cta:hover .qc-go { transform: translateX(3px); } }
.quick { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 24px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(25,31,40,.35); overflow: auto; }
.quick::backdrop { background: rgba(25,31,40,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.quick[open] { animation: q-in .35s var(--ease); }
@keyframes q-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.q-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; font-size: 15px; color: var(--ink-2); }
.q-close { border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background-color .2s ease; }
.q-close:hover { background: var(--line); }
.q-body { padding: 14px 20px 22px; }
.q-progress { height: 4px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.q-progress span { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .45s var(--ease); }
.q-step { margin: 16px 0 4px; font-size: 13.5px; font-weight: 700; color: var(--blue-ink); }
.q-title { font-size: 22px; line-height: 1.4; margin: 0; letter-spacing: -0.02em; }
.q-help { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.q-opt { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 15px 12px; font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: center; transition: border-color .2s ease, background-color .2s ease, transform .3s var(--ease); }
.q-opt.on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.q-opt:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .q-opt:hover { border-color: #b9d6ff; background: #f7fbff; } }
.q-own { margin-top: 16px; display: grid; gap: 8px; }
.q-own label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.q-nav { display: flex; justify-content: space-between; margin-top: 16px; }
.q-nav .linkbtn { font-size: 14.5px; color: var(--muted); }
.q-amt { color: var(--blue); }
.q-amt.due { color: var(--red); }
.q-assume { margin: 16px 0 18px; padding: 14px 16px 14px 32px; background: var(--bg); border-radius: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.q-assume li + li { margin-top: 4px; }
html.q-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .quick[open] { animation: none; } }
.q-nav .linkbtn { text-decoration: none; }

.shared-note { background: var(--blue-soft); color: var(--blue-ink); font-size: 14.5px; font-weight: 600; line-height: 1.55; padding: 12px 16px; border-radius: var(--r-sm); scroll-margin-top: 72px; }

/* ---------- 가독성 패스 ---------- */
:root { interpolate-size: allow-keywords; }
body { overflow-wrap: break-word; }
h1, h2, h3, .rc-line .t, .q-body h3 { text-wrap: balance; }
p, li, dd, td, .dd, summary { text-wrap: pretty; }
.prose { line-height: 1.8; }
.prose > p, .prose > ul, .prose > ol { max-width: 40em; }

/* 제목 아이콘 · 번호 배지 */
.prose h2.ic-h, .prose h2.num-h { display: flex; align-items: center; gap: 10px; }
.prose h2 .h-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); }
.prose h2 .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.prose h2.num-h { align-items: flex-start; }
.prose h2.num-h .num { margin-top: 1px; }

/* 목록 점 */
.prose ul { padding-left: 1.2em; }
.prose ul > li::marker { color: var(--blue); }

/* 계산 단계 카드 */
.prose ol.steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 10px; max-width: none; }
.prose ol.steps > li { counter-increment: st; position: relative; margin: 0; padding: 14px 16px 14px 56px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15.5px; line-height: 1.6; }
.prose ol.steps > li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.prose ol.steps > li > strong:first-child { color: var(--ink); }
.prose ol.steps > li > span { display: block; color: var(--ink-2); margin-top: 2px; }

/* 핵심 숫자 표 */
.prose table.kv { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.prose table.kv thead th { background: var(--ink); color: #fff; font-size: 14px; }
.prose table.kv tbody tr:nth-child(even) td { background: var(--soft); }
.prose table.kv td:last-child { font-variant-numeric: tabular-nums; }

/* 핵심 요약 박스 */
.prose .callout.summary b, .callout.summary b { display: flex; align-items: center; gap: 6px; }
.callout.summary b::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.4 1 1.1 1 1.8V16h5v-.3c0-.7.4-1.4 1-1.8A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.4 1 1.1 1 1.8V16h5v-.3c0-.7.4-1.4 1-1.8A6 6 0 0 0 12 3z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* 자주 묻는 질문 펼침 */
.faq-list { border-top: 1px solid var(--line); margin: var(--s3) 0 var(--s6); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 26px minmax(0,1fr) 20px; gap: 12px; align-items: start; padding: 16px 4px; font-size: 16.5px; font-weight: 700; line-height: 1.5; border-radius: 10px; transition: background-color .2s var(--ease), color .2s var(--ease); }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq .q { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 800; margin-top: 0; }
details.faq .chev { width: 20px; height: 20px; margin-top: 3px; background: var(--muted); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .3s var(--ease); }
details.faq[open] .chev { transform: rotate(180deg); background: var(--blue-ink); }
details.faq[open] > summary .qt { color: var(--blue-ink); }
details.faq .a { padding: 0 4px 18px 42px; font-size: 15.5px; color: var(--ink-2); line-height: 1.75; }
details.faq .a p { margin: 0; }
details.faq::details-content { block-size: 0; overflow: hidden; transition: block-size .32s var(--ease), content-visibility .32s allow-discrete; }
details.faq[open]::details-content { block-size: auto; }
@media (hover: hover) { details.faq > summary:hover { background: var(--soft); } details.faq > summary:hover .q { background: var(--blue); color: #fff; } }
details.faq > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { details.faq::details-content, details.faq .chev { transition: none; } }

/* ---------- 계산기 탭 더보기 · 홈 더보기 ---------- */
.calc-tabs a.more { background: transparent; border: 1px dashed #c5cad1; color: var(--ink-2); }
.calc-tabs a.more span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.list-card a.more-row .t { color: var(--blue-ink); font-weight: 700; }
.list-card a.more-row .d { font-weight: 500; }
.ci-ph { display: inline-block; flex: none; border-radius: 28%; background: linear-gradient(145deg, #dbe9ff, #b9d4ff); }

/* 대출 상환표 */
.sched-wrap { margin-top: var(--s3); }
.sched-wrap:empty { display: none; }
table.kv.sched { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.kv.sched th, table.kv.sched td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.kv.sched th:first-child, table.kv.sched td:first-child { text-align: left; color: var(--muted); }
table.kv.sched th { color: var(--muted); font-weight: 700; font-size: 12.5px; }

/* 체크리스트 */
.ck-card { padding: var(--s5); }
.ck-progress { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; }
.ck-bar { flex: 1; height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.ck-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .4s var(--ease); }
.ck-progress b { font-variant-numeric: tabular-nums; font-size: 15px; min-width: 52px; text-align: right; }
.ck-group { margin-top: var(--s6); }
.ck-group h2 { font-size: 15px; font-weight: 800; color: var(--ink-2); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.ck-item { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 12px; padding: 14px 2px; cursor: pointer; border-bottom: 1px solid var(--line); align-items: start; }
.ck-item input { position: absolute; opacity: 0; pointer-events: none; }
.ck-item .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #c5cad1; display: grid; place-items: center; transition: background-color .2s var(--ease), border-color .2s var(--ease); margin-top: 1px; }
.ck-item input:checked + .box { background: var(--blue); border-color: var(--blue); }
.ck-item input:checked + .box::after { content: ""; width: 12px; height: 7px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ck-item input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.ck-item .txt b { display: block; font-size: 16px; line-height: 1.45; transition: color .2s; }
.ck-item .txt span { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.ck-item .txt a { color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.ck-item input:checked ~ .txt b { color: var(--muted); text-decoration: line-through; text-decoration-color: #c5cad1; }

/* 일정표 타임라인 */
.tl { list-style: none; padding: 0; margin: var(--s5) 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 70px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 22px; padding: 0 0 var(--s5); position: relative; }
.tl-item::before { content: ""; position: absolute; left: 65px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid #c5cad1; }
.tl-item.next::before, .tl-item.now::before { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.tl-date { text-align: right; padding-top: 1px; }
.tl-date b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.tl-date .dday { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--muted); }
.tl-item.next .dday, .tl-item.now .dday { color: #fff; background: var(--blue); padding: 2px 7px; border-radius: 6px; }
.tl-body { background: var(--card); border-radius: var(--r-sm); padding: 14px 16px; box-shadow: 0 1px 3px rgba(25,31,40,.06); }
.tl-body h2 { font-size: 17px; font-weight: 800; }
.tl-body h2 em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg); padding: 2px 6px; border-radius: 6px; vertical-align: 2px; margin-left: 4px; }
.tl-body p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.tl-add { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--blue-ink); text-decoration: none; }
.tl-item.past { opacity: .5; }
@media (max-width: 380px) { .tl::before { left: 58px; } .tl-item { grid-template-columns: 50px minmax(0,1fr); gap: 20px; } .tl-item::before { left: 53px; } }
.tl-date small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* 탭: 상위 4개 + 더보기가 한 줄에 다 보이게 */
.calc-tabs .wrap { -webkit-mask-image: none; mask-image: none; }
.calc-tabs a.more { background: #fff; border: 1px solid var(--line); color: var(--blue-ink); font-weight: 700; }
@media (max-width: 560px) {
  .calc-tabs-label { display: none; }
  .calc-tabs .wrap { gap: 4px; overflow: visible; justify-content: space-between; }
  .calc-tabs a { padding: 7px 9px; font-size: 13.5px; gap: 0; letter-spacing: -0.02em; }
  .calc-tabs a .ci { display: none; }
  .calc-tabs a.more span { display: none; }
}
@media (max-width: 380px) { .calc-tabs a { padding: 7px 7px; font-size: 13px; } .calc-tabs .wrap { gap: 3px; } }
.prose .table-scroll table.kv td:first-child { width: 30%; }
.prose table.kv small.src { display: block; margin-top: 4px; color: var(--muted, #6b7280); font-size: .88em; }
/* 하단 법적 고지 링크: 한 줄, 작은 글씨 */
.foot .legal-links { font-size: 12.5px; margin: 0 0 var(--s3); color: var(--muted); }
.foot .legal-links a { color: var(--ink-2); }
/* 개인정보처리방침·이용약관 본문: 꾸밈 없는 작은 문서 */
.legal .card { background: none; border: 0; box-shadow: none; padding: 0; }
.legal h1 { font-size: 22px; }
.legal .prose { font-size: 13.5px; line-height: 1.75; color: var(--ink-2); margin-top: 16px !important; }
.legal .prose h2 { font-size: 15px; margin: 28px 0 8px; }
.legal .prose h2.ic-h, .legal .prose h2.num-h { display: block; }
.legal .prose h2 svg { display: none; }
.legal .prose h2 .num { display: inline; background: none; color: inherit; width: auto; height: auto; padding: 0; margin: 0; font: inherit; box-shadow: none; border: 0; }
.legal .prose h2 .num::after { content: '. '; }
.legal .prose li { margin-block: 4px; }
.legal .prose table { font-size: 13px; }
/* 하단 링크 한 줄: 점으로 구분 */
.foot nav.foot-links { gap: 6px 16px; font-size: 12.5px; flex-wrap: wrap; }
.foot nav.foot-links a + a::before { content: none; }
/* 이어서 계산해 보기 */
.next-calcs { padding: 18px 18px 8px; }
.next-calcs h2 { font-size: 15px; margin: 0 0 6px; color: var(--ink-2); }
.next-calcs .nc-list a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.next-calcs .nc-list a:first-child { border-top: 0; }
.next-calcs .nc-list .t { flex: 1; font-weight: 700; font-size: 15px; line-height: 1.4; }
.next-calcs .nc-list .d { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.next-calcs .nc-list .go { color: var(--muted); font-size: 20px; }
.next-calcs .nc-list a:hover .t { color: var(--blue-ink); }

/* 메인 일정: D-day + 핵심 날짜 4개 + (PC) 작은 달력 */
.home-cal { display: grid; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 18px; margin-bottom: var(--s6); }
@media (min-width: 720px) { .home-cal { grid-template-columns: 1fr 248px; align-items: start; } }
.home-cal p { margin: 0; }
.hc-k { font-size: 14px; color: var(--muted); }
.hc-dday { display: flex; align-items: baseline; gap: 10px; margin-top: 2px !important; }
.hc-dday strong { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }
.hc-dday span { font-size: 14px; color: var(--muted); }
.hc-list { list-style: none; margin: 16px 0 0; padding: 0; }
.hc-list li { display: grid; grid-template-columns: 104px 1fr auto; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.hc-list li.past { display: none; }
.hc-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.hc-t { color: var(--ink); }
.hc-dd { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.hc-list li.next .hc-t, .hc-list li.next .hc-dd { color: var(--blue); font-weight: 700; }
.hc-more { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--muted); text-decoration: none; }
.hc-more::after { content: ' ›'; }
.hc-more:hover { color: var(--ink); }
.hc-cal { display: none; }
@media (min-width: 720px) { .hc-cal { display: block; } }
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hc-head b { font-size: 14px; font-weight: 700; }
.hc-nav { border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; }
.hc-nav:hover:not(:disabled) { background: #f2f4f6; }
.hc-nav:disabled { opacity: .25; cursor: default; }
.hc-week, .hc-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.hc-week span { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.hc-grid span { position: relative; height: 32px; line-height: 32px; font-size: 13px; color: var(--ink-2); }
.hc-grid span.today { font-weight: 800; color: var(--ink); }
.hc-grid span.has { color: var(--blue); font-weight: 700; }
.hc-grid span.has::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
/* 메인 계산기 검색 */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-home .lede { margin-bottom: 18px; }
.calc-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 520px; height: 54px; padding: 0 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 4px 16px rgba(20, 40, 80, .06); color: var(--muted); }
.calc-search:focus-within { border-color: var(--blue); }
.calc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); height: 100%; }
.calc-search input::-webkit-search-cancel-button { display: none; }
.cs-list { position: absolute; z-index: 30; left: -1.5px; right: -1.5px; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 40, 80, .12); }
.cs-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.cs-list li[aria-selected] a, .cs-list a:hover { background: #f2f6fd; }
.cs-list .cs-doc { width: 28px; height: 28px; border-radius: 8px; background: #eef3fb; flex: none; }
.cs-list .cs-none { padding: 12px 10px; font-size: 14px; color: var(--muted); }
.cs-list .cs-none a { display: inline; padding: 0; color: var(--blue-ink); }
/* 더보기 줄: 목록과 이어지되 구분되게 (옅은 바탕, 가운데 정렬, 파란 글자) */
.list-card .more-row { display: flex; width: 100%; justify-content: center; align-items: center; gap: 6px; margin-top: 4px; padding: 13px 14px; border: 0; border-radius: 12px; background: #f3f7fd; font: inherit; cursor: pointer; text-decoration: none; text-align: center; }
.list-card .more-row .t { flex: none !important; font-size: 15px; font-weight: 700; color: var(--blue-ink); }
.list-card .more-row .d { display: none; }
.list-card .more-row .go { color: var(--blue-ink); font-size: 16px; opacity: .7; }
.list-card .more-row:hover { background: #eaf2ff; }
.list-card .more-row[hidden] { display: none; }
.list-card a[hidden] { display: none; }
/* 가이드 주제 필터 */
.g-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.g-chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.g-chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.g-chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.g-chip.on span { color: rgba(255,255,255,.7); }
/* 메인: 연말정산 시즌 대표 버튼 */
.ye-cta { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 0 0 12px; padding: 14px 18px; border-radius: 16px; background: var(--blue); color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(49, 130, 246, .25); transition: transform .15s ease, box-shadow .15s ease; }
.ye-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(49, 130, 246, .32); }
.ye-cta .ci { width: 40px; height: 40px; background: #fff; border-radius: 12px; padding: 4px; flex: none; }
.ye-cta .ye-t { flex: 1; display: grid; gap: 1px; }
.ye-cta b { font-size: 17px; }
.ye-cta .ye-t span { font-size: 13px; opacity: .85; }
.ye-cta .ye-go { font-size: 22px; opacity: .8; }

/* guide visuals */
.prose dl.keyfigs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: var(--s5) 0 var(--s6); }
.prose dl.keyfigs > div { background: var(--blue-soft); border-radius: var(--r-sm); padding: 14px 16px; }
.prose dl.keyfigs dt { font-size: 13px; color: var(--ink-2); font-weight: 600; margin: 0; order: 2; }
.prose dl.keyfigs dd { margin: 0 0 2px; font-size: 22px; font-weight: 800; color: var(--blue-ink); letter-spacing: -0.02em; }
.prose dl.keyfigs > div { display: flex; flex-direction: column; }
.prose dl.keyfigs dd { order: 1; }
.prose figure.viz { margin: var(--s5) 0 var(--s6); padding: 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.prose figure.viz figcaption { font-size: 13.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.6; }
.viz .bar { display: flex; height: 28px; border-radius: 10px; overflow: hidden; font-size: 13px; font-weight: 700; }
.viz .bar > span { display: grid; place-items: center; padding: 0 6px; text-align: center; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.viz .bar .off { background: #e9edf3; color: var(--ink-2); }
.viz .bar .lo { background: #b9d3fb; color: #0b3b85; }
.viz .bar .hi { background: var(--blue); color: #fff; }
.viz .bar .acc { background: #ffd66b; color: #5a4300; }
.viz .scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3, #8b95a1); margin-top: 6px; }
.viz .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.viz .split > div { background: var(--soft); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; line-height: 1.55; }
.viz .split b { display: block; color: var(--blue-ink); margin-bottom: 4px; font-size: 14px; }
.prose figure.hero-img { margin: 0 0 var(--s5); }
.prose figure.hero-img img, .article .hero-img img { width: 100%; height: auto; border-radius: var(--r-sm); display: block; background: #eef4ff; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 520px) { .viz .split { grid-template-columns: 1fr; }
  .prose dl.keyfigs { grid-template-columns: 1fr; gap: 6px; }
  .prose dl.keyfigs > div { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .prose dl.keyfigs dd { font-size: 18px; min-width: 38%; margin: 0; }
  .prose dl.keyfigs dt { order: 2; } }
.viz .legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--ink-2); }
.viz .legend li { margin: 0; display: flex; align-items: center; gap: 6px; }
.viz .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz .legend .off { background: #e9edf3; } .viz .legend .lo { background: #b9d3fb; } .viz .legend .hi { background: #3182f6; }
.prose table.kv.c3 td:first-child { width: 24%; }
.article figure.hero-img { margin: var(--s4) 0 0; }
.list-card a.has-th { gap: 14px; }
.list-card .g-th { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; background: #eef4ff; }
.list-card a.has-th { justify-content: flex-start; } .list-card a.has-th .t { flex: 1; }
/* 홈: 오른쪽 위 배경 그림 대신 캐릭터 셋 */
/* 홈 히어로 카드 + 걸터앉은 캐릭터 */
body.home::after { display: none; }
.hero-home { position: relative; margin-top: 104px; padding: 36px 32px 30px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(circle at 100% 100%, rgba(255,255,255,.16) 0 120px, transparent 121px),
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.10) 0 90px, transparent 91px),
    linear-gradient(140deg, #2b7cf4 0%, #3d8bfa 55%, #63a4ff 100%);
  box-shadow: 0 24px 48px -24px rgba(29, 99, 214, .55); }
.hero-home::before { content: ""; position: absolute; right: 22px; top: -96px; width: 260px; height: 113px; pointer-events: none;
  background: url("/assets/mascots-sit.webp") no-repeat center top / contain; filter: drop-shadow(0 6px 8px rgba(20, 60, 140, .18)); }
.hero-home .title { color: #fff; }
.hero-home .lede { color: rgba(255,255,255,.86); margin-bottom: 22px; }
.hero-home .ye-cta { background: #fff; color: var(--ink); box-shadow: 0 10px 22px -10px rgba(10, 40, 100, .45); max-width: none; }
.hero-home .ye-cta:hover { box-shadow: 0 12px 26px -10px rgba(10, 40, 100, .5); }
.hero-home .ye-cta .ci { background: var(--blue-soft); }
.hero-home .ye-cta b { color: var(--ink); }
.hero-home .ye-cta .ye-t span { color: var(--muted); opacity: 1; }
.hero-home .ye-cta .ye-go { color: var(--blue); opacity: 1; }
.hero-home .calc-search { max-width: none; border-color: transparent; background: rgba(255,255,255,.96); box-shadow: none; }
.hero-home .calc-search:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
@media (max-width: 720px) {
  .hero-home { margin-top: 84px; padding: 28px 20px 22px; border-radius: 24px; }
  .hero-home::before { width: 190px; height: 83px; top: -70px; right: 14px; }
}
/* 홈 배경: 하늘색 + 모눈 + 동전 세 개 */
body.home::before { height: 640px; background:
  linear-gradient(180deg, rgba(242,244,246,0) 45%, var(--bg) 100%),
  url("/assets/coin.svg") 8% 110px / 40px no-repeat,
  url("/assets/coin.svg") 90% 90px / 32px no-repeat,
  url("/assets/coin.svg") 84% 470px / 22px no-repeat,
  linear-gradient(rgba(49,130,246,.08) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(49,130,246,.08) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(180deg, #d6e8ff 0%, #e9f2ff 55%, var(--bg) 100%); }
@media (max-width: 720px) { body.home::before { background:
  linear-gradient(180deg, rgba(242,244,246,0) 45%, var(--bg) 100%),
  url("/assets/coin.svg") 5% 70px / 26px no-repeat,
  linear-gradient(rgba(49,130,246,.08) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(49,130,246,.08) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(180deg, #d6e8ff 0%, #e9f2ff 55%, var(--bg) 100%); } }

/* 지원금셈 (/benefit/) — 같은 디자인 시스템, 강조색만 바꿔 월급셈과 구분 */
body.t-benefit { --blue: var(--b-accent, #00a661); --blue-ink: var(--b-ink, #008a52); --blue-soft: var(--b-soft, #e5f7ee); }
body.t-benefit::before {
  background:
    linear-gradient(180deg, rgba(242,244,246,0) 0%, var(--bg) 100%),
    linear-gradient(var(--b-grid, rgba(0,166,97,.07)) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--b-grid, rgba(0,166,97,.07)) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, var(--b-sky, #d8f3e6) 0%, var(--b-sky2, #e9f8f0) 45%, var(--bg) 100%);
}
body.t-benefit::after { display: none; }
/* 월급셈 메인의 지원금셈 바로가기 */
.bn-cta { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--card); text-decoration: none; border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.bn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .06); }
.bn-cta .ci { width: 40px; height: 40px; flex: none; }
.bn-cta .t { flex: 1; font-weight: 700; font-size: 15px; color: var(--ink); }
.bn-cta .go { flex: none; font-size: 14px; font-weight: 700; color: #00a661; white-space: nowrap; }

/* 선택칸: 기본 select 대신 버튼 묶음·드롭다운 (assets/select.js) */
.input select.sel-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: var(--r-sm); }
.seg button { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; word-break: keep-all; }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 50px; padding: 13px 14px; border: 0; border-radius: var(--r-sm); background: var(--bg); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.dd-btn .dd-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn svg { flex: none; color: var(--muted); transition: transform .15s; }
.dd.open .dd-btn, .dd-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--blue); background: var(--card); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 100%; max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.12); outline: none; }
.dd.up .dd-list { top: auto; bottom: calc(100% + 6px); }
.dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; word-break: keep-all; }
.dd-list li svg { flex: none; color: var(--blue); visibility: hidden; }
.dd-list li.on { background: var(--blue-soft); }
.dd-list li[aria-selected="true"] { font-weight: 700; color: var(--blue-ink); }
.dd-list li[aria-selected="true"] svg { visibility: visible; }
.bn-cta.to-w .go { color: #3182f6; }

/* 날짜 선택 (assets/datepick.js) */
.input.has-dp .dp-text { padding-right: 52px; text-align: left; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.input.has-dp .dp-text.bad { box-shadow: inset 0 0 0 2px #f04452; }
.dp-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.dp-btn:hover, .dp-open .dp-btn { color: var(--blue); background: var(--blue-soft); }
.dp-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.dp-pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); width: 320px; max-width: calc(100vw - 32px); padding: 14px 14px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(15,23,42,.14); font-family: inherit; }
.dp-pop.up { top: auto; bottom: calc(100% + 6px); }
.field:nth-child(2n) .dp-pop:not(.sheet) { left: auto; right: 0; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.dp-title { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 8px; margin-left: -8px; border-radius: 8px; font: inherit; font-size: 17px; font-weight: 800; color: var(--ink); cursor: pointer; }
.dp-title:hover { background: var(--bg); }
.dp-title svg { color: var(--muted); }
.dp-title-s { cursor: default; }
.dp-title-s:hover { background: none; }
.dp-nav { display: flex; gap: 2px; }
.dp-nav button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink-2, #4e5968); cursor: pointer; }
.dp-nav button:hover { background: var(--bg); }
.dp-nav button:disabled { opacity: .3; cursor: default; background: none; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-wd { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 0 6px; }
.dp-day { aspect-ratio: 1; width: 100%; max-height: 42px; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-day.sun, .dp-wd.sun { color: #f04452; }
.dp-day:hover { background: var(--bg); }
.dp-day.today { font-weight: 800; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.dp-day[aria-pressed="true"] { background: var(--blue); color: #fff; font-weight: 700; box-shadow: none; }
.dp-day:disabled { color: #c9cfd6; cursor: default; background: none; }
.dp-pop button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dp-mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0; }
.dp-cell { height: 48px; border: 0; border-radius: 12px; background: var(--bg); font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.dp-cell:hover { background: var(--blue-soft); color: var(--blue-ink); }
.dp-cell[aria-pressed="true"] { background: var(--blue); color: #fff; }
.dp-cell:disabled { opacity: .35; cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp-foot button { border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue); cursor: pointer; }
.dp-foot .dp-clear { color: var(--muted); }
.dp-foot button:hover { background: var(--bg); }
.dp-sheet-bar { display: none; }
.dp-back { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.36); }
.dp-pop.sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 22px 22px 0 0; border: 0; padding: 10px 18px calc(14px + env(safe-area-inset-bottom)); animation: dp-up .22s ease; }
.dp-pop.sheet .dp-sheet-bar { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.dp-pop.sheet .dp-day { max-height: 48px; font-size: 16px; }
@keyframes dp-up { from { transform: translateY(24px); opacity: .6; } }
html.dp-lock { overflow: hidden; }

/* 체크박스: 기본 모양 대신 둥근 박스 */
.check { gap: 12px; padding: 10px 0; color: var(--ink); line-height: 1.45; -webkit-tap-highlight-color: transparent; }
.check input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 2px solid #c5cad1; border-radius: 8px; background: var(--card) center / 14px 14px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
.check:hover input:not(:checked) { border-color: #9aa3ad; }
.check input:checked { background-color: var(--blue); border-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4 5.6 10.4 11.5 3.9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.check span { font-weight: 500; }

/* 지원금셈 메인: 초록 히어로 카드 + 고양이 둘 */
body.t-benefit .hero-home { margin-top: 140px;
  background:
    radial-gradient(circle at 100% 100%, rgba(255,255,255,.16) 0 120px, transparent 121px),
    radial-gradient(circle at 0% 0%, rgba(255,255,255,.10) 0 90px, transparent 91px),
    linear-gradient(140deg, #009a5a 0%, #0bb36c 55%, #3fcb8c 100%);
  box-shadow: 0 24px 48px -24px rgba(0, 130, 75, .55); }
body.t-benefit .hero-home::before { width: 200px; height: 154px; top: -138px; right: 24px;
  background-image: url("/assets/benefit-cats.webp"); filter: drop-shadow(0 6px 8px rgba(0, 90, 50, .18)); }
@media (max-width: 720px) {
  body.t-benefit .hero-home { margin-top: 118px; }
  body.t-benefit .hero-home::before { width: 150px; height: 116px; top: -104px; right: 14px; }
}

/* 클래스 없는 본문 표: 모바일에서 잘리지 않게 줄바꿈 */
.prose table:not([class]) { display: table; table-layout: auto; }
.prose table:not([class]) th, .prose table:not([class]) td { white-space: normal; word-break: keep-all; overflow-wrap: anywhere; vertical-align: top; }
@media (max-width: 480px) { .prose table:not([class]) th, .prose table:not([class]) td { padding: 10px 8px; font-size: 14.5px; } }

.bn-cta.to-car .go { color: #f2650a; }
.brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sems { display: flex; align-items: center; gap: 4px; }
.sem { display: flex; align-items: center; gap: 0; height: 26px; padding: 2px; border-radius: 9px; text-decoration: none; color: var(--ink-2); opacity: .38; filter: grayscale(.4); transition: opacity .25s ease, filter .25s ease, background-color .25s ease, gap .3s var(--ease), padding .3s var(--ease); }
.sem i { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; background: var(--c); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; flex: none; transition: transform .3s var(--ease); }
.sem span { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 13.5px; font-weight: 700; opacity: 0; transition: max-width .35s var(--ease), opacity .25s ease; }
.sem:hover, .sem:focus-visible { opacity: 1; filter: none; background: color-mix(in srgb, var(--c) 10%, transparent); gap: 6px; padding-right: 9px; }
.sem:hover span, .sem:focus-visible span { max-width: 80px; opacity: 1; color: var(--c); }
.sem:hover i { transform: scale(1.06); }
.sem:active { opacity: 1; }
@media (max-width: 480px) { .brand-wrap { gap: 6px; } .sems { gap: 2px; } .sem i { width: 19px; height: 19px; font-size: 10.5px; border-radius: 6px; } }
