/*!
 * Solar / Wind Hybrid System Sizing Tool — module CSS (e2z-swh- prefix).
 * Color scheme (spec): Primary #CA8A04 (sun gold), Secondary #1E3A8A (wind blue),
 * Accent #22C55E, BG #FFFBEB.
 * Scope: .e2z-tool-solar-wind-hybrid-system-sizing-tool (framework wrapper).
 */

.e2z-tool-solar-wind-hybrid-system-sizing-tool,
.e2z-tool-solar-wind-hybrid-system-sizing-tool *,
.e2z-tool-solar-wind-hybrid-system-sizing-tool *::before,
.e2z-tool-solar-wind-hybrid-system-sizing-tool *::after {
	box-sizing: border-box;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #422006;
	width: 100%;
	margin: 0 auto;
	background: #FFFBEB;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(202, 138, 4, 0.16);
	overflow: hidden;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-mono,
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat-value,
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-formula,
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-header {
	padding: 22px 16px;
	background: linear-gradient(135deg, #CA8A04 0%, #1E3A8A 100%);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #22C55E;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-title {
	font-size: 1.36rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-subtitle {
	font-size: 0.81rem;
	opacity: 0.9;
	margin: 0;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-inputs-panel { flex: 2; min-width: 0; }
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-results-panel { flex: 3; min-width: 350px; }
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-inputs-panel,
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #FDE68A;
	box-shadow: 0 2px 8px rgba(202, 138, 4, 0.05);
	min-width: 0;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-section-title {
	font-size: 0.97rem;
	font-weight: 600;
	color: #CA8A04;
	margin: 16px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #FEF3C7;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-inputs-panel > .e2z-swh-section-title:first-child,
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-results-panel > .e2z-swh-section-title:first-child { margin-top: 0; }

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-field {
	flex: 1;
	min-width: 150px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-row .e2z-swh-field { margin-bottom: 0; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-label {
	font-size: 0.84rem;
	font-weight: 600;
	color: #A16207;
	margin-bottom: 4px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-hint {
	font-size: 0.73rem;
	color: #A8A29E;
	margin: 5px 0 0;
	line-height: 1.5;
	display: block;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #FDE68A;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #422006;
	font-family: inherit;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-input:focus {
	outline: none;
	border-color: #CA8A04;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}

/* Solar : Wind split control */
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-split-wrap {
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-radius: 8px;
	padding: 12px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-range {
	width: 100%;
	min-height: 44px;
	accent-color: #CA8A04;
	cursor: pointer;
	background: transparent;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-split-readout {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.85rem;
	font-weight: 800;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-split-solar { color: #CA8A04; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-split-wind { color: #1E3A8A; }

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #CA8A04;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: filter 0.15s ease;
	margin-top: 6px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-calc-btn:hover { filter: brightness(1.12); }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.6);
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-empty-state {
	padding: 24px;
	text-align: center;
	color: #A8A29E;
	background: #FFFBEB;
	border-radius: 8px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: linear-gradient(135deg, #1E3A8A 0%, #422006 100%);
	border-bottom: 3px solid #22C55E;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-hero-value {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.2;
	color: #FDE047;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-hero-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #FDE68A;
	opacity: 0.85;
	margin: 0;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.81rem;
	font-weight: 800;
	margin-top: 6px;
	background: #DCFCE7;
	color: #166534;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-result-block {
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-result-block-wind {
	background: #EFF6FF;
	border-color: #BFDBFE;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-result-block h3 {
	font-size: 0.97rem;
	color: #422006;
	margin: 0 0 10px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-result-block-wind h3 { color: #1E3A8A; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
	gap: 10px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat {
	background: #fff;
	border: 1px solid #FDE68A;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-result-block-wind .e2z-swh-stat { border-color: #BFDBFE; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat-label {
	font-size: 0.71rem;
	font-weight: 600;
	color: #A8A29E;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat-value {
	font-size: 1.05rem;
	font-weight: 700;
	color: #422006;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat-gold .e2z-swh-stat-value { color: #CA8A04; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat-blue .e2z-swh-stat-value { color: #1E3A8A; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-stat-green .e2z-swh-stat-value { color: #16A34A; }

/* Solar / wind contribution bar */
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-mix {
	display: flex;
	height: 32px;
	border-radius: 8px;
	overflow: hidden;
	margin: 12px 0 6px;
	border: 1px solid #FDE68A;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-mix-seg {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.66rem;
	font-weight: 700;
	color: #fff;
	font-family: 'Inter', system-ui, sans-serif;
	white-space: nowrap;
	overflow: hidden;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-mix-solar { background: #CA8A04; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-mix-wind { background: #1E3A8A; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-mix-legend {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 0.72rem;
	color: #A16207;
	font-weight: 600;
}

/* Betz gauge */
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-betz {
	position: relative;
	height: 30px;
	background: #DBEAFE;
	border: 1px solid #BFDBFE;
	border-radius: 8px;
	margin: 10px 0 6px;
	overflow: hidden;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-betz-ok {
	position: absolute;
	top: 0;
	bottom: 0;
	background: rgba(34, 197, 94, 0.3);
	border-left: 2px solid #16A34A;
	border-right: 2px solid #16A34A;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-betz-marker {
	position: absolute;
	top: -2px;
	bottom: -2px;
	width: 4px;
	background: #CA8A04;
	border-radius: 2px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-betz-scale {
	display: flex;
	justify-content: space-between;
	font-size: 0.68rem;
	color: #1E3A8A;
	font-weight: 600;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.78rem;
	background: #fff;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table th {
	background: #422006;
	color: #FDE047;
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table td {
	padding: 7px 6px;
	text-align: right;
	border-bottom: 1px solid #FFFBEB;
	white-space: nowrap;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table td.e2z-swh-td-left { text-align: left; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table tbody tr:nth-child(odd) { background: #FFFBEB; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-table tfoot td {
	font-weight: 800;
	background: #FEF3C7;
	border-top: 2px solid #CA8A04;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-formula {
	display: block;
	background: #422006;
	color: #FDE047;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.8rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
	line-height: 1.55;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-note-info { background: #FEF3C7; color: #854D0E; border-left: 3px solid #CA8A04; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-note-wind { background: #DBEAFE; color: #1E3A8A; border-left: 3px solid #1E3A8A; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-note-good { background: #DCFCE7; color: #166534; border-left: 3px solid #22C55E; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-note-warn { background: #FFEDD5; color: #9A3412; border-left: 3px solid #EA580C; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-note-error { background: #FEE2E2; color: #991B1B; border-left: 3px solid #DC2626; }

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-print-btn,
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-copy-btn {
	flex: 1;
	min-height: 44px;
	padding: 11px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-print-btn { background: #1E3A8A; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-copy-btn { background: #CA8A04; }
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-print-btn:hover,
.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-copy-btn:hover { filter: brightness(1.2); }

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-disclaimer {
	font-size: 0.75rem;
	color: #A8A29E;
	margin: 12px 0 0;
	line-height: 1.55;
}

.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-hidden { display: none !important; }

@media (max-width: 480px) {
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-title { font-size: 1rem; }
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-inputs-panel,
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-results-panel { padding: 14px; }
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-hero-value { font-size: 1.35rem; }
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-field { min-width: 100%; }
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-mix-seg { font-size: 0.58rem; }
}
@media (max-width: 360px) {
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-header { padding: 16px 10px; }
	.e2z-tool-solar-wind-hybrid-system-sizing-tool .e2z-swh-title { font-size: 0.92rem; }
}
