/* Heating cost estimator — self-contained tool styles. Works inside every template chrome. */
.he { --he-ink:#16343c; --he-muted:#4b5c61; --he-line:#d7dee0; --he-bg:#f6f8f8; --he-card:#fff; --he-accent:#1c4a5a; --he-ok:#0b6b3a; --he-warn:#7a4a00; --he-radius:16px; color:var(--he-ink); font-size:16px; line-height:1.5; }
.he *, .he *::before, .he *::after { box-sizing:border-box; }
.he-wrap { max-width:1180px; margin:0 auto; padding: clamp(16px, 3vw, 32px); min-width:0; }
.he h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); margin:0 0 8px; }
.he .he-lead { margin:0 0 8px; color:var(--he-muted); }
.he .he-note { margin:0 0 24px; font-size:0.95rem; }
.he-grid { display:grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: clamp(16px, 3vw, 32px); align-items:start; }
.he-card { background:var(--he-card); border:1px solid var(--he-line); border-radius:var(--he-radius); padding:18px 18px 20px; margin:0 0 16px; min-width:0; }
.he-card h2 { font-size:1.15rem; margin:0 0 12px; }
.he-card h3 { font-size:1rem; margin:16px 0 8px; }
.he-row { display:grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap:12px; margin:0 0 12px; }
.he label.he-field { display:flex; flex-direction:column; gap:4px; font-weight:600; font-size:0.9rem; min-width:0; }
.he label.he-field span.he-hint { font-weight:500; color:var(--he-muted); font-size:0.8rem; }
.he input[type="text"], .he input[type="number"], .he select, .he textarea {
  width:100%; min-height:44px; padding:8px 10px; border:1px solid var(--he-line); border-radius:10px; font:inherit; background:#fff; color:inherit; max-width:100%;
}
.he textarea { min-height:80px; resize:vertical; }
.he fieldset { border:0; margin:0 0 12px; padding:0; min-width:0; }
.he legend { font-weight:700; margin:0 0 8px; }
.he-check { display:flex; align-items:flex-start; gap:8px; margin:0 0 8px; font-weight:500; }
.he-check input { width:20px; height:20px; margin-top:2px; flex:none; }
.he-rooms { display:flex; flex-direction:column; gap:12px; }
.he-room { border:1px dashed var(--he-line); border-radius:12px; padding:12px; min-width:0; }
.he-room-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.he-btn, .he a.he-btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 14px; border-radius:999px; border:0; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; color:#fff; background:var(--he-accent); }
.he-btn--ghost { background:transparent; color:var(--he-accent); border:2px solid currentColor; }
.he-btn--block { width:100%; }
.he-summary { position:sticky; top:16px; }
.he-tot { font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem); font-weight:700; margin:4px 0 4px; }
.he-range { display:flex; justify-content:space-between; gap:8px; font-size:0.9rem; color:var(--he-muted); margin:0 0 12px; }
.he-lines { list-style:none; margin:0; padding:0; }
.he-lines li { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--he-line); min-width:0; }
.he-lines li span:first-child { min-width:0; }
.he-lines .he-grant { color:var(--he-ok); font-weight:700; }
.he-lines .he-strong { font-weight:700; border-bottom:0; }
.he-info { background:#f3f7f4; border:1px solid #cfe0d4; border-radius:12px; padding:14px 16px; margin:0 0 16px; }
.he-info h2, .he-info h3 { margin-top:0; }
.he-info ul { margin:8px 0; padding-left:1.2rem; }
.he-info a { color:var(--he-accent); }
.he-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.he [aria-live] { min-width:0; }
@media (max-width: 900px) {
  .he-grid { grid-template-columns: minmax(0, 1fr); }
  .he-summary { position:static; }
}
@media print {
  .he-btn, .he-room button, nav, header, footer, .psea-pebble { display:none !important; }
  .he-grid { display:block; }
  .he-card { break-inside:avoid; }
}
