
/* CalcuTools World-Class v3.0 | Global clarity + dark mode + result UX | 2026-10-07 */
:root{
  color-scheme:light;
  --ct3-bg:#f7f9fc; --ct3-surface:#ffffff; --ct3-surface-2:#f1f5f9;
  --ct3-text:#0f172a; --ct3-muted:#64748b; --ct3-border:#dbe4ee;
  --ct3-primary:#2563eb; --ct3-primary-soft:#eff6ff; --ct3-success:#15803d;
  --ct3-warning:#b45309; --ct3-danger:#b91c1c; --ct3-shadow:0 12px 30px rgba(15,23,42,.07);
}
html.ct-v3-ready{background:var(--ct3-bg);}
body.ct-v3-page{background:var(--ct3-bg);color:var(--ct3-text);}
body.ct-v3-page, body.ct-v3-page *{box-sizing:border-box;}
body.ct-v3-page a{color:var(--ct3-primary);}
body.ct-v3-page img{max-width:100%;}
body.ct-v3-page input:not([type="checkbox"]):not([type="radio"]),
body.ct-v3-page select, body.ct-v3-page textarea{
  color:var(--ct3-text); background:var(--ct3-surface); border-color:var(--ct3-border);
}
body.ct-v3-page input::placeholder, body.ct-v3-page textarea::placeholder{color:#94a3b8;opacity:1;}
body.ct-v3-page input:focus, body.ct-v3-page select:focus, body.ct-v3-page textarea:focus,
body.ct-v3-page button:focus-visible, body.ct-v3-page a:focus-visible{
  outline:3px solid rgba(37,99,235,.22); outline-offset:2px;
}
/* Global result hierarchy. This intentionally catches common calculator result wrappers. */
body.ct-v3-page .results-box, body.ct-v3-page .result-box, body.ct-v3-page .results-card,
body.ct-v3-page .result-card, body.ct-v3-page .result-panel, body.ct-v3-page .final-result,
body.ct-v3-page .final-total, body.ct-v3-page [data-result-panel="true"]{
  border-color:var(--ct3-border) !important;
  background:var(--ct3-surface) !important;
  color:var(--ct3-text) !important;
  box-shadow:var(--ct3-shadow);
}
body.ct-v3-page .final-total, body.ct-v3-page .final-result{
  background:linear-gradient(135deg,#eff6ff,#ffffff) !important;
  border:1px solid #bfdbfe !important;
}
body.ct-v3-page .final-total .val, body.ct-v3-page .final-total .value,
body.ct-v3-page .result-value, body.ct-v3-page .result-number{
  color:var(--ct3-text) !important; font-weight:900 !important;
}
body.ct-v3-page .result-metric, body.ct-v3-page .metric-card{
  background:var(--ct3-surface) !important; border-color:var(--ct3-border) !important;
}
body.ct-v3-page .metric-label, body.ct-v3-page .result-label{color:var(--ct3-muted) !important;}
/* Global dark-mode safety net for legacy inline styles. */
html[data-theme="dark"]{color-scheme:dark;background:#0b1220;}
html[data-theme="dark"] body.ct-v3-page{background:#0b1220 !important;color:#e7edf7 !important;}
html[data-theme="dark"] body.ct-v3-page main,
html[data-theme="dark"] body.ct-v3-page section,
html[data-theme="dark"] body.ct-v3-page article{color:#e7edf7;}
html[data-theme="dark"] body.ct-v3-page .container,
html[data-theme="dark"] body.ct-v3-page .content-box,
html[data-theme="dark"] body.ct-v3-page .card,
html[data-theme="dark"] body.ct-v3-page .calc-card,
html[data-theme="dark"] body.ct-v3-page .calculator-card,
html[data-theme="dark"] body.ct-v3-page .tool-card,
html[data-theme="dark"] body.ct-v3-page .form-card,
html[data-theme="dark"] body.ct-v3-page .input-card,
html[data-theme="dark"] body.ct-v3-page .seo-article,
html[data-theme="dark"] body.ct-v3-page .faq-item,
html[data-theme="dark"] body.ct-v3-page table,
html[data-theme="dark"] body.ct-v3-page .panel,
html[data-theme="dark"] body.ct-v3-page .box{
  background:#111827 !important; border-color:#334155 !important; color:#e7edf7 !important;
}
html[data-theme="dark"] body.ct-v3-page h1, html[data-theme="dark"] body.ct-v3-page h2,
html[data-theme="dark"] body.ct-v3-page h3, html[data-theme="dark"] body.ct-v3-page h4,
html[data-theme="dark"] body.ct-v3-page h5, html[data-theme="dark"] body.ct-v3-page h6,
html[data-theme="dark"] body.ct-v3-page th, html[data-theme="dark"] body.ct-v3-page strong,
html[data-theme="dark"] body.ct-v3-page .title, html[data-theme="dark"] body.ct-v3-page .heading{
  color:#f8fafc !important;
}
html[data-theme="dark"] body.ct-v3-page p, html[data-theme="dark"] body.ct-v3-page li,
html[data-theme="dark"] body.ct-v3-page td, html[data-theme="dark"] body.ct-v3-page label,
html[data-theme="dark"] body.ct-v3-page small, html[data-theme="dark"] body.ct-v3-page .muted,
html[data-theme="dark"] body.ct-v3-page .subtitle, html[data-theme="dark"] body.ct-v3-page .description{
  color:#b7c3d6 !important;
}
html[data-theme="dark"] body.ct-v3-page input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] body.ct-v3-page select, html[data-theme="dark"] body.ct-v3-page textarea{
  background:#0f172a !important; color:#f1f5f9 !important; border-color:#334155 !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body.ct-v3-page input::placeholder,
html[data-theme="dark"] body.ct-v3-page textarea::placeholder{color:#7f8da4 !important;}
html[data-theme="dark"] body.ct-v3-page button:not(.ct3-theme-toggle),
html[data-theme="dark"] body.ct-v3-page .btn,
html[data-theme="dark"] body.ct-v3-page .button{
  border-color:#475569 !important;
}
html[data-theme="dark"] body.ct-v3-page .final-total,
html[data-theme="dark"] body.ct-v3-page .final-result{
  background:linear-gradient(135deg,#10213b,#111827) !important;
  border-color:#365f95 !important;
}
html[data-theme="dark"] body.ct-v3-page .results-box, html[data-theme="dark"] body.ct-v3-page .result-box,
html[data-theme="dark"] body.ct-v3-page .results-card, html[data-theme="dark"] body.ct-v3-page .result-card,
html[data-theme="dark"] body.ct-v3-page .result-panel, html[data-theme="dark"] body.ct-v3-page [data-result-panel="true"]{
  background:#111827 !important; border-color:#334155 !important;
}
html[data-theme="dark"] body.ct-v3-page .result-value, html[data-theme="dark"] body.ct-v3-page .result-number,
html[data-theme="dark"] body.ct-v3-page .final-total .val, html[data-theme="dark"] body.ct-v3-page .final-total .value,
html[data-theme="dark"] body.ct-v3-page .metric-val{
  color:#f8fafc !important;
}
html[data-theme="dark"] body.ct-v3-page .ct-v7-nav,
html[data-theme="dark"] body.ct-v3-page .ct-nav,
html[data-theme="dark"] body.ct-v3-page nav{
  background:#0f172a !important; border-color:#334155 !important; color:#e5edf8 !important;
}
html[data-theme="dark"] body.ct-v3-page footer,
html[data-theme="dark"] body.ct-v3-page .footer{background:#07101e !important;color:#cbd5e1 !important;border-color:#1e293b !important;}
/* Universal explanation blocks */
.ct3-understand{width:min(1180px,calc(100% - 32px));margin:14px auto 18px;padding:14px 16px;border:1px solid #dbe7f3;border-radius:16px;background:#f8fbff;display:grid;grid-template-columns:1.2fr 1fr;gap:12px;align-items:start;}
.ct3-understand .ct3-understand-title{font-weight:900;font-size:13px;color:#0f172a;margin-bottom:4px;}
.ct3-understand p{margin:0;font-size:12px;line-height:1.6;color:#5b6b82;}
.ct3-understand .ct3-steps{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
.ct3-step{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;border:1px solid #dbe4ee;background:#fff;color:#475569;font-size:11px;font-weight:800;}
.ct3-step b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#2563eb;color:#fff;font-size:10px;}
html[data-theme="dark"] .ct3-understand{background:#0f1b2c;border-color:#334155;}
html[data-theme="dark"] .ct3-understand .ct3-understand-title{color:#f8fafc;}
html[data-theme="dark"] .ct3-understand p{color:#aebbd0;}
html[data-theme="dark"] .ct3-step{background:#111827;border-color:#334155;color:#cbd5e1;}
/* Result explainer */
.ct3-result-guide{width:min(1180px,calc(100% - 32px));margin:12px auto 18px;padding:16px;border:1px solid #dbe4ee;border-radius:16px;background:#fff;display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;}
.ct3-result-guide .ct3-rg{padding:12px;border:1px solid #e5ebf2;border-radius:12px;background:#fbfdff;min-height:88px;}
.ct3-result-guide .ct3-rg-kicker{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:900;color:#64748b;}
.ct3-result-guide .ct3-rg-value{display:block;margin-top:5px;font-size:14px;font-weight:900;color:#0f172a;line-height:1.45;}
.ct3-result-guide .ct3-rg-copy{display:block;margin-top:4px;font-size:11px;color:#64748b;line-height:1.55;}
html[data-theme="dark"] .ct3-result-guide{background:#111827;border-color:#334155;}
html[data-theme="dark"] .ct3-result-guide .ct3-rg{background:#0f172a;border-color:#334155;}
html[data-theme="dark"] .ct3-result-guide .ct3-rg-value{color:#f8fafc;}
html[data-theme="dark"] .ct3-result-guide .ct3-rg-copy{color:#aebbd0;}
html[data-theme="dark"] .ct3-result-guide .ct3-rg-kicker{color:#94a3b8;}
/* Decision lens */
.ct3-decision-lens{width:min(1180px,calc(100% - 32px));margin:12px auto 18px;padding:17px;border:1px solid #cfe0f6;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#ffffff);}
.ct3-decision-lens h2{margin:0;font-size:18px;letter-spacing:-.02em;color:#0f172a;}
.ct3-decision-lens>p{margin:5px 0 12px;color:#64748b;font-size:12px;line-height:1.55;}
.ct3-decision-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.ct3-decision-box{padding:13px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;}
.ct3-decision-box b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#64748b;}
.ct3-decision-box strong{display:block;margin-top:5px;font-size:14px;line-height:1.4;color:#0f172a;}
.ct3-decision-box span{display:block;margin-top:4px;font-size:11px;line-height:1.5;color:#64748b;}
html[data-theme="dark"] .ct3-decision-lens{background:linear-gradient(135deg,#0f1b2c,#111827);border-color:#365f95;}
html[data-theme="dark"] .ct3-decision-lens h2{color:#f8fafc;}
html[data-theme="dark"] .ct3-decision-lens>p{color:#aebbd0;}
html[data-theme="dark"] .ct3-decision-box{background:#0f172a;border-color:#334155;}
html[data-theme="dark"] .ct3-decision-box strong{color:#f8fafc;}
html[data-theme="dark"] .ct3-decision-box span,html[data-theme="dark"] .ct3-decision-box b{color:#94a3b8;}
/* Universal theme toggle fallback for pages that lack a native toggle */
.ct3-theme-toggle{position:fixed;right:16px;bottom:16px;z-index:2000;width:44px;height:44px;border-radius:13px;border:1px solid #cfd9e6;background:#fff;color:#334155;box-shadow:0 12px 35px rgba(15,23,42,.16);cursor:pointer;font-size:17px;font-weight:900;display:grid;place-items:center;}
.ct3-theme-toggle:hover{transform:translateY(-1px);}
html[data-theme="dark"] .ct3-theme-toggle{background:#111827;color:#f8fafc;border-color:#475569;box-shadow:0 12px 35px rgba(0,0,0,.35);}
.ct3-hindi-jump{display:inline-flex;align-items:center;gap:7px;margin-top:8px;padding:8px 11px;border-radius:999px;background:#0f766e;color:#fff !important;text-decoration:none;font-size:11px;font-weight:900;}
html[data-theme="dark"] .ct3-hindi-jump{background:#0d9488;}
@media(max-width:820px){
  .ct3-understand,.ct3-result-guide,.ct3-decision-lens{width:calc(100% - 24px);}
  .ct3-understand{grid-template-columns:1fr;}.ct3-understand .ct3-steps{justify-content:flex-start;}
  .ct3-result-guide,.ct3-decision-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:520px){
  .ct3-understand,.ct3-result-guide,.ct3-decision-lens{width:calc(100% - 18px);}
  .ct3-result-guide,.ct3-decision-grid{grid-template-columns:1fr;}
  .ct3-step{font-size:10px;}
  .ct3-theme-toggle{right:12px;bottom:12px;width:42px;height:42px;}
}
@media(prefers-reduced-motion:reduce){.ct3-theme-toggle{transition:none!important;}}


/* CalcuTools Content & Trust v2.2 */
.ct22-home-depth,.ct22-content-depth{width:min(1180px,calc(100% - 32px));margin:28px auto;}
.ct22-home-depth-in,.ct22-depth-in{padding:24px;border:1px solid #dbe4ee;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.04);}
.ct22-kicker{margin:0 0 7px;color:#2563eb;font-size:10px;letter-spacing:.09em;text-transform:uppercase;font-weight:900;}
.ct22-home-depth h2,.ct22-content-depth h2{margin:0;color:#0f172a;font-size:clamp(22px,3vw,30px);line-height:1.18;letter-spacing:-.025em;}
.ct22-home-depth>div p,.ct22-depth-in p{color:#5b6b82;line-height:1.7;}
.ct22-home-depth-in>p:not(.ct22-kicker),.ct22-lead{max-width:900px;font-size:14px;}
.ct22-home-depth-grid,.ct22-depth-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px;}
.ct22-home-depth-grid>div,.ct22-depth-grid>div{padding:15px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fbff;}
.ct22-home-depth h3,.ct22-content-depth h3{margin:0 0 7px;color:#172033;font-size:14px;line-height:1.35;}
.ct22-home-depth-grid p,.ct22-depth-grid p,.ct22-depth-grid li{font-size:12px;line-height:1.65;margin:0;color:#5b6b82;}
.ct22-depth-grid ul{padding-left:18px;margin:0;}
.ct22-home-notes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:13px;}
.ct22-home-notes>div{padding:12px 14px;border-radius:13px;background:#f1f5f9;border:1px solid #e2e8f0;}
.ct22-home-notes strong{display:block;color:#172033;font-size:11px;text-transform:uppercase;letter-spacing:.06em;}
.ct22-home-notes span{display:block;margin-top:4px;font-size:11px;color:#64748b;line-height:1.55;}
.ct22-related{display:flex;gap:10px;align-items:flex-start;margin-top:16px;padding:13px 14px;border:1px solid #dbeafe;border-radius:13px;background:#f8fbff;}
.ct22-related strong{font-size:11px;color:#334155;white-space:nowrap;}
.ct22-related span{display:flex;flex-wrap:wrap;gap:7px;}
.ct22-related a{display:inline-block;padding:7px 9px;border-radius:9px;background:#fff;border:1px solid #bfdbfe;color:#1d4ed8!important;font-size:11px;font-weight:850;text-decoration:none;}
.ct22-method-note{margin-top:12px!important;font-size:11px!important;color:#64748b!important;}
html[data-theme="dark"] .ct22-home-depth-in,html[data-theme="dark"] .ct22-depth-in{background:#111827;border-color:#334155;box-shadow:none;}
html[data-theme="dark"] .ct22-home-depth h2,html[data-theme="dark"] .ct22-content-depth h2,html[data-theme="dark"] .ct22-home-depth h3,html[data-theme="dark"] .ct22-content-depth h3{color:#f8fafc;}
html[data-theme="dark"] .ct22-home-depth-grid>div,html[data-theme="dark"] .ct22-depth-grid>div{background:#0f172a;border-color:#334155;}
html[data-theme="dark"] .ct22-home-depth p,html[data-theme="dark"] .ct22-depth-in p,html[data-theme="dark"] .ct22-depth-grid li{color:#b7c3d6;}
html[data-theme="dark"] .ct22-home-notes>div{background:#0f172a;border-color:#334155;}
html[data-theme="dark"] .ct22-home-notes strong{color:#e5edf7;}
html[data-theme="dark"] .ct22-home-notes span{color:#aebbd0;}
html[data-theme="dark"] .ct22-related{background:#0f1b2c;border-color:#365f95;}
html[data-theme="dark"] .ct22-related strong{color:#cbd5e1;}
html[data-theme="dark"] .ct22-related a{background:#111827;border-color:#365f95;color:#93c5fd!important;}
@media(max-width:900px){.ct22-home-depth-grid,.ct22-depth-grid{grid-template-columns:1fr 1fr}.ct22-home-notes{grid-template-columns:1fr}.ct22-related{display:block}.ct22-related span{margin-top:7px;}}
@media(max-width:520px){.ct22-home-depth,.ct22-content-depth{width:calc(100% - 18px)}.ct22-home-depth-in,.ct22-depth-in{padding:18px}.ct22-home-depth-grid,.ct22-depth-grid{grid-template-columns:1fr;}.ct22-related a{width:100%;}}

.ct23-source-note{margin:1.5rem 0;padding:1rem 1.1rem;border:1px solid var(--ct-border,#dbe3ec);border-radius:14px;background:var(--ct-surface,#fff)}.ct23-source-note h3{margin:.1rem 0 .45rem}.ct23-source-note p{margin:.35rem 0}.ct23-source-note a{margin-right:.75rem}
[data-theme="dark"] .ct23-source-note{background:#111b2b;border-color:#2b3a52}
