/* 겨울 난방비 계산기: components/heating-cost.tsx, lib/heating-cost.mjs. 구독료 계산기·체크리스트 도구와 같은 결로 맞췄다(2026-10-25) */
.hc-page{--hc-line:#d9dcd5;--hc-soft:#f3f4ef;--hc-field:#cdd4c8;--hc-warn:#8a5a00;--hc-warn-bg:#fff4dc;--hc-hot:#b5401f}
.hc-panel{padding:0}
.hc-panel [hidden]{display:none!important}
.hc-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0}
.hc-step{padding:24px 24px 12px}
.hc-step+.hc-step{border-top:1px solid var(--hc-line)}
.hc-step h2,.hc-result h2{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800;letter-spacing:-.02em}
.hc-step h2 span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ink);color:#fff;font-size:14px}
.hc-lead,.hc-hint{margin-top:8px;font-size:14px;line-height:1.7;color:var(--muted)}
.hc-hint{font-size:13px}
.hc-base{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:flex-end;margin-top:14px}
.hc-base label,.hc-row label{display:flex;flex-direction:column;gap:6px;position:relative;font-size:13px;font-weight:700;color:var(--muted)}
.hc-base input:not([type=radio]),.hc-base select,.hc-row input{min-height:44px;padding:0 12px;border:1px solid var(--hc-field);border-radius:8px;background:#fff;font-size:16px;color:var(--ink);font-weight:600}
.hc-base input:not([type=radio]){width:150px;padding-right:44px}
.hc-base input[type=radio]{width:18px;height:18px;margin:0;accent-color:var(--ink)}
.hc-base em,.hc-row em{position:absolute;right:10px;bottom:12px;font-style:normal;font-size:13px;color:var(--muted)}
.hc-base fieldset{display:flex;gap:14px;align-items:center;min-height:44px;margin:0;padding:0;border:0;font-size:15px;font-weight:600}
.hc-base legend{float:left;margin-right:10px;font-size:13px;font-weight:700;color:var(--muted)}
.hc-base fieldset label{flex-direction:row;align-items:center;gap:6px;font-size:15px;color:var(--ink)}
.hc-quick{margin-top:12px}
.hc-quick>p{font-size:13px;font-weight:700;color:var(--muted)}
.hc-quick>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hc-quick button,.hc-row-actions button,.hc-dock button,.hc-result-actions button,.hc-result-actions a{min-height:40px;padding:0 14px;border:1px solid var(--hc-field);border-radius:6px;background:#fff;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;display:inline-flex;align-items:center}
.hc-rows{display:grid;gap:10px;margin-top:14px}
.hc-row{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)) 40px;gap:10px;align-items:end;padding:14px;border:1px solid var(--hc-line);border-radius:10px;background:var(--hc-soft)}
.hc-row input{width:100%;min-width:0}
.hc-row label:not(.hc-name) input{padding-right:40px}
.hc-del{width:40px;height:44px;border:1px solid var(--hc-field);border-radius:8px;background:#fff;font-size:20px;line-height:1;color:var(--muted)}
.hc-err{grid-column:1/-1;margin:0;font-size:13px;font-weight:700;color:var(--hc-hot)}
.hc-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.hc-save-row{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding:12px 24px;border-top:1px solid var(--hc-line)}
.hc-save{display:flex;gap:6px;align-items:center;font-size:14px;font-weight:700}
.hc-save-row .tool-note{margin:0;font-size:13px}
.hc-dock{position:sticky;bottom:0;z-index:2;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 24px;border-top:1px solid var(--hc-line);background:rgba(255,255,255,.96)}
.hc-dock p{margin:0;font-size:15px}
.hc-dock strong{color:var(--hc-hot)}
.hc-result{padding:24px;border-top:6px solid var(--hc-soft)}
.hc-sum{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}
.hc-sum>div{padding:16px;border-radius:10px;background:var(--hc-soft)}
.hc-sum p{margin:0;font-size:13px;font-weight:700;color:var(--muted)}
.hc-sum strong{display:block;margin-top:4px;font-size:28px;font-weight:800;letter-spacing:-.02em}
.hc-sum>div:first-child strong{color:var(--hc-hot)}
.hc-empty{margin:14px 0;font-size:14px;color:var(--muted)}
.hc-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 0}
.hc-compare div{padding:12px 16px;border:1px solid var(--hc-line);border-radius:10px}
.hc-compare dt{font-size:13px;font-weight:700;color:var(--muted)}
.hc-compare dd{margin:4px 0 0;font-size:16px;font-weight:700}
.hc-card{margin-top:16px;padding:16px;border:1px solid var(--hc-line);border-radius:10px}
.hc-card h3{font-size:16px;font-weight:800}
.hc-parts{display:grid;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.hc-parts li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px dashed var(--hc-line);font-size:15px}
.hc-parts b{font-weight:700}
.hc-parts em{font-style:normal;font-weight:800;color:var(--hc-hot)}
.hc-insights{margin:10px 0 0;padding-left:18px;font-size:14px;line-height:1.75}
.hc-insights li+li{margin-top:6px}
.hc-result-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
@media (max-width:720px){
 .hc-step,.hc-result{padding:20px 16px 10px}
 .hc-save-row,.hc-dock{padding-left:16px;padding-right:16px}
 .hc-row{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px}
 .hc-row .hc-name{grid-column:1/3}
 .hc-row label:not(.hc-name) input{padding:0 26px 0 8px}
 .hc-row em{right:6px;font-size:12px}
 .hc-del{grid-column:3;grid-row:1;justify-self:end}
 .hc-sum strong{font-size:22px}
 .hc-compare{grid-template-columns:1fr}
}
@media print{.hc-dock,.hc-quick,.hc-row-actions,.hc-save-row,.hc-del,.hc-result-actions{display:none!important}}
