.hw-tool-page{padding-bottom:55px}.hw-calc{border:1px solid var(--line);border-radius:20px;padding:clamp(16px,3vw,30px);background:var(--surface-raised);margin:20px 0 28px}.hw-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hw-field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:650}.hw-field input,.hw-field select{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit}.hw-field small{font-weight:400;color:var(--muted)}.hw-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.hw-result{padding:17px;border-radius:14px;background:var(--soft);min-width:0}.hw-result small{display:block;color:var(--muted);font-size:13px}.hw-result strong{font-size:clamp(19px,2.5vw,28px);overflow-wrap:anywhere}.hw-result:first-child{background:var(--accent-light)}.hw-tool-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hw-tool-actions button{padding:12px 16px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;cursor:pointer;font:inherit;font-weight:650}.hw-tool-actions button:first-child{background:var(--accent);color:#fff;border-color:transparent}.hw-note{font-size:13px;color:var(--muted);line-height:1.55;margin-top:16px}.hw-saved{margin-top:22px}.hw-saved-list{display:grid;gap:8px}.hw-saved-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:12px}.hw-saved-row button{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:6px 9px;cursor:pointer}.hw-saved-row span{font-size:13px;color:var(--muted)}.hw-explain{max-width:840px}.hw-explain h2{margin-top:25px}.hw-status{font-size:13px;color:var(--muted);margin-top:8px}@media(max-width:600px){.hw-fields,.hw-results{grid-template-columns:1fr}.hw-saved-row{flex-wrap:wrap}}

/* Optional EV versus gasoline comparison */
.hw-ev-comparison{margin-top:22px;border:1px solid var(--line);border-radius:16px;padding:0 18px 18px;background:var(--surface)}
.hw-ev-comparison>summary{cursor:pointer;padding:19px 0;font-size:16px;font-weight:750;color:var(--ink);list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px}
.hw-ev-comparison>summary::-webkit-details-marker{display:none}
.hw-ev-comparison>summary::after{content:'+';font-size:23px;line-height:1;color:var(--muted)}
.hw-ev-comparison[open]>summary::after{content:'−'}
.hw-compare-intro{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 15px}
.hw-compare-results{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:17px}
.hw-compare-results .hw-result:first-child{background:var(--soft)}
@media(max-width:700px){.hw-compare-results{grid-template-columns:1fr}}

/* Clearer EV sections and accessible controls */
.hw-field[hidden]{display:none!important}
.hw-field input:focus-visible,.hw-field select:focus-visible,.hw-tool-actions button:focus-visible,.hw-ev-comparison>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.hw-calc noscript{display:block;padding:12px;border:1px solid var(--line);border-radius:10px}
.hw-explain{line-height:1.75}.hw-explain p{margin-bottom:1.1em}.hw-explain h2{margin-top:2em}.hw-explain h3{margin-top:1.4em}

/* SEO explanatory tables — electricity cost calculator */
.hw-seo-section { margin-block: 1.75rem; }
.hw-seo-table-wrap { max-width: 100%; overflow-x: auto; margin: 1rem 0 1.25rem; }
.hw-seo-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.hw-seo-table caption { text-align: left; font-size: .85rem; opacity: .75; margin-bottom: .55rem; }
.hw-seo-table th, .hw-seo-table td { padding: .7rem .8rem; border-bottom: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 15%, transparent); }
.hw-seo-table th { font-weight: 650; }
.hw-seo-table td:last-child, .hw-seo-table th:last-child { text-align: right; white-space: nowrap; }

/* New EV tools, consistent with existing HowWatt calculator tokens */
.hw-ev-new .hw-results{grid-template-columns:repeat(2,minmax(0,1fr))}
.hw-ev-new .hw-field input:invalid{box-shadow:none}
.hw-ev-new .hw-field select{appearance:auto}
.hw-ev-home-links{margin:12px 0;font-size:14px;color:var(--muted)}
.hw-ev-home-links a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media(max-width:600px){.hw-ev-new .hw-results{grid-template-columns:1fr}}
