/* net_salary_calculator — payslip-style layout: inputs left, the payslip (net figure + itemised deductions) right. Swiss red accent. */
body[data-tool="net_salary_calculator"] {
  --ns-bg: #F7F6F3; --ns-card: #FFFFFF; --ns-ink: #16181D; --ns-ink2: #4A4F59; --ns-mute: #8A8F99; --ns-line: #E4E2DC; --ns-soft: #F1EFEA;
  --ns-red: #D52B1E; --ns-red-d: #A81F14; --ns-net: #1D6B4F;
  --ns-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ns-bg); color: var(--ns-ink); font-family: var(--ns-sans);
}
body[data-tool="net_salary_calculator"] .dt-nav { background: var(--ns-bg); border-bottom: 1px solid var(--ns-line); }
body[data-tool="net_salary_calculator"] .dt-nav .navbar-brand { color: var(--ns-ink); }
.dt-bare { display: block; width: 100%; flex: 1; }
.nsx { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.ns-hero h1 { font-size: 44px; line-height: 1.06; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.ns-hero h1::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .28em; vertical-align: .02em; border-radius: 4px;
  background: var(--ns-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z'/%3E%3C/svg%3E") center/100% no-repeat; }
.ns-hero p { margin: 12px 0 0; font-size: 18px; color: var(--ns-ink2); max-width: 64ch; }

.ns { margin-top: 24px; background: var(--ns-card); border: 1px solid var(--ns-line); border-radius: 18px; padding: 18px; }
.ns-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--ns-line); }
.ns-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--ns-soft); }
.ns-seg button { border: 0; border-radius: 9px; background: transparent; padding: 9px 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ns-ink2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.ns-seg button[aria-pressed="true"] { background: var(--ns-ink); color: #fff; }
.ns-seg button:focus-visible, .ns select:focus-visible, .ns input:focus-visible { outline: 2px solid var(--ns-red); outline-offset: 2px; }
.ns-seg-s button { padding: 6px 11px; font-size: 13px; }
.ns-country button[aria-pressed="true"] { background: var(--ns-card); color: var(--ns-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ns-flag { width: 18px; height: 13px; border-radius: 2px; display: inline-block; flex: none; }
.ns-flag-ch { width: 14px; height: 14px; background: var(--ns-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M13 6h6v7h7v6h-7v7h-6v-7H6v-6h7z'/%3E%3C/svg%3E") center/100% no-repeat; }
.ns-flag-de { background: linear-gradient(#111 0 33.3%, #DD0000 33.3% 66.6%, #FFCE00 66.6%); }
.ns-flag-at { background: linear-gradient(#C8102E 0 33.3%, #fff 33.3% 66.6%, #C8102E 66.6%); box-shadow: inset 0 0 0 1px #ddd; }
.ns-year { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ns-mute); text-transform: uppercase; letter-spacing: .05em; }
.ns-year select { text-transform: none; }

.ns-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "top out" "opts out"; grid-template-rows: auto 1fr; gap: 16px 22px; margin-top: 18px; align-items: start; }
.ns-top { grid-area: top; } .ns-opts { grid-area: opts; } .ns-out { grid-area: out; }
.ns-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ns-amt { display: flex; flex-direction: column; gap: 8px; }
.ns-amt > label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ns-mute); }
.ns-amt-in { display: flex; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--ns-ink); padding-bottom: 4px; }
.ns-amt-in:focus-within { border-bottom-color: var(--ns-red); }
.ns-amt-in span { font-size: 22px; font-weight: 700; color: var(--ns-mute); }
.ns-amt-in input { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: var(--ns-ink); padding: 0; outline: none; -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
.ns input::-webkit-outer-spin-button, .ns input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ns-fs { border: 1px solid var(--ns-line); border-radius: 14px; padding: 6px 14px 10px; margin: 0; min-width: 0; }
.ns-fs legend { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ns-mute); }
.ns-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--ns-line); }
.ns-row:last-child { border-bottom: 0; }
.ns-row > label { font-size: 14px; font-weight: 600; color: var(--ns-ink); min-width: 0; }
.ns-row > label small { display: block; font-size: 12px; font-weight: 400; color: var(--ns-mute); }
.ns-row select, .ns-row input[type="number"], .ns-year select { font: inherit; font-size: 15px; padding: 7px 9px; border: 1px solid var(--ns-line); border-radius: 8px; background: #fff; color: var(--ns-ink); max-width: 210px; min-width: 0; }
.ns-row input[type="number"] { width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.ns-pct { display: inline-flex; align-items: center; gap: 4px; color: var(--ns-mute); }
.ns-chk { justify-content: flex-start; }
.ns-chk input { width: 18px; height: 18px; accent-color: var(--ns-red); flex: none; }
body[data-country="DE"] .only-CH, body[data-country="AT"] .only-CH, body:not([data-country="DE"]) .only-DE, body:not([data-country="AT"]) .only-AT { display: none; }
body:not([data-bvg="pct"]) .only-bvgpct { display: none; }
body:not([data-avab="1"]) .only-avab { display: none; }

/* the payslip */
.ns-out { min-width: 0; background: var(--ns-soft); border-radius: 14px; padding: 18px; }
.ns-big { display: flex; flex-direction: column; gap: 4px; }
.ns-big-l { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ns-mute); }
.ns-big-l em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ns-big b { font-size: 50px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--ns-net); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ns-big-s { font-size: 14px; color: var(--ns-ink2); }
.ns-big-s strong { color: var(--ns-ink); font-variant-numeric: tabular-nums; }
.ns-solved { margin-top: 6px; font-size: 15px; padding: 8px 12px; border-radius: 10px; background: #fff; border-left: 4px solid var(--ns-red); }
.ns-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 16px 0 6px; background: #ddd; }
.ns-bar i { display: block; height: 100%; }
.ns-bar .ns-bar-net { background: var(--ns-net); }
.ns-tw { overflow-x: auto; }
.ns-t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ns-t th, .ns-t td { padding: 8px 6px; border-bottom: 1px solid var(--ns-line); text-align: right; vertical-align: top; }
.ns-t th[scope="row"], .ns-t thead th:first-child { text-align: left; font-weight: 500; }
.ns-t thead th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ns-mute); }
.ns-t td small { display: block; font-size: 11.5px; color: var(--ns-mute); }
.ns-t td:nth-child(2) { color: var(--ns-mute); }
.ns-sz { font-size: 12.5px; white-space: nowrap; }
.ns-nw { white-space: nowrap; }
.ns-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }
.ns-gross th, .ns-gross td { font-weight: 700; }
.ns-sum th, .ns-sum td { font-weight: 700; }
.ns-netrow th, .ns-netrow td { font-weight: 800; color: var(--ns-net); border-bottom: 0; font-size: 15px; }
.ns-notes { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ns-notes li { font-size: 13.5px; line-height: 1.5; color: var(--ns-ink2); padding: 9px 12px; background: #fff; border-radius: 10px; border-left: 4px solid var(--ns-red); }
.ns-emp { margin-top: 12px; background: #fff; border-radius: 10px; padding: 10px 12px; }
.ns-emp summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.ns-emp p { font-size: 12.5px; color: var(--ns-mute); margin: 8px 0 0; }
.ns-err { color: var(--ns-red); }

.ns-adwrap { margin: 28px 0; }

/* article */
.ns-article { max-width: 780px; margin: 40px auto 0; font-size: 17px; line-height: 1.7; color: #262A31; }
.ns-article h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; margin: 44px 0 12px; color: var(--ns-ink); }
.ns-article h3 { font-size: 19px; margin: 24px 0 6px; }
.ns-article p { margin: 0 0 14px; }
.ns-article ul { padding-left: 20px; }
.ns-article li { margin-bottom: 8px; }
.ns-at { overflow-x: auto; margin: 16px 0 20px; }
.ns-at table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border: 1px solid var(--ns-line); border-radius: 12px; overflow: hidden; font-variant-numeric: tabular-nums; }
.ns-at caption { caption-side: top; text-align: left; font-size: 13px; font-weight: 700; color: var(--ns-mute); padding: 0 0 6px; }
.ns-at th, .ns-at td { padding: 9px 12px; border-bottom: 1px solid var(--ns-line); text-align: left; vertical-align: top; }
.ns-at thead th { background: var(--ns-soft); font-size: 13px; }
.ns-at tbody th { font-weight: 600; }
.ns-checked { font-size: 14px; color: var(--ns-mute); }
.ns-src { font-size: 14.5px; line-height: 1.5; }
.ns-src a { color: var(--ns-red-d); overflow-wrap: anywhere; }

.ns-faq { max-width: 780px; margin: 48px auto 0; }
.ns-faq h2, .ns-more h2 { font-size: 27px; letter-spacing: -.02em; margin: 0 0 14px; }
.ns-q { border-bottom: 1px solid var(--ns-line); padding: 14px 0; }
.ns-q summary { cursor: pointer; font-size: 17px; font-weight: 700; }
.ns-q p { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: #343944; }
.ns-more { max-width: 780px; margin: 48px auto 0; }
.ns-more > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ns-more a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--ns-line); border-radius: 12px; background: #fff; color: var(--ns-ink); text-decoration: none; }
.ns-more a:hover { border-color: var(--ns-red); }
.ns-more b { font-size: 15px; } .ns-more span { font-size: 13.5px; color: var(--ns-mute); }

@media (max-width: 860px) {
  .ns-grid { grid-template-columns: 1fr; grid-template-areas: "top" "out" "opts"; }
  .ns-hero h1 { font-size: 34px; }
  .ns-hero p { font-size: 16px; }
}
@media (max-width: 480px) {
  .nsx { padding: 22px 12px 48px; }
  .ns { padding: 12px; border-radius: 14px; }
  .ns-seg button { padding: 8px 10px; font-size: 14px; }
  .ns-amt-in input { font-size: 34px; }
  .ns-big b { font-size: 40px; }
  .ns-out { padding: 14px 12px; }
  .ns-t { font-size: 12.5px; }
  .ns-t th, .ns-t td { padding: 7px 3px; }
  .ns-t td:nth-child(2), .ns-t thead th:nth-child(2) { display: none; }
  .ns-t tr { display: grid; grid-template-columns: 1fr 1fr; }
  .ns-t thead th:first-child { display: none; }
  .ns-t th[scope="row"] { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; font-weight: 600; }
  .ns-t td { border-bottom: 1px solid var(--ns-line); }
  .ns-sz { white-space: normal; }
  .ns-dot { margin-right: 4px; }
  .ns-row select { max-width: 180px; font-size: 14px; }
  .ns-country { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .ns-country button { justify-content: center; padding: 8px 4px; font-size: 13.5px; gap: 5px; }
  .ns-head { gap: 10px; }
  .ns-article { font-size: 16px; }
  .ns-article h2 { font-size: 23px; }
}
