/* CalcuTools Universal Calculator Anatomy v1 | 18 Nov 2026 */
:root{--ct-anatomy-surface:#fff;--ct-anatomy-bg:#f6f8fc;--ct-anatomy-text:#0f172a;--ct-anatomy-muted:#64748b;--ct-anatomy-border:#e2e8f0;--ct-anatomy-blue:#2563eb;--ct-anatomy-shadow:0 12px 32px rgba(15,23,42,.065)}
html[data-theme="dark"]{--ct-anatomy-surface:#1e293b;--ct-anatomy-bg:#0f172a;--ct-anatomy-text:#e2e8f0;--ct-anatomy-muted:#94a3b8;--ct-anatomy-border:#334155;--ct-anatomy-blue:#60a5fa}
.ct-print-brand{display:none}
.ct-compact-tool-hero{max-height:110px;min-height:0;overflow:hidden;display:block!important;text-align:left!important;margin:0 auto 14px!important;padding:0!important}
.ct-compact-tool-hero h1{margin:0!important;font-size:clamp(22px,3vw,32px)!important;line-height:1.1!important;letter-spacing:-.03em!important;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.ct-compact-tool-hero>p,.ct-compact-tool-hero .ct-hero-copy>p,.ct-compact-tool-hero .hero-inner>p,.ct-compact-tool-hero .page-header-inner>p{display:block!important;margin:5px 0 0!important;font-size:13px!important;line-height:1.35!important;max-width:100%!important;color:var(--ct-anatomy-muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ct-compact-tool-hero .hero-tag,.ct-compact-tool-hero .badge,.ct-compact-tool-hero .hero-pills,.ct-compact-tool-hero .privacy-pill{display:none!important}
.ct-compact-tool-hero .hero-inner,.ct-compact-tool-hero .page-header-inner{margin:0!important;padding:0!important}
.ct-compact-tool-hero .ct-tool-verification{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:3px 8px;border:1px solid var(--ct-anatomy-border);border-radius:999px;background:color-mix(in srgb,var(--ct-anatomy-surface) 86%,var(--ct-anatomy-blue) 14%);color:var(--ct-anatomy-blue);font-size:10px;font-weight:800;line-height:1.35}
.ct-compact-breadcrumb{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 7px!important;padding:0!important;font-size:11px!important;line-height:1.3!important;color:var(--ct-anatomy-muted)!important}
.ct-compact-breadcrumb>*{flex:0 0 auto}.ct-compact-breadcrumb>:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
body.ct-anatomy-active .container:has(.ct-tool-split-card){max-width:1240px!important;width:min(100% - 32px,1240px)!important;margin-top:12px!important;padding-top:8px!important}
body .ct-tool-split-card{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr)!important;align-items:start!important;gap:20px!important;max-width:none!important;width:100%!important;margin:0 0 22px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.ct-tool-input-pane,.ct-tool-results-pane{min-width:0;background:var(--ct-anatomy-surface)!important;color:var(--ct-anatomy-text)!important;border:1px solid var(--ct-anatomy-border)!important;border-radius:18px!important;padding:22px!important;box-shadow:var(--ct-anatomy-shadow)!important}
.ct-tool-input-pane{grid-column:1}.ct-tool-results-pane{grid-column:2;position:sticky;top:96px;align-self:start;max-height:calc(100vh - 112px);overflow:auto;overscroll-behavior:contain}
.ct-tool-results-pane .results-box,.ct-tool-results-pane .result-box,.ct-tool-results-pane .results,.ct-tool-results-pane .result-hero,.ct-tool-results-pane .afford-verdict,.ct-tool-results-pane .neg-result,.ct-tool-results-pane .atx-output,.ct-tool-results-pane .conv-result,.ct-tool-results-pane .invoice-print-area{margin-top:0!important;width:100%!important;max-width:100%!important}
.ct-tool-results-placeholder{padding:24px 16px;border:1px dashed var(--ct-anatomy-border);border-radius:14px;color:var(--ct-anatomy-muted);text-align:center;font-size:13px;line-height:1.55;background:var(--ct-anatomy-bg)}
.ct-tool-results-pane.has-results .ct-tool-results-placeholder{display:none}
.ct-tool-results-pane .final-total{margin-top:0!important;padding:14px 15px;border-radius:14px;background:var(--ct-anatomy-bg);border:1px solid var(--ct-anatomy-border)}
.ct-tool-results-pane .final-total .val{display:block;font-size:clamp(25px,3vw,36px)!important;font-weight:900!important;line-height:1.08!important;color:var(--ct-anatomy-text)!important;margin-top:5px}
.ct-tool-results-pane .final-total .val,.ct-tool-results-pane .res-value,.ct-tool-results-pane .sh-val{overflow-wrap:anywhere}
.ct-tool-results-pane .calc-card,.ct-tool-results-pane .card{max-width:100%!important;margin:0 0 10px!important}
.ct-tool-input-pane .two-col:has(> :only-child){grid-template-columns:minmax(0,1fr)!important}
.ct-tool-action-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px}
.ct-tool-action-bar button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:9px 10px;border:1px solid var(--ct-anatomy-border);border-radius:10px;background:var(--ct-anatomy-surface);color:var(--ct-anatomy-text);font-family:inherit;font-size:11px;font-weight:750;line-height:1.25;cursor:pointer;white-space:normal}
.ct-tool-action-bar button:hover{border-color:var(--ct-anatomy-blue);color:var(--ct-anatomy-blue)}
.ct-tool-action-bar button.ct-action-primary{background:var(--ct-anatomy-blue);border-color:var(--ct-anatomy-blue);color:#fff}
.ct-tool-action-bar button.is-saved{background:#ecfdf5;border-color:#86efac;color:#166534}
html[data-theme="dark"] .ct-tool-action-bar button.is-saved{background:#12352e;border-color:#26745d;color:#a7f3d0}
.ct-next-decision{margin-top:17px;padding-top:15px;border-top:1px solid var(--ct-anatomy-border)}
.ct-next-decision h3{margin:0 0 9px!important;color:var(--ct-anatomy-text)!important;font-size:13px!important;font-weight:850!important}
.ct-next-decision-links{display:grid;grid-template-columns:1fr;gap:7px}
.ct-next-decision-links a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;border:1px solid var(--ct-anatomy-border);border-radius:10px;background:var(--ct-anatomy-bg);color:var(--ct-anatomy-text);text-decoration:none;font-size:12px;font-weight:750}
.ct-next-decision-links a:hover{border-color:var(--ct-anatomy-blue);color:var(--ct-anatomy-blue)}
.ct-lakh-crore-hint{display:block;margin:5px 0 0;color:var(--ct-anatomy-muted);font-size:12px;line-height:1.35;font-weight:550}
.ct-input-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ct-input-presets button{min-height:32px;padding:5px 9px;border:1px solid var(--ct-anatomy-border);border-radius:999px;background:var(--ct-anatomy-bg);color:var(--ct-anatomy-text);font-size:11px;font-weight:800;cursor:pointer}
.ct-input-presets button:hover{border-color:var(--ct-anatomy-blue);color:var(--ct-anatomy-blue)}
.ct-range-sync{display:block;width:100%;height:24px;margin:5px 0 0;accent-color:var(--ct-anatomy-blue);cursor:pointer}
.ct-range-sync:focus-visible{outline:3px solid var(--ct-anatomy-blue);outline-offset:3px}
.ct-mobile-bottom-nav{display:none}
.ct-mobile-result-bar{display:none}
.ct-anatomy-footer-note{display:block;margin:12px 0 0;padding:10px 12px;border:1px solid #243247;border-radius:10px;background:#101b2b;color:#dbeafe;font-size:11px;font-weight:750;line-height:1.5}
html[data-theme="dark"] .ct-anatomy-footer-note{background:#0b1422;border-color:#334155;color:#bfdbfe}
.ct-global-fav-panel{position:fixed;z-index:1800;top:82px;right:16px;width:min(340px,calc(100vw - 24px));max-height:70vh;overflow:auto;padding:14px;border:1px solid var(--ct-anatomy-border);border-radius:14px;background:var(--ct-anatomy-surface);color:var(--ct-anatomy-text);box-shadow:0 18px 50px rgba(0,0,0,.2)}
.ct-global-fav-panel h2{margin:0 0 10px;font-size:13px;color:var(--ct-anatomy-text)}
.ct-global-fav-panel a{display:block;padding:9px 10px;border-top:1px solid var(--ct-anatomy-border);color:var(--ct-anatomy-text);font-size:13px;font-weight:700;text-decoration:none}
.ct-global-fav-panel a:hover{color:var(--ct-anatomy-blue)}
.ct-global-fav-panel p{margin:0;color:var(--ct-anatomy-muted);font-size:12px}
@media(min-width:960px){body.ct-anatomy-active .ct-tool-split-card .ct-tool-input-pane{min-width:0}body.ct-anatomy-active .ct-tool-split-card .ct-tool-results-pane{min-width:0}.ct-tool-input-pane .ct-result-extracted{grid-template-columns:minmax(0,1fr)!important}.ct-tool-input-pane .ct-result-extracted>*{min-width:0}}
@media(max-width:959px){body .ct-tool-split-card{display:flex!important;flex-direction:column!important;gap:14px!important}.ct-tool-input-pane,.ct-tool-results-pane{width:100%;padding:18px!important}.ct-tool-results-pane{position:static;max-height:none;overflow:visible}.ct-compact-tool-hero{max-height:110px}}
@media(max-width:768px){body.ct-anatomy-active{padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}.ct-mobile-bottom-nav{position:fixed;z-index:1600;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:62px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-top:1px solid var(--ct-anatomy-border);background:rgba(255,255,255,.97);backdrop-filter:blur(14px);box-shadow:0 -5px 22px rgba(15,23,42,.08)}.ct-mobile-bottom-nav a,.ct-mobile-bottom-nav button{display:flex;min-width:0;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:transparent;color:#64748b;text-decoration:none;font-family:inherit;font-size:10px;font-weight:750;line-height:1.1;cursor:pointer}.ct-mobile-bottom-nav svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.ct-mobile-bottom-nav a:active,.ct-mobile-bottom-nav button:active{color:#2563eb}.ct-mobile-result-bar{position:fixed;z-index:1550;left:10px;right:10px;bottom:calc(63px + env(safe-area-inset-bottom));display:none;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:7px 10px 7px 12px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff;color:#172554;box-shadow:0 8px 24px rgba(15,23,42,.18)}.ct-mobile-result-bar.is-visible{display:flex}.ct-mobile-result-copy{min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden;font-size:11px;line-height:1.2}.ct-mobile-result-label{color:#1e40af;font-weight:800;white-space:nowrap}.ct-mobile-result-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:900;color:#1d4ed8}.ct-mobile-result-bar a{flex:0 0 auto;padding:7px 9px;border-radius:9px;background:#2563eb;color:#fff;text-decoration:none;font-size:10px;font-weight:850;white-space:nowrap}.ct-compact-breadcrumb{margin-bottom:5px!important}.ct-compact-tool-hero h1{font-size:clamp(22px,6.3vw,29px)!important}.ct-compact-tool-hero>p,.ct-compact-tool-hero .ct-hero-copy>p,.ct-compact-tool-hero .hero-inner>p,.ct-compact-tool-hero .page-header-inner>p{font-size:12px!important}.ct-tool-action-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-global-fav-panel{top:auto;bottom:calc(72px + env(safe-area-inset-bottom));right:10px}.ct-anatomy-footer-note{margin:10px 0 0}}
html[data-theme="dark"] .ct-mobile-bottom-nav{background:rgba(15,23,42,.97);border-color:#334155;box-shadow:0 -5px 22px rgba(0,0,0,.35)}
html[data-theme="dark"] .ct-mobile-bottom-nav a,html[data-theme="dark"] .ct-mobile-bottom-nav button{color:#cbd5e1}
html[data-theme="dark"] .ct-mobile-result-bar{background:#172d4d;border-color:#315b8e;color:#eff6ff}
html[data-theme="dark"] .ct-mobile-result-label{color:#bfdbfe}html[data-theme="dark"] .ct-mobile-result-value{color:#fff}
@media print{.ct-global-nav,.ct-global-mobile-panel,.ct-mobile-bottom-nav,.ct-mobile-result-bar,.ct-tool-action-bar,.ct-next-decision,.ct-global-fav-panel,.ct-anatomy-footer-note,.related-section,.related-grid,.seo-article,.seo-section,.ctg-seo,.ctg-related,.ct-growth-links,.ct-growth-panel,footer,.hub-banner,.ct-input-presets,.ct-range-sync{display:none!important}.ct-print-brand{display:flex!important;align-items:center;gap:8px;margin:0 0 16px;font-size:18px;font-weight:900;color:#111}.ct-print-brand span span{color:#2563eb}.container{max-width:100%!important;width:100%!important;margin:0!important;padding:0!important}.ct-tool-split-card{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;background:#fff!important;border:0!important;box-shadow:none!important}.ct-tool-input-pane,.ct-tool-results-pane{background:#fff!important;color:#111!important;border:1px solid #bbb!important;box-shadow:none!important;padding:14px!important;position:static!important;max-height:none!important;overflow:visible!important}.results-box{display:block!important}.ct-tool-results-placeholder{display:none!important}#slipPreview{display:block!important}body{background:#fff!important;color:#111!important;padding:0!important}.ct-compact-tool-hero{max-height:none!important;overflow:visible!important}.ct-compact-tool-hero h1{color:#111!important}.ct-compact-tool-hero p{color:#444!important;white-space:normal!important}.ct-compact-breadcrumb{color:#444!important}}


/* Widen older standalone calculator shells so the desktop split can use the requested 55/45 proportions. */
@media(min-width:960px){
 body.ct-anatomy-active .pg-wrap:has(.ct-tool-split-card),
 body.ct-anatomy-active .wrap:has(.ct-tool-split-card),
 body.ct-anatomy-active .ct-dwrap:has(.ct-tool-split-card),
 body.ct-anatomy-active .ct-hbe-shell:has(.ct-tool-split-card),
 body.ct-anatomy-active .ct-v39-engine:has(.ct-tool-split-card),
 body.ct-anatomy-active .dsl-wrap:has(.ct-tool-split-card){
  width:min(calc(100% - 40px),1240px)!important;max-width:1240px!important;margin-left:auto!important;margin-right:auto!important
 }
 .ct-tool-results-pane .result-metric,.ct-tool-results-pane .metric-box,.ct-tool-results-pane .metric-card,.ct-tool-results-pane .metric-grid>*{min-width:0}
 .ct-tool-results-pane .metric-grid,.ct-tool-results-pane .metrics-grid,.ct-tool-results-pane .result-metrics,.ct-tool-results-pane .result-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:959px){.ct-tool-action-bar{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Keep legacy outer layout grids from squeezing the nested 55/45 calculator split. */
@media(min-width:960px){
 body.ct-anatomy-active .layout:has(.ct-tool-split-card),
 body.ct-anatomy-active .two:has(.ct-tool-split-card),
 body.ct-anatomy-active .two-col:has(.ct-tool-split-card),
 body.ct-anatomy-active .grid:has(.ct-tool-split-card){
  grid-template-columns:minmax(0,1fr)!important;
 }
 body.ct-anatomy-active .ct-tool-split-card.ct-salary-slip-split{width:100%!important;max-width:1240px!important}
}

/* Mobile overflow guard: preserve long FAQ copy while keeping result panes inside the viewport. */
@media(max-width:768px){
 body.ct-anatomy-active .ct-tool-input-pane,
 body.ct-anatomy-active .ct-tool-results-pane{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
 body.ct-anatomy-active .faq-section,
 body.ct-anatomy-active .faq-item,
 body.ct-anatomy-active .faq-q{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
 body.ct-anatomy-active .faq-q{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px}
 body.ct-anatomy-active .faq-q span:not(.faq-icon),
 body.ct-anatomy-active .faq-item p,
 body.ct-anatomy-active .faq-item a{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}
}
@media(max-width:768px){
 body.ct-anatomy-active .ct-tool-input-pane .row2{grid-template-columns:minmax(0,1fr)!important}
 body.ct-anatomy-active .ct-tool-input-pane .row2>*{min-width:0!important;width:100%!important}
}
