/* Calculator pages: shell, forms, results, supporting copy, responsive rules. */
body.elv-calculator-page { background: #f7f6f1; }
#main-content.elv-calculator-page > .hero-inner {
    background: #0c242e; border: 0; padding: 44px 0 46px; min-height: 0;
}
#main-content.elv-calculator-page > .hero-inner::before { display: none; }
#main-content.elv-calculator-page .hero-inner .section-header {
    margin: 0; max-width: 940px; text-align: left;
}
#main-content.elv-calculator-page .hero-inner h1 {
    color: #fff; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.13;
    letter-spacing: -.04em; margin: 18px 0 0;
}
#main-content.elv-calculator-page .hero-inner .kicker {
    background: #ffffff0c; color: #f7c600; border-color: #ffffff24; font-size: .72rem; padding: 8px 12px;
}
#main-content.elv-calculator-page > .section { padding: 32px 0 64px; background: #f7f6f1; }
#main-content.elv-calculator-page > .section > .container { max-width: 1220px; }

/* Shared components */
.elv-power-tool, .elv-solar-tool {
    --navy: #0c242e; --accent: #f7c600; --ink: #11262e; --muted: #53666e; --border: #d9dfdc;
    color: var(--ink); font-family: inherit; margin: 0; padding: 0;
}
.elv-power-tool *, .elv-solar-tool * { box-sizing: border-box; }
.elv-tool-hero, .elv-solar-hero {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
    padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
#main-content .elv-tool-title, #main-content .elv-solar-hero h2 {
    color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2;
    letter-spacing: -.025em; margin: 12px 0;
}
#main-content .elv-tool-hero p, #main-content .elv-solar-hero p {
    color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 820px; margin: 0;
}
.elv-tool-kicker, .elv-solar-hero > div > span {
    color: #746000; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
}
.elv-tool-badge, .elv-solar-hero aside {
    display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 136px;
    padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #fff; text-align: center;
}
.elv-tool-badge strong { font-size: 1.05rem; }
.elv-tool-badge span, .elv-solar-hero aside small { color: var(--muted); font-size: .8rem; }
.elv-solar-hero aside strong { color: #b38c00; font-size: 1.5rem; }

/* Forms */
.elv-calculator, .elv-solar-calculator {
    display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 24px; margin-top: 24px; align-items: start;
}
.elv-calc-form, .elv-solar-form {
    min-width: 0; margin: 0; padding: 28px; background: #fff; border: 1px solid var(--border);
    border-radius: 18px; box-shadow: 0 8px 24px #10282e05;
}
#main-content .elv-calc-form h2, #main-content .elv-solar-form h2 {
    margin: 0 0 10px; color: var(--ink); font-size: 1.4rem; line-height: 1.25;
}
#main-content .elv-helper, #main-content .elv-solar-help {
    margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65;
}
.elv-field-grid, .elv-solar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.elv-field, .elv-solar-grid label {
    display: flex; flex-direction: column; gap: 7px; min-width: 0;
    color: var(--ink); font-weight: 750; font-size: .9rem; line-height: 1.45;
}
.elv-field input, .elv-field select, .elv-solar-grid input, .elv-solar-grid select {
    width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #bdcac7;
    border-radius: 9px; background: #fcfdfb; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.4;
}
.elv-field small, .elv-battery-choice small { color: var(--muted); font-size: .78rem; line-height: 1.6; font-weight: 400; }
.elv-appliances, .elv-battery-choice, .elv-savings-fields { border: 0; padding: 0; margin: 26px 0; min-width: 0; }
.elv-appliances legend, .elv-battery-choice legend, .elv-savings-fields legend { font-weight: 800; color: var(--ink); font-size: 1rem; margin-bottom: 12px; }
.elv-appliance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.elv-appliance-grid label {
    display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 9px; padding: 12px;
    border: 1px solid var(--border); border-radius: 10px; background: #fcfdfb; font-size: .82rem; cursor: pointer;
}
.elv-appliance-grid small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.elv-appliance-grid input, .elv-battery-choice input { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.elv-battery-choice label { display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 14px; background: #fcfdfb; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; cursor: pointer; }
.elv-battery-choice span { display: flex; flex-direction: column; }
.elv-appliance-grid label:has(input:checked), .elv-battery-choice label:has(input:checked) { background: #fffae2; border-color: #c8a200; }
.elv-ev-field { margin: 22px 0; }
#elv-calculate-power, #elv-calculate-solar {
    width: 100%; min-height: 52px; padding: 16px; border: 0; border-radius: 9px;
    background: var(--accent); color: #10262d; font-size: .98rem; font-weight: 850; line-height: 1.4; cursor: pointer;
}
#elv-calculate-power:hover, #elv-calculate-solar:hover { background: #e9b900; }
.elv-power-tool :focus-visible, .elv-solar-tool :focus-visible { outline: 3px solid #b38c00; outline-offset: 3px; }
#main-content .elv-privacy, #main-content .elv-solar-privacy { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .72rem; line-height: 1.6; }

/* Results: explicit colours avoid inheriting article styles. */
.elv-result, .elv-solar-result {
    min-width: 0; min-height: 320px; padding: 28px; display: flex; align-items: center; align-self: start;
    background: var(--navy); color: #fff; border-radius: 18px;
}
.elv-result-empty, .elv-solar-empty { width: 100%; text-align: center; }
.elv-result-empty > span, .elv-solar-empty > span { font-size: 2.4rem; color: var(--accent); }
#main-content .elv-result h2, #main-content .elv-solar-result h2 { color: #fff; font-size: 1.5rem; line-height: 1.25; margin: 14px 0; }
#main-content .elv-result p, #main-content .elv-solar-result p { color: #d4e1e4; font-size: .95rem; line-height: 1.7; margin: 12px 0; }
.elv-result-card, .elv-solar-result-card { width: 100%; }
.elv-result-label { color: #cfdee1; font-size: .82rem; text-transform: uppercase; }
.elv-result-number, .elv-solar-result-card > strong { display: block; color: var(--accent); font-size: 3rem; font-weight: 900; line-height: 1.2; margin: 8px 0; }
.elv-result-number small, .elv-solar-result-card > strong small { font-size: 1rem; }
.elv-periods, .elv-solar-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.elv-periods div, .elv-solar-main div { min-width: 0; background: #ffffff10; border: 1px solid #ffffff14; border-radius: 12px; padding: 14px; }
.elv-periods span, .elv-solar-main span { color: #cfdee1; font-size: .78rem; line-height: 1.5; }
.elv-periods strong { display: block; color: #fff; font-size: 1.35rem; }
.elv-solar-main strong { display: block; color: var(--accent); font-size: 1.5rem; margin-top: 5px; }
.elv-assessment, .elv-solar-note { border-left: 4px solid var(--accent); padding: 9px 0 9px 13px; }
.elv-result a, .elv-solar-result a { display: block; background: var(--accent); color: #10262d; border-radius: 9px; font-size: .9rem; line-height: 1.5; text-align: center; font-weight: 800; text-decoration: none; padding: 13px; margin-top: 18px; }

/* Supporting copy */
.elv-tool-content, .elv-solar-content { max-width: 980px; margin: 48px auto 0; padding-top: 8px; }
#main-content .elv-tool-content h2, #main-content .elv-solar-content h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.25; color: var(--ink); margin: 32px 0 16px; }
#main-content .elv-tool-content p, #main-content .elv-solar-content p { font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 12px 0; }
.elv-info-grid, .elv-solar-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.elv-info-grid article, .elv-solar-facts article { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.elv-info-grid h3, .elv-solar-facts strong { color: var(--ink); font-size: 1.1rem; }
.elv-faq details, .elv-solar-faq details { padding: 18px 0; border-bottom: 1px solid var(--border); }
.elv-faq summary, .elv-solar-faq summary { color: var(--ink); font-size: 1rem; font-weight: 800; line-height: 1.6; cursor: pointer; }

@media (max-width: 900px) {
    .elv-calculator, .elv-solar-calculator { grid-template-columns: 1fr; }
    .elv-result, .elv-solar-result { min-height: 240px; }
}
@media (max-width: 600px) {
    #main-content.elv-calculator-page > .hero-inner { padding: 30px 0; }
    #main-content.elv-calculator-page > .section { padding-top: 24px; }
    .elv-tool-hero, .elv-solar-hero { grid-template-columns: 1fr; }
    .elv-tool-badge, .elv-solar-hero aside { display: none; }
    .elv-calc-form, .elv-solar-form, .elv-result, .elv-solar-result { padding: 22px 18px; border-radius: 14px; }
    .elv-field-grid, .elv-solar-grid, .elv-appliance-grid, .elv-info-grid, .elv-solar-facts { grid-template-columns: 1fr; }
    .elv-tool-content, .elv-solar-content { margin-top: 32px; }
    .elv-appliance-grid label { font-size: .9rem; }
}
