/* PCBCalc.my approved homepage; isolated from the existing guide/assistant pages. */
@font-face{font-family:Figtree;src:url('./fonts/figtree-latin-wght-normal.woff2') format('woff2');font-style:normal;font-weight:300 900;font-display:swap}
@font-face{font-family:Figtree;src:url('./fonts/figtree-latin-wght-italic.woff2') format('woff2');font-style:italic;font-weight:300 900;font-display:swap}
:root{--blue:#1260f9;--ink:#080c12;--body:#53617a;--subtle:#82909e;--line:#e1e4e7;--soft:#f5f6f8;--panel:#f2f4fb;--input:#d6dde2;--dark-btn:#071d12;--bg:#fff}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 14px/1.55 Figtree,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,select,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.site-header{border-bottom:1px solid var(--line);background:var(--bg);position:relative;z-index:5}
.header-inner{max-width:1020px;min-height:59px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 5px}
.logo{display:inline-flex;align-items:center;gap:7px;font-size:27px;letter-spacing:-1.15px;font-weight:700;line-height:1;white-space:nowrap}
.logo-icon{height:35px;width:30px;flex:none;color:var(--blue)}.blue{color:var(--blue)}
.primary-nav{display:flex;align-items:center;gap:32px;margin:auto}
.nav-dropdown{position:relative;font-size:13px}.nav-dropdown summary{list-style:none;cursor:pointer;white-space:nowrap;padding:12px 0;display:flex;align-items:center;gap:5px}.nav-dropdown summary::-webkit-details-marker{display:none}
.nav-dropdown summary svg{width:13px;height:13px;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;fill:none}.drop-panel{position:absolute;left:-12px;top:100%;z-index:15;background:var(--bg);min-width:190px;box-shadow:0 9px 24px #090c1713;border:1px solid var(--line);border-radius:6px;padding:6px}.drop-panel a{display:block;padding:9px 10px;border-radius:3px;font-size:12px}.drop-panel a:hover{background:var(--soft)}
.header-actions{display:flex;align-items:center;gap:18px}.language-indicator{display:inline-flex;align-items:center;gap:7px;font-size:13px;white-space:nowrap;color:#1d2736}.language-indicator svg,.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle{border:0;background:transparent;color:#5d6c7d;display:grid;place-items:center;padding:5px}.header-cta{padding:10px 17px;background:var(--blue);color:#fff;border-radius:5px;font-size:13px;font-weight:500;white-space:nowrap}.header-cta:hover{background:#074fe0;color:white}.menu-toggle{display:none;border:1px solid var(--line);border-radius:5px;background:var(--bg);padding:7px}.menu-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
main{width:100%}.hero{max-width:1020px;margin:0 auto;text-align:center;padding:24px 5px 29px}.breadcrumb{display:flex;align-items:center;justify-content:center;gap:10px;color:#758198;font-size:12px;margin:0 auto 38px;white-space:nowrap}.breadcrumb a{display:inline-grid;place-items:center}.breadcrumb svg{width:14px;height:14px;stroke:#7b8491;stroke-width:1.6;fill:none}.breadcrumb strong{font-weight:500;color:#19202d}.breadcrumb .slash{color:#a7b1bf}
.hero h1{font-size:48px;line-height:1.12;letter-spacing:-1.9px;font-weight:600;margin:0 auto 17px;max-width:960px}.hero-lead{margin:0 auto;max-width:790px;color:#50617d;font-size:18px;line-height:1.53;letter-spacing:-.16px}
.hero-features{display:flex;justify-content:space-between;align-items:center;gap:0;margin:35px auto 0;max-width:930px;text-align:left}.feature{display:flex;align-items:center;gap:12px;min-width:0;padding:0 22px;border-right:1px solid #d9e0ea;flex:1;justify-content:center}.feature:first-child{padding-left:0}.feature:last-child{border:0;padding-right:0}.feature strong,.feature small{display:block;white-space:nowrap}.feature strong{font-size:14px;font-weight:600;color:#0f1a35}.feature small{font-size:12px;color:#61718d}.round-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:#edf4ff;color:var(--blue)}.round-icon svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.flag{display:grid;place-items:center;flex:none;width:47px;height:47px;font-size:39px;line-height:1}
.calculator-wrap{max-width:970px;margin:0 auto 29px;padding:0 0}.calculator-card,.result-card{border:1px solid #e2e6e9;border-radius:9px;background:var(--bg);overflow:hidden}.calculator-heading{padding:18px 21px 16px;border-bottom:1px solid #e2e6e9}.section-kicker{font-size:10px;letter-spacing:.5px;color:#77849a;margin:0 0 4px;font-weight:500}.calculator-heading h2{margin:0;color:#131820;font-weight:500;font-size:22px;letter-spacing:-.65px;line-height:1.35}.calculator-heading>p:last-child{font-size:12px;color:#82909a;margin:0}
.form-container{padding:16px 18px 13px}.tabs{display:flex;gap:3px;padding:4px;border-radius:8px;background:#f0f0f0;margin:0 0 18px}.tab{border:0;background:transparent;color:#7b8182;text-align:center;flex:1;min-height:31px;border-radius:5px;font-size:12px}.tab.active{background:#fff;color:#15191e;font-weight:500;box-shadow:0 1px 3px #0b17370d}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}.field{min-width:0}.field label,.scheme-choice label{font-size:11px;color:#111a19;display:block;margin:0 0 5px;font-weight:500}.field input,.field select,.scheme-choice select{background:var(--bg);border:1px solid var(--input);height:37px;width:100%;min-width:0;padding:0 12px;border-radius:5px;color:#182225;font-size:13px}.field select,.scheme-choice select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235b6877' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;padding-right:32px;cursor:pointer}
.scheme-choice{border:1px solid #e0e6df;border-radius:6px;margin:15px 0 0;padding:11px 12px 10px}.scheme-choice select{height:34px}.scheme-choice p{font-size:10px;color:#7e8b87;margin:6px 0 0;line-height:1.45}.advanced-pane{background:var(--soft);border:1px solid var(--line);padding:12px;border-radius:5px;font-size:12px;margin-top:12px;color:#5b6672}
.helper-note{display:flex;gap:9px;align-items:center;min-height:33px;margin:13px 0 10px;background:#f7f8f6;border:1px solid #e7eae7;border-radius:6px;padding:8px 10px;color:#85908a;font-size:10px}.helper-note svg{width:15px;height:15px;flex:none;stroke:#87938e;stroke-width:1.7;fill:none}
.form-actions{display:flex;align-items:stretch;gap:9px}.calculate-button{border:1px solid #102819;background:var(--dark-btn);color:#fff;height:35px;border-radius:5px;flex:1;font-size:12px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:10px}.calculate-button:hover{background:#103923}.calculate-button svg{height:13px;width:13px;stroke:currentColor;stroke-width:1.8;fill:none}.reset-button{border:1px solid #dbe1dc;border-radius:5px;background:var(--bg);color:var(--ink);min-width:68px;font-size:12px}.scope-note{font-size:10px;line-height:1.4;color:#748091;margin:9px 0 11px}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.step{border:1px solid #e4e8ea;border-radius:7px;background:var(--bg);min-height:78px;padding:11px 13px}.step span{font-size:9px;color:#92a0ac;display:block;margin-bottom:4px}.step strong{font-size:11px;font-weight:500;display:block}.step p{font-size:10px;color:#86928f;margin:2px 0 0;line-height:1.4}
.result-card{margin-top:12px;padding:10px 13px 13px;scroll-margin-top:14px}.result-card[hidden]{display:none}.summaryhead{padding:13px 16px 12px;background:#eff2fc;border-radius:7px}.summarycap{font-size:11px;color:#748199}.figure{font-size:29px;font-weight:500;letter-spacing:-.7px;margin:1px 0 0;line-height:1.32}.meta{margin:0;font-size:11px;color:#8b95a0}.lines{padding:1px 13px 3px}.line{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e8ebeb;padding:8px 0;gap:8px;font-size:12px}.line:last-child{border:0}.line b{font-weight:500;text-align:right;white-space:nowrap}.line.total{background:#eff2f0;padding:9px 11px;margin:8px -9px 0;border-radius:7px}.statutory-disclosure{margin:4px 13px 10px;font-size:11px;color:#79878a}.method{display:flex;align-items:center;justify-content:space-between;border:1px solid #e3e9e3;border-radius:6px;background:#f8f9f7;color:#5c6a61;width:calc(100% - 26px);margin:0 13px;padding:9px 12px;font-size:12px;text-align:left}.method .plus{font-size:18px;line-height:1}.method-body{margin:9px 13px 0;padding:11px 12px;background:var(--soft);border-radius:5px;color:#5b6674;font-size:12px}.results-bottom{display:flex;justify-content:space-between;gap:20px;color:#9ba5a6;font-size:10px;padding:10px 13px 0}
.site-footer{background:#14317e;color:#e8edfb;border-top:0;margin:29px 0 0}.footer-inner{display:grid;grid-template-columns:1.5fr .85fr 1.05fr .95fr 1.15fr;max-width:1180px;margin:0 auto;padding:38px 20px 30px;gap:0}.footer-col-group{display:contents}.col-calc{grid-column:2;grid-row:1}.col-res{grid-column:3;grid-row:1}.col-info{grid-column:4;grid-row:1}.col-contact{grid-column:5;grid-row:1}.footer-brand,.footer-column{padding:0 22px;border-right:1px dashed rgba(255,255,255,.25)}.footer-brand{padding-left:0}.footer-column:last-child{border-right:0}.footer-logo-img{height:44px;width:auto;display:block;background:#fff;border-radius:8px;padding:3px 8px}.footer-brand p{font-size:14px;color:#cdd8f5;line-height:1.7;margin:18px 0 0}.footer-brand a{color:#dbe4ff}.footer-address{font-size:13px}.footer-column h2{font-size:12px;letter-spacing:1px;font-weight:600;color:#fff;margin:3px 0 22px}.footer-column a{display:flex;align-items:flex-start;gap:10px;font-size:13px;color:#cdd8f5;margin:0 0 17px}.footer-column a:hover{color:#fff}.foot-icon{width:18px;flex:none;text-align:center;font-size:18px;color:#9fb0e0;line-height:1}.footer-contact-box{border:1px solid rgba(255,255,255,.4);border-radius:12px;padding:16px 18px}.footer-contact-box strong{color:#fff;font-size:14px}.footer-contact-box p{font-size:13px;color:#cdd8f5;line-height:1.6;margin:10px 0 0}.footer-contact-box a{color:#fff}.footer-bottom{max-width:1180px;margin:0 auto;padding:15px 20px;border-top:1px solid rgba(255,255,255,.25);display:flex;justify-content:space-between;gap:15px;color:#aebadd;font-size:11px}
@media(max-width:1080px){.header-inner{padding:0 20px}.hero{padding-left:18px;padding-right:18px}.calculator-wrap{padding:0 18px}.footer-inner{padding-left:20px;padding-right:20px}.primary-nav{gap:20px}.header-actions{gap:11px}}
@media(max-width:760px){.header-inner{min-height:63px;gap:10px;flex-wrap:wrap}.logo{font-size:23px}.logo-icon{width:25px;height:31px}.menu-toggle{display:inline-grid;place-items:center;margin-left:auto;order:2}.primary-nav{display:none;order:4;width:100%;margin:0;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid var(--line);padding:6px 0 14px}.primary-nav.is-open{display:flex}.nav-dropdown summary{padding:11px}.drop-panel{position:static;box-shadow:none;border:0;border-left:1px solid var(--line);margin-left:20px}.header-actions{order:3;gap:8px}.language-indicator,.theme-toggle{display:none}.header-cta{padding:8px 10px;font-size:11px}.hero{padding:26px 18px 23px}.breadcrumb{font-size:10px;gap:6px;white-space:normal;margin-bottom:25px}.hero h1{font-size:clamp(27px,6.2vw,40px);letter-spacing:-1.3px}.hero h1 br{display:none}.hero-lead{font-size:14px}.desktop-break{display:none}.hero-features{display:grid;grid-template-columns:1fr 1fr;gap:19px 5px;margin-top:27px}.feature{padding:0 8px!important;justify-content:flex-start}.feature:nth-child(2){border:0}.feature strong{font-size:12px}.feature small{font-size:10px}.round-icon,.flag{width:38px;height:38px}.round-icon svg{width:21px;height:21px}.flag{font-size:32px}.calculator-wrap{padding:0 12px}.calculator-heading{padding:15px}.calculator-heading h2{font-size:20px}.form-container{padding:12px}.form-grid{gap:11px}.scheme-choice{padding:10px}.logo img.logo-img{height:36px}.footer-inner{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px 16px 14px}.footer-brand,.footer-column{padding:0;border:0}.footer-brand{grid-column:1/-1;grid-row:1;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.2)}.col-calc{grid-column:1;grid-row:2}.col-info{grid-column:1;grid-row:3}.col-res{grid-column:2;grid-row:2/span 2}.col-contact{grid-column:2;grid-row:4}.footer-contact-box{border:0;padding:0}.footer-logo-img{height:36px}.footer-brand p{margin-top:8px;font-size:13px;line-height:1.5}.footer-brand .footer-address{display:none}.footer-column h2{margin:0 0 10px;font-size:11px}.footer-column a{margin:0 0 9px;font-size:13px}.foot-icon{display:none}.footer-contact-box{padding:12px 14px}.footer-contact-box p{margin:6px 0 0}.footer-bottom{padding:12px 16px;flex-direction:column;gap:6px}}
@media(max-width:480px){.form-grid{grid-template-columns:1fr}.form-actions{flex-wrap:wrap}.form-actions .calculate-button{min-width:70%}.tabs{margin-bottom:15px}.steps{grid-template-columns:1fr;gap:8px}.step{min-height:0}.results-bottom{flex-direction:column;gap:2px}.line{font-size:11px}.hero-features{gap:16px 0}.feature{gap:7px}.round-icon,.flag{width:33px;height:33px}.round-icon svg{width:19px;height:19px}.flag{font-size:27px}}
body.theme-dark{--bg:#151923;--ink:#f6f8fd;--body:#c0c9d7;--line:#303847;--soft:#1d2632;--input:#415064;background:var(--bg);color:var(--ink)}
body.theme-dark .site-header,body.theme-dark .drop-panel,body.theme-dark .menu-toggle,body.theme-dark .calculator-card,body.theme-dark .result-card,body.theme-dark .field input,body.theme-dark .field select,body.theme-dark .scheme-choice select,body.theme-dark .reset-button,body.theme-dark .tab.active,body.theme-dark .step{background:#1b2230;color:#f6f8fd}body.theme-dark .hero h1,body.theme-dark .calculator-heading h2,body.theme-dark .feature strong,body.theme-dark .footer-column h2,body.theme-dark .field label,body.theme-dark .scheme-choice label,body.theme-dark .language-indicator{color:#f6f8fd}body.theme-dark .tabs,body.theme-dark .helper-note,body.theme-dark .scheme-choice,body.theme-dark .line.total,body.theme-dark .method,body.theme-dark .summaryhead,body.theme-dark .method-body{background:#273142;color:#e8efff}body.theme-dark .hero-lead,body.theme-dark .footer-brand p{color:#bbc7df}body.theme-dark .logo,body.theme-dark .footer-column a{color:#dde7f5}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Step 20: native EN / BM language switch; retain the approved header geometry. */
.language-switcher{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#1d2736;font-size:13px}
.language-switcher>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;margin-right:3px;flex:none}
.language-switcher button{border:0;background:transparent;color:#748094;border-radius:3px;padding:2px 3px;font-size:12px;line-height:1.5}
.language-switcher button[aria-pressed="true"]{font-weight:700;color:var(--blue)}
.language-switcher .language-separator{color:#bdc4ce;font-size:11px}
.flag{overflow:hidden;border-radius:50%}.flag img{display:block;width:100%;height:100%;object-fit:cover;object-position:38% 50%;border-radius:50%}
body.theme-dark .language-switcher{color:#eff4ff}body.theme-dark .language-switcher button:not([aria-pressed="true"]){color:#b8c4d9}
@media(max-width:760px){.language-switcher{display:inline-flex}.header-actions{gap:6px}.language-switcher>svg{width:16px;height:16px}.language-switcher button{font-size:11px;padding:2px}}
@media(max-width:480px){.header-actions{flex-wrap:wrap;justify-content:flex-end}.header-cta{padding:7px 8px}.language-switcher>svg{display:none}}

/* Stage 21C: family relief controls within the existing Detailed tab. */
.family-pane{border-bottom:1px solid var(--line);padding-bottom:7px;margin-bottom:13px}
.family-pane .history-grid{margin-bottom:10px}
.family-pane .field input[type=number]{max-width:260px}
.family-pane .history-confirm{margin-bottom:8px}
/* Stage 21B: advanced fields within the existing approved Detailed Calculator panel. */
.advanced-pane .history-title{font-size:13px;font-weight:700;color:var(--ink,#141d29);margin:0 0 5px}
.advanced-pane .history-help{font-size:11px;line-height:1.55;margin:0 0 12px;color:#647181}
.advanced-pane .history-grid{margin:8px 0 12px}
.advanced-pane .history-grid .field input{background:var(--bg,#fff)}
.advanced-pane .history-confirm{display:flex;align-items:flex-start;gap:8px;color:#27364b;font-size:11px;line-height:1.5;margin-bottom:12px}
.advanced-pane .history-confirm input{margin:2px 0 0;accent-color:#1762ee}
body.theme-dark .advanced-pane .history-title,body.theme-dark .advanced-pane .history-confirm{color:#f4f7ff}
body.theme-dark .advanced-pane .history-help{color:#c0cbe1}

/* Stage 21D — Annual bonus controls: reuse approved Detailed Calculator styling. */
.bonus-pane{border-bottom:1px solid var(--line);padding:0 0 9px;margin-bottom:14px}
.bonus-pane .history-grid{margin-bottom:10px}
.bonus-result[hidden]{display:none}

/* Consolidated update: progressive disclosure; does not alter approved header/hero. */
.consolidated-pane{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:14px}
.advanced-tax-disclosure{border:1px solid var(--line);border-radius:7px;background:rgba(18,96,249,.035);padding:11px 13px}
.advanced-tax-disclosure>summary{cursor:pointer;font-weight:700;color:var(--ink);font-size:13px;list-style:auto}
.advanced-tax-disclosure[open]>summary{margin-bottom:14px}
.advanced-tax-disclosure .field input{width:100%;max-width:100%}
.report-actions{display:flex;gap:10px;flex-wrap:wrap;margin:11px 0}
.report-actions button{padding:7px 12px;line-height:1.3}
.advanced-result[hidden]{display:none}
body.theme-dark .advanced-tax-disclosure{background:#273142;color:#e8efff}body.theme-dark .advanced-tax-disclosure>summary{color:#f6f8fd}

/* Final polish: a confident but subtle navigation hover, consistent in EN/BM. */
.primary-nav .nav-dropdown>summary{
  position:relative;font-weight:650;transition:color .18s ease;
}
.primary-nav .nav-dropdown>summary::after{
  content:"";position:absolute;bottom:5px;left:0;right:0;height:2px;
  border-radius:2px;background:var(--blue);transform:scaleX(0);
  transform-origin:center;opacity:.75;transition:transform .2s ease;
}
.primary-nav .nav-dropdown>summary svg{transition:transform .18s ease}
@media (hover:hover){
  .primary-nav .nav-dropdown>summary:hover{color:var(--blue)}
  .primary-nav .nav-dropdown>summary:hover::after{transform:scaleX(1)}
  .primary-nav .nav-dropdown>summary:hover svg{transform:translateY(2px)}
}
.primary-nav .nav-dropdown[open]>summary{color:var(--blue)}
.primary-nav .nav-dropdown[open]>summary::after,
.primary-nav .nav-dropdown>summary:focus-visible::after{transform:scaleX(1)}
@media (prefers-reduced-motion:reduce){
  .primary-nav .nav-dropdown>summary,
  .primary-nav .nav-dropdown>summary::after,
  .primary-nav .nav-dropdown>summary svg{transition:none!important}
}
/* Fix unwanted list counter "0." before the optional TP1/TP3 heading. */
.advanced-tax-disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px}
.advanced-tax-disclosure>summary::-webkit-details-marker{display:none}
.advanced-tax-disclosure>summary::after{content:"";height:7px;width:7px;flex:none;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 4px 4px 0}
.advanced-tax-disclosure[open]>summary::after{transform:rotate(225deg);margin:4px 4px 0 0}
/* Isolated report, never displayed in the interactive calculator. */
.print-only-report{display:none}
@media print{
  @page{size:A4;margin:14mm 14mm 15mm}
  html,body{background:#fff!important;color:#101923!important;margin:0!important;max-width:none!important}
  .site-header,main,.site-footer{display:none!important}
  .print-only-report{display:block!important;font-family:Figtree,'Segoe UI',Arial,sans-serif;font-size:9.2pt;line-height:1.24;max-width:100%;color:#142034!important}
  .print-only-report,.print-only-report *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .print-report-header{display:flex;align-items:center;gap:11px;padding:0 0 7px;border-bottom:2px solid #1260f9}
  .print-report-header h1{font-size:17pt;font-weight:650;letter-spacing:-.4px;line-height:1.15;margin:3px 0 0}
  .print-report-brand{font-size:12pt;color:#1260f9!important}
  .print-report-flag{width:42px;height:42px;object-fit:cover;border-radius:50%;flex:none}
  .print-report-disclaimer{color:#506078!important;font-size:8pt;margin:7px 0 10px}
  .print-report-highlight{display:flex;flex-direction:column;gap:3px;background:#eff4ff!important;border-radius:7px;padding:8px 12px;margin:0 0 10px}
  .print-report-highlight span{color:#506078!important;font-size:9pt}
  .print-report-highlight strong{font-size:19pt;font-weight:650;color:#111b2b!important}
  .print-report-section{break-inside:auto;margin:0 0 9px}
  .print-report-section h2{font-size:10pt;font-weight:700;margin:0 0 4px;border-bottom:1px solid #cdd5e1;padding-bottom:4px}
  .print-report-section p{margin:6px 0;font-size:8.2pt;overflow-wrap:anywhere}
  .print-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:8.3pt}
  .print-table tr{break-inside:avoid}
  .print-table th,.print-table td{padding:3px 6px;border-bottom:1px solid #e4e8ee}
  .print-table th{text-align:left;font-weight:500;width:67%;overflow-wrap:anywhere}
  .print-table td{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
  .print-report-footer{border-top:1px solid #dbe2ec;padding:6px 0 0;color:#5b6878!important;font-size:8pt}
}

/* Stage 23: additive payroll options and comparison; approved header/hero retained. */
.stage23-options{border:1px solid var(--line);background:var(--soft);padding:14px;border-radius:8px;margin-bottom:18px}
.stage23-options .field select{width:100%;min-width:0;background:var(--bg)}
.stage23-caveat{margin:4px 0 0;color:#6b7890;font-size:11px;line-height:1.55}
.stage23-employer{margin:16px 0;border-top:1px solid var(--line);padding-top:12px}
.stage23-employer h3{font-size:14px;color:var(--ink);margin:0 0 8px}
.stage23-employer .history-help{margin:7px 0 2px;color:#6b7890;font-size:11px}
.comparison-section{max-width:1145px;margin:26px auto 50px;border:1px solid var(--line);border-radius:12px;background:var(--bg);padding:24px}
.comparison-heading h2{font-size:24px;letter-spacing:-.5px;margin:3px 0}
.comparison-heading>p:last-child{color:#75849b;font-size:14px;margin:8px 0 18px;line-height:1.6}
.comparison-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.comparison-section .field input{width:100%;min-height:42px;border:1px solid #d5dfea;border-radius:5px;background:var(--bg);color:var(--ink);padding:9px 11px}
.comparison-submit{margin:14px 0;width:auto!important;min-width:170px}
.compare-cards{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:14px}
.compare-card{border:1px solid var(--line);padding:14px;border-radius:8px;background:var(--soft)}
.compare-card h3{font-size:13px;margin:0 0 8px;color:var(--ink)}
.compare-card strong{font-size:24px;font-weight:700;color:var(--ink);display:block;margin-bottom:12px}
.compare-card dl{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0;font-size:12px}
.compare-card dt{color:#65758f}.compare-card dd{font-weight:650;color:var(--ink);margin:0}
.compare-difference{font-size:13px;color:var(--body);margin:12px 0 0}
@media(max-width:760px){.comparison-section{margin:18px 12px 34px;padding:14px}.compare-cards{grid-template-columns:1fr}}
@media(max-width:480px){.comparison-grid{grid-template-columns:1fr}}
body.theme-dark .stage23-options,body.theme-dark .comparison-section{background:#1b2230}
body.theme-dark .compare-card{background:#273142}body.theme-dark .compare-card dt{color:#ced8e6}
@media print{.comparison-section{display:none!important}}

.homepage-chinese-link{color:var(--blue);font-size:12px;font-weight:700;text-decoration:none}.homepage-chinese-link:hover{text-decoration:underline}

.logo img.logo-img{height:44px;width:auto;display:block}body.theme-dark .logo img.logo-img{background:#fff;border-radius:8px;padding:3px 8px}

/* Mobile UI v2 (approved 2026-11-01): premium mobile look, MOBILE ONLY.
   Every rule below lives inside max-width:760px (plus a desktop display:none
   for the new dropdown element itself). Desktop rendering is untouched. */
.lang-dropdown{display:none}
@media(max-width:760px){
  /* ENG dropdown replaces the inline EN/BM/中文 switcher on mobile only. */
  .language-switcher{display:none!important}
  .lang-dropdown{display:inline-block;position:relative}
  .lang-dropdown summary{list-style:none;cursor:pointer;background:#fff;color:#14317e;border-radius:20px;padding:6px 11px;font-size:12.5px;font-weight:800;white-space:nowrap;box-shadow:0 2px 8px rgba(9,12,23,.18)}
  .lang-dropdown summary::-webkit-details-marker{display:none}
  .site-header{position:relative;z-index:60}
  .lang-dropdown{z-index:60}
  .lang-drop-panel{position:absolute;left:0;right:auto;top:calc(100% + 6px);z-index:60;background:#fff;min-width:200px;box-shadow:0 16px 34px rgba(20,49,126,.30);border:1px solid #e2e7f2;border-radius:14px;padding:6px;color-scheme:light}
  .lang-drop-panel a{display:block;padding:11px 12px;border-radius:8px;font-size:14px;font-weight:700;color:#14317e!important;background:#fff}
  .lang-drop-panel a:hover{background:#f0f2fa;color:#14317e}
  /* Gradient hero with decorative circles; features become glass tiles. */
  .hero{max-width:none;margin:0;padding:28px 18px 48px;background:linear-gradient(135deg,#0b1e5c,#14317e 55%,#3b6bff);color:#fff;position:relative;overflow:hidden}
  .hero::after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(255,176,32,.25);right:-70px;top:-70px}
  .hero::before{content:"";position:absolute;width:150px;height:150px;border-radius:50%;border:22px solid rgba(255,255,255,.08);left:-50px;bottom:-60px}
  .hero .breadcrumb,.hero h1,.hero-lead,.hero-features{position:relative;z-index:1}
  .hero h1{color:#fff}
  .hero-lead{color:#d5defa}
  .breadcrumb{color:#aebadd}.breadcrumb strong{color:#fff}.breadcrumb svg{stroke:#aebadd}
  .hero-features .feature{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22)!important;border-radius:12px;padding:10px 8px!important}
  .hero-features .feature strong{color:#fff}.hero-features .feature small{color:#d5defa}
  .hero-features .round-icon{background:rgba(255,255,255,.18);color:#ffb020}
  /* Floating calculator card overlapping the hero. */
  .calculator-wrap{margin-top:-20px;position:relative;z-index:2}
  .calculator-card,.result-card{border-radius:22px!important;box-shadow:0 14px 30px rgba(20,49,126,.18);border-color:#e2e7f2}
  /* Gradient selected tab pill + gradient CTA. */
  .tab.active{background:linear-gradient(135deg,#14317e,#2b5cff);color:#fff;box-shadow:0 6px 14px rgba(43,92,255,.35)}
  .calculate-button{background:linear-gradient(135deg,#ffb020,#ff7a1a);border-color:transparent;color:#1a1206;box-shadow:0 10px 22px rgba(255,122,26,.40);height:44px;font-size:14px;font-weight:700}
  .calculate-button:hover{background:linear-gradient(135deg,#ffb020,#ff7a1a)}
  /* Steps + comparison as soft-shadow cards. */
  .step{border-radius:16px;box-shadow:0 4px 14px rgba(20,49,126,.07)}
  .step span{color:#14317e;font-weight:700}
  .comparison-section{border-radius:22px;box-shadow:0 10px 26px rgba(20,49,126,.10)}
  /* Gradient footer; approved v2 two-column mobile layout untouched. */
  .site-footer{background:linear-gradient(180deg,#0b1e5c,#14317e)}
}

/* Footer fix (2026-11-01): re-assert the ORIGINAL desktop footer, single row of
   5 columns, so it can never wrap into two rows on desktop. Mobile (<=760px)
   keeps the approved v2 two-column layout above; this block is desktop-only. */
@media(min-width:761px){
  .footer-inner{display:grid;grid-template-columns:1.5fr .85fr 1.05fr .95fr 1.15fr;max-width:1180px;margin:0 auto;padding:38px 20px 30px;gap:0}
  .footer-col-group{display:contents}
  .col-calc{grid-column:2;grid-row:1}.col-res{grid-column:3;grid-row:1}.col-info{grid-column:4;grid-row:1}.col-contact{grid-column:5;grid-row:1}
  .footer-brand,.footer-column{padding:0 22px;border-right:1px dashed rgba(255,255,255,.25)}
  .footer-brand{padding-left:0}
  .footer-column:last-child{border-right:0}
  .site-footer{background:#14317e}
  .footer-bottom{flex-direction:row}
}

/* Mobile footer CONTACT fix (2026-11-01, user-directed, MOBILE ONLY):
   Two independent float columns so each column stacks tightly on its own:
   left = CALCULATORS then INFORMATION, right = RESOURCES then CONTACT
   (no shared grid row, so no empty gap above either lower section).
   CONTACT heading is removed on mobile; "PCBCalc Contact" stays as the
   title, followed tightly by email, Kuala Lumpur Malaysia, Not tax advice. */
@media(max-width:760px){
  .footer-inner{display:block}
  .footer-inner::after{content:"";display:table;clear:both}
  .footer-brand{width:100%;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.2)}
  .col-calc{float:left;width:50%;padding-right:10px}
  .col-res{float:right;width:50%;padding-left:10px}
  .col-info{float:left;width:50%;padding-right:10px;clear:left}
  .col-contact{float:right;width:50%;padding-left:10px;clear:right}
  .col-contact h2{display:none}
  .col-contact .footer-contact-box{border:0;padding:0}
  .col-contact .footer-contact-box p{margin:6px 0 0}
}
