/* Lương Net — calm "bank statement" look: deep teal ink, warm paper, tabular figures. */
:root {
  --bg: #f5f4ef;
  --card: #ffffff;
  --line: #e4e2da;
  --line-2: #d3d0c6;
  --ink: #142824;
  --ink-2: #44524e;
  --muted: #7c8784;
  --brand: #0f3d33;
  --brand-2: #17614f;
  --accent: #1d8a6b;
  --accent-soft: #e2f1ea;
  --neg: #b4431f;
  --gold: #b7862b;
  --r: 14px;
  --shadow: 0 1px 2px rgb(20 40 36 / .05), 0 8px 24px rgb(20 40 36 / .06);
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); font-variant-numeric: tabular-nums; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.top { background: var(--brand); color: #e6f0ec; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 17px; margin-right: auto; }
.logo small { display: block; font-weight: 400; font-size: 11.5px; color: #9cc3b6; margin-top: -2px; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--gold); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #cfe2db; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; }
.nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.nav a.on { background: rgb(255 255 255 / .14); color: #fff; font-weight: 500; }

.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-2); }

/* hero */
.hero { padding: 40px 0 26px; }
.hero.small { padding: 24px 0 22px; }
.eyebrow { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--brand-2); font-size: 12.5px; font-weight: 500; }
.hero h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; color: var(--brand); }
.hero.small h1 { font-size: clamp(24px, 3vw, 34px); }
.lead { margin: 12px 0 0; max-width: 72ch; color: var(--ink-2); font-size: 16px; }
.lead b { color: var(--ink); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: var(--brand); }
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }

/* form */
.form { display: grid; gap: 16px; position: sticky; top: 82px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px; border-radius: 7px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff;
  font: 500 16px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums;
}
.field.big input { height: 58px; font-size: 26px; font-weight: 600; color: var(--brand); letter-spacing: .01em; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field small { color: var(--muted); font-size: 12.5px; }
.row2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.adv { border-top: 1px dashed var(--line-2); padding-top: 12px; }
.adv summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--brand-2); }
.adv .field { margin-top: 12px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 10px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 500; border: 0; font: 500 15px var(--sans); cursor: pointer; }
.btn:hover { background: var(--brand-2); }

/* result */
.big-label { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.bignum { margin: 2px 0 16px; font-size: clamp(34px, 4.6vw, 48px); font-weight: 700; color: var(--accent); letter-spacing: -.01em; line-height: 1.1; }
.bignum span { font-size: .55em; color: var(--muted); font-weight: 500; }
.chips3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.chips3 div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.chips3 span { display: block; font-size: 12px; color: var(--muted); }
.chips3 b { font-size: 16px; font-weight: 600; }
.share { margin-top: 14px; background: none; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; font: 500 13.5px var(--sans); color: var(--brand-2); cursor: pointer; }
.share:hover { border-color: var(--accent); }

/* tables */
table { width: 100%; border-collapse: collapse; }
.bd th, .bd td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bd th { text-align: left; font-weight: 400; color: var(--ink-2); }
.bd td { text-align: right; font-weight: 500; white-space: nowrap; padding-left: 12px; }
.bd tr.neg td { color: var(--neg); }
.bd tr.muted th, .bd tr.muted td { color: var(--muted); }
.bd tr.sub th, .bd tr.sub td { font-weight: 600; color: var(--ink); background: linear-gradient(var(--bg), var(--bg)) no-repeat; }
.bd tr.total th, .bd tr.total td { border-bottom: 0; border-top: 2px solid var(--brand); padding-top: 12px; font-size: 16px; font-weight: 700; color: var(--brand); }
.grid th, .grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.grid thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line-2); }
.grid td:last-child, .grid th:last-child { text-align: right; }
.grid tr.total td { font-weight: 700; border-top: 2px solid var(--brand); }
.tw { overflow-x: auto; }
.note { color: var(--muted); font-size: 13.5px; }

/* kpis on salary pages */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi b { display: block; margin-top: 4px; font-size: 22px; font-weight: 700; color: var(--brand); }
.kpi:first-child b { color: var(--accent); }

/* offers (affiliate) */
.offers[hidden] { display: none; }
.offers { margin-top: 20px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(135deg, #fff8e8, #fffdf6); border: 1px solid #ecdcb4; }
.offers h2 { font-size: 16px; color: var(--brand); margin-bottom: 12px; }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.offer { display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: #fff; border: 1px solid #efe3c6; text-decoration: none; color: var(--ink); }
.offer:hover { border-color: var(--gold); }
.offer span { font-size: 13.5px; color: var(--ink-2); }
.offer em { font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--brand-2); }
.fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* prose / content */
.prose { margin-top: 36px; max-width: 820px; }
.prose h2 { font-size: 21px; color: var(--brand); margin: 28px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font-size: 13.5px; text-decoration: none; color: var(--ink-2); }
.links a:hover, .links a.on { border-color: var(--accent); color: var(--brand-2); }
.links a.on { background: var(--accent-soft); font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 8px; }
.pager a { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; text-decoration: none; font-weight: 500; font-size: 14px; }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq p { margin: 8px 0 0; }
.ad { margin: 24px 0; min-height: 90px; }

/* footer */
.foot { margin-top: 56px; background: #10231f; color: #a9bdb6; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 20px; }
.foot-brand { color: #fff; font-size: 16px; }
.foot p { margin: 8px 0 0; line-height: 1.6; }
.foot h2 { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.foot-in a { display: block; color: #a9bdb6; text-decoration: none; padding: 3px 0; }
.foot-in a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid rgb(255 255 255 / .08); font-size: 12.5px; color: #7f948d; }

@media (max-width: 900px) {
  .calc, .two { grid-template-columns: 1fr; }
  .form { position: static; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top-in { flex-wrap: wrap; gap: 6px 12px; padding: 8px 0 4px; }
  .logo { margin-right: 0; }
  .nav { width: 100%; }
  .nav a { padding: 7px 10px; font-size: 13.5px; }
  .hero { padding: 26px 0 18px; }
  .card { padding: 18px 16px; }
  .chips3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .chips3 b { font-size: 14px; }
  .row2 { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; }
  .grid th, .grid td { padding: 8px 6px; font-size: 13px; }
}
