/* 얼마집 연봉 계산기 — 본 사이트(eolmazip.com)와 같은 색·글꼴 토큰 */
:root {
  --page: #f6f7f9; --surface: #fff; --surface-2: #f1f2f5; --ink: #14171c; --ink2: #444b56; --muted: #626a7c; --line: #e3e6ea;
  --brand: #2874d0; --brand-text: #2468be; --brand-ink: #fff; --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --warn: #9a4a00; --warn-bg: #fff4e5; --ok: #1a6b3a; --ok-bg: #e9f7ef;
  --r: 12px; --r-ctl: 8px; --sh: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
}
:root:not([data-theme="light"]) { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0f1217; --surface: #171b22; --surface-2: #1f242d; --ink: #eef0f3; --ink2: #c3c8d0; --muted: #98a0ae; --line: #2a303a;
    --brand: #5b9bf0; --brand-text: #7db0f5; --brand-ink: #0b1220; --brand-soft: color-mix(in srgb, var(--brand) 16%, #171b22);
    --warn: #ffb866; --warn-bg: #2b2012; --ok: #7bd69d; --ok-bg: #12261b; --sh: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-text); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* 머리말 */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo b { color: var(--brand-text); }
.logo span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.home-link { font-size: 13px; text-decoration: none; color: var(--ink2); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 5px 10px; white-space: nowrap; }
.home-link:hover { background: var(--surface-2); }
.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0 auto; padding: 8px 16px; max-width: 1040px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }

/* 본문 */
main { padding: 24px 0 40px; }
h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.3; letter-spacing: -.02em; }
.lead { margin: 0 0 18px; color: var(--ink2); font-size: 15px; }
h2 { margin: 28px 0 10px; font-size: 19px; letter-spacing: -.01em; }
h3 { margin: 18px 0 6px; font-size: 16px; }
p { margin: 0 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 16px; }
.grid { display: grid; gap: 14px; align-items: start; }
@media (min-width: 900px) { .grid { grid-template-columns: 340px minmax(0, 1fr); } .grid > .card:first-child { position: sticky; top: 12px; } }

/* 입력 */
form.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld.wide { grid-column: 1 / -1; }
.fld label { font-size: 13px; font-weight: 600; color: var(--ink2); }
.fld input, .fld select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.fld input:focus, .fld select:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 30%, transparent); outline-offset: 0; }
.inp { position: relative; display: block; }
.inp input { padding-right: 52px; text-align: right; }
.inp em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 14px; color: var(--muted); pointer-events: none; }
.ko { min-height: 1.3em; font-size: 12px; line-height: 1.3; color: var(--muted); }
.go { grid-column: 1 / -1; min-height: 46px; border: 0; border-radius: var(--r-ctl); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; }
.go:hover { filter: brightness(.95); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink2); background: var(--surface); }
.chips a:hover { background: var(--surface-2); }
.chips a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; }

/* 결과 */
.hero { padding: 4px 2px 14px; }
.hero-k { font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-v { text-align: left; font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 4px; }
.hero-v small { font-size: 18px; font-weight: 600; margin-left: 3px; color: var(--ink2); }
.hero-s { font-size: 14px; color: var(--ink2); }
.split { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 28%, transparent); overflow: hidden; margin: 12px 0 6px; }
.split i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.split-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.tw { overflow-x: auto; margin: 0 -2px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.tbl thead th:not(:first-child), .tbl td.num { text-align: right; }
.tbl tbody th, .tbl tfoot th { font-weight: 500; }
.tbl .rn { display: block; }
.tbl .rt { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.4; }
.tbl tfoot th { font-weight: 700; }
.tbl tfoot td { font-weight: 700; }
.tbl tr.sum th, .tbl tr.sum td { background: var(--brand-soft); color: var(--brand-text); border-top: 0; font-size: 15px; }
.bar { display: block; height: 4px; margin: 5px 0 2px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 20%, transparent); max-width: 160px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); }
.note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.warn, .ok { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-ctl); font-size: 14px; }
.warn { background: var(--warn-bg); color: var(--warn); }
.ok { background: var(--ok-bg); color: var(--ok); }
.actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.actions button { border: 1px solid var(--line); background: var(--surface); color: var(--ink2); border-radius: var(--r-ctl); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.actions button:hover { background: var(--surface-2); }

/* 글 */
.prose { color: var(--ink2); font-size: 15px; }
.prose li { margin: 4px 0; }
.faq details { border-top: 1px solid var(--line); padding: 12px 2px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq p { margin: 8px 0 0; color: var(--ink2); font-size: 14.5px; }
.cols { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; }
.cols a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); }
.cols a:hover { background: var(--surface-2); }
.cols b { display: block; font-size: 15px; }
.cols span { font-size: 13px; color: var(--muted); }
table.plain { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.plain th, table.plain td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; }
table.plain thead th { border-top: 0; background: var(--surface-2); font-size: 12.5px; color: var(--ink2); }
table.plain td.num, table.plain th.num { text-align: right; }
table.plain tbody tr:hover { background: var(--surface-2); }
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 20px 0 28px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--ink2); }
.foot p { margin: 0 0 6px; }
@media (max-width: 520px) {
  h1 { font-size: 22px; }
  .hero-v { font-size: 34px; }
  .card { padding: 14px; }
  .logo span { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .go, .home-link, .cols a, .chips a { transition: background-color .15s, filter .15s; } }
