/* US cost and deadline tools (scripts/us_costs.py). Diya kit tokens from style.css. */
.us-tool .tool-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.us-tool .btn{min-height:44px}
.us-tool fieldset{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:16px 0}
.us-tool legend{font-weight:700;padding:0 4px}
.us-big{font-size:1.1rem;font-weight:600;margin:6px 0 10px}
.us-go{margin:6px 0 12px}
.us-go a{font-weight:700}
.us-past td{opacity:.55}
.us-all,.us-src{margin-top:18px}
.us-all summary,.us-src summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.us-oe-table th[scope=row]{text-align:left;font-weight:600}
nav.next-step{display:block;height:auto}
/* refinance chart: one series (Saffron, AA on white), recessive grid */
.rf-chart{margin:18px 0 6px;position:relative}
.rf-chart figcaption{font-weight:600;font-size:.9rem;margin-bottom:6px}
.rf-chart figcaption small{font-weight:400;color:var(--muted,#555)}
.rf-chart svg{width:100%;height:auto;display:block;touch-action:pan-y}
.rf-chart text{font:14px var(--mono,monospace);fill:var(--muted,#555)}
.rf-grid{stroke:var(--line,#e5e2da);stroke-width:1}
.rf-zero{stroke:var(--midnight,#0B0A1A);stroke-width:1.2}
.rf-line{fill:none;stroke:#E06F00;stroke-width:2;stroke-linejoin:round}
.rf-be{stroke:var(--midnight,#0B0A1A);stroke-dasharray:3 3}
.rf-dot{fill:#E06F00;stroke:#fff;stroke-width:2}
.rf-dot2{fill:var(--midnight,#0B0A1A);stroke:#fff;stroke-width:2}
.rf-hair{stroke:var(--muted,#888);stroke-width:1}
.rf-hit{fill:transparent;cursor:crosshair}
.rf-tip{position:absolute;top:28px;background:var(--midnight,#0B0A1A);color:#fff;font:12px var(--mono,monospace);padding:4px 8px;border-radius:6px;pointer-events:none;white-space:nowrap}
.us-tool .check{display:flex;align-items:center;gap:8px}
.us-tool input[type=checkbox]{width:20px;height:20px;accent-color:var(--midnight,#0B0A1A)}
/* heat pump comparer + explainer */
.hp-q{background:#fff}
.hp-table th[scope=row]{text-align:left;font-weight:500}
.hp-table thead th{text-align:left}
.hp-sum th,.hp-sum td{border-top:2px solid var(--line)}
.hp-low{display:inline-block;background:var(--accent-soft,#FFF0DF);border-radius:6px;padding:0 6px;font-weight:600}
.hp-diagram{width:100%;max-width:640px;height:auto;display:block;margin:12px auto 4px}
.hp-legend li b{display:block}
/* crisis note: Midnight on Ivory, not an alarm colour */
.us-crisis{background:var(--ivory,#F7F5F0);border:1.5px solid var(--midnight,#0B0A1A);border-radius:14px;padding:12px 14px;margin:0 0 16px;font-size:.93rem}
.us-crisis a{font-weight:700}
