/*!
 * Crop Yield Estimator — module CSS (e2z-cye- prefix).
 * Color scheme (spec): Primary #A16207 (harvest gold), Secondary #422006,
 * Accent #65A30D (crop green), BG #FEFCE8.
 * Scope: .e2z-tool-crop-yield-estimator (framework shortcode wrapper).
 */

.e2z-tool-crop-yield-estimator,
.e2z-tool-crop-yield-estimator *,
.e2z-tool-crop-yield-estimator *::before,
.e2z-tool-crop-yield-estimator *::after {
	box-sizing: border-box;
}

.e2z-tool-crop-yield-estimator .e2z-cye-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #422006;
	width: 100%;
	margin: 0 auto;
	background: #FEFCE8;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(161, 98, 7, 0.16);
	overflow: hidden;
}

.e2z-tool-crop-yield-estimator .e2z-cye-mono,
.e2z-tool-crop-yield-estimator .e2z-cye-stat-value,
.e2z-tool-crop-yield-estimator .e2z-cye-formula,
.e2z-tool-crop-yield-estimator .e2z-cye-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

.e2z-tool-crop-yield-estimator .e2z-cye-header {
	padding: 22px 16px;
	background: linear-gradient(135deg, #422006, #A16207);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #65A30D;
}
.e2z-tool-crop-yield-estimator .e2z-cye-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-crop-yield-estimator .e2z-cye-subtitle {
	font-size: 0.81rem;
	opacity: 0.86;
	margin: 0;
}

.e2z-tool-crop-yield-estimator .e2z-cye-body { padding: 16px; }

.e2z-tool-crop-yield-estimator .e2z-cye-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
	background: #FEF9C3;
	padding: 4px;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-crop-yield-estimator .e2z-cye-tab {
	flex: 1;
	min-width: 130px;
	min-height: 44px;
	padding: 10px 6px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #854D0E;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
}
.e2z-tool-crop-yield-estimator .e2z-cye-tab-active { background: #A16207; color: #fff; }

.e2z-tool-crop-yield-estimator .e2z-cye-section-title {
	font-size: 0.97rem;
	font-weight: 600;
	color: #A16207;
	margin: 16px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #ECFCCB;
}
.e2z-tool-crop-yield-estimator .e2z-cye-pane > .e2z-cye-section-title:first-child { margin-top: 0; }

.e2z-tool-crop-yield-estimator .e2z-cye-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-field {
	flex: 1;
	min-width: 150px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-row .e2z-cye-field { margin-bottom: 0; }
.e2z-tool-crop-yield-estimator .e2z-cye-label {
	font-size: 0.84rem;
	font-weight: 600;
	color: #854D0E;
	margin-bottom: 4px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-hint {
	font-size: 0.73rem;
	color: #CA9A3F;
	margin: 5px 0 0;
	line-height: 1.5;
	display: block;
}
.e2z-tool-crop-yield-estimator .e2z-cye-pane > .e2z-cye-hint { margin-top: 0; margin-bottom: 10px; }
.e2z-tool-crop-yield-estimator .e2z-cye-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #FEF08A;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #422006;
	font-family: inherit;
}
.e2z-tool-crop-yield-estimator .e2z-cye-input:focus {
	outline: none;
	border-color: #65A30D;
	box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.2);
}

/* Adjustment factor rows */
.e2z-tool-crop-yield-estimator .e2z-cye-factor-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	margin-bottom: 8px;
	padding: 8px 10px;
	background: #FEFCE8;
	border: 1px solid #FEF08A;
	border-left: 3px solid #65A30D;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-crop-yield-estimator .e2z-cye-factor-row .e2z-cye-field { min-width: 120px; margin-bottom: 0; }
.e2z-tool-crop-yield-estimator .e2z-cye-factor-name {
	flex: 1.4;
	min-width: 130px;
	font-size: 0.84rem;
	font-weight: 700;
	color: #422006;
	align-self: center;
}

/* Plot rows */
.e2z-tool-crop-yield-estimator .e2z-cye-plot-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 8px;
	padding: 8px;
	background: #FEFCE8;
	border: 1px solid #FEF08A;
	border-left: 3px solid #A16207;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-crop-yield-estimator .e2z-cye-plot-row .e2z-cye-field { min-width: 96px; margin-bottom: 0; }
.e2z-tool-crop-yield-estimator .e2z-cye-plot-name-field { flex: 1.4; min-width: 108px; }
.e2z-tool-crop-yield-estimator .e2z-cye-plot-del {
	min-height: 44px;
	min-width: 44px;
	border: 1px solid #FCA5A5;
	border-radius: 6px;
	background: #FEF2F2;
	color: #DC2626;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}
.e2z-tool-crop-yield-estimator .e2z-cye-plot-del:hover { background: #DC2626; color: #fff; }

.e2z-tool-crop-yield-estimator .e2z-cye-add-plot-btn {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px dashed #65A30D;
	border-radius: 8px;
	background: #fff;
	color: #4D7C0F;
	font-family: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-add-plot-btn:hover { background: #F7FEE7; }

.e2z-tool-crop-yield-estimator .e2z-cye-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #A16207;
	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-bottom: 14px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-calc-btn:hover { filter: brightness(1.18); }
.e2z-tool-crop-yield-estimator .e2z-cye-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.55);
}

.e2z-tool-crop-yield-estimator .e2z-cye-empty-state {
	padding: 24px;
	text-align: center;
	color: #CA9A3F;
	background: #FEFCE8;
	border-radius: 8px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #422006;
	border-bottom: 3px solid #65A30D;
}
.e2z-tool-crop-yield-estimator .e2z-cye-hero-value {
	font-size: 1.95rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.15;
	color: #BEF264;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-crop-yield-estimator .e2z-cye-hero-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #FDE68A;
	margin: 0;
}
.e2z-tool-crop-yield-estimator .e2z-cye-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.81rem;
	font-weight: 800;
	margin-top: 6px;
	background: #ECFCCB;
	color: #4D7C0F;
}

.e2z-tool-crop-yield-estimator .e2z-cye-result-block {
	background: #FEFCE8;
	border: 1px solid #FEF08A;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-result-block h3 {
	font-size: 0.97rem;
	color: #422006;
	margin: 0 0 10px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
	gap: 10px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-stat {
	background: #fff;
	border: 1px solid #FEF08A;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-crop-yield-estimator .e2z-cye-stat-label {
	font-size: 0.71rem;
	font-weight: 600;
	color: #CA9A3F;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-crop-yield-estimator .e2z-cye-stat-value {
	font-size: 1.05rem;
	font-weight: 700;
	color: #422006;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-crop-yield-estimator .e2z-cye-stat-gold .e2z-cye-stat-value { color: #A16207; }
.e2z-tool-crop-yield-estimator .e2z-cye-stat-green .e2z-cye-stat-value { color: #4D7C0F; }

/* Reference band bar */
.e2z-tool-crop-yield-estimator .e2z-cye-band {
	position: relative;
	height: 34px;
	display: flex;
	border-radius: 8px;
	overflow: hidden;
	margin: 12px 0 6px;
	border: 1px solid #FEF08A;
}
.e2z-tool-crop-yield-estimator .e2z-cye-band-seg {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.66rem;
	font-weight: 700;
	color: #fff;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-crop-yield-estimator .e2z-cye-band-low { background: #D97706; }
.e2z-tool-crop-yield-estimator .e2z-cye-band-avg { background: #A16207; }
.e2z-tool-crop-yield-estimator .e2z-cye-band-high { background: #65A30D; }
.e2z-tool-crop-yield-estimator .e2z-cye-band-marker {
	position: absolute;
	top: 0;
	width: 4px;
	height: 100%;
	background: #422006;
	border-left: 1px solid #fff;
	border-right: 1px solid #fff;
}
.e2z-tool-crop-yield-estimator .e2z-cye-band-scale {
	display: flex;
	justify-content: space-between;
	font-size: 0.72rem;
	color: #854D0E;
	font-family: 'SF Mono', monospace;
	font-weight: 600;
}

.e2z-tool-crop-yield-estimator .e2z-cye-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-crop-yield-estimator .e2z-cye-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.78rem;
	background: #fff;
}
.e2z-tool-crop-yield-estimator .e2z-cye-table th {
	background: #422006;
	color: #BEF264;
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-crop-yield-estimator .e2z-cye-table td {
	padding: 7px 6px;
	text-align: right;
	border-bottom: 1px solid #FEFCE8;
	white-space: nowrap;
}
.e2z-tool-crop-yield-estimator .e2z-cye-table td.e2z-cye-td-left { text-align: left; }
.e2z-tool-crop-yield-estimator .e2z-cye-table tbody tr:nth-child(odd) { background: #FEFCE8; }
.e2z-tool-crop-yield-estimator .e2z-cye-table td.e2z-cye-td-up { color: #4D7C0F; font-weight: 700; }
.e2z-tool-crop-yield-estimator .e2z-cye-table td.e2z-cye-td-down { color: #B91C1C; font-weight: 700; }
.e2z-tool-crop-yield-estimator .e2z-cye-table tfoot td {
	font-weight: 800;
	background: #ECFCCB;
	color: #4D7C0F;
	border-top: 2px solid #65A30D;
}

.e2z-tool-crop-yield-estimator .e2z-cye-formula {
	display: block;
	background: #422006;
	color: #BEF264;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.8rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-crop-yield-estimator .e2z-cye-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-note-info { background: #ECFCCB; color: #3F6212; border-left: 3px solid #65A30D; }
.e2z-tool-crop-yield-estimator .e2z-cye-note-warn { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.e2z-tool-crop-yield-estimator .e2z-cye-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

.e2z-tool-crop-yield-estimator .e2z-cye-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-crop-yield-estimator .e2z-cye-print-btn,
.e2z-tool-crop-yield-estimator .e2z-cye-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-crop-yield-estimator .e2z-cye-print-btn { background: #422006; }
.e2z-tool-crop-yield-estimator .e2z-cye-copy-btn { background: #A16207; }
.e2z-tool-crop-yield-estimator .e2z-cye-print-btn:hover,
.e2z-tool-crop-yield-estimator .e2z-cye-copy-btn:hover { filter: brightness(1.3); }

.e2z-tool-crop-yield-estimator .e2z-cye-disclaimer {
	font-size: 0.75rem;
	color: #CA9A3F;
	margin: 12px 0 0;
	line-height: 1.5;
}

.e2z-tool-crop-yield-estimator .e2z-cye-hidden { display: none !important; }

@media (max-width: 480px) {
	.e2z-tool-crop-yield-estimator .e2z-cye-title { font-size: 1.05rem; }
	.e2z-tool-crop-yield-estimator .e2z-cye-body { padding: 12px; }
	.e2z-tool-crop-yield-estimator .e2z-cye-hero-value { font-size: 1.45rem; }
	.e2z-tool-crop-yield-estimator .e2z-cye-field { min-width: 100%; }
	.e2z-tool-crop-yield-estimator .e2z-cye-plot-name-field { flex-basis: 100%; }
	.e2z-tool-crop-yield-estimator .e2z-cye-band-seg { font-size: 0.58rem; }
}
@media (max-width: 360px) {
	.e2z-tool-crop-yield-estimator .e2z-cye-header { padding: 16px 10px; }
	.e2z-tool-crop-yield-estimator .e2z-cye-title { font-size: 0.95rem; }
}
