:root {
  --bg: #f6f5f2;
  --ink: #0f1012;
  --ink-2: #3b3d42;
  --muted: #6f7178;
  --line: #dcd7cc;
  --card: #ffffff;
  --lime: #cfe98a;
  --coral: #e07a5f;
  --amber: #e6b65c;
  --violet: #9d94cf;
  --sky: #7fb5d5;
  --dark: #1f2125;
  --dark-2: #2b2e33;
  --radius: 22px;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'Plus Jakarta Sans', system-ui, sans-serif; /* numbers use tabular figures instead of a monospace font */
  --receipt: 'DM Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: inherit; }
h1, h2 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; }
h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: .12em; text-underline-offset: .12em; }
h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 600; }
.lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.muted { color: var(--muted); }
.card { background: var(--card); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: 0 0 0 1px #e7e4dd; }
.card.dark { background: var(--dark); color: #f4f1ea; }
.card.dark .lbl { color: #9a9ca3; }

main { max-width: 1140px; margin: 0 auto; padding: 0 16px 80px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
main > *, .hero > *, .row > *, .freedom > *, .receipt-wrap > *, .compare > * { min-width: 0; }
body { overflow-x: hidden; }

/* Header */
.top { max-width: 1140px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px var(--display); letter-spacing: -0.03em; }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.pill { background: #ecebe6; color: var(--ink-2); font: 600 12px var(--mono); padding: 5px 10px; border-radius: 999px; }


/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding-top: 24px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 30em; margin: 22px 0 0; }
@media (max-width: 920px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.controls { display: grid; gap: 22px; }
.salary-input { display: flex; align-items: baseline; gap: 6px; border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.salary-input .cur { font: 600 32px var(--display); color: var(--muted); }
.salary-input input { border: 0; outline: 0; background: transparent; width: 100%; font: 600 clamp(34px, 4.5vw, 44px) var(--display); letter-spacing: -0.03em; color: var(--ink); padding: 0; min-width: 0; }
.ticks { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--muted); margin-top: 2px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 10px 0 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--fill, 0%), var(--line) var(--fill, 0%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); margin-top: -9px; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .15s; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } .salary-input .cur { font-size: 34px; } }
.field .lbl b { color: var(--ink); font-family: var(--mono); }

.seg { display: inline-flex; background: #efebe2; border-radius: 12px; padding: 4px; gap: 2px; }
.seg-wrap { flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: 500 14px var(--body); color: var(--ink-2); padding: 8px 12px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.seg button[aria-checked=true] { background: var(--ink); color: #fff; }
.seg-dark { background: var(--dark-2); }
.seg-dark button { color: #b9bbc1; }
.seg-dark button[aria-checked=true] { background: #fff; color: var(--ink); }

.toggles { display: grid; gap: 10px; align-content: end; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* Result */
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.big { font: 700 clamp(44px, 6.5vw, 72px)/1 var(--display); letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 4px; color: #fff; }
.big .cur { font-size: .55em; color: #b9bbc1; }
.big .per { font: 500 18px var(--body); letter-spacing: 0; color: #9a9ca3; margin-left: 10px; }
.sub { margin: 10px 0 0; color: #b9bbc1; }
.bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 28px 0 14px; background: var(--dark-2); }
.bar span { height: 100%; transition: flex-basis .6s cubic-bezier(.2,.8,.2,1); }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; color: #d5d6da; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legend b { font-family: var(--mono); font-weight: 600; color: #fff; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #26282d; }
.stats b { display: block; font: 600 24px var(--display); letter-spacing: -0.02em; }
.stats small { color: #9a9ca3; font-size: 13px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* Tax freedom */
.freedom { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.hl { box-shadow: inset 0 -.18em 0 var(--lime); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.months div { position: relative; height: 56px; border-radius: 10px; background: #efebe2; overflow: hidden; }
.months div::before { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--f, 0)); background: var(--coral); transition: transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 40ms); }
.months span { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 600 11px var(--mono); color: var(--ink-2); z-index: 1; }
@media (max-width: 820px) { .freedom { grid-template-columns: minmax(0, 1fr); } .months { gap: 3px; } .months div { height: 56px; } .months span { font-size: 9px; } }

/* Receipt */
.receipt-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 20px 0; }
.receipt-copy h2 { margin-bottom: 14px; }
@media (max-width: 860px) { .receipt-wrap { grid-template-columns: minmax(0, 1fr); } }
.receipt {
  font: 13px/1.5 var(--receipt); background: #fffef9; color: #1b1b1b; padding: 28px 26px 34px; max-width: 420px; justify-self: center; width: 100%;
  box-shadow: 0 0 0 1px #e7e4dd;
  --z: 10px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.rc-head { text-align: center; display: grid; gap: 2px; padding: 8px 0 14px; border-bottom: 1px dashed #999; }
.rc-head b { font-size: 20px; letter-spacing: .25em; }
.rc-lines { list-style: none; padding: 10px 0; margin: 0; border-bottom: 1px dashed #999; }
.rc-lines li { display: flex; gap: 8px; padding: 3px 0; opacity: 0; transform: translateY(4px); animation: rc-in .3s forwards; animation-delay: calc(var(--i) * 45ms); }
.rc-lines li span:nth-child(2) { flex: 1; overflow: hidden; white-space: nowrap; }
.rc-lines li span:nth-child(2)::after { content: ' ...............................................'; color: #bbb; }
@keyframes rc-in { to { opacity: 1; transform: none; } }
.rc-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; padding: 12px 0; border-bottom: 1px dashed #999; }
.rc-foot { text-align: center; padding-top: 14px; color: #777; font-size: 11px; letter-spacing: .08em; }

.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.btn { border: 0; cursor: pointer; background: var(--ink); color: #fff; font: 600 15px var(--body); padding: 13px 20px; border-radius: 12px; transition: transform .15s; }
.btn:hover { opacity: .88; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.toast { font-size: 14px; color: var(--ink-2); opacity: 0; transition: opacity .2s; }
.toast.on { opacity: 1; }

/* Chart */
.trap { display: grid; gap: 18px; }
.trap-head p { max-width: 46em; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis text { font: 11px var(--mono); fill: var(--muted); }
.chart .grid line { stroke: #ece8df; }
.chart .you circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.chart .you text { font: 600 12px var(--mono); fill: var(--ink); }
.chart .trap-label { font: 700 13px var(--display); fill: var(--coral); }

/* Tips */
.dodge h2 { margin-bottom: 22px; }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tip { background: var(--card); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; align-content: start; box-shadow: 0 0 0 1px #e7e4dd; position: relative; overflow: hidden; }
.tip:first-child { box-shadow: inset 3px 0 0 var(--lime), 0 0 0 1px #e7e4dd; }
.tip h3 { font: 600 18px/1.25 var(--display); letter-spacing: -0.02em; margin: 0; }
.tip p { margin: 0; color: var(--ink-2); font-size: 15px; }
.tip .save { justify-self: start; font: 600 12px var(--mono); background: #eef5dc; color: #3d5a12; padding: 5px 10px; border-radius: 999px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Compare */
.compare { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.compare .flag { font-size: 40px; line-height: 1; }
.compare p { margin: 6px 0 0; color: var(--ink-2); }
.compare button { margin-top: 14px; }

/* Footer */
.foot { max-width: 1140px; margin: 0 auto; padding: 36px 16px 60px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr; gap: 32px; font-size: 14px; color: var(--ink-2); }
.foot .src { display: grid; gap: 6px; }
.foot .src a { color: var(--ink-2); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
  .rc-lines li { opacity: 1; transform: none; }
}

@media (max-width: 560px) { .compare { grid-template-columns: minmax(0, 1fr); } .compare .flag { font-size: 40px; } .ticks span:nth-child(even) { visibility: hidden; } }

/* ── Company page ─────────────────────────────────────── */
.top nav a[aria-current=page] { color: var(--ink); font-weight: 600; }
.ct-bands { margin: 28px 0 6px; }
.ctb-track { position: relative; display: flex; height: 30px; border-radius: 12px; overflow: visible; }
.ctb { position: relative; display: flex; align-items: center; justify-content: center; font: 600 13px var(--mono); overflow: hidden; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.ctb em { font-style: normal; }
.ctb.small { background: var(--lime); color: var(--ink); border-radius: 12px 0 0 12px; }
.ctb.marginal { background: var(--coral); color: #fff; }
.ctb.main { background: var(--amber); color: var(--ink); border-radius: 0 12px 12px 0; }
.ctb-you { position: absolute; top: -8px; bottom: -8px; width: 4px; margin-left: -2px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 3px var(--dark); transition: left .5s cubic-bezier(.2,.8,.2,1); }
.ctb-scale { position: relative; height: 22px; margin-top: 8px; font: 12px var(--mono); color: #9a9ca3; }
.ctb-scale span { position: absolute; transform: translateX(-50%); }
.ctb-scale span:first-child { transform: none; }

.pay-controls { margin-top: 22px; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
@media (max-width: 900px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.way { border: 2px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.way.best { border-color: #b9d36a; }
.way h3 { font: 700 22px var(--display); letter-spacing: -0.02em; margin: 0; }
.way p { margin: 0; font-size: 14px; }
.way .save { justify-self: start; font: 600 12px var(--mono); background: #eef5dc; color: #3d5a12; padding: 4px 10px; border-radius: 999px; }
.way-take b { font: 700 30px var(--display); letter-spacing: -0.02em; }
.way ul { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: 14px; }
.way li { display: flex; justify-content: space-between; color: var(--ink-2); }
.way li span:last-child { font-family: var(--mono); }
.way .retained { font: 600 14px var(--mono); color: var(--ink); }

.table-wrap { overflow-x: auto; margin-top: 16px; }
table.rates { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
table.rates th, table.rates td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rates th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
table.rates small { color: var(--muted); }
table.rates b { font-family: var(--display); font-size: 18px; }

/* ── World: home, country pages, compare, corporate ───────────── */
.world-hero { padding-top: 24px; display: grid; gap: 22px; }
.world-hero h1 { max-width: 15ch; }
.world-hero .lede { margin: 0; }
.world-search { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: end; }
@media (max-width: 760px) { .world-search { grid-template-columns: minmax(0, 1fr); } }
.select { font: 500 15px var(--body); color: var(--ink); background: #efebe2; border: 0; border-radius: 12px; padding: 11px 12px; width: 100%; cursor: pointer; }
.cur-select { width: auto; font: 700 20px var(--display); padding: 8px 10px; }
.salary-input.small input { font-size: 36px; }
.filter { font: 500 17px var(--body); border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; width: 100%; outline: 0; }
.filter:focus { border-color: var(--ink); }

.leader .lb { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: lb; }
.lb li a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; text-decoration: none; overflow: hidden; background: #f7f5ef; }
.lb li a > * { position: relative; z-index: 1; }
.lb li a i { position: absolute; inset: 0 auto 0 0; background: var(--lime); opacity: .35; z-index: 0; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.lb li b { font-family: var(--mono); }
.lb .lb-worst { padding: 12px 0 2px; }
.lb .lb-worst ~ li a i { background: var(--coral); opacity: .35; }

.continent h2 { font-size: 15px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 12px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ccard { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 6px 10px; padding: 14px 16px; border-radius: 16px; background: #fff; text-decoration: none; box-shadow: 0 0 0 1px #e7e4dd; transition: box-shadow .15s; }
.ccard:hover { box-shadow: 0 0 0 1px var(--ink-2); }
.cflag { font-size: 22px; line-height: 1; }
.cname { font-weight: 600; }
.ckeep { font-size: 13px; color: var(--muted); }
.ckeep b { font-family: var(--mono); color: var(--ink); }
.cbar { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: #efebe2; overflow: hidden; display: block; }
.cbar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.cbar.big { height: 10px; margin: 12px 0 6px; }

.back { display: inline-block; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.flag-big { display: inline-block; margin-right: .1em; }
.breakdown h2, .notes h2 { margin-bottom: 8px; }
table.rates tr.strong td { font-weight: 700; }
table.rates td:not(:first-child), table.rates th:not(:first-child) { text-align: right; font-family: var(--mono); }
.ct-table td:not(:first-child), .ct-table th:not(:first-child) { text-align: left; font-family: var(--body); }
.sub-h { font: 700 20px var(--display); margin: 26px 0 0; }
.notes ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }

.cmp-controls { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; }
.cmp-controls .select + .select { margin-top: 8px; }
@media (max-width: 860px) { .cmp-controls { grid-template-columns: minmax(0, 1fr); } }
.cmp { display: grid; gap: 20px; }
.cmp-verdict h2 { font-size: clamp(22px, 3vw, 32px); }
.hl-lime { color: var(--lime); }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .cmp-grid { grid-template-columns: minmax(0, 1fr); } }
.cmp-side { display: grid; gap: 6px; align-content: start; border: 2px solid transparent; }
.cmp-side.best { border-color: #b9d36a; }
.cmp-side h2 { font-size: clamp(26px, 3.5vw, 36px); }
.cmp-side .cflag { font-size: 32px; }
.cmp-lines { list-style: none; padding: 10px 0 0; margin: 4px 0 8px; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: 14px; }
.cmp-lines li { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); }
.cmp-lines li span:last-child { font-family: var(--mono); }

.stats.light { border-top: 0; margin-top: 0; padding-top: 0; grid-template-columns: repeat(4, 1fr); }
.stats.light small { color: var(--muted); }
@media (max-width: 760px) { .stats.light { grid-template-columns: repeat(2, 1fr); } }
.ct-tools { grid-template-columns: 1fr auto; }
.ct-table .cbar { width: 140px; }
.ct-flag { font-size: 20px; margin-right: 4px; }
.ct-note { font-size: 14px; color: var(--ink-2); max-width: 520px; }
.ct-note a { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .hide-sm { display: none; } .ct-table { min-width: 0; } }

/* ── Simple layout with ad space (2026-11-19) ─────────────────── */
.page { max-width: 1180px; margin: 0 auto; padding: 0 16px 80px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.page > main { max-width: none; margin: 0; padding: 0; gap: 24px; }
.rail { position: sticky; top: 16px; }
@media (max-width: 1100px) { .page { grid-template-columns: minmax(0, 1fr); } .rail { display: none; } }
.top { max-width: 1180px; }
.foot { max-width: 1180px; }

.ad { display: flex; align-items: center; justify-content: center; border: 1px dashed #dcd9d1; border-radius: 10px; background: #fbfaf8; color: #b4b1a9; font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ad:empty::before { content: 'Advertisement'; }
.ad-top { max-width: 728px; height: 90px; margin: 0 auto 24px; }
.ad-rail { width: 300px; height: 600px; }
.ad-inline { width: 100%; max-width: 728px; height: 250px; margin: 0 auto; }
@media (max-width: 760px) { .ad-top { height: 100px; max-width: 320px; } .ad-inline { max-width: 336px; height: 280px; } }

/* Simpler: one column hero, light result card, fewer frills */
.hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 4px; }
.hero h1 { font-size: clamp(28px, 3.6vw, 40px); max-width: 22ch; }
.world-hero h1 { font-size: clamp(28px, 3.6vw, 40px); }
.lede { font-size: 16px; margin-top: 10px; }
.card { padding: clamp(18px, 2.4vw, 28px); border-radius: 16px; }
.card.dark { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px #e7e4dd; }
.card.dark .lbl { color: var(--muted); }
.big { color: var(--ink); font-size: clamp(40px, 5.4vw, 60px); }
.big .cur { color: var(--muted); }
.big .per { color: var(--muted); }
.sub { color: var(--ink-2); }
.bar { background: #efede8; height: 10px; margin: 20px 0 12px; }
.legend li { color: var(--ink-2); }
.legend b { color: var(--ink); }
.stats { border-top: 1px solid #ecebe6; margin-top: 20px; padding-top: 18px; }
.stats small { color: var(--muted); }
.seg-dark { background: #efede8; }
.seg-dark button { color: var(--ink-2); }
.seg-dark button[aria-checked=true] { background: var(--ink); color: #fff; }
.hl-lime { color: inherit; box-shadow: inset 0 -.18em 0 var(--lime); }
.ctb-you { background: var(--ink); box-shadow: 0 0 0 3px #fff; }
.ctb-scale { color: var(--muted); }
.months div { height: 44px; border-radius: 8px; }
.freedom { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.receipt-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 28px; padding: 0; }
@media (max-width: 860px) { .receipt-wrap { grid-template-columns: minmax(0, 1fr); } }
.ways { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1280px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tips { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.compare { grid-template-columns: minmax(0, 1fr); }
.compare .flag { display: none; }

/* ── One menu on every page ─────────────────────────────── */
.top nav.menu { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.top nav.menu a { display: inline-block; padding: 7px 11px; border-radius: 9px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top nav.menu a:hover { background: #ecebe6; color: var(--ink); }
.top nav.menu a[aria-current=page] { background: var(--ink); color: #fff; font-weight: 500; }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 8px; }
  .top nav.menu { width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top nav.menu::-webkit-scrollbar { display: none; }
  .top nav.menu a { display: inline-block !important; }
}

/* ── Typography refresh + big footer + link lists ─────────── */
h1, h2 { letter-spacing: -0.025em; }
h1 { font-weight: 700; }
.lbl { letter-spacing: .06em; font-weight: 600; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 2px; }
.src-list { display: grid; gap: 6px; font-size: 14px; }
.src-list a { color: var(--ink-2); }
.link-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.link-cloud a { font-size: 13px; padding: 5px 10px; border-radius: 8px; background: #f1f0ec; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.link-cloud a:hover { background: #e6e4de; color: var(--ink); }

.big-foot { display: block; max-width: 1180px; padding: 40px 16px 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ff-brand p { max-width: 62ch; margin: 10px 0 0; }
.ff-tools a { color: var(--ink); }
.ff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 32px 0 8px; }
@media (max-width: 900px) { .ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ff-col { display: flex; flex-direction: column; gap: 5px; }
.ff-col a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.ff-col a:hover { color: var(--ink); text-decoration: underline; }
.big-foot h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.ff-block { margin-top: 26px; }
.ff-block .link-cloud a { background: transparent; padding: 3px 8px 3px 0; }
.ff-block .link-cloud a:hover { background: transparent; text-decoration: underline; }
.ff-legal { margin-top: 32px; font-size: 12px; color: var(--muted); }

.ff-grid { grid-template-columns: 1fr 2fr 1fr 1fr; }
.ff-col.wide { display: block; columns: 2; column-gap: 24px; }
.ff-col.wide h4 { column-span: all; }
.ff-col.wide a { display: block; margin-bottom: 5px; }
@media (max-width: 900px) { .ff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ff-col.wide { grid-column: 1 / -1; } }

/* ── Calculator panel: everything important above the fold ─────────── */
.calc-head { display: grid; gap: 6px; padding-top: 2px; }
.calc-head h1 { font-size: clamp(24px, 2.6vw, 32px); max-width: none; }
.calc-head h1 .flag-big { font-size: .9em; }
.calc-head .crumbs { margin-bottom: 2px; }
.calc-sub { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 70ch; }
.calc { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0; padding: 0; overflow: hidden; }
.calc-in { display: grid; gap: 16px; align-content: start; padding: 22px 24px; border-right: 1px solid #ecebe6; }
.calc-in .row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.calc-in .seg { flex-wrap: wrap; }
.calc-in .salary-input input { font-size: clamp(30px, 3vw, 38px); }
.calc-in .toggles { gap: 6px; }
.calc-out { padding: 22px 24px; min-width: 0; }
.calc-out .result-head { align-items: center; }
.calc-out .big { font-size: clamp(34px, 3.6vw, 46px); }
.calc-out .sub { margin-top: 6px; font-size: 14px; }
.calc-out .bar { margin: 14px 0 10px; height: 8px; }
.calc-out .legend { display: grid; gap: 0; font-size: 14px; }
.calc-out .legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 52px; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0efea; color: var(--ink-2); }
.calc-out .legend li i { width: 10px; height: 10px; border-radius: 3px; }
.calc-out .legend li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-out .legend li b { font-weight: 600; color: var(--ink); text-align: right; }
.calc-out .legend li em { font-style: normal; color: var(--muted); text-align: right; font-size: 13px; }
.calc-out .legend li.gross b, .calc-out .legend li.net b, .calc-out .legend li.net span { font-weight: 700; color: var(--ink); }
.calc-out .legend li.net { border-bottom: 0; border-top: 2px solid var(--ink); }
.calc-out .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; padding-top: 12px; }
.calc-out .stats b { font-size: 19px; }
.calc-out .stats small { font-size: 12px; line-height: 1.35; display: block; }
.calc-out .ct-bands { margin: 16px 0 4px; }
.ad-wide { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.mini-ways { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ecebe6; }
.mini-ways ul { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }
.mini-ways li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: #f6f5f2; }
.mini-ways li small { display: block; color: var(--muted); font-size: 12px; }
.mini-ways li b { font-size: 17px; }
.mini-ways li.best { background: #eef5dc; }
.mini-ways a { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-in { border-right: 0; border-bottom: 1px solid #ecebe6; }
}

.legend-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.calc-out .legend li.sub { padding: 2px 0 2px 0; border-bottom: 0; font-size: 12.5px; color: var(--muted); }
.calc-out .legend li.sub span { padding-left: 14px; }
.calc-out .legend li.sub b { font-weight: 400; color: var(--muted); }
.calc-out .legend li.total { border-top: 1px solid #e3e1db; }
.calc-out .legend li.total b, .calc-out .legend li.total span { font-weight: 600; color: var(--ink); }
.pay-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.pay-periods div { background: #f6f5f2; border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.pay-periods span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pay-periods b { font-size: 15px; }
@media (max-width: 520px) { .pay-periods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.linkbtn { border: 0; background: none; padding: 0; font: 600 12px var(--body); color: var(--ink-2); text-decoration: underline; cursor: pointer; text-transform: none; letter-spacing: 0; }
.legend-head { align-items: center; }
.calc-in .side-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid #ecebe6; }
.calc-in .side-stats > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 10px; }
.calc-in .side-stats .lbl { margin: 0; }
.calc-in .side-stats b { font-size: 18px; grid-row: span 2; align-self: center; }
.calc-in .side-stats small { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .calc-sub { display: none; } .calc-head h1 { font-size: 22px; } }

/* ── Home: plain country directory (howmuch.tax style) ── */
.home-head { padding-top: 20px; display: grid; gap: 10px; }
.home-head h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; max-width: none; }
.home-head p { margin: 0; }
.home-head .filter { max-width: 420px; margin-top: 6px; }
.home h2, .continent h2 { font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { display: block; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e7e4dd; text-decoration: none; color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:hover { box-shadow: 0 0 0 1px var(--ink-2); }
.tile[hidden], .continent[hidden] { display: none; }
.tile.tool { display: grid; gap: 2px; white-space: normal; }
.tile.tool span { font-size: 13px; color: var(--muted); }
.home-tools .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home .ad-wide { margin-top: 24px; }
.home > .fine { margin-top: 28px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-tools .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ── Mobile: menu wraps instead of being cut off ── */
@media (max-width: 720px) {
  .top nav.menu { overflow: visible; flex-wrap: wrap; gap: 4px; font-size: 13.5px; }
  .top nav.menu a { padding: 6px 10px; }
}

/* ── Mobile: result straight after the salary input, options below ── */
@media (max-width: 900px) {
  .calc { display: flex; flex-direction: column; }
  .calc-in { display: contents; }
  .calc-in > * { padding-left: 20px; padding-right: 20px; }
  .calc-in > .salary { order: 1; padding-top: 20px; }
  .calc .calc-out { order: 2; border-top: 1px solid #ecebe6; border-bottom: 1px solid #ecebe6; padding: 18px 20px; }
  .calc-in > :not(.salary) { order: 3; margin-top: 14px; }
  .calc-in > :last-child { padding-bottom: 20px; }
  .calc-in > .side-stats { border-top: 0; }
}

/* ══ Calculator pages, howmuch.tax-style: full width, inputs on top, receipt left, extras right ══ */
.page.full { grid-template-columns: minmax(0, 1fr); }
.page.full > main { gap: 20px; }
.ct-title { padding-top: 6px; display: grid; gap: 4px; }
.ct-title .back { font-size: 13px; color: var(--muted); text-decoration: none; }
.ct-title .back:hover { color: var(--ink); }
.ct-title h1 { font-size: clamp(24px, 2.6vw, 32px); margin: 4px 0 0; letter-spacing: -0.02em; }
.ct-title p { margin: 0; color: var(--muted); font-size: 14px; }

.inputs { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(180px, 1fr)); gap: 16px 20px; align-items: start; padding: 18px 20px; }
.inputs .lbl { display: block; margin-bottom: 6px; }
.inputs .salary-input { display: flex; align-items: center; gap: 6px; border: 1px solid #dcd9d1; border-radius: 10px; padding: 6px 12px; background: #fff; }
.inputs .salary-input .cur { font-size: 20px; color: var(--muted); }
.inputs .salary-input input { font: 600 22px var(--body); border: 0; outline: 0; width: 100%; padding: 4px 0; background: transparent; font-variant-numeric: tabular-nums; }
.inputs .salary-input:focus-within { border-color: var(--ink); }
.inputs input[type=range] { margin-top: 10px; width: 100%; }
.inputs .select { background: #fff; border: 1px solid #dcd9d1; border-radius: 10px; padding: 12px; font-size: 15px; }
.inputs .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.adv { grid-column: 1 / -1; border-top: 1px solid #ecebe6; padding-top: 12px; }
.adv summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink-2); list-style: none; display: flex; justify-content: space-between; }
.adv summary::after { content: '▾'; color: var(--muted); }
.adv[open] summary::after { content: '▴'; }
.adv summary::-webkit-details-marker { display: none; }
.adv-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; padding-top: 14px; align-items: center; }
.adv-body .check { display: flex; gap: 8px; align-items: center; font-size: 14px; }

.hm-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.hm-side { display: grid; gap: 20px; }
@media (max-width: 900px) { .hm-grid { grid-template-columns: minmax(0, 1fr); } .inputs { grid-template-columns: minmax(0, 1fr); } }

/* The receipt */
.rcpt { padding: 22px 24px; font-variant-numeric: tabular-nums; }
.rcpt-head { text-align: center; padding-bottom: 14px; }
.rcpt-head b { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.rcpt-head span { font-size: 13px; color: var(--muted); }
.rcpt .r { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14.5px; color: var(--ink-2); }
.rcpt .r b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.rcpt .r.cap { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 8px 0; }
.rcpt .r.cap b { font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 15px; }
.rcpt .r.sec { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; }
.rcpt .r.item span::before { content: '− '; color: var(--muted); }
.rcpt .r.item.plus span::before { content: '+ '; }
.rcpt .r.sub { padding: 1px 0 1px 16px; font-size: 13px; color: var(--muted); }
.rcpt .r.sub b { font-weight: 400; color: var(--muted); }
.rcpt .r.strong span, .rcpt .r.strong b { font-weight: 600; color: var(--ink); }
.rcpt .r.small { font-size: 13.5px; color: var(--muted); padding: 2px 0; }
.rcpt .r.small b { font-weight: 500; color: var(--ink-2); }
.rcpt hr { border: 0; border-top: 1px solid #e3e1db; margin: 10px 0; }
.rcpt .r.net { padding: 10px 0 8px; font-size: 16px; }
.rcpt .r.net span { font-weight: 700; color: var(--ink); letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.rcpt .r.net b { font-weight: 800; font-size: 22px; }
.rcpt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #ecebe6; font-size: 14px; }
.rcpt-foot .check { display: flex; gap: 8px; align-items: center; }
.rcpt-foot .select { width: auto; padding: 6px 8px; font-size: 13px; background: #fff; border: 1px solid #dcd9d1; border-radius: 8px; }
.rcpt-foot .btns { display: flex; gap: 8px; align-items: center; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.toast-i { font-size: 12.5px; color: var(--muted); }

/* Side cards */
.side-card { padding: 18px 20px; }
.side-card h2 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.side-card p { font-size: 14px; margin: 0 0 10px; color: var(--ink-2); line-height: 1.5; }
.side-card .r { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 3px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.side-card .r b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.side-card .r.strong { border-top: 1px solid #e3e1db; margin-top: 6px; padding-top: 8px; }
.side-card .r.strong span, .side-card .r.strong b { font-weight: 600; color: var(--ink); }
.side-card .chart svg { width: 100%; height: auto; }
.side-card .select { margin-top: 4px; }
.ad-box { width: 300px; max-width: 100%; height: 250px; margin: 0 auto; }
.legend-mini { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend-mini i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 5px; background: #e07a5f; }
.legend-mini i.dash { background: none; border-top: 2px dashed #9aa37a; height: 0; }

/* Accordion: "The X tax system" */
.acc { padding: 0; }
.acc summary { cursor: pointer; padding: 16px 20px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: '▾'; color: var(--muted); }
.acc[open] summary::after { content: '▴'; }
.acc summary::-webkit-details-marker { display: none; }
.acc-body { padding: 0 20px 18px; }
.acc-body ul { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.rcpt .r, .side-card .r { line-height: 1.35; }
.rcpt .r { padding: 3px 0; }
.rcpt .r.sub { padding: 1px 0 1px 16px; }
.rcpt-head { padding-bottom: 8px; }
.rcpt hr { margin: 8px 0; }
.rcpt .r.sec { padding: 8px 0 3px; }
.inputs { padding: 16px 20px; }
.inputs input[type=range] { margin-top: 8px; }
.inputs .salary-input input { font-size: 20px; padding: 2px 0; }
.ct-title h1 { margin-top: 2px; }
.rcpt .r.sub { margin: 0; }
.inputs { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.inputs > .field { flex: 1 1 220px; min-width: 0; }
.inputs > .field:first-child { flex: 2 1 320px; }
.inputs > .field[hidden] { display: none; }
.inputs > .adv { flex: 1 1 100%; }
/* All pages: content spans the full width of the header/menu; no side rail */
.page { grid-template-columns: minmax(0, 1fr); }
.page > .rail { display: none; }
.home.searching .home-tools, .home.searching > .ad, .home.searching > .fine { display: none; }
.home.searching .continent:first-of-type h2, .home.searching .continent h2 { margin-top: 18px; }
#noMatch { margin: 18px 0 0; }
.inputs .salary-input .cur-inline { width: auto; border: 0; background: #f3f1ec; padding: 6px 8px; font-weight: 600; }
.rcpt-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.rcpt-note a { color: inherit; }
.ct-tools-row { display: grid; grid-template-columns: 1fr minmax(0, 320px) auto; gap: 14px; align-items: center; margin-bottom: 12px; }
.ct-tools-row .filter { padding: 10px 14px; font-size: 15px; border-radius: 10px; }
@media (max-width: 900px) { .ct-tools-row { grid-template-columns: minmax(0, 1fr); } }
.ct-table tbody tr { cursor: pointer; }
.ct-table tbody tr.on td { background: #f1f7df; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 18px; font-size: 14px; }
.jump a { color: var(--ink-2); }
.keep-table td:nth-child(3), .keep-table td:nth-child(4), .keep-table th:nth-child(3), .keep-table th:nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.dodge-page .dodge { scroll-margin-top: 16px; }
a.tip { display: block; text-decoration: none; color: inherit; }
a.tip:hover { box-shadow: 0 0 0 1px var(--ink-2); }
.home.searching .home-dodge { display: none; }
.keep-table th:nth-child(2), .keep-table td:nth-child(2) { text-align: left; }
.keep-table th:first-child, .keep-table td:first-child { width: 36px; color: var(--muted); }
