/* Calculator presentation only. The stored app, input IDs and calculation code stay intact.
   The scoped body selectors outrank the legacy stylesheet embedded in page content. */
body.sp12.story-calculator{background:var(--paper);color:var(--green)}
body.sp12.story-calculator .sp12-resource-hero{padding-bottom:30px;margin-bottom:30px}
body.sp12.story-calculator .sp12-resource-hero h1{overflow-wrap:anywhere}
body.sp12.story-calculator .sp12-resource-content{max-width:1208px}
body.sp12.story-calculator #tcs-app{
 --tcs-ink:#1e4636;--tcs-muted:#4b6053;--tcs-silver:#e2e5d8;
 --tcs-paper:#f3ecdd;--tcs-line:#a8b4a4;--tcs-teal:#2846c7;
 --tcs-purple:#2846c7;--tcs-error:#8e293a;--tcs-soft:#e3e5d8;
 font:16px/1.65 Satoshi,Arial,sans-serif;color:var(--tcs-ink);
 background:var(--tcs-paper);width:100%;max-width:none;min-width:0;
 margin:0;padding:0;border:0;border-radius:0;box-shadow:none
}
body.sp12.story-calculator #tcs-app :is(h2,h3,legend){font-family:Satoshi,Arial,sans-serif;font-weight:900;letter-spacing:-.025em}
body.sp12.story-calculator #tcs-app h2{font-size:clamp(26px,2.6vw,38px);line-height:1.16;margin-bottom:12px}
body.sp12.story-calculator #tcs-app h3{font-size:23px;line-height:1.25}
body.sp12.story-calculator #tcs-app p{line-height:1.65}
body.sp12.story-calculator #tcs-app .tcs-byline{font-size:14px;margin-bottom:20px}
body.sp12.story-calculator #tcs-app .tcs-lead{font:italic clamp(27px,2.7vw,38px)/1.3 Georgia,serif;max-width:34ch;margin-bottom:17px}
body.sp12.story-calculator #tcs-app .tcs-intro>p:not(.tcs-byline):not(.tcs-lead){max-width:75ch}
body.sp12.story-calculator #tcs-app .tcs-toolbar{gap:12px;margin:30px 0 18px}
body.sp12.story-calculator #tcs-app button{font:900 15px/1.4 Satoshi,Arial,sans-serif;background:var(--green);color:var(--paper);border:1px solid var(--green);padding:13px 18px;min-height:46px;border-radius:0;white-space:normal;transition:none}
body.sp12.story-calculator #tcs-app button:hover{background:var(--blue);border-color:var(--blue)}
body.sp12.story-calculator #tcs-app button.tcs-secondary{background:transparent;color:var(--green);border-color:#1e463680}
body.sp12.story-calculator #tcs-app button.tcs-secondary:hover{background:var(--tcs-soft);border-color:var(--green)}
body.sp12.story-calculator #tcs-app button.tcs-link-button{background:transparent;border:0;padding:10px 0;color:var(--blue);font-size:14px;font-weight:400}
body.sp12.story-calculator #tcs-app button.tcs-remove{background:transparent;color:var(--tcs-error);border-color:#8e293a55;font-size:13px;padding:10px 12px}
body.sp12.story-calculator #tcs-app button.tcs-remove:hover{background:#f1d4df;border-color:var(--tcs-error)}
body.sp12.story-calculator #tcs-app :is(button,input,textarea,select,summary,a):focus-visible{outline:3px solid var(--blue);outline-offset:4px}
body.sp12.story-calculator #tcs-app .tcs-local{font-size:14px;max-width:82ch}
body.sp12.story-calculator #tcs-app .tcs-mode{padding:20px 22px;margin-top:28px;background:#dce3d5;border-left:4px solid var(--green);font-size:15px}
body.sp12.story-calculator #tcs-app .tcs-mode strong{font-size:17px;color:var(--green);margin-bottom:5px}
body.sp12.story-calculator #tcs-app section{padding:46px 0}
body.sp12.story-calculator #tcs-app .tcs-section-heading{gap:18px;margin-bottom:28px}
body.sp12.story-calculator #tcs-app .tcs-section-heading>div{min-width:0}
body.sp12.story-calculator #tcs-app .tcs-step{width:36px;height:36px;background:var(--green);border-color:var(--green);color:var(--paper);font-size:15px}
body.sp12.story-calculator #tcs-app label{font-size:15px;line-height:1.5;margin-bottom:8px;overflow-wrap:anywhere}
body.sp12.story-calculator #tcs-app :is(input,select,textarea){font:16px/1.5 Satoshi,Arial,sans-serif;min-width:0;max-width:100%;background:#fff9ed;color:var(--green);border-color:#748875;border-radius:0;padding:11px 12px}
body.sp12.story-calculator #tcs-app input[type=checkbox]{padding:0;accent-color:var(--blue)}
body.sp12.story-calculator #tcs-app input[aria-invalid=true]{border-color:var(--tcs-error);box-shadow:0 0 0 1px var(--tcs-error)}
body.sp12.story-calculator #tcs-app :is(small,.tcs-status-label,.tcs-cost-detail){font-family:Satoshi,Arial,sans-serif;font-size:13px;line-height:1.6}
body.sp12.story-calculator #tcs-app :is(.tcs-note,.tcs-eligibility-row p,.tcs-cost-main p,.tcs-offset-status,.tcs-evidence-details summary,.tcs-method){font-size:14px;line-height:1.65}
body.sp12.story-calculator #tcs-app .tcs-warning{background:#f1d4df;border-color:var(--tcs-error);color:#722337}
body.sp12.story-calculator #tcs-app :is(.tcs-requirements,.tcs-eligibility,.tcs-evidence-grid,.tcs-risk-entry,.tcs-readiness,.tcs-bar-track,.tcs-unknown-bar,.tcs-code){border-radius:0}
body.sp12.story-calculator #tcs-app :is(.tcs-requirements,.tcs-eligibility){padding:23px;background:var(--tcs-soft)}
body.sp12.story-calculator #tcs-app summary{min-height:44px;padding:10px 0;line-height:1.5;overflow-wrap:anywhere}
body.sp12.story-calculator #tcs-app .tcs-context-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
body.sp12.story-calculator #tcs-app :is(.tcs-context-grid,.tcs-requirement-row,.tcs-panel-intro,.tcs-eligibility-row,.tcs-cost-main,.tcs-evidence-grid,.tcs-risk-fields,.tcs-result-row)>*{min-width:0}
body.sp12.story-calculator #tcs-app .tcs-check span{min-width:0;overflow-wrap:anywhere}
body.sp12.story-calculator #tcs-app .tcs-result-row{grid-template-columns:120px minmax(0,1fr) minmax(160px,220px);gap:24px;border-color:var(--tcs-line)}
body.sp12.story-calculator #tcs-app .tcs-result-name{font:900 25px/1.2 Satoshi,Arial,sans-serif;letter-spacing:-.025em}
body.sp12.story-calculator #tcs-app .tcs-result-total strong{font-size:26px;overflow-wrap:anywhere}
body.sp12.story-calculator #tcs-app .tcs-result-bars{min-width:0}
body.sp12.story-calculator #tcs-app .tcs-unknown-bar{background:repeating-linear-gradient(135deg,#e3e5d8 0,#e3e5d8 5px,#cad4c4 5px,#cad4c4 7px);border-color:#748875}
body.sp12.story-calculator #tcs-app .tcs-tabs{gap:5px;border-color:var(--tcs-line)}
body.sp12.story-calculator #tcs-app .tcs-tabs button{min-width:0;background:transparent;color:var(--green);border-color:#a8b4a4;border-radius:0;padding:15px 10px;font-size:16px}
body.sp12.story-calculator #tcs-app .tcs-tabs button:hover{background:var(--tcs-soft)}
body.sp12.story-calculator #tcs-app .tcs-tabs button[aria-selected=true]{background:var(--blue);color:var(--paper);border-color:var(--blue);box-shadow:none}
body.sp12.story-calculator #tcs-app .tcs-cost-main{grid-template-columns:minmax(0,1fr) minmax(140px,210px);gap:28px}
body.sp12.story-calculator #tcs-app .tcs-code{background:#dce3d5;font-size:12px;display:inline-block;margin-bottom:3px}
body.sp12.story-calculator #tcs-app .tcs-risk-entry{background:#eddae1;border-color:#b895a3;padding:23px}
body.sp12.story-calculator #tcs-app .tcs-risk-head{flex-wrap:wrap}
body.sp12.story-calculator #tcs-app .tcs-risk-result{color:#532f43}
body.sp12.story-calculator #tcs-app .tcs-offset-note{background:#dce3d5;border-color:var(--green)}
body.sp12.story-calculator #tcs-app .tcs-method{max-width:85ch;padding-top:40px}
body.sp12.story-calculator #tcs-app .tcs-method h2{font-size:27px;line-height:1.25}
body.sp12.story-calculator #tcs-app .tcs-method p{margin-bottom:1.3em}
@media(max-width:760px){
 body.sp12.story-calculator .sp12-resource-content{width:calc(100% - 48px)}
 body.sp12.story-calculator #tcs-app .tcs-result-row{grid-template-columns:100px minmax(0,1fr);gap:14px}
 body.sp12.story-calculator #tcs-app .tcs-result-total{grid-column:2;text-align:left}
 body.sp12.story-calculator #tcs-app .tcs-cost-main{grid-template-columns:minmax(0,1fr) minmax(140px,170px);gap:20px}
 body.sp12.story-calculator #tcs-app .tcs-section-heading{gap:12px}
 body.sp12.story-calculator #tcs-app .tcs-section-heading .tcs-step{width:30px;height:30px}
}
@media(max-width:600px){
 body.sp12.story-calculator .sp12-resource-hero{padding-bottom:10px;margin-bottom:25px}
 body.sp12.story-calculator #tcs-app .tcs-lead{font-size:28px}
 body.sp12.story-calculator #tcs-app .tcs-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 body.sp12.story-calculator #tcs-app .tcs-toolbar button{text-align:left;padding:13px 15px}
 body.sp12.story-calculator #tcs-app .tcs-mode{padding:18px 16px}
 body.sp12.story-calculator #tcs-app section{padding:35px 0}
 body.sp12.story-calculator #tcs-app h2{font-size:26px}
 body.sp12.story-calculator #tcs-app :is(.tcs-context-grid,.tcs-cost-main,.tcs-result-row){grid-template-columns:minmax(0,1fr);gap:18px}
 body.sp12.story-calculator #tcs-app .tcs-cost-main>div:last-child{max-width:none}
 body.sp12.story-calculator #tcs-app .tcs-result-total{grid-column:auto}
 body.sp12.story-calculator #tcs-app .tcs-result-total strong{font-size:25px}
 body.sp12.story-calculator #tcs-app :is(.tcs-requirements,.tcs-eligibility,.tcs-evidence-grid,.tcs-risk-entry){padding:17px 15px}
 body.sp12.story-calculator #tcs-app .tcs-tabs button{font-size:15px;padding:14px 6px}
 body.sp12.story-calculator #tcs-app .tcs-result-name{font-size:24px}
 body.sp12.story-calculator #tcs-app .tcs-status-label{margin-top:4px}
 body.sp12.story-calculator #tcs-app .tcs-legend{font-size:13px;gap:10px 18px}
}
@media print{
 body.sp12.story-calculator #tcs-app{background:white;color:black;font-size:11pt;padding:0}
 body.sp12.story-calculator .sp12-resource-content{width:100%;max-width:none}
 body.sp12.story-calculator #tcs-app :is(.tcs-mode,.tcs-requirements,.tcs-eligibility){background:white}
}
