/* 신차 출고 연구소 — 견적서를 검산하는 도구: 남색 책상(블로그 스킨) 위의 견적서, 형광펜 노랑, 견적서 빨간 강조 */
:root {
  --desk: #13283f;         /* 블로그 스킨의 남색 책상 (헤더·제목 띠·푸터) */
  --desk-2: #4c6a8a;       /* 책상 위 테두리 */
  --on-desk: #c9d3df;      /* 책상 위 보조 글씨 */
  --tan: #d9c3a0;          /* 블로그 스킨 베이지 */
  --tan-soft: #f4ede1;     /* 견적서 항목 칸 */
  --check: #c8372d;        /* 견적서의 빨간 강조 테두리 */
  --bg: #f7f5f1;
  --ink-soft: #e4eaf1;     /* 남색 잉크를 옅게 깐 면 (리스 쪽 표시) */
  --paper: #ffffff;
  --field: #f3f5f8;
  --ink: #17324d;          /* 본문·주요 색 */
  --ink-2: #405870;        /* 보조 글씨 (흰 배경 대비 7:1 이상) */
  --line: #ddd5c8;         /* 구분선 (종이 결) */
  --control: #6f8094;      /* 입력칸·버튼 테두리 (대비 3:1 이상) */
  --hl: #ffe27a;           /* 형광펜 */
  --blog: #1b6a50;         /* 블로그로 가는 링크 */
  --error: #b42318;
  --focus: #1d5fd1;
  --radius: 6px;
  --mark-bg: #17324d;      /* 로고 바탕 */
  color-scheme: light;
  --font: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, -apple-system, sans-serif;
}
/* 다크 팔레트: 사용자가 직접 고른 경우(data-theme) 우선, 고르지 않았으면 기기 설정을 따름 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #13243a;
    --desk-2: #35506c;
    --tan-soft: #1d2834;
    --check: #ff7a6e;
    --bg: #0e1620;
    --ink-soft: #1c2b3a;
    --paper: #16212d;
    --field: #0f1923;
    --ink: #e7eef6;
    --ink-2: #a9b8c8;
    --line: #2b3a4a;
    --control: #7d90a5;
    --hl: #8a6d00;
    --blog: #5fd0a6;
    --error: #ff8a7a;
    --focus: #8fb4ff;
    --mark-bg: #2a4a6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --desk: #13243a;
  --desk-2: #35506c;
  --tan-soft: #1d2834;
  --check: #ff7a6e;
  --bg: #0e1620;
  --ink-soft: #1c2b3a;
  --paper: #16212d;
  --field: #0f1923;
  --ink: #e7eef6;
  --ink-2: #a9b8c8;
  --line: #2b3a4a;
  --control: #7d90a5;
  --hl: #8a6d00;
  --blog: #5fd0a6;
  --error: #ff8a7a;
  --focus: #8fb4ff;
  --mark-bg: #2a4a6b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 50; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.narrow-block { max-width: 760px; margin-top: 12px; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.25; padding: 6px 0 10px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: block; }
.brand small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.brand strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.nav a.to-blog { color: var(--blog); }
.nav-short { display: none; }
@media (max-width: 520px) { .nav-full { display: none; } .nav-short { display: inline; } }
.result-bar a { white-space: nowrap; }
/* 다크·라이트 전환 버튼 */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.theme-toggle:hover { border-color: var(--control); background: var(--field); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
.is-dark .theme-toggle .i-sun { display: block; }
.is-dark .theme-toggle .i-moon { display: none; }
@media (max-width: 720px) {
  .theme-toggle { order: 1; margin-left: auto; width: 40px; height: 40px; }
  .nav { order: 2; }
  .nav { margin-left: 0; width: 100%; min-width: 0; justify-content: space-between; }
  .nav a { padding: 0 6px; font-size: 14.5px; }
  .nav a:first-child { padding-left: 0; }
  .nav a:last-child { padding-right: 0; }
}

/* ---------- main ---------- */
main { padding: 22px 0 56px; }
.crumbs { font-size: 13.5px; color: var(--ink-2); margin: 0 0 10px; }
.crumbs a { color: var(--ink-2); display: inline-block; padding: 2px 0; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: 21px; line-height: 1.4; margin: 44px 0 12px; letter-spacing: -0.025em; font-weight: 800; }
h3 { font-size: 17.5px; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 16.5px; color: var(--ink-2); margin-bottom: 20px; }
.meta { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 6px; }
mark { background: linear-gradient(transparent 58%, var(--hl) 58%); color: inherit; padding: 0 2px; }
.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ink);
  border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.8; white-space: pre-wrap;
}
.summary { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--hl); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 24px; }
.summary strong { display: block; margin-bottom: 6px; }
.summary ul { margin: 0; }
.notice { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--hl); border-radius: 8px; padding: 12px 14px; font-size: 14.5px; margin: 16px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 520px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--field); font-weight: 700; white-space: nowrap; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- tool layout ---------- */
.tool-head h1 { margin-bottom: 4px; }
.tool-head p { color: var(--ink-2); margin-bottom: 16px; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.tool > *, fieldset { min-width: 0; }
fieldset { margin: 0; }
@media (min-width: 900px) {
  .tool { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
  .tool .aside { position: sticky; top: 16px; }
}
.welcome { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blog); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 14px; }

/* 입력 시트 */
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px 20px; }
.sheet > h2 { font-size: 17px; margin: 16px 0 0; }
.row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.row:last-of-type { border-bottom: 0; }
.lab { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 6px; }
.lab label, .lab .label { font-weight: 700; font-size: 15.5px; }
.lab .from { font-size: 13px; color: var(--ink-2); }
.in { position: relative; }
.in input, .sheet select {
  width: 100%; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink);
  padding: 10px 46px 10px 14px; min-height: 52px;
  border: 1px solid var(--control); border-radius: 8px; background: var(--paper);
  text-align: right; font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.in input:hover, .sheet select:hover { border-color: var(--ink); }
.in input:not(:placeholder-shown) { background: var(--paper); box-shadow: inset 0 -3px 0 var(--hl); }
.sheet select { padding-right: 14px; text-align: left; font-size: 16px; font-weight: 500; }
.in input::placeholder { color: #8090a2; font-weight: 400; }
.in input:focus, .sheet select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); background: var(--paper); }
.in input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.in .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.kr { display: block; min-height: 20px; font-size: 13px; color: var(--ink-2); text-align: right; margin-top: 3px; }
.hint { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 0; }
.chips { display: flex; gap: 6px; margin-top: 8px; }
.chips button { flex: 1; min-height: 44px; font: inherit; font-size: 14.5px; font-weight: 600; border: 1px solid var(--control); background: var(--paper); color: var(--ink); border-radius: 8px; cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.adv { margin: 2px 0 14px; }
.adv summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font: inherit; font-weight: 700; font-size: 16px; padding: 0 20px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.15); }
.btn.ghost:hover { filter: none; background: var(--field); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.wide { flex: 1 1 180px; }
.calc-msg { color: var(--error); font-size: 14.5px; font-weight: 600; min-height: 22px; margin: 12px 0 0; }

/* 결과 */
.result-card { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 20px; scroll-margin-top: 16px; box-shadow: 6px 6px 0 var(--ink-soft); }
.result-card:not([hidden]) { animation: land .35s ease-out; }
@keyframes land { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-card h2 { font-size: 15px; color: var(--ink-2); margin: 0 0 4px; }
.rate { font-size: 60px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.rate small { font-size: 24px; font-weight: 700; margin-left: 2px; }
.basis { font-size: 14px; color: var(--ink-2); margin: 0 0 14px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 0; margin: 0; font-size: 15px; }
.kv dt:first-of-type, .kv dd:first-of-type { font-size: 17px; color: var(--ink); }
.kv dt:first-of-type { font-weight: 700; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; padding-left: 12px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.kv .sep-top { font-size: 14px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.empty-card { background: transparent; border: 1.5px dashed var(--control); border-radius: 14px; padding: 18px; color: var(--ink-2); font-size: 15px; }
.empty-card strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.cmp-head { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; margin: 0 0 6px; }
.cmp-table { font-size: 14px; min-width: 0; }
.table-wrap.flush { margin: 0; }
.cmp-table th, .cmp-table td { padding: 9px 8px; }
.cmp-table th[scope="row"] { white-space: nowrap; background: var(--paper); font-weight: 600; }
.cmp-table tbody tr:first-child th, .cmp-table tbody tr:first-child td { background: var(--field); }

/* 리스·렌트 비교: 두 견적을 나란히 */
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.side > h2 { display: flex; align-items: center; gap: 8px; }
.side > h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); flex: none; }
.side-lease { background: linear-gradient(var(--ink-soft), var(--ink-soft)) top / 100% 4px no-repeat, var(--paper); }
.side-rent { background: linear-gradient(var(--hl), var(--hl)) top / 100% 4px no-repeat, var(--paper); }
.side-rent > h2::before { background: var(--hl); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.form-actions { margin-top: 14px; }
@media (min-width: 900px) {
  .tool.tool-cmp { grid-template-columns: minmax(0, 1fr); }
  .tool-cmp .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tool-cmp .aside { position: static; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; }
  .tool-cmp .aside .bridge { margin-top: 0; }
  .tool-cmp .aside .result-card:not([hidden]) { grid-row: span 2; }
  .tool-cmp .form-actions { max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* 하단 고정 결과 바 (모바일) */
.result-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); font-size: 15px; }
.result-bar b { font-size: 20px; background: linear-gradient(transparent 60%, rgba(255,226,122,.55) 60%); padding: 0 2px; }
.result-bar a { color: var(--paper); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
@media (min-width: 900px) { .result-bar { display: none !important; } }
@media (max-width: 899px) { body.has-bar main { padding-bottom: 96px; } }

/* 블로그로 이어지는 상자 */
.bridge { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 6px; margin-top: 14px; }
.bridge h2 { font-size: 17px; margin: 0 0 4px; }
.bridge > p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 8px; }
.bridge ul { list-style: none; margin: 0; padding: 0; }
.bridge li { margin: 0; }
.bridge li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.bridge li a:hover span:first-child { text-decoration: underline; }
.bridge .tag { flex: none; font-size: 12.5px; font-weight: 700; color: var(--blog); }
.bridge .tag.site { color: var(--ink-2); }
.bridge .more { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; font-weight: 700; color: var(--blog); }

/* 링크 목록 */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.link-grid li { margin: 0; }
.link-grid a { display: block; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.link-grid a { transition: border-color .15s ease, box-shadow .15s ease; }
.link-grid a:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink-soft); }
.link-grid strong { display: block; margin-bottom: 4px; font-size: 15.5px; }
.link-grid span { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; display: block; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 16px; min-height: 48px; display: flex; align-items: center; }
.faq details p { margin: 0 16px 14px; }
.faq summary, .adv summary { list-style: none; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker, .adv summary::-webkit-details-marker { display: none; }
.faq summary::after, .adv summary::after { content: "+"; flex: none; font-size: 20px; font-weight: 500; line-height: 1; color: var(--ink-2); }
.faq details[open] summary::after, .adv[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--control); }
.cta { background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 18px; margin: 32px 0 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cta p { margin: 0; font-weight: 700; }
.cta .actions { flex: 1 1 280px; justify-content: flex-end; }
.cta .btn { flex: 1 1 auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 26px 0 40px; font-size: 14px; color: var(--ink-2); }
.footer-brand { color: var(--ink); font-weight: 800; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 12px; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); }
.site-footer p { margin: 0 0 8px; }

@media (max-width: 520px) {
  .actions .btn.wide { flex-basis: 100%; }
  .actions .btn.ghost { flex: 1 1 0; }
  .cta .actions .btn { flex: 1 1 100%; }
  .cmp-table { font-size: 13.5px; }
  .cmp-table th, .cmp-table td { padding: 8px 6px; }
  .result-card .table-wrap { margin-left: -4px; margin-right: -4px; }
  h1 { font-size: 25px; }
  h2 { font-size: 19.5px; }
  .rate { font-size: 52px; }
  table { min-width: 460px; }
  .brand-mark { width: 32px; height: 32px; }
  .sheet, .result-card, .bridge { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
.disclosure { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 8px; font-size: 14px; }
.disclosure dt { color: var(--ink-2); }
.disclosure dd { margin: 0; color: var(--ink); }
.disclosure-note { font-size: 14px; }
.brand-mark rect:first-child { fill: var(--mark-bg); }

/* 리스 자동차세: 배기량 입력 + 전기차 체크 */
.taxcalc { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.taxcalc .in { flex: 1; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; cursor: pointer; white-space: nowrap; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.in input:disabled { opacity: .5; cursor: not-allowed; }

/* 글 안의 계산기 바로가기 버튼, 출처 */
.cta-inline { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.sources { font-size: 14px; color: var(--ink-2); margin-top: 20px; }

/* 헤더 검색 버튼 (테마 버튼과 같은 모양) */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; }
.icon-btn:hover { border-color: var(--control); background: var(--field); }
.icon-btn[aria-current="page"] { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .search-btn { order: 1; margin-left: auto; width: 40px; height: 40px; }
  .search-btn ~ .theme-toggle { margin-left: 0; }
}

/* 사이트 검색 상자 */
.site-search { display: flex; gap: 8px; margin: 4px 0 18px; }
.site-search input { flex: 1; min-width: 0; min-height: 48px; font: inherit; font-size: 16px; padding: 0 14px; border: 1px solid var(--control); border-radius: 8px; background: var(--paper); color: var(--ink); }
.site-search input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.site-search .btn { flex: none; }

/* 주제 알약 탭 */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.pills a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.cat { scroll-margin-top: 16px; }
.cat h2 { margin-bottom: 4px; }
.cat-desc { color: var(--ink-2); margin: 0 0 12px; }

/* 검색 결과 */
.search-count { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.search-results { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.search-results a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a:focus { border-color: var(--ink); }
.search-results strong { display: block; font-size: 17px; margin: 2px 0 4px; }
.search-cat { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.search-snip { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.search-results mark, .search-snip mark { background: var(--hl); color: inherit; padding: 0 1px; border-radius: 2px; }
.is-dark .search-results mark { color: #fff; }
.search-empty p { font-weight: 700; margin: 8px 0; }
.search-empty[hidden] { display: none; }

/* 표 머리줄: 진한 잉크색 (위카 페이지 참고, 사이트 색 유지) */
thead th { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.cmp-table thead th { background: var(--field); color: var(--ink); border-bottom-color: var(--line); }

/* FAQ 질문 앞 Q 표시 */
.faq summary::before { content: "Q"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 999px; background: var(--hl); color: #17324d; font-size: 14px; font-weight: 800; }

/* 진행 단계 (순서가 있는 절차에만 사용) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 28px; padding: 0; }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 46px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.steps li::before { content: counter(step); position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font-size: 13px; font-weight: 800; }
.steps strong { display: block; font-size: 16px; margin-bottom: 4px; }
.steps span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.faq summary { justify-content: flex-start; }
.faq summary::after { margin-left: auto; padding-left: 12px; }
.is-dark thead th { background: var(--ink-soft); color: var(--ink); border-bottom-color: var(--line); }

/* FAQ: 리스·장기렌트 나란히 답하기 */
.faq-pair { display: grid; gap: 8px; margin: 2px 0 4px; }
.faq-pair > span { display: block; padding: 10px 12px; border-radius: 8px; background: var(--field); }
.faq-pair b { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
@media (min-width: 640px) { .faq-pair { grid-template-columns: 1fr 1fr; } }


/* ================= 디자인 v2: 남색 책상 위의 견적서 ================= */
/* 헤더 */
.site-header { background: var(--desk); border-bottom: 0; }
.brand { color: #fff; }
.brand small { color: var(--tan); }
.brand-mark rect:first-child { fill: #fff; }
.brand-mark text { fill: #17324d; }
.nav a { color: var(--on-desk); }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 #ffe27a; }
.nav a.to-blog { color: var(--tan); }
.icon-btn, .theme-toggle { background: transparent; border-color: var(--desk-2); color: #fff; }
.icon-btn:hover, .theme-toggle:hover { background: rgba(255,255,255,.08); border-color: var(--tan); }
.icon-btn[aria-current="page"] { border-color: #ffe27a; }
.site-header :focus-visible, .page-head :focus-visible, .site-footer :focus-visible, .cta :focus-visible { outline-color: var(--hl); }

/* 제목 띠 */
main { padding-top: 0; }
.page-head { background: var(--desk); color: #fff; padding: 20px 0 34px; }
.page-head h1 { color: #fff; }
.page-head .crumbs, .page-head .crumbs a { color: var(--on-desk); }
.page-head .meta { color: var(--on-desk); margin: 0 0 6px; }
.page-head .lead { color: var(--tan); margin: 0; }
.page-head.is-tool { padding: 30px 0 104px; }
.page-head.is-tool .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: end; gap: 24px; }
.page-head.is-tool h1 { font-size: 44px; line-height: 1.15; margin-bottom: 12px; }
.page-head.is-tool .lead { font-size: 17px; max-width: 34em; }
.hero-art { width: 230px; height: auto; color: var(--tan); }
.hero-check { stroke: #e05a4f; }
.hero-hl { stroke: #ffe27a; opacity: .5; }
main > .wrap { padding-top: 26px; }
main > .wrap.overlap { margin-top: -72px; padding-top: 0; position: relative; }
@media (max-width: 820px) {
  .page-head.is-tool { padding: 18px 0 84px; }
  .page-head.is-tool .wrap { grid-template-columns: minmax(0, 1fr); }
  .page-head.is-tool h1 { font-size: 32px; }
  .hero-art { display: none; }
  main > .wrap.overlap { margin-top: -62px; }
}

/* 계산기 한 장: 입력 시트 + 결과지 */
.welcome { background: var(--paper); }
.tool { gap: 0; background: var(--paper); border-radius: 8px; overflow: clip; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 40px -20px rgba(19,40,63,.45); }
.tool > .sheet { border: 0; border-radius: 0; background: transparent; }
.tool > .aside { padding: 22px 24px 24px; background: var(--paper); }
@media (min-width: 900px) { .tool:not(.tool-cmp) > .aside { border-left: 1px solid var(--line); } }
@media (max-width: 899px) { .tool > .aside { border-top: 1px solid var(--line); } }

.sheet.quote { padding: 22px 24px 24px; }
.sheet-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 12px; }
.sheet-title h2 { font-size: 17px; margin: 0; }
.sheet-title span { font-size: 13px; color: var(--ink-2); }
.quote .row { display: grid; grid-template-columns: 140px minmax(0, 1fr); padding: 0; border: 1px solid var(--line); margin-top: -1px; }
.quote .row:last-of-type { border-bottom: 1px solid var(--line); }
.quote .row > .lab { grid-column: 1; grid-row: 1 / span 8; background: var(--tan-soft); margin: 0; padding: 12px 14px; flex-direction: column; align-items: flex-start; justify-content: center; flex-wrap: nowrap; gap: 2px; }
.quote .row > .lab label { font-size: 15px; }
.quote .row > .lab .from { font-size: 12px; line-height: 1.45; }
.quote .row > :not(.lab) { grid-column: 2; margin-left: 14px; margin-right: 14px; }
.quote .row > .in { margin-top: 6px; }
.quote .row > :last-child { margin-bottom: 10px; }
.quote .in input { border: 0; border-bottom: 1.5px solid var(--control); border-radius: 0; background: transparent; min-height: 48px; padding: 8px 34px 6px 0; font-size: 19px; font-weight: 700; }
.quote .in input:hover { border-bottom-color: var(--ink); }
.quote .in input:not(:placeholder-shown) { box-shadow: none; }
.quote .in input::placeholder { font-size: 15px; }
.quote .in input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: inset 0 -4px 0 var(--hl); }
.quote .row:focus-within { position: relative; z-index: 1; outline: 2px solid var(--focus); outline-offset: -2px; }
.quote .in .unit { right: 0; }
.quote .in input[aria-invalid="true"] { border-bottom-color: var(--error); box-shadow: inset 0 -3px 0 var(--error); }
.quote .kr { margin-top: 2px; }
.quote .hint { margin-top: 2px; }
.quote .chips { margin-top: 8px; }
.quote .chips button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 999px; border-color: var(--line); font-size: 14px; }
.quote .taxcalc { margin-top: 6px; }
.tool > .sheet .actions, .tool .form-actions { margin-top: 16px; }

/* 결과지 */
.result-card { border: 0; border-radius: 0; box-shadow: none; padding: 0; background: transparent; }
.result-card:not([hidden]) { animation: none; }
.result-label, .result-card h2.result-label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0; }
.rate { display: inline-flex; align-items: baseline; gap: 2px; border: 2px solid var(--check); border-radius: 4px; padding: 6px 14px 4px; margin: 10px 0 6px; font-size: 58px; line-height: 1; }
.rate mark { background: linear-gradient(transparent 62%, var(--hl) 62%); padding: 0; }
.rate-empty { color: var(--line); border-color: var(--line); }
.empty-card { border: 0; border-radius: 0; padding: 0; background: transparent; }
.empty-card p:last-child { font-size: 14.5px; color: var(--ink-2); margin: 4px 0 0; }
.empty-card strong { display: inline; font-size: inherit; margin: 0; }
.split-title { font-size: 14px; font-weight: 700; margin: 8px 0 8px; }
.costbar { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--line); }
.costbar i { display: block; height: 100%; width: 0; transition: width .35s ease; }
.c-cost { background: var(--ink); }
.c-int { background: var(--check); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }
.kv.legend { margin: 10px 0 12px; font-size: 14.5px; }
.kv.legend dt:first-of-type, .kv.legend dd:first-of-type { font-size: 14.5px; }
.kv.legend dt:first-of-type { font-weight: 400; }
.kv-more { border-top: 1px dashed var(--line); padding-top: 12px; font-size: 14px; }
.kv-more dt:first-of-type, .kv-more dd:first-of-type { font-size: 14px; color: inherit; }
.kv-more dt:first-of-type { font-weight: 400; color: var(--ink-2); }

/* 리스·렌트 비교 */
.tool-cmp > form { padding: 22px 24px 24px; }
.tool-cmp > form > .sheet { border: 0; padding: 0; background: transparent; }
.tool-cmp .pair { gap: 24px; margin-top: 20px; }
.tool-cmp .side { border: 0; padding: 0; background: transparent; }
.tool-cmp .side > h2 { font-size: 17px; margin: 0 0 4px; padding-top: 10px; border-top: 4px solid var(--ink); }
.tool-cmp .side-rent > h2 { border-top-color: var(--tan); }
.tool-cmp .side > .hint { margin: 0 0 10px; }
.side > h2::before { display: none; }
.tool-cmp > .aside { border-top: 1px solid var(--line); background: var(--paper); }
.mbars { margin: 4px 0 14px; }
.mbar { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; margin: 6px 0; }
.mbar > div { height: 14px; background: var(--field); border-radius: 3px; overflow: hidden; }
.mbar i { display: block; height: 100%; width: 0; transition: width .35s ease; }
.mbar b { font-variant-numeric: tabular-nums; }
.c-lease { background: var(--ink); }
.c-rent { background: var(--tan); }
.cmp-table thead th { background: var(--field); color: var(--ink); }

/* 계산기 아래 블로그 연결: 제목 왼쪽, 글 카드 오른쪽 */
.overlap > .bridge { margin-top: 30px; background: transparent; border: 0; padding: 0; }
@media (min-width: 900px) {
  .overlap > .bridge { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4px 28px; align-items: start; }
  .overlap > .bridge > h2, .overlap > .bridge > p, .overlap > .bridge > .more { grid-column: 1; }
  .overlap > .bridge > ul { grid-column: 2; grid-row: 1 / span 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
.overlap > .bridge h2 { font-size: 19px; }
.overlap > .bridge ul { display: grid; gap: 10px; }
.overlap > .bridge li a { flex-direction: column; align-items: flex-start; justify-content: space-between; height: 100%; padding: 14px; border: 0; border-top: 3px solid var(--tan); background: var(--paper); border-radius: 4px; line-height: 1.5; }

/* 글·목록 페이지 */
.summary { background: var(--tan-soft); border: 0; border-left: 4px solid var(--tan); border-radius: 4px; }
.notice { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--tan); border-radius: 4px; }
.formula { border-left-color: var(--tan); border-radius: 4px; }
.table-wrap { border-radius: var(--radius); }
.link-grid a { border: 0; border-top: 3px solid var(--tan); border-radius: 4px; }
.link-grid a:hover { border-top-color: var(--ink); box-shadow: none; }
.bridge { border-radius: var(--radius); }
.faq details { border-radius: var(--radius); }
.steps li { border-radius: var(--radius); }
.cta { background: var(--desk); border: 0; color: #fff; border-radius: 8px; }
.cta .btn { background: #fff; color: #17324d; border-color: #fff; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: var(--desk-2); }
.cta .btn.ghost:hover { background: rgba(255,255,255,.08); }

/* 푸터 */
.site-footer { background: var(--desk); border-top: 0; color: var(--on-desk); }
.footer-brand { color: #fff; }
.footer-links a { color: var(--on-desk); }
.site-footer a { color: var(--on-desk); }
.site-footer .disclosure dt { color: var(--on-desk); }
.site-footer .disclosure dd { color: #fff; }
@media (min-width: 900px) { .tool:not(.tool-cmp) { align-items: stretch; } .tool:not(.tool-cmp) .aside { position: static; } }
.quote .chips { flex-wrap: wrap; }
.empty-card > strong { display: block; margin-bottom: 4px; font-size: 16px; }
@media (max-width: 520px) {
  .quote .row { grid-template-columns: 100px minmax(0, 1fr); }
  .quote .row > .lab { padding: 10px 10px; }
  .quote .row > :not(.lab) { margin-left: 10px; margin-right: 10px; }
  .quote .chips button { padding: 0 12px; min-height: 38px; }
  .sheet.quote, .tool > .aside, .tool-cmp > form { padding-left: 16px; padding-right: 16px; }
  .quote .in input { font-size: 18px; }
}

/* 블로그 글 카드 (이미지 + 제목) */
.bridge.cards ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding-bottom: 6px; }
.bridge.cards li a { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; height: 100%; padding: 0 0 12px; border: 0; border-radius: 6px; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.45; }
.bridge.cards li a img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 336; object-fit: cover; background: var(--desk); }
.bridge.cards li a .bt { padding: 0 12px; font-size: 14.5px; }
.bridge.cards li a .tag { padding: 0 12px; margin-top: auto; }
.bridge.cards li a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.bridge.cards li a:hover .bt { text-decoration: underline; }
.overlap > .bridge.cards li a { padding: 0 0 12px; border-top: 0; }
.tool-cmp .aside .bridge.cards ul { grid-template-columns: 1fr; gap: 10px; }
.tool-cmp .aside .bridge.cards li a { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 12px; padding: 0 12px 0 0; }
.tool-cmp .aside .bridge.cards li a img { grid-row: 1 / span 2; align-self: center; height: auto; margin-left: 8px; border-radius: 3px; }
.tool-cmp .aside .bridge.cards li a .bt { padding: 10px 0 0; font-size: 14px; }
.tool-cmp .aside .bridge.cards li a .tag { padding: 0 0 10px; margin-top: 0; }

/* 카카오톡 상담 버튼 (카카오 노란색, 글자는 검정) */
.btn.kakao, .cta .btn.kakao { background: #fee500; border-color: #fee500; color: #191919; }
.btn.kakao:hover, .cta .btn.kakao:hover { filter: brightness(.96); }
.cta .cta-kakao { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--desk-2); font-weight: 500; color: var(--on-desk); }
.cta .cta-kakao .btn { flex: 0 0 auto; }

/* 계산 결과 아래 견적서 점검 포인트 */
.check-box { margin-top: 18px; background: var(--paper); border-top: 3px solid var(--check); border-radius: 4px; padding: 18px 20px; box-shadow: inset 0 0 0 1px var(--line); }
.check-box h2 { font-size: 19px; margin: 0 0 2px; }
.check-sub { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
.check-list { margin: 0; padding: 0; list-style: none; counter-reset: chk; display: grid; grid-template-columns: 1fr; gap: 4px 24px; }
@media (min-width: 700px) { .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.check-list li { counter-increment: chk; position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--line); margin: 0; }
.check-list li::before { content: counter(chk); position: absolute; left: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--check); color: var(--check); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.check-list strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.check-list span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.check-cta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--tan-soft); border-radius: 4px; padding: 14px 16px; }
.check-cta p { margin: 0; flex: 1 1 300px; }
.check-cta p strong { display: block; font-size: 16px; }
.check-cta p span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 520px) { .check-box { padding: 16px; } .check-cta .btn, .cta .cta-kakao .btn { flex: 1 1 100%; } }

/* 네이버 톡톡 버튼 (네이버 초록, 흰 글자) + 상담 버튼 묶음 */
.btn.ntalk, .cta .btn.ntalk { background: #027a3a; border-color: #027a3a; color: #fff; }
.btn.ntalk:hover, .cta .btn.ntalk:hover { filter: brightness(1.08); }
.consult-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cta .cta-kakao p { margin: 0; flex: 1 1 260px; font-weight: 500; }
.check-cta .consult-btns { flex: 0 1 auto; }
.cmp-cta { margin-top: 16px; }
.cmp-cta .consult-btns .btn { flex: 1 1 100%; }
@media (max-width: 520px) { .consult-btns { width: 100%; } .consult-btns .btn { flex: 1 1 100%; } }

/* 머리말: 문장마다 줄을 바꾸고, 단어 중간에서 끊지 않으며, 긴 문장은 줄 길이를 고르게 나눕니다 */
.page-head .lead { word-break: keep-all; }
.page-head .lead .ls { display: block; text-wrap: balance; }
@media (min-width: 700px) { .page-head.is-tool .lead { max-width: none; } }

/* ---------- 견적 비교 ---------- */
.qc { margin: 24px 0 0; padding: 22px 24px 24px; background: var(--paper); border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 40px -20px rgba(19,40,63,.45); scroll-margin-top: 16px; }
.qc-head h2 { font-size: 20px; margin: 0 0 6px; }
.qc-head p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.qc-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .qc-cards.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.qc .sheet.quote { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
.qc .sheet-title h3 { font-size: 16px; margin: 0; }
.qc .quote .row { grid-template-columns: 112px minmax(0, 1fr); }
.link-btn { font: inherit; font-size: 13.5px; color: var(--ink-2); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 6px 0; min-height: 36px; }
.link-btn:hover { color: var(--ink); }
.qc-actions { margin-top: 16px; }
.qc-empty { margin: 16px 0 0; padding: 14px 16px; background: var(--field); border-radius: 8px; color: var(--ink-2); font-size: 15px; }
.qc-out { margin-top: 24px; }
.qc-out h3 { font-size: 16px; margin: 20px 0 10px; }
.qc-out h3:first-child { margin-top: 0; }
.qc-table { min-width: 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.qc-table th, .qc-table td { padding: 11px 12px; vertical-align: top; text-align: right; line-height: 1.45; }
.qc-table thead th { background: var(--ink); color: var(--paper); font-size: 14.5px; text-align: right; }
.qc-table thead th:first-child { width: 0; padding: 0; }
.qc-table tbody th { text-align: left; font-weight: 600; background: var(--tan-soft); color: var(--ink); white-space: nowrap; }
.qc-table tr.res td { font-weight: 700; }
.qc-table tr.rate-row td { font-size: 20px; }
.qc-table tr.rate-row th { font-size: 15px; }
.qc-notes { margin: 0 0 14px; padding-left: 20px; }
.qc-notes li { margin: 0 0 8px; line-height: 1.65; }
.qc-foot { font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; }
.qc-table td small { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.qc-table td { white-space: nowrap; }
@media (max-width: 640px) {
  .qc { padding: 18px 16px 20px; }
  .qc .quote .row { grid-template-columns: 96px minmax(0, 1fr); }
  .qc-table { font-size: 13px; table-layout: fixed; }
  .qc-table thead th:first-child { width: 68px; }
  .qc-table th, .qc-table td { padding: 9px 6px; }
  .qc-table tbody th { position: sticky; left: 0; z-index: 1; font-size: 12.5px; padding-left: 8px; white-space: normal; width: 66px; line-height: 1.35; box-shadow: 1px 0 0 var(--line); }
  .qc-table td { font-size: 12.5px; }
  .qc-table tr.rate-row td { font-size: 16px; }
  .qc-table tr.rate-row td { font-size: 17px; }
  .qc-table tr.rate-row th { font-size: 12.5px; }
}

.qc-unit { margin-left: 8px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }

.qc-table .qc-val { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; }
.cmp-table .low, .qc-table .low { display: inline-block; padding: 1px 8px; font-style: normal; font-size: 12px; font-weight: 700; border-radius: 999px; background: var(--hl); color: var(--ink); white-space: nowrap; }
.qc-table tr.diff-row td, .qc-table tr.diff-row th { font-size: 13px; color: var(--ink-2); padding-top: 4px; padding-bottom: 10px; }
.qc-table tr.rate-row td, .qc-table tr.rate-row th { padding-bottom: 4px; }
.qc-dots { display: none; align-items: center; gap: 8px; margin: 0 0 10px; }
.qc-dots button { min-height: 36px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; border: 1px solid var(--control); background: var(--paper); color: var(--ink); cursor: pointer; }
.qc-dots button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qc-dots span { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 899px) {
  .qc-dots:not([hidden]) { display: flex; }
  .qc-cards { display: flex; position: relative; gap: 12px; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .qc-cards::-webkit-scrollbar { display: none; }
  .qc-card { flex: 0 0 100%; scroll-snap-align: start; scroll-margin-left: 16px; }
  .qc-cards.two .qc-card { flex-basis: 88%; }
}
.qc-table { table-layout: fixed; }
.qc-table thead th:first-child { width: 150px; }
@media (max-width: 899px) {
  .qc .sheet.quote { padding: 16px 14px 16px; }
  .qc .quote .row { grid-template-columns: 82px minmax(0, 1fr); }
  .qc .quote .row > :not(.lab) { margin-left: 10px; margin-right: 10px; }
  .qc .quote .row > .lab { padding: 10px 10px; }
  .qc .quote .in input { font-size: 17px; padding-right: 26px; }
}
@media (max-width: 640px) { .qc-table thead th:first-child { width: 68px; } }
@media (max-width: 899px) {
  .qc .quote .row { grid-template-columns: 92px minmax(0, 1fr); }
  .qc .quote .in input[id$="-months"] { padding-right: 46px; }
}
@media (max-width: 899px) { .qc .quote .in input::placeholder { font-size: 13px; } }

.qc-legend { display: none; margin: 8px 0 16px; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 640px) {
  .qc-table .qc-val { flex-wrap: nowrap; }
  .qc-table .low { display: none; }
  .qc-table .is-low { background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 2px; }
  .qc-legend { display: block; }
}

/* 어두운 테마: 로고 바탕을 흰색 대신 헤더보다 한 단계 밝은 남색으로 */
.is-dark .brand-mark rect:first-child { fill: #2a4a6b; }
.is-dark .brand-mark text { fill: #fff; }

.qc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 8px 8px 8px 14px; background: var(--field); border-radius: 8px; scroll-margin-top: 12px; }
.qc-bar:not(.is-folded) { justify-content: flex-end; background: transparent; padding: 0; }
.qc-summary { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--ink); min-width: 0; }
.qc-summary[hidden] { display: none; }
.qc-summary span { overflow-wrap: anywhere; }
.qc-toggle { flex: none; min-height: 40px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--control); border-radius: 999px; cursor: pointer; }
.qc-toggle::after { content: " ▴"; }
.qc-toggle[aria-expanded="false"]::after { content: " ▾"; }
.qc-toggle:hover { border-color: var(--ink); }
#qc-inputs[hidden] { display: none; }
.qc-bar[hidden] { display: none; }

/* 접힌 견적 요약: 열이 맞는 작은 표 */
.qc-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 3px 14px; align-items: baseline; }
.qc-summary[hidden] { display: none; }
.qc-summary span { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qc-summary .h { font-size: 12px; color: var(--ink-2); }
.qc-summary .k { text-align: left; font-weight: 700; }
@media (max-width: 640px) {
  .qc-bar.is-folded { flex-direction: column; align-items: stretch; padding: 12px; gap: 10px; }
  .qc-bar.is-folded .qc-toggle { width: 100%; }
}

/* 견적 B 카드 아래의 '비교 추가' 버튼 (견적 C가 열리면 숨김) */
.qc-add-wrap { display: flex; justify-content: center; margin-top: 16px; }
.qc-add { min-height: 46px; padding: 0 28px; font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: transparent; border: 1.5px dashed var(--control); border-radius: 10px; cursor: pointer; }
.qc-add:hover { border-color: var(--ink); background: var(--field); }
.qc-add[hidden] { display: none; }

/* 가이드 안의 작은 비교 표(모바일에서 가로 스크롤 없이) */
.mini-table { min-width: 0; }
.mini-table th, .mini-table td { padding-left: 8px; padding-right: 8px; }

/* 결과 공유 */
.btn[hidden] { display: none; }
.share { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.share-title { font-size: 14px; margin: 0 0 10px; color: var(--ink); }
.share-actions .btn { flex: 1 1 0; }
.share-actions .btn.wide { flex: 1 1 100%; }
.share-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 0; }
.share-toast { margin: 10px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--desk); color: #fff; font-size: 13.5px; text-align: center; }
.share-toast[hidden] { display: none; }
.cmp-table .low { margin-right: 6px; vertical-align: 1px; }
@media (max-width: 640px) { .cmp-table .low { display: block; width: fit-content; margin: 0 0 3px auto; font-size: 11px; padding: 0 7px; } }
@media (max-width: 380px) { .nav a { padding: 0 4px; font-size: 14px; } }

/* 계산기 결과에서 다른 계산기로 이어 가기 */
.next-tools { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.next-title { margin: 0 0 10px; font-weight: 800; font-size: 15px; }
.next-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.next-actions .btn { flex: 1 1 0; min-width: 150px; }
.next-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }

/* 가이드 안 작은 계산 도구 */
.mini-tool { margin: 22px 0 28px; padding: 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper, transparent); }
.mini-tool h3 { margin: 0 0 6px; }
.mt-desc { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.mt-row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.mt-in { display: flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--line); }
.mt-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: 18px; font-weight: 700; text-align: right; padding: 6px 0; }
.mt-in input:focus { outline: none; }
.mt-in:focus-within { border-color: var(--ink); }
.mt-in span { color: var(--ink-2); font-size: 14px; }
.mt-hint { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.mt-out { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--soft, rgba(127,127,127,.08)); line-height: 1.7; }
.mt-big { font-size: 1.2em; background: linear-gradient(transparent 60%, var(--hl) 60%); }
.mt-note { font-size: 13px; color: var(--ink-2); }

/* 결과별 다음 행동 안내: 점검 항목 아래 관련 가이드 링크 */
.check-list .check-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 2px; font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.check-list .check-link::after { content: "\00a0›"; text-decoration: none; }
.next-box { margin-top: 16px; }
.next-box h3 { margin: 0 0 8px; font-size: 17px; }
