/* =========================================================
   사장님 위키 — 공통 스타일
   화이트 + 네이비 + 에메랄드. 외부 폰트·프레임워크 없음.
   ========================================================= */

:root {
  --navy: #0e1f3c;
  --navy-2: #16294e;
  --navy-3: #223a66;
  --emerald: #0e9f7a;
  --emerald-dark: #0a7f61;
  --emerald-50: #e9f8f2;
  --emerald-100: #d2f0e4;
  --ink: #16202e;
  --muted: #5c6b7e;
  --muted-2: #7b8898;
  --line: #e2e8f0;
  --line-strong: #cfd8e3;
  --bg: #f5f7fa;
  --white: #ffffff;
  --amber: #b45309;
  --amber-50: #fff7e6;
  --amber-line: #f3d9a4;
  --red: #b42318;
  --red-50: #fef3f2;
  --red-line: #f5c6c0;
  --blue-50: #eef4ff;
  --blue-line: #ccdcff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .04), 0 8px 24px rgba(16, 32, 56, .06);
  --shadow-lg: 0 2px 4px rgba(16, 32, 56, .05), 0 18px 44px rgba(16, 32, 56, .10);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }
a { color: var(--emerald-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.34; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(14, 159, 122, .45); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.container-narrow { width: min(880px, calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 상단 안내 바 ---------- */
.topbar {
  background: var(--navy);
  color: #c9d5e6;
  font-size: 12.5px;
  letter-spacing: -.01em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 36px; padding: 6px 0;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #46d3a8; margin-right: 6px; vertical-align: 1px; }
.topbar .topbar-right { color: #93a4bd; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 24px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.03em;
  flex: 0 0 auto;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--emerald) 0%, #0b7d60 100%);
  color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(14, 159, 122, .28);
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted-2); letter-spacing: 0; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: #3c4a5c; text-decoration: none; font-size: 14.5px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: #f0f4f8; color: var(--navy); }
.nav a.is-active { color: var(--emerald-dark); background: var(--emerald-50); }
.nav .nav-tool { color: #fff; background: var(--navy); padding: 9px 15px; border-radius: 9px; }
.nav .nav-tool:hover { background: var(--emerald-dark); color: #fff; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(14, 159, 122, .16), transparent 60%),
    radial-gradient(700px 300px at 0% 0%, rgba(34, 58, 102, .10), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800; letter-spacing: -.045em; color: var(--navy);
  max-width: 760px;
}
.hero h1 em { font-style: normal; color: var(--emerald-dark); }
.hero .lede {
  margin-top: 16px; max-width: 660px;
  color: var(--muted); font-size: 17px; line-height: 1.7;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 12px;
}
.pill .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }

.searchbox { margin-top: 28px; max-width: 680px; }
.search-field {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.search-field:focus-within { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(14, 159, 122, .12); }
.search-field svg { flex: 0 0 auto; margin-left: 16px; color: var(--muted-2); }
.search-field input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 16px 12px; font-size: 16px; outline: none;
}
.search-field input::placeholder { color: #98a4b3; }
.search-field .search-count {
  flex: 0 0 auto; margin-right: 14px; font-size: 12.5px; color: var(--muted-2);
  white-space: nowrap;
}
.search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.search-hints button {
  border: 1px solid var(--line); background: #fff; color: #42526a;
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600;
}
.search-hints button:hover { border-color: var(--emerald); color: var(--emerald-dark); }

/* ---------- 마감 배너 ---------- */
.deadline {
  background: linear-gradient(135deg, var(--navy) 0%, #142b50 60%, #123c53 100%);
  color: #fff; border-radius: 20px; padding: 26px 28px;
  margin: -26px auto 0; position: relative; z-index: 2;
  box-shadow: var(--shadow-lg);
}
.deadline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.deadline-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.deadline-head h2 span { color: #6ee0bb; }
.deadline-head .deadline-note { font-size: 12.5px; color: #9fb2cc; }
.deadline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.deadline-item {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px; padding: 14px 14px 13px;
}
.deadline-item .d-date { font-size: 12px; font-weight: 700; color: #7fe3c1; letter-spacing: .02em; }
.deadline-item .d-title { margin-top: 4px; font-size: 14.5px; font-weight: 700; line-height: 1.45; color: #fff; }
.deadline-item .d-sub { margin-top: 4px; font-size: 12px; color: #a9b9cf; line-height: 1.5; }
.deadline-item.is-urgent { background: rgba(255, 183, 77, .12); border-color: rgba(255, 183, 77, .38); }
.deadline-item.is-urgent .d-date { color: #ffcf8a; }

/* ---------- 퀵 체크 위젯 ---------- */
.quick-section { padding: 46px 0 10px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.quick-card h3 { font-size: 17px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.quick-card h3 .num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--emerald-50); color: var(--emerald-dark); font-size: 12px; font-weight: 800;
}
.quick-card .q-desc { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.quick-form { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.quick-form label { flex: 1 1 100%; font-size: 12.5px; font-weight: 700; color: #465568; }
.quick-form select, .quick-form input {
  border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
  padding: 10px 12px; font-size: 14.5px; min-width: 0;
}
.quick-form input { flex: 1 1 130px; }
.quick-form select { flex: 1 1 170px; }
.quick-result {
  margin-top: 14px; border-radius: 12px; padding: 14px 15px;
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
  font-size: 14px; color: #0b5c47; line-height: 1.6;
}
.quick-result strong { color: #084c3b; }
.quick-result.is-warn { background: var(--amber-50); border-color: var(--amber-line); color: #7a4a06; }
.quick-result .big { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 2px; }

/* ---------- 섹션 ---------- */
.section { padding: 54px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 29px); font-weight: 800; color: var(--navy); letter-spacing: -.035em; }
.section-head p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.section-link { font-size: 14px; font-weight: 700; color: var(--emerald-dark); text-decoration: none; white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn {
  border: 1px solid var(--line-strong); background: #fff; color: #42526a;
  border-radius: 999px; padding: 8px 15px; font-size: 13.5px; font-weight: 700;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--emerald); color: var(--emerald-dark); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool-highlight-grid { grid-template-columns: 1fr 1fr; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(16, 32, 56, .03);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald), #5ad3b1);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #cdd9e7; }
.card:hover::after { transform: scaleX(1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800;
  letter-spacing: .01em; border-radius: 6px; padding: 4px 8px;
  background: var(--emerald-50); color: var(--emerald-dark);
}
.badge.badge-tax { background: var(--blue-50); color: #2b4d9b; }
.badge.badge-hr { background: #f3eefe; color: #5b3aa8; }
.badge.badge-tool { background: #fff3e0; color: #9a5b00; }
.card .card-kicker { font-size: 11.5px; color: var(--muted-2); font-weight: 700; }
.card h3 { margin-top: 14px; font-size: 18.5px; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1.42; }
.card p { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.65; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.card-meta span { font-size: 12.5px; font-weight: 700; color: #3f5a52; }
.card-meta .arrow { color: var(--emerald-dark); font-weight: 800; font-size: 16px; }
.card.is-tool { background: linear-gradient(180deg, #fffdf7 0%, #fff 46%); border-color: #f0e2c8; }
.card.is-tool .card h3 { color: #6b4300; }
.card.is-tool::after { background: linear-gradient(90deg, #e0a02a, #f2c46a); }

.empty-state {
  display: none; padding: 46px 20px; text-align: center;
  background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted);
}
.empty-state strong { display: block; color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.empty-state.is-visible { display: block; }

/* ---------- 신뢰 스트립 ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-item { display: flex; gap: 14px; }
.trust-item .t-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  background: var(--emerald-50); color: var(--emerald-dark);
  display: grid; place-items: center; font-weight: 900; font-size: 16px;
}
.trust-item h3 { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.trust-item p { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 페이지 헤더(가이드) ---------- */
.page-head {
  background:
    radial-gradient(760px 300px at 90% -20%, rgba(14, 159, 122, .13), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
  padding: 26px 0 42px;
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--emerald-dark); }
.breadcrumb .sep { color: #b9c4d1; }
.page-head h1 { margin-top: 18px; font-size: clamp(27px, 3.9vw, 40px); font-weight: 800; color: var(--navy); letter-spacing: -.045em; max-width: 900px; }
.page-head .subtitle { margin-top: 12px; max-width: 780px; color: var(--muted); font-size: 16px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 12.5px; color: var(--muted-2); }
.article-meta .m-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta strong { color: #33465f; font-weight: 700; }

/* ---------- 본문 레이아웃 ---------- */
.article-wrap { padding: 38px 0 64px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 40px; align-items: start; }
.article-body { min-width: 0; }

.toc {
  position: sticky; top: 92px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 18px 14px; font-size: 13px;
}
.toc strong { display: block; font-size: 12px; letter-spacing: .06em; color: var(--muted-2); font-weight: 800; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); }
.toc li { margin: 6px 0; line-height: 1.45; }
.toc a { color: #42526a; text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--emerald-dark); }
.toc .toc-cta { display: block; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); color: var(--emerald-dark); font-weight: 800; text-decoration: none; }

/* ---------- Quick Answer ---------- */
.quick-answer {
  border: 1px solid var(--emerald-100);
  border-left: 5px solid var(--emerald);
  background: linear-gradient(180deg, #f2fbf7 0%, #fff 80%);
  border-radius: 14px; padding: 24px 26px;
  box-shadow: 0 1px 2px rgba(16, 32, 56, .03);
}
.qa-head { display: flex; align-items: center; gap: 10px; }
.qa-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--emerald); color: #fff; border-radius: 6px;
  padding: 4px 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em;
}
.qa-head h2 { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.qa-lead { margin-top: 12px; font-size: 15.5px; color: #1d3a32; font-weight: 600; line-height: 1.65; }
.qa-points { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.qa-points li { position: relative; padding-left: 22px; font-size: 14.5px; color: #2c4a42; line-height: 1.6; }
.qa-points li::before {
  content: ""; position: absolute; left: 3px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(14, 159, 122, .14);
}
.qa-points li strong { color: #0b4c3b; }
.qa-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qa-stat {
  background: #fff; border: 1px solid var(--emerald-100); border-radius: 10px;
  padding: 8px 12px; min-width: 118px;
}
.qa-stat .k { display: block; font-size: 11px; font-weight: 700; color: var(--muted-2); }
.qa-stat .v { display: block; font-size: 14.5px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-top: 1px; }

/* ---------- 프로즈 ---------- */
.prose { margin-top: 34px; }
.prose section { scroll-margin-top: 96px; }
.prose section + section { margin-top: 46px; }
.prose h2 {
  font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; color: var(--navy);
  letter-spacing: -.035em; padding-bottom: 10px; border-bottom: 2px solid var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.prose h2 .h-num {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 800;
}
.prose h3 { margin-top: 26px; font-size: 18px; font-weight: 800; color: #1b2f4d; letter-spacing: -.025em; }
.prose p { margin-top: 12px; color: #2c3a4c; font-size: 15.5px; line-height: 1.78; }
.prose p strong { color: #10233f; }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; color: #2c3a4c; font-size: 15px; line-height: 1.78; }
.prose li { margin: 5px 0; }
.prose li strong { color: #10233f; }
.prose .small { font-size: 13px; color: var(--muted); line-height: 1.65; }
.prose a { font-weight: 600; }

/* 표 */
.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.tbl caption { caption-side: top; text-align: left; padding: 12px 16px 0; font-size: 12.5px; color: var(--muted-2); font-weight: 700; }
table.tbl th, table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
table.tbl thead th { background: #f7f9fc; color: #33465f; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody th { background: #fbfcfe; font-weight: 700; color: #2b3d55; white-space: nowrap; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tbl .em { color: var(--emerald-dark); font-weight: 800; }
table.tbl .muted { color: var(--muted); }
table.tbl tr.is-highlight td { background: #f4fbf8; }

/* 콜아웃 */
.callout {
  margin-top: 18px; border-radius: 12px; padding: 16px 18px;
  border: 1px solid var(--blue-line); background: var(--blue-50);
  font-size: 14.5px; color: #23406e; line-height: 1.7;
}
.callout strong { display: block; font-size: 13px; letter-spacing: .02em; margin-bottom: 4px; color: #1c3560; }
.callout.warn { background: var(--amber-50); border-color: var(--amber-line); color: #7a4a06; }
.callout.warn strong { color: #8a5200; }
.callout.danger { background: var(--red-50); border-color: var(--red-line); color: #8f2318; }
.callout.danger strong { color: #9b2c20; }
.callout.tip { background: var(--emerald-50); border-color: var(--emerald-100); color: #0b5c47; }
.callout.tip strong { color: #084c3b; }
.callout a { color: inherit; }

/* 체크리스트 */
.checklist { margin: 18px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.checklist li {
  position: relative; padding: 13px 16px 13px 46px; margin: 0;
  font-size: 14.5px; color: #2c3a4c; line-height: 1.6;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 14px; top: 12px;
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--emerald-50); color: var(--emerald-dark);
  font-size: 12px; font-weight: 900; border: 1px solid var(--emerald-100);
}
.checklist li strong { color: #10233f; }

/* FAQ */
.faq-list { margin-top: 18px; display: grid; gap: 10px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 18px; transition: border-color .15s;
}
.faq-list details[open] { border-color: #c8ded7; box-shadow: 0 2px 10px rgba(16, 32, 56, .04); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative;
  font-size: 15px; font-weight: 700; color: #1b2f4d; line-height: 1.55;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 2px; top: 14px;
  width: 22px; height: 22px; border-radius: 6px; background: #f2f5f9;
  color: #4a5c72; display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.faq-list details[open] summary::after { content: "−"; background: var(--emerald-50); color: var(--emerald-dark); }
.faq-list .faq-a { padding: 0 0 17px; font-size: 14.5px; color: #3a4a5e; line-height: 1.75; }
.faq-list .faq-a p + p { margin-top: 8px; }

/* 출처 */
.sources { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.sources h2 { font-size: 16px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.sources .src-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.source-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.source-list li { font-size: 13.5px; color: #3a4a5e; line-height: 1.6; padding-left: 18px; position: relative; }
.source-list li::before { content: "↗"; position: absolute; left: 0; color: var(--emerald-dark); font-weight: 800; }
.source-list a { color: #1f5a8a; text-decoration: none; border-bottom: 1px solid #c6d8e8; }
.source-list a:hover { color: var(--emerald-dark); border-color: var(--emerald); }
.source-list .src-date { color: var(--muted-2); font-size: 12px; }

.disclaimer {
  margin-top: 22px; padding: 16px 18px; border-radius: 12px;
  background: #f7f9fc; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
}

.related { margin-top: 38px; }
.related h2 { font-size: 17px; font-weight: 800; color: var(--navy); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.related-grid a {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 17px; text-decoration: none; color: inherit;
}
.related-grid a:hover { border-color: var(--emerald); }
.related-grid .r-cat { font-size: 11.5px; font-weight: 800; color: var(--emerald-dark); }
.related-grid .r-title { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.45; }

/* ---------- 광고 슬롯 ---------- */
.ad-slot {
  margin: 28px 0; min-height: 96px;
  border: 1px dashed #d7dfe9; border-radius: 12px; background: #fbfcfe;
  display: flex; align-items: center; justify-content: center;
  color: #a3aebc; font-size: 11.5px; letter-spacing: .08em; font-weight: 700;
}
.ad-slot::before { content: "AD · 광고 영역"; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--navy); color: #a9b8cd; padding: 46px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-footer .brand { color: #fff; font-size: 18px; }
.site-footer .brand small { color: #8fa2bb; }
.site-footer p { margin-top: 12px; font-size: 13px; line-height: 1.7; color: #93a5bd; max-width: 360px; }
.footer-col h3 { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #dbe4f0; margin-bottom: 12px; }
.footer-col a { display: block; color: #a9b8cd; text-decoration: none; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #6ee0bb; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #8296b0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- 일반 페이지(about 등) ---------- */
.doc-page { padding: 42px 0 70px; }
.doc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 46px); box-shadow: var(--shadow); }
.doc-card h1 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; color: var(--navy); letter-spacing: -.04em; }
.doc-card .doc-lead { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.doc-card h2 { margin-top: 34px; font-size: 20px; font-weight: 800; color: var(--navy); }
.doc-card h3 { margin-top: 22px; font-size: 16px; font-weight: 800; color: #1b2f4d; }
.doc-card p, .doc-card li { color: #34445a; font-size: 14.8px; line-height: 1.8; }
.doc-card p { margin-top: 10px; }
.doc-card ul, .doc-card ol { margin-top: 10px; padding-left: 22px; }
.doc-card table { margin-top: 14px; }
.doc-card .updated { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-2); }
.contact-box { margin-top: 20px; background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: 12px; padding: 18px 20px; }
.contact-box strong { color: #084c3b; }

/* ---------- 도구 공통 ---------- */
.tool-page { padding: 30px 0 70px; }
.tool-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; color: var(--navy); letter-spacing: -.045em; }
.tool-sub { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 760px; }
.tool-note { margin-top: 14px; }

.tool-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 28px; }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.form-panel + .form-panel { margin-top: 16px; }
.form-panel h2 { font-size: 15px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.form-panel h2 .step {
  width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: #fff;
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 800;
}
.form-panel .fp-desc { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; color: #465568; }
.field label .req { color: var(--emerald-dark); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 9px;
  background: #fff; padding: 9px 11px; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14, 159, 122, .12);
}
.field textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.field input[type="number"] { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 17px;
  font-size: 14px; font-weight: 800; text-decoration: none; transition: all .15s;
}
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 4px 12px rgba(14, 159, 122, .22); }
.btn-primary:hover { background: var(--emerald-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: #33465f; }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald-dark); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn-row .btn-primary { flex: 1 1 auto; }

.preset-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

/* 견적서 품목 입력 */
.items-editor { margin-top: 14px; }
.items-editor .ie-head, .items-editor .ie-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) 78px 62px 88px 32px; gap: 6px; align-items: center;
}
.items-editor .ie-head { font-size: 11px; font-weight: 800; color: var(--muted-2); padding: 0 2px 6px; }
.items-editor .ie-row { margin-bottom: 6px; }
.items-editor input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 8px; font-size: 13px; background: #fff;
}
.items-editor input:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(14, 159, 122, .1); }
.items-editor .ie-row .ie-del {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; color: #98a4b3;
  width: 32px; height: 32px; display: grid; place-items: center; font-size: 14px; padding: 0;
}
.items-editor .ie-row .ie-del:hover { color: var(--red); border-color: var(--red-line); background: var(--red-50); }
.items-editor input[type="number"] { -moz-appearance: textfield; }
.items-editor input[type="number"]::-webkit-outer-spin-button,
.items-editor input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.totals-editor { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 7px; }
.totals-editor .tr { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #3a4a5e; }
.totals-editor .tr strong { font-variant-numeric: tabular-nums; color: var(--navy); }
.totals-editor .tr.grand { border-top: 1px solid var(--line); padding-top: 9px; margin-top: 3px; font-size: 16px; font-weight: 800; color: var(--navy); }
.totals-editor .tr.grand strong { color: var(--emerald-dark); font-size: 18px; }

/* A4 미리보기 */
.preview-wrap { position: sticky; top: 90px; }
.preview-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 12px; color: var(--muted-2); }
.preview-label strong { color: #33465f; font-weight: 800; }
.sheet {
  background: #fff; width: 100%; max-width: 794px; min-height: 1040px;
  margin: 0 auto; padding: 40px 42px 34px;
  border: 1px solid #dbe2ea; box-shadow: 0 10px 34px rgba(16, 32, 56, .10);
  color: #111; font-size: 12.5px; line-height: 1.5;
  display: flex; flex-direction: column;
}
.sheet-title { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .18em; margin: 2px 0 2px; color: #111; }
.sheet-subtitle { text-align: center; font-size: 11px; color: #666; letter-spacing: .02em; }
.sheet-docno { display: flex; justify-content: flex-end; gap: 18px; margin-top: 14px; font-size: 11px; color: #444; }
.sheet-docno span b { font-weight: 700; color: #111; }
.sheet-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.party { border: 1px solid #333; padding: 8px 10px; position: relative; }
.sheet-parties .party:first-child { padding-bottom: 46px; }
.party h4 { font-size: 10.5px; letter-spacing: .12em; color: #555; margin-bottom: 6px; font-weight: 700; }
.party table { width: 100%; border-collapse: collapse; }
.party th, .party td { text-align: left; padding: 2.5px 0; font-size: 11.5px; vertical-align: top; }
.party th { width: 62px; color: #555; font-weight: 600; }
.party td { color: #111; font-weight: 600; }
.party .seal-cell { position: relative; }
.seal {
  position: absolute; right: 6px; bottom: 6px;
  width: 46px; height: 46px; border: 2px solid #c0392b; border-radius: 50%;
  color: #c0392b; display: grid; place-items: center; transform: rotate(-8deg);
  font-size: 9px; font-weight: 800; text-align: center; line-height: 1.15;
  opacity: .88;
}
.seal span { display: block; }
.sheet-table { width: 100%; border-collapse: collapse; margin-top: 12px; table-layout: fixed; }
.sheet-table th, .sheet-table td { border: 1px solid #333; padding: 6px 6px; font-size: 11.5px; vertical-align: middle; }
.sheet-table thead th { background: #f0f0f0; font-weight: 700; text-align: center; font-size: 11px; }
.sheet-table td.c { text-align: center; }
.sheet-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-table td.l { text-align: left; }
.sheet-table tbody tr { height: 30px; }
.sheet-table tbody tr.empty { height: 30px; }
.sheet-table tfoot td { font-weight: 700; background: #fafafa; }
.sheet-amount { margin-top: 12px; border: 2px solid #333; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-amount .amt-label { font-size: 11px; letter-spacing: .1em; color: #555; }
.sheet-amount .amt-word { font-size: 14px; font-weight: 800; }
.sheet-amount .amt-num { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet-vat { margin-top: 5px; text-align: right; font-size: 10px; color: #444; letter-spacing: -.01em; }
.sheet-notes { margin-top: 12px; border: 1px solid #333; padding: 8px 10px; min-height: 54px; }
.sheet-notes h4 { font-size: 10.5px; letter-spacing: .1em; color: #555; margin-bottom: 4px; }
.sheet-notes p { font-size: 11px; color: #222; white-space: pre-wrap; line-height: 1.55; }
.sheet-sign { margin-top: auto; padding-top: 22px; text-align: center; }
.sheet-sign .sign-line { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.sheet-sign .sign-company { margin-top: 6px; font-size: 12.5px; font-weight: 800; }
.sheet-sign .sign-note { margin-top: 8px; font-size: 10px; color: #777; line-height: 1.5; }
.sheet-foot { margin-top: 16px; padding-top: 8px; border-top: 1px solid #ddd; display: flex; justify-content: space-between; gap: 10px; font-size: 9.5px; color: #777; }

/* 견적서 인쇄 */
@page { size: A4; margin: 12mm 12mm 10mm; }

/* ---------- 계산기 ---------- */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.calc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.calc-card h2 { font-size: 17.5px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.calc-card h2 .calc-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--emerald-50); color: var(--emerald-dark); display: grid; place-items: center; font-size: 14px; }
.calc-card .c-desc { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.calc-card .field { margin-top: 12px; }
.calc-toggles { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.calc-toggles label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #3a4a5e; }
.calc-out { margin-top: 16px; border-radius: 12px; background: #f7fafc; border: 1px solid var(--line); overflow: hidden; }
.calc-out .co-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: #42526a; }
.calc-out .co-row:last-child { border-bottom: 0; }
.calc-out .co-row strong { font-variant-numeric: tabular-nums; color: var(--navy); font-size: 15px; }
.calc-out .co-row.is-main { background: var(--emerald-50); }
.calc-out .co-row.is-main strong { color: var(--emerald-dark); font-size: 19px; }
.calc-out .co-row .k small { display: block; font-size: 11px; color: var(--muted-2); font-weight: 500; }
.calc-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 반응형 ---------- */
@media (max-width: 1060px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .tool-layout { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
  .deadline-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .tool-highlight-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .quick-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .site-header .container { min-height: 0; padding: 8px 0 7px; gap: 4px; flex-wrap: wrap; }
  .brand small { display: none; }
  .nav {
    width: 100%; margin-left: 0; gap: 2px; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 0 0 auto; padding: 7px 10px; font-size: 13px; }
  .nav .nav-tool { padding: 7px 11px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container, .container-narrow { width: calc(100% - 32px); }
  .hero { padding: 36px 0 34px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 15px; }
  .search-field input { padding: 14px 8px; font-size: 15px; }
  .search-field .search-count { display: none; }
  .deadline { border-radius: 16px; padding: 20px 18px; margin-top: -18px; }
  .deadline-grid { grid-template-columns: 1fr; gap: 8px; }
  .deadline-head { margin-bottom: 12px; }
  .deadline-head h2 { font-size: 17px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 18px; }
  .card h3 { font-size: 17px; }
  .section { padding: 40px 0; }
  .page-head { padding: 20px 0 30px; }
  .page-head h1 { font-size: 27px; }
  .page-head h1 br { display: none; }
  .site-header .container { padding: 7px 0 6px; }
  .brand { font-size: 16.5px; }
  .nav a { font-size: 12.5px; padding: 6px 8px; }
  .nav a[data-section="home"] { display: none; }
  .page-head .subtitle { font-size: 14.5px; }
  .article-wrap { padding: 26px 0 48px; }
  .quick-answer { padding: 18px 17px; }
  .qa-head h2 { font-size: 17px; }
  .qa-lead { font-size: 14.5px; }
  .qa-stats { gap: 6px; }
  .qa-stat { flex: 1 1 40%; min-width: 0; padding: 7px 10px; }
  .prose h2 { font-size: 20px; }
  .prose p { font-size: 15px; }
  table.tbl { font-size: 13px; }
  .related-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 34px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .topbar .topbar-right { display: none; }
  .sheet { padding: 22px 18px; font-size: 11px; min-height: 0; }
  .sheet-title { font-size: 22px; }
  .sheet-parties { grid-template-columns: 1fr; gap: 8px; }
  .sheet-table { font-size: 10px; }
  .sheet-table th, .sheet-table td { padding: 4px 3px; font-size: 10px; }
  .sheet-amount { flex-wrap: wrap; gap: 4px; }
  .sheet-amount .amt-word { font-size: 12px; }
  .items-editor .ie-head { display: none; }
  .items-editor .ie-row { grid-template-columns: 1.4fr 52px 52px 74px 30px; gap: 4px; }
  .items-editor input { padding: 7px 5px; font-size: 12.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 18px; }
  .calc-card { padding: 18px; }
}

/* ---------- 인쇄 ---------- */
@media print {
  html, body { background: #fff !important; }
  body { font-size: 10pt; }
  .no-print, .site-header, .site-footer, .topbar, .ad-slot, .skip-link, .preview-label { display: none !important; }
  .tool-page, .tool-layout, .preview-wrap { padding: 0 !important; margin: 0 !important; display: block !important; }
  .sheet {
    display: block; width: 100%; max-width: none; min-height: 0;
    margin: 0; padding: 0; border: 0; box-shadow: none;
  }
  .sheet-title { font-size: 24pt; }
  .sheet-table tbody tr { height: 9mm; }
  .sheet-notes { min-height: 16mm; }
  .sheet-sign { padding-top: 8mm; }
  .sheet-foot { position: fixed; bottom: 0; left: 0; right: 0; }
  a { color: inherit; text-decoration: none; }
}
