/* Scoped refinements for the main salary calculator. */
html{height:auto!important;min-height:100%;overflow-x:clip!important;overflow-y:visible!important}
body{height:auto!important;min-height:100vh;overflow-x:clip!important;overflow-y:visible!important;background:#050610!important;isolation:isolate}
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(1100px 720px at 14% -12%,rgba(124,92,255,.30),transparent 62%),radial-gradient(1100px 720px at 90% -6%,rgba(39,217,255,.22),transparent 62%),radial-gradient(1200px 820px at 52% 115%,rgba(57,249,166,.12),transparent 66%),linear-gradient(180deg,#050610,#070a18 48%,#050812)}
#calculator,#results,.salaryGuideAddition,.pp-sources{scroll-margin-top:120px}
.qaTableWrap{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}.qaTableWrap:focus-visible{outline:2px solid #9bd0c2;outline-offset:3px}.qaTable{border-collapse:collapse;width:100%;min-width:540px;font-size:13px}.qaTable th,.qaTable td{text-align:right;padding:12px 9px;border-bottom:1px solid #354451}.qaTable th:first-child,.qaTable td:first-child{text-align:left}.qaTable th{color:#bacde2;font-weight:600}.qaTable caption{text-align:left;font-size:12px;color:#adbed4;padding:8px 0}
@media(max-width:360px){html body .topbarOuter .trustPill{display:none!important}}
.quickSalaryResult{display:none}.salaryInputError{padding:12px;border-left:3px solid #e6b58b;color:#ffdabd;background:#322820;font-size:13px;line-height:1.5}
#taxCodeWrap[hidden],#customAllowanceWrap[hidden],#pensionBasisWrap[hidden],#pensionAmountWrap[hidden],#salaryInputError[hidden],#results[hidden],#quickSalaryResult[hidden],.guidedGrid>[hidden]{display:none!important}
.newInputNote{font-size:12px!important;line-height:1.5!important;color:#adbed4!important;margin:8px 0 0!important}.salaryGuideAddition{max-width:900px;margin:24px auto;padding:24px;border:1px solid rgba(255,255,255,.12);border-radius:20px;background:#111b2b}.salaryGuideAddition h2{font-family:var(--display);font-size:23px;line-height:1.3;margin:24px 0 10px}.salaryGuideAddition h2:first-child{margin-top:0}.salaryGuideAddition p{font-size:14px;line-height:1.75;color:#cbd8eb}.salaryGuideAddition a{color:#a9e3dc}
@media(max-width:680px){
 .seoHero .seoAnswerBox{display:none!important}.seoHero{padding:18px!important}.seoHero h1{font-size:30px!important;line-height:1.1!important}.seoHero p{font-size:14px!important;line-height:1.55!important}.seoHero .seoNearby{flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important}.seoHero .seoNearby a{font-size:11px!important;padding:7px!important}
 #calculator .calcTabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:7px!important;padding-bottom:5px!important;max-width:100%}.calcTabs .tab{flex:0 0 auto!important;min-width:0!important;width:auto!important;min-height:44px!important;padding:10px 12px!important;font-size:12px!important}
 .journeyIntro{display:none!important}#panelSalary .primaryFieldGroup .groupHead{display:none!important}#panelSalary .primaryFieldGroup{padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.requiredChip{display:none!important}
 .quickSalaryResult{display:grid;grid-template-columns:1fr auto;gap:7px 10px;padding:18px 0;border-top:1px solid #354451;border-bottom:1px solid #354451;background:transparent}.quickSalaryResult>span{grid-column:1/-1;color:#becde2;font-size:13px}.quickSalaryResult strong{font-family:var(--display);font-size:34px;color:#9bd0c2;letter-spacing:-.03em}.quickSalaryResult small{grid-column:1/-1;color:#9eb3cc;font-size:11px;line-height:1.5}.quickSalaryResult a{grid-column:2;grid-row:2;align-self:center;color:#c6e5e0;font-size:11px}.salaryGuideAddition{padding:18px}.salaryGuideAddition h2{font-size:21px}
}

@media(max-width:680px){
 html body .seoHero .seoNearby{display:flex!important;flex-direction:row!important;gap:7px!important}
 html body .seoHero .seoNearby a{width:auto!important;flex:0 1 auto!important;min-width:0!important;padding:6px 8px!important}
 html body #calculator .calcInputCard .calcTabs{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;scroll-snap-type:none!important}
 html body #calculator .calcInputCard .calcTabs .tab{width:max-content!important;min-width:110px!important;max-width:none!important;flex:0 0 auto!important;min-height:44px!important}
 html body #calculator #panelSalary .primaryFieldGroup{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 html body #calculator #panelSalary .primaryFieldGroup>.mobileInputAccordionSummary{display:none!important}
 html body #calculator #panelSalary .primaryFieldGroup>.mobileInputAccordionBody{display:block!important;padding:0!important;max-height:none!important;overflow:visible!important}
}

@media(max-width:680px){html body #calculator>.card{min-width:0!important;width:100%!important;max-width:100%!important}html body #calculator .calcHd,html body #calculator .calcBody{min-width:0!important;max-width:100%!important}html body #calculator .calcTabs{min-width:0!important;width:100%!important}}

/* Header stylesheet already supplies scroll-padding; avoid counting its height twice. */
html body #calculator,html body #results,html body #main-body,html body .salaryGuideAddition,html body .pp-sources{scroll-margin-top:0!important}
@media(max-width:900px){html body #calculator input,html body #calculator select{font-size:16px!important}}

@media(max-width:360px){html body .topbarOuter .topbarInner .topActions .trustPill{display:none!important}}

/* Keep header backgrounds inside the card's rounded outline while allowing field help to escape. */
html body #calculator>.card>.hd{border-radius:calc(var(--radius,22px) - 1px) calc(var(--radius,22px) - 1px) 0 0!important;overflow:hidden!important}
/* One neutral text palette; chart segments and their swatches retain their category colours. */
html body #calculator .calcTabs .tab,html body #calculator .calcTabs .tab:visited,html body #calculator .calcTabs .tab:hover,
html body #calculator .calcInputCard :is(.prefix,.stepPill,.requiredChip),
html body #calculator .calcResultsCard :is(.resultAmount,.vv),
html body #calculator #quickSalaryNet,html body #calculator #deductionCard strong,
html body #calculator .calcInputCard strong,html body #calculator .calcResultsCard strong,
html body #calculator .calcInputCard input:not(:disabled),html body #calculator .calcInputCard select{color:#f4f7ff!important}
html body #calculator .calcInputCard :is(label,.summaryCue),html body #calculator .calcResultsCard :is(.k,.summaryCue,.deductionLabel,.ppLegPct){color:#becde2!important}
html body #calculator #tabTrue{gap:6px!important}
html body #calculator #tabTrue .externalToolIcon{width:14px;height:14px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
html body #calculator #deductionCard strong{background:none!important;-webkit-text-fill-color:#f4f7ff!important}
html body #calculator .calcInputCard :is(.deltaUp,.deltaDown,.targetDeltaGood,.targetDeltaWarn){color:#f4f7ff!important}

/* Show each mode and each comparison figure without a sideways gesture. */
.calcTableLabel{display:none}
@media(max-width:680px){
 html body #calculator .calcInputCard .calcTabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;overflow:visible!important}
 html body #calculator .calcInputCard .calcTabs .tab{width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal;justify-content:center;box-sizing:border-box}
 html body #calculator #tabTrue{grid-column:1/-1}
}
@media(max-width:360px){
 html body #calculator .resultCards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #calculator .miniCard-deductions{grid-column:1/-1}
}
@media(max-width:600px){
 html body #calculator .resultEstimateNote,html body #calculator .resultEstimateNote strong{white-space:normal!important;text-overflow:clip!important;line-height:1.5!important}
 html body #calculator .mobileCalculatorWrap{overflow:visible!important}
 html body #calculator .mobileCalculatorTable{display:block;width:100%!important;min-width:0!important;table-layout:auto}
 .mobileCalculatorTable thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mobileCalculatorTable tbody{display:block}
 .mobileCalculatorTable tbody tr{display:block;padding:12px 0;border-top:1px solid rgba(255,255,255,.12)}
 html body #calculator .mobileCalculatorTable tbody th[scope="row"]{display:block;width:100%;padding:0 0 8px;border:0;background:none;text-align:left;font-size:13px;line-height:1.5}
 html body #calculator .mobileCalculatorTable tbody td{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border:0;background:none;white-space:normal;font-size:13px;line-height:1.5}
 .mobileCalculatorTable .calcTableLabel{display:block;color:#becde2;text-align:left}
 .mobileCalculatorTable .calcTableValue{min-width:0;text-align:right;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
 html body #calculator .mobileCalculatorTable td[colspan]{display:block;line-height:1.6}
}
