/* 유즈킷 금융 계산기 — 화면 스타일
   site-chrome.css(상단·하단 껍데기)와 yuzu-theme.css(유자 팔레트) 뒤에 불러온다.
   외부 폰트·이미지 요청 없음. */

html { scroll-behavior: smooth; }
body.fin {
  background:
    radial-gradient(1100px 420px at 50% -120px, #fff6d8 0%, rgba(255, 246, 216, 0) 70%),
    var(--yz-bg);
  color: var(--yz-ink);
  font-family: var(--yz-font);
  -webkit-text-size-adjust: 100%;
}
.fin * { box-sizing: border-box; }
.fin .wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.fin a { color: var(--yz-yuzu-deep); }
.fin a:hover { color: var(--yz-yuzu-ink); }
.fin h1, .fin h2, .fin h3 { letter-spacing: -.025em; line-height: 1.22; }
.fin .muted { color: var(--yz-muted); }
.fin .tiny { font-size: .82rem; }
.fin [hidden] { display: none !important; }
.fin .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ───────── 상단 ───────── */
.fin .site-head { z-index: 80; }
.fin .brand-mark { background-image: url("/finance/assets/icon-192.png"); }
.fin .head-cta { white-space: nowrap; }
.fin .lang-note {
  background: #fff7d6; border-bottom: 1px solid var(--yz-line);
  font-size: .84rem; color: var(--yz-ink-2);
}
.fin .lang-note > * { max-width: 1140px; margin: 0 auto; padding: 8px 20px; display: block; }
.fin .lang-note a { font-weight: 800; }

/* ───────── 허브 히어로 ───────── */
.fin .hub-hero { padding: 46px 0 10px; text-align: center; }
.fin .hub-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 5px 12px; border-radius: 999px; font-size: .76rem; font-weight: 800;
  letter-spacing: .01em; color: var(--yz-yuzu-ink);
  background: var(--yz-lemon-soft); border: 1px solid #f0dfa8;
}
.fin .hub-hero h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); margin: 0 0 12px; }
.fin .hub-hero h1 .accent { color: var(--yz-yuzu-deep); }
.fin .hub-hero .lead {
  max-width: 40em; margin: 0 auto; font-size: 1.02rem; line-height: 1.7; color: var(--yz-ink-2);
}
.fin .hub-hero .trust-row { justify-content: center; margin: 16px 0 0; }
.fin .hub-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin: 22px 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--yz-muted);
}
.fin .hub-stats b { color: var(--yz-ink); }

/* ───────── 도구 카드 ───────── */
.fin .tool-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin: 26px 0 0; padding: 0; list-style: none;
}
.fin .tool-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 22px 20px; background: #fff; border: 1px solid var(--yz-line);
  border-radius: 18px; box-shadow: var(--yz-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fin .tool-card:hover { transform: translateY(-2px); border-color: #efd79b; box-shadow: var(--yz-shadow); }
.fin .tool-card:focus-within { border-color: var(--yz-yuzu); }
.fin .tool-card .icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; font-weight: 900; color: var(--yz-yuzu-ink);
  background: var(--yz-lemon-soft); border: 1px solid #f3e3ae;
}
.fin .tool-card h2 { margin: 0; font-size: 1.14rem; }
.fin .tool-card h2 a { color: inherit; text-decoration: none; }
.fin .tool-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.fin .tool-card p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--yz-muted); }
.fin .tool-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.fin .tool-card .tag {
  font-size: .72rem; font-weight: 700; color: var(--yz-yuzu-ink);
  background: #fff9e5; border: 1px solid #f3e6bc; border-radius: 999px; padding: 3px 8px;
}
.fin .tool-card .go { font-size: .84rem; font-weight: 800; color: var(--yz-yuzu-deep); }
.fin .tool-card.is-wide { grid-column: 1 / -1; }
.fin .tool-card.is-wide .inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }

/* ───────── 페이지 머리 ───────── */
.fin .page-head { padding: 34px 0 6px; text-align: left; }
.fin .page-head .eyebrow {
  display: block; margin: 0 0 8px; font-size: .76rem; font-weight: 800;
  color: var(--yz-yuzu-deep); letter-spacing: .02em;
}
.fin .page-head h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.fin .page-head h1 .h1-sub {
  display: block; margin-top: 8px; font-size: .95rem; font-weight: 500;
  line-height: 1.55; color: var(--yz-muted); letter-spacing: 0;
}
.fin .page-head .lead {
  max-width: 46em; margin: 0; font-size: .95rem; line-height: 1.7; color: var(--yz-ink-2);
}
.fin .page-head .trust-row { margin-top: 12px; }
.fin .page-head .meta-line { margin: 10px 0 0; font-size: .78rem; color: var(--yz-muted); }
.fin .page-head .meta-line b { color: var(--yz-ink-2); }

/* ───────── 계산기 카드 ───────── */
.fin .calc-wrap { padding-top: 16px; }
.fin .calc-card {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  background: #fff; border: 1px solid var(--yz-line); border-radius: 20px;
  box-shadow: var(--yz-shadow); overflow: hidden;
}
.fin .calc-form { padding: 24px 24px 20px; min-width: 0; }
.fin .form-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.fin .form-head h2 { margin: 0; font-size: 1rem; }
.fin .form-head .spacer { flex: 1; }
.fin .ab-toggle {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700;
  color: var(--yz-ink-2); background: #fbfaf6; border: 1px solid var(--yz-line);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.fin .ab-toggle input { accent-color: var(--yz-yuzu); width: 15px; height: 15px; }
.fin .scenarios { display: grid; grid-template-columns: 1fr; gap: 18px; }
.fin .scenarios.has-b { grid-template-columns: 1fr 1fr; }
.fin .scenario { min-width: 0; border: 0; padding: 0; margin: 0; }
.fin .scenario legend {
  float: left; width: 100%; margin: 0 0 8px; padding: 0;
  font-size: .76rem; font-weight: 900; letter-spacing: .04em; color: var(--yz-yuzu-deep);
}
.fin .scenario[data-scenario="B"] legend { color: #2b6cb0; }
.fin .scenario[data-scenario="B"] .field input,
.fin .scenario[data-scenario="B"] .field select { border-color: #cfe0f3; }
.fin .scenario .fields { display: grid; grid-template-columns: 1fr; gap: 12px; clear: both; }
.fin .field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fin .field > label, .fin .field > .label {
  font-size: .8rem; font-weight: 700; color: var(--yz-ink-2);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.fin .field .hint { font-weight: 500; font-size: .72rem; color: var(--yz-muted); }
.fin .field input, .fin .field select {
  width: 100%; min-width: 0; height: 42px; padding: 0 12px;
  font: inherit; font-size: .95rem; color: var(--yz-ink);
  background: #fff; border: 1px solid var(--yz-line-strong); border-radius: 10px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.fin .field input:focus, .fin .field select:focus {
  outline: none; border-color: var(--yz-yuzu);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, .18);
}
.fin .field input[type="date"] { padding: 0 10px; }
.fin .field .with-unit { position: relative; display: flex; align-items: center; }
.fin .field .with-unit input { padding-right: 46px; }
.fin .field .with-unit .unit {
  position: absolute; right: 12px; font-size: .78rem; color: var(--yz-muted); pointer-events: none;
}
.fin .field.is-error input { border-color: var(--yz-danger); }
.fin .field-error { font-size: .74rem; color: var(--yz-danger); }
.fin .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.fin .seg label {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 7px 12px; font-size: .82rem; font-weight: 700;
  color: var(--yz-ink-2); background: #fff; border: 1px solid var(--yz-line-strong);
  border-radius: 9px; cursor: pointer; text-align: center;
}
.fin .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fin .seg input:checked + span { color: var(--yz-yuzu-ink); }
.fin .seg label:has(input:checked) {
  background: var(--yz-lemon-soft); border-color: var(--yz-yuzu); color: var(--yz-yuzu-ink);
}
.fin .seg label:focus-within { outline: 3px solid rgba(242, 169, 0, .3); outline-offset: 1px; }
.fin .form-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
  padding-top: 16px; border-top: 1px dashed var(--yz-line);
}
.fin .btn { min-height: 40px; padding: 0 16px; }
.fin .btn-primary { background: var(--yz-yuzu); border-color: var(--yz-yuzu); color: #241a00; }
.fin .btn-primary:hover:not(:disabled) { background: #e39c00; }
.fin .btn-soft { background: var(--yz-lemon-soft); border-color: #efd79b; color: var(--yz-yuzu-ink); }
.fin .btn-icon { display: inline-flex; align-items: center; gap: 6px; }
.fin .btn svg { width: 15px; height: 15px; }
.fin .local-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-size: .74rem; font-weight: 700; color: #2f6b25;
}
.fin .local-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #4c9a2a; box-shadow: 0 0 0 3px rgba(76, 154, 42, .14);
}

/* ───────── 결과 ───────── */
.fin .calc-results {
  position: sticky; top: 76px; align-self: start; min-width: 0; padding: 24px;
  background: linear-gradient(180deg, #fffdf5 0%, #fffaf0 100%);
  border-left: 1px solid var(--yz-line);
}
.fin .result-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fin .result-head h2 { margin: 0; font-size: .9rem; color: var(--yz-muted); font-weight: 800; }
.fin .result-empty { padding: 40px 8px; text-align: center; color: var(--yz-muted); font-size: .9rem; }
.fin .ab-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.fin .ab-grid.has-b { grid-template-columns: 1fr 1fr; }
.fin .ab-col { min-width: 0; }
.fin .ab-col .ab-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  font-size: .7rem; font-weight: 900; letter-spacing: .05em;
  color: var(--yz-yuzu-ink); background: var(--yz-lemon-soft);
  border: 1px solid #f0dfa8; border-radius: 6px; padding: 2px 7px;
}
.fin .ab-col[data-scenario="B"] .ab-tag { color: #1d4e7c; background: #eaf2fb; border-color: #cfe0f3; }
.fin .hero-result { padding: 4px 0 12px; }
.fin .hero-result .label { font-size: .8rem; font-weight: 700; color: var(--yz-ink-2); }
.fin .hero-result .value {
  display: block; margin-top: 4px; font-size: clamp(1.6rem, 4vw, 2.15rem);
  font-weight: 900; letter-spacing: -.03em; color: var(--yz-ink); line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.fin .hero-result .value small { font-size: .55em; font-weight: 800; color: var(--yz-muted); margin-left: 4px; }
.fin .hero-result .sub { margin-top: 6px; font-size: .8rem; color: var(--yz-muted); }
.fin .stat-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px; margin: 4px 0 0;
}
.fin .stat {
  padding: 10px 12px; background: rgba(255, 255, 255, .72);
  border: 1px solid var(--yz-line); border-radius: 10px; min-width: 0;
}
.fin .stat .k { font-size: .72rem; color: var(--yz-muted); font-weight: 600; }
.fin .stat .v {
  margin-top: 2px; font-size: .98rem; font-weight: 800; color: var(--yz-ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.fin .stat.is-good .v { color: #2f6b25; }
.fin .stat.is-bad .v { color: var(--yz-danger); }
.fin .diff-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px dashed var(--yz-line-strong); font-size: .84rem;
}
.fin .diff-box b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.fin .diff-box.positive b { color: #2f6b25; }
.fin .diff-box.negative b { color: var(--yz-danger); }
.fin .breakdown { margin: 14px 0 0; padding: 0; list-style: none; }
.fin .breakdown li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  padding: 7px 0; border-bottom: 1px dashed var(--yz-line); font-size: .84rem;
}
.fin .breakdown li:last-child { border-bottom: 0; }
.fin .breakdown .k { color: var(--yz-ink-2); min-width: 0; }
.fin .breakdown .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.fin .breakdown .v.minus { color: var(--yz-danger); }
.fin .breakdown .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: #f0ece1; overflow: hidden; }
.fin .breakdown .bar i { display: block; height: 100%; border-radius: 3px; background: var(--yz-yuzu); }
.fin .breakdown .bar i.is-cost { background: #d9b46a; }
.fin .breakdown .bar i.is-fee { background: #8fb7d9; }
.fin .breakdown .bar i.is-tax { background: #c98b8b; }
.fin .result-note { margin: 12px 0 0; font-size: .74rem; line-height: 1.55; color: var(--yz-muted); }
.fin .result-warning {
  margin: 10px 0 0; padding: 9px 11px; border-radius: 9px; font-size: .8rem;
  color: #8a4b00; background: #fff6e0; border: 1px solid #f3ddb0;
}
.fin .result-warning.is-bad { color: var(--yz-danger); background: #fdf1f0; border-color: #f0cfcc; }
.fin .basis-box {
  margin-top: 14px; padding: 11px 13px; background: rgba(255, 255, 255, .78);
  border: 1px solid var(--yz-line); border-radius: 10px;
}
.fin .basis-box p { margin: 0 0 6px; font-size: .73rem; line-height: 1.6; color: var(--yz-muted); }
.fin .basis-box p:last-child { margin-bottom: 0; }
.fin .basis-box b { color: var(--yz-ink-2); margin-right: 4px; }
.fin .basis-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; color: var(--yz-ink-2); }

/* ───────── 표 ───────── */
.fin .table-block { margin-top: 16px; }
.fin .table-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fin .table-head h3 { margin: 0; font-size: .9rem; }
.fin .table-head .spacer { flex: 1; }
.fin .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--yz-line); border-radius: 10px; }
.fin table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.fin th, .fin td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--yz-line); }
.fin th:first-child, .fin td:first-child { text-align: left; }
.fin thead th { background: #fbf8ef; font-size: .74rem; color: var(--yz-muted); font-weight: 800; position: sticky; top: 0; }
.fin tbody tr:last-child td { border-bottom: 0; }
.fin tbody tr:nth-child(even) { background: #fffdf7; }
.fin td.num { font-variant-numeric: tabular-nums; }
.fin .table-note { margin: 6px 0 0; font-size: .72rem; color: var(--yz-muted); }

/* ───────── 차트 ───────── */
.fin .chart-block { margin-top: 16px; }
.fin .chart { width: 100%; height: auto; display: block; direction: ltr; }
.fin .chart .grid-line { stroke: #ece7da; stroke-width: 1; }
.fin .chart .axis-text { fill: #8a857a; font-size: 10px; font-family: var(--yz-font); }
.fin .chart .line-balance { fill: none; stroke: var(--yz-yuzu-deep); stroke-width: 2.4; }
.fin .chart .line-contrib { fill: none; stroke: #9aa0a6; stroke-width: 1.8; stroke-dasharray: 4 4; }
.fin .chart .area { fill: rgba(242, 169, 0, .12); }
.fin .chart .legend { font-size: 10px; fill: #6b665c; }
.fin .chart .bar-seg { stroke: #fff; stroke-width: 1; }

/* ───────── 부가 섹션 ───────── */
.fin .sub-section { margin: 34px 0 0; }
.fin .sub-section h2 { margin: 0 0 12px; font-size: 1.15rem; }
.fin .panel {
  background: #fff; border: 1px solid var(--yz-line); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--yz-shadow-sm);
}
.fin .steps { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fin .steps li {
  position: relative; padding: 0 0 0 38px; font-size: .88rem; line-height: 1.6; color: var(--yz-ink-2);
  counter-increment: step;
}
.fin .steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .74rem; font-weight: 900; color: var(--yz-yuzu-ink);
  background: var(--yz-lemon-soft); border: 1px solid #f0dfa8;
}
.fin .steps li b { color: var(--yz-ink); }
.fin details.step-box { margin-top: 10px; }
.fin details.step-box summary {
  cursor: pointer; font-weight: 800; font-size: .88rem; color: var(--yz-ink-2);
  padding: 8px 0; list-style: none;
}
.fin details.step-box summary::-webkit-details-marker { display: none; }
.fin details.step-box summary::after { content: "＋"; float: right; color: var(--yz-yuzu); font-weight: 900; }
.fin details.step-box[open] summary::after { content: "－"; }
.fin .formula {
  margin: 6px 0 0; padding: 12px 14px; font-size: .82rem; line-height: 1.7;
  color: var(--yz-ink-2); background: #fbf9f2; border: 1px solid var(--yz-line);
  border-radius: 9px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.fin .formula code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; }
.fin .guide { max-width: 820px; }
.fin .guide h2 { margin: 0 0 14px; font-size: 1.15rem; }
.fin .guide h3 { margin: 20px 0 6px; font-size: .98rem; }
.fin .guide p { margin: 0 0 10px; font-size: .9rem; line-height: 1.78; color: var(--yz-ink-2); }
.fin .guide ul { margin: 6px 0 12px; padding-left: 20px; }
.fin .guide li { margin: 4px 0; font-size: .88rem; line-height: 1.65; color: var(--yz-ink-2); }
.fin .limit-box {
  margin: 18px 0 0; padding: 16px 18px; border-radius: 14px;
  background: #fff8e8; border: 1px solid #f2ddae;
}
.fin .limit-box h2 { margin: 0 0 8px; font-size: .98rem; color: #7a4d00; }
.fin .limit-box ul { margin: 0; padding-left: 18px; }
.fin .limit-box li { font-size: .85rem; line-height: 1.65; color: #6b4a10; }
.fin .faq { max-width: 820px; border-top: 0; }
.fin .faq h2 { margin: 0 0 12px; font-size: 1.15rem; }
.fin .faq details {
  border: 1px solid var(--yz-line); border-radius: 12px; background: #fff;
  margin-bottom: 8px; padding: 0 16px;
}
.fin .faq summary {
  cursor: pointer; padding: 13px 0; font-weight: 800; font-size: .9rem; color: var(--yz-ink);
  list-style: none;
}
.fin .faq summary::-webkit-details-marker { display: none; }
.fin .faq summary::after { content: "＋"; float: right; color: var(--yz-yuzu); }
.fin .faq details[open] summary::after { content: "－"; }
.fin .faq details p { margin: 0 0 14px; font-size: .86rem; line-height: 1.75; color: var(--yz-ink-2); }
.fin .related { margin-top: 34px; }
.fin .related h2 { margin: 0 0 12px; font-size: 1.05rem; }
.fin .related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fin .related-grid a {
  display: block; padding: 12px 14px; background: #fff; border: 1px solid var(--yz-line);
  border-radius: 12px; font-size: .84rem; font-weight: 700; color: var(--yz-ink-2); text-decoration: none;
}
.fin .related-grid a:hover { border-color: var(--yz-yuzu); background: #fffdf4; color: var(--yz-yuzu-ink); }
.fin .related-grid a span { display: block; margin-top: 2px; font-size: .72rem; font-weight: 500; color: var(--yz-muted); }
.fin .source-list { margin: 10px 0 0; padding-left: 18px; font-size: .78rem; color: var(--yz-muted); }
.fin .source-list a { color: var(--yz-muted); text-decoration: underline; }

/* ───────── 광고 자리(승인 전에는 hidden) ───────── */
.fin .ad-slot { margin: 24px auto; max-width: 1140px; padding: 0 20px; }
.fin .ad-slot[hidden] { display: none; }
.fin .ad-slot .ad-inner {
  min-height: 90px; border: 1px dashed var(--yz-line); border-radius: 12px;
  display: grid; place-items: center; color: #b4ae9f; font-size: .72rem;
}

/* ───────── 토스트 ───────── */
.fin .toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translateX(-50%) translateY(10px);
  max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 12px;
  background: #241f15; color: #fff; font-size: .86rem; line-height: 1.45;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.fin .toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ───────── 404 ───────── */
.fin .nf { padding: 70px 0; text-align: center; }
.fin .nf .code { font-size: 3.4rem; font-weight: 900; color: var(--yz-yuzu); line-height: 1; }
.fin .nf h1 { margin: 10px 0; }

/* ───────── 반응형 ───────── */
@media (max-width: 1000px) {
  .fin .tool-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fin .calc-card { grid-template-columns: 1fr; }
  .fin .calc-results { position: static; }
  .fin .calc-results { border-left: 0; border-top: 1px solid var(--yz-line); }
  .fin .scenarios.has-b { grid-template-columns: 1fr; }
  .fin .ab-grid.has-b { grid-template-columns: 1fr 1fr; }
  .fin .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .fin .tool-cards { grid-template-columns: 1fr; }
  .fin .hub-hero { padding: 28px 0 4px; }
  .fin .page-head { padding: 22px 0 4px; }
  .fin .calc-form, .fin .calc-results { padding: 18px 16px; }
  .fin .form-actions .btn { flex: 1 1 auto; }
  .fin .local-badge { margin-left: 0; width: 100%; }
  .fin .related-grid { grid-template-columns: 1fr; }
  .fin .ab-grid.has-b { grid-template-columns: 1fr; }
  .fin .stat-grid { grid-template-columns: 1fr 1fr; }
  .fin .table-scroll { border-radius: 8px; }
  .fin table { font-size: .78rem; }
  .fin th, .fin td { padding: 7px 8px; }
}
@media (max-width: 420px) {
  .fin .wrap { padding: 0 14px; }
  .fin .hero-result .value { font-size: 1.55rem; }
  .fin .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ───────── RTL ───────── */
[dir="rtl"] .fin .page-head, [dir="rtl"] .fin .tool-card, [dir="rtl"] .fin .guide,
[dir="rtl"] .fin .faq, [dir="rtl"] .fin .limit-box { text-align: right; }
[dir="rtl"] .fin .calc-results { border-left: 0; border-right: 1px solid var(--yz-line); }
[dir="rtl"] .fin .breakdown .v, [dir="rtl"] .fin th, [dir="rtl"] .fin td { text-align: left; }
[dir="rtl"] .fin th:first-child, [dir="rtl"] .fin td:first-child { text-align: right; }
[dir="rtl"] .fin .field .with-unit input { padding-right: 12px; padding-left: 46px; direction: ltr; text-align: right; }
[dir="rtl"] .fin .field .with-unit .unit { right: auto; left: 12px; }
[dir="rtl"] .fin .steps li { padding: 0 38px 0 0; }
[dir="rtl"] .fin .steps li::before { left: auto; right: 0; }
[dir="rtl"] .fin .guide ul, [dir="rtl"] .fin .limit-box ul, [dir="rtl"] .fin .source-list { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .fin .faq summary::after, [dir="rtl"] .fin details.step-box summary::after { float: left; }

/* ───────── 인쇄 ───────── */
@media print {
  body.fin { background: #fff; }
  .fin .site-head, .fin .site-foot, .fin .lang-note, .fin .form-actions,
  .fin .guide, .fin .faq, .fin .related, .fin .ad-slot, .fin .toast,
  .fin .calc-form, .fin .chart-block, .fin .table-block { display: none !important; }
  .fin .calc-card { display: block; border: 0; box-shadow: none; }
  .fin .calc-results { border: 0; background: #fff; padding: 0; }
  .fin .print-only { display: block !important; }
  .fin .page-head { padding-top: 0; }
  .fin a { color: #000; text-decoration: none; }
  .fin .stat, .fin .breakdown li { break-inside: avoid; }
  @page { margin: 14mm; }
}
.fin .print-only { display: none; }
.fin .mobile-result { display: none; }

@media (max-width: 720px) {
  body.fin[data-tool]:not([data-tool="hub"]):not([data-tool="legal"]) { padding-bottom: 74px; }
  .fin .mobile-result {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--yz-line);
    box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .45);
    text-decoration: none; color: var(--yz-ink);
  }
  .fin .mobile-result .k { font-size: .76rem; color: var(--yz-muted); flex: 1; }
  .fin .mobile-result b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
  .fin .mobile-result .go { color: var(--yz-yuzu-deep); font-weight: 900; }
}
