/**
 * EV Nexo Mart Power Solutions – Comparison widgets (home + industrial)
 */

.evnm-cmp {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #1f2937;
	background: #ffffff;
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
}

.evnm-cmp *,
.evnm-cmp *::before,
.evnm-cmp *::after {
	box-sizing: border-box;
}

.evnm-cmp [hidden] {
	display: none !important;
}

.evnm-cmp-title {
	font-size: 30px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #0d3817;
	line-height: 1.2;
}

.evnm-cmp-sub {
	font-size: 15px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0 0 32px;
	max-width: 720px;
}

.evnm-cmp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 28px;
}

.evnm-cmp-panel {
	background: #f9fafb;
	border-radius: 16px;
	padding: 24px;
	min-width: 0;
}

.evnm-cmp-h3 {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 16px;
	color: #0d3817;
}

.evnm-cmp-group {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 16px 4px;
	margin: 0 0 18px;
}

.evnm-cmp-group-title {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.evnm-cmp-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.evnm-cmp-dot.is-la { background: #9ca3af; }
.evnm-cmp-dot.is-li { background: #4caf50; }
.evnm-cmp-dot.is-diesel { background: #f59e0b; }

.evnm-cmp-field {
	margin: 0 0 16px;
}

.evnm-cmp-field-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 6px;
}

.evnm-cmp-field label {
	font-size: 14px;
	color: #374151;
	font-weight: 500;
}

.evnm-cmp-field output {
	font-size: 14px;
	font-weight: 700;
	color: #1b5e20;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.evnm-cmp-field small {
	display: block;
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
	line-height: 1.4;
}

.evnm-cmp input[type="range"] {
	width: 100%;
	accent-color: #1b5e20;
	margin: 0;
}

.evnm-cmp-results {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.evnm-cmp-diff {
	background: #ecfdf5;
	border-radius: 14px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.evnm-cmp-diff .lbl {
	font-size: 13px;
	color: #047857;
}

.evnm-cmp-diff .val {
	font-size: 30px;
	font-weight: 700;
	color: #065f46;
	font-variant-numeric: tabular-nums;
}

.evnm-cmp-diff p {
	margin: 4px 0 0;
	font-size: 14px;
	color: #065f46;
	line-height: 1.6;
}

.evnm-cmp-warn {
	background: #fef3c7;
	color: #92400e;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.5;
}

.evnm-cmp-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.evnm-cmp-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 18px;
	min-width: 0;
}

.evnm-cmp-card.is-li {
	border: 2px solid #4caf50;
	background: #f3fbf4;
}

.evnm-cmp-card h4 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.evnm-cmp-big {
	font-size: 22px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}

.evnm-cmp-meta {
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

.evnm-cmp-chart h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 12px;
	color: #374151;
}

.evnm-cmp-bar-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	margin-bottom: 12px;
}

.evnm-cmp-bar-label {
	font-size: 13px;
	color: #374151;
}

.evnm-cmp-track {
	height: 16px;
	background: #f3f4f6;
	border-radius: 999px;
	overflow: hidden;
	display: flex;
}

.evnm-cmp-seg {
	display: block;
	height: 100%;
	width: 0;
	transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.evnm-cmp-bar-row.is-la .seg-capex { background: #9ca3af; }
.evnm-cmp-bar-row.is-la .seg-energy { background: #f59e0b; }
.evnm-cmp-bar-row.is-li .seg-capex { background: #1b5e20; }
.evnm-cmp-bar-row.is-li .seg-energy { background: #4caf50; }
.evnm-cmp-bar-row.is-diesel .seg-capex { background: #9ca3af; }
.evnm-cmp-bar-row.is-diesel .seg-energy { background: #ef4444; }

.evnm-cmp-bar-value {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.evnm-cmp-legend {
	font-size: 12px;
	color: #6b7280;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.evnm-cmp-legend i {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	margin-right: 6px;
	vertical-align: -1px;
}

.evnm-cmp-legend .seg-capex-key { background: #6b7280; }
.evnm-cmp-legend .seg-energy-key { background: #4caf50; }

.evnm-cmp-reco {
	background: #f0fdf4;
	border-left: 4px solid #16a34a;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #14532d;
}

.evnm-cmp-table-wrap {
	overflow-x: auto;
}

.evnm-cmp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.evnm-cmp-table th,
.evnm-cmp-table td {
	padding: 10px 8px;
	border-bottom: 1px solid #eef0f3;
	text-align: left;
	vertical-align: top;
}

.evnm-cmp-table th {
	font-size: 12px;
	color: #6b7280;
	font-weight: 600;
}

.evnm-cmp-table td:first-child {
	color: #374151;
	width: 34%;
}

.evnm-cmp-table td.hi {
	color: #14532d;
	font-weight: 600;
}

.evnm-cmp-assump {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.6;
	background: #ffffff;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 0;
}

.evnm-cmp-cta {
	margin-top: 32px;
	background: #0d3817;
	color: #ffffff;
	border-radius: 16px;
	padding: 32px;
	text-align: center;
}

.evnm-cmp-cta h3 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
}

.evnm-cmp-cta p {
	margin: 0 0 20px;
	color: #d1fae5;
	font-size: 14px;
}

.evnm-cmp-btn {
	background: #4caf50;
	color: #052e16;
	border: none;
	border-radius: 12px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.evnm-cmp-btn:hover {
	background: #66bb6a;
	transform: translateY(-1px);
}

.evnm-cmp-btn:focus-visible,
.evnm-cmp input[type="range"]:focus-visible {
	outline: 3px solid #86efac;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.evnm-cmp-seg,
	.evnm-cmp-btn {
		transition: none;
	}
}

@media (max-width: 900px) {
	.evnm-cmp {
		padding: 24px;
	}

	.evnm-cmp-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.evnm-cmp-title {
		font-size: 24px;
	}

	.evnm-cmp-cards {
		grid-template-columns: 1fr;
	}

	.evnm-cmp-bar-row {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.evnm-cmp-bar-value {
		grid-column: 2;
	}

	.evnm-cmp-table td:first-child {
		width: auto;
	}
}
