/* EV charging revenue calculator (2.5) — [teslavolts_calculator]. Built on chargers.css (.tvx);
   the business-plan form and side card use caas.css and contact.css. */
.tvx-calc { --accent: #0b8457; --accent-ink: #0a7a4c; --accent-soft: #e3f7ee; --on-accent: #fff; }
.tvx .tvcl-hero { padding-bottom: 0; }
.tvx .tvcl-hero .tvx-lead { margin-bottom: 0; }

/* Tabs sit on the bottom edge of the hero, like the store tabs */
.tvx .tvcl-tabs { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 760px; margin-top: clamp(28px, 4vw, 40px); }
.tvx .tvcl-tabs [role="tab"] { position: relative; display: grid; gap: 2px; justify-items: start; margin: 0; padding: 16px 18px 18px; border: 1px solid rgba(255,255,255,.16); border-bottom: 0; border-radius: 16px 16px 0 0; background: rgba(255,255,255,.06); color: #dbe6f7; text-align: left; font: inherit; text-transform: none; letter-spacing: normal; cursor: pointer; transition: background .2s, color .2s; }
.tvx .tvcl-tabs [role="tab"]:hover { background: rgba(255,255,255,.12); }
.tvx .tvcl-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.tvx .tvcl-tabs [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tvx .tvcl-tabs strong { font: 600 clamp(15px, 1.5vw, 18px)/1.25 var(--display); color: inherit; }
.tvx .tvcl-tabs span { font-size: 13.5px; opacity: .8; }

.tvx .tvx-section.tvcl-panel { background: var(--bg); padding-top: clamp(28px, 4vw, 44px); }
.tvx .tvcl-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }

/* Inputs */
.tvx .tvcl-inputs { display: grid; gap: 14px; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tvx .tvcl-h { font: 600 20px/1.25 var(--display); color: var(--ink); }
.tvx .tvcl-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tvx .tvcl-presets span { color: var(--muted); font-size: 14px; margin-right: 2px; }
.tvx .tvcl-presets button { margin: 0; padding: 7px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: 500 14px/1.2 var(--body); text-transform: none; letter-spacing: normal; cursor: pointer; transition: background .15s, border-color .15s; }
.tvx .tvcl-presets button:hover { border-color: var(--accent); }
.tvx .tvcl-presets button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.tvx .tvcl-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 168px); align-items: center; gap: 4px 14px; }
.tvx .tvcl-in label { color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.tvx .tvcl-in select { grid-column: 2; width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); font: 500 14.5px/1.2 var(--body); }
.tvx .tvcl-in:has(select) { grid-template-columns: minmax(0, 1fr); }
.tvx .tvcl-in:has(select) select { grid-column: 1; }
.tvx .tvcl-field { display: flex; align-items: center; min-height: 44px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.tvx .tvcl-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.tvx .tvcl-field input { flex: 1 1 auto; min-width: 0; width: 100%; height: 42px; margin: 0; padding: 0 10px; border: 0; background: transparent; color: var(--ink); font: 600 15.5px/1 var(--body); font-variant-numeric: tabular-nums; text-align: right; box-shadow: none; outline: 0; -moz-appearance: textfield; }
.tvx .tvcl-field input::-webkit-outer-spin-button, .tvx .tvcl-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tvx .tvcl-pre, .tvx .tvcl-unit { flex: none; padding: 0 10px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.tvx .tvcl-pre { padding-right: 0; }
.tvx .tvcl-unit { padding-left: 0; }
.tvx .tvcl-in input[type="range"] { grid-column: 1 / -1; width: 100%; height: 22px; margin: 0; padding: 0; background: transparent; accent-color: var(--accent); cursor: pointer; border: 0; box-shadow: none; }
.tvx .tvcl-check { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14.5px; cursor: pointer; }
.tvx .tvcl-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* Results */
.tvx .tvcl-results { display: grid; gap: 16px; position: sticky; top: 24px; }
.tvx .tvcl-hero-num { display: grid; gap: 4px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r); color: #fff;
	background: radial-gradient(70% 90% at 90% 0%, rgba(18, 162, 107, .45), transparent 70%), linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); }
.tvx .tvcl-hero-num p { color: #c9d6ec; font-size: 15px; }
.tvx .tvcl-hero-num strong { font: 700 clamp(34px, 4.6vw, 54px)/1.05 var(--display); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tvx .tvcl-hero-num strong.is-neg { color: #ffb4a8; }
.tvx .tvcl-hero-num span { color: #c9d6ec; font-size: 15px; }
.tvx .tvcl-hero-num b { color: #6ee7b7; font-weight: 600; }
.tvx .tvcl-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tvx .tvcl-kpis div { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tvx .tvcl-kpis dt { color: var(--muted); font-size: 13px; line-height: 1.3; }
.tvx .tvcl-kpis dd { color: var(--ink); font: 600 clamp(16px, 1.6vw, 19px)/1.25 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tvx .tvcl-kpis dd.is-neg { color: #b42318; }
.tvx .tvcl-util { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tvx .tvcl-util > p:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.tvx .tvcl-util b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tvx .tvcl-bar { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.tvx .tvcl-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.tvx .tvcl-bar span.is-warn { background: #f59e0b; }
.tvx .tvcl-bar span.is-over { background: #d92d20; }
.tvx .tvcl-note { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.tvx .tvcl-note:empty { display: none; }
.tvx .tvcl-note.is-warn { color: #9a3412; }
.tvx .tvcl-chart { padding: 14px 16px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tvx .tvcl-chart figcaption { color: var(--ink); font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.tvx .tvcl-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tvx .tvcl-chart .c-grid { stroke: var(--line); stroke-width: 1; }
.tvx .tvcl-chart .c-zero { stroke: var(--line2); stroke-width: 1.5; }
.tvx .tvcl-chart .c-bar-p { fill: var(--accent); }
.tvx .tvcl-chart .c-bar-n { fill: #f97066; }
.tvx .tvcl-chart .c-line { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.tvx .tvcl-chart .c-dot { fill: var(--surface); stroke: var(--navy); stroke-width: 2; }
.tvx .tvcl-chart text { fill: var(--muted); font: 500 12px/1 var(--body); }
.tvx .tvcl-chart .c-val { fill: var(--ink); font-weight: 600; }
.tvx .tvcl-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tvx .tvcl-cta .tvx-btn { flex: 0 1 auto; }

/* Home tab */
.tvx .tvcl-hero-num.is-green { background: radial-gradient(70% 90% at 90% 0%, rgba(18, 162, 107, .55), transparent 70%), linear-gradient(160deg, #0b3b2e 0%, #072a20 100%); }
.tvx .tvcl-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tvx .tvcl-vs > div { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tvx .tvcl-vs p { color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.tvx .tvcl-vs strong { font: 600 clamp(18px, 2vw, 24px)/1.2 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tvx .tvcl-bar.is-petrol span { background: #f97066; }

/* Plan form */
.tvx-calc > .tvx-faq { background: var(--bg); }
.tvx .tvcl-plan { background: var(--surface); }
.tvx .tvcl-plan .tvx-sub { margin: 10px 0 22px; }
.tvx .tvcl-plan-form { display: grid; gap: 14px; }
.tvx .tvcl-carry { color: var(--muted); font-size: 13.5px; }
.tvx .tvcl-list { display: grid; gap: 10px; }
.tvx .tvcl-list li { position: relative; padding-left: 26px; color: var(--ink); font-size: 14.5px; }
.tvx .tvcl-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

@media (max-width: 1000px) {
	.tvx .tvcl-grid { grid-template-columns: minmax(0, 1fr); }
	.tvx .tvcl-results { position: static; }
}
@media (max-width: 600px) {
	.tvx .tvcl-tabs { gap: 6px; }
	.tvx .tvcl-tabs [role="tab"] { padding: 12px 12px 14px; border-radius: 12px 12px 0 0; }
	.tvx .tvcl-tabs span { display: none; }
	.tvx .tvcl-tabs strong { font-size: 14px; }
	.tvx .tvcl-in { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.tvx .tvcl-in select { grid-column: 1; }
	.tvx .tvcl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tvx .tvcl-cta .tvx-btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
	.tvx .tvcl-vs { grid-template-columns: minmax(0, 1fr); }
}
/* Reduced motion (only when that setting is on) */
	html.tvx-still .tvx .tvcl-bar span { transition: none; }

