/*!
 * Propeller Pitch Calculator — module CSS (e2z-ppc- prefix).
 * Color scheme (spec): Primary #0E7490 (deep sea cyan), Secondary #083344,
 * Accent #B45309 (bronze), BG #ECFEFF.
 * Scope: .e2z-tool-propeller-pitch-calculator (framework wrapper).
 */

.e2z-tool-propeller-pitch-calculator,
.e2z-tool-propeller-pitch-calculator *,
.e2z-tool-propeller-pitch-calculator *::before,
.e2z-tool-propeller-pitch-calculator *::after {
	box-sizing: border-box;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #083344;
	width: 100%;
	margin: 0 auto;
	background: #ECFEFF;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(14, 116, 144, 0.16);
	overflow: hidden;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-mono,
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat-value,
.e2z-tool-propeller-pitch-calculator .e2z-ppc-formula,
.e2z-tool-propeller-pitch-calculator .e2z-ppc-const-note,
.e2z-tool-propeller-pitch-calculator .e2z-ppc-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-header {
	padding: 22px 16px;
	background: linear-gradient(135deg, #083344, #0E7490);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #B45309;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-title {
	font-size: 1.36rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-subtitle {
	font-size: 0.81rem;
	opacity: 0.86;
	margin: 0;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-inputs-panel { flex: 2; min-width: 0; }
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-results-panel { flex: 3; min-width: 350px; }
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-inputs-panel,
.e2z-tool-propeller-pitch-calculator .e2z-ppc-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #A5F3FC;
	box-shadow: 0 2px 8px rgba(14, 116, 144, 0.05);
	min-width: 0;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-section-title {
	font-size: 0.97rem;
	font-weight: 600;
	color: #0E7490;
	margin: 16px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid #CFFAFE;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-results-panel > .e2z-ppc-section-title:first-child { margin-top: 0; }

.e2z-tool-propeller-pitch-calculator .e2z-ppc-const-note {
	font-size: 0.74rem;
	color: #0E7490;
	background: #CFFAFE;
	border-left: 3px solid #B45309;
	border-radius: 6px;
	padding: 8px 10px;
	margin: 0 0 12px;
	line-height: 1.55;
	word-break: break-word;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
	background: #CFFAFE;
	padding: 4px;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-tab {
	flex: 1;
	min-width: 76px;
	min-height: 44px;
	padding: 10px 6px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #155E75;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-tab-active { background: #0E7490; color: #FDE68A; }

.e2z-tool-propeller-pitch-calculator .e2z-ppc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-field {
	flex: 1;
	min-width: 150px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-row .e2z-ppc-field { margin-bottom: 0; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-label {
	font-size: 0.84rem;
	font-weight: 600;
	color: #155E75;
	margin-bottom: 4px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-hint {
	font-size: 0.73rem;
	color: #67E8F9;
	margin: 5px 0 0;
	line-height: 1.5;
	display: block;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #A5F3FC;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #083344;
	font-family: inherit;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-input:focus {
	outline: none;
	border-color: #B45309;
	box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.24);
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #0E7490;
	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-propeller-pitch-calculator .e2z-ppc-calc-btn:hover { filter: brightness(1.2); }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.6);
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-empty-state {
	padding: 24px;
	text-align: center;
	color: #67E8F9;
	background: #ECFEFF;
	border-radius: 8px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #083344;
	border-bottom: 3px solid #B45309;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-hero-value {
	font-size: 1.95rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.15;
	color: #67E8F9;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-hero-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #67E8F9;
	opacity: 0.8;
	margin: 0;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.81rem;
	font-weight: 800;
	margin-top: 6px;
	background: #FEF3C7;
	color: #92400E;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-badge-good { background: #DCFCE7; color: #166534; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-badge-warn { background: #FEF3C7; color: #92400E; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-badge-bad { background: #FEE2E2; color: #991B1B; }

.e2z-tool-propeller-pitch-calculator .e2z-ppc-result-block {
	background: #ECFEFF;
	border: 1px solid #A5F3FC;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-result-block h3 {
	font-size: 0.97rem;
	color: #083344;
	margin: 0 0 10px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
	gap: 10px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat {
	background: #fff;
	border: 1px solid #A5F3FC;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat-label {
	font-size: 0.71rem;
	font-weight: 600;
	color: #67E8F9;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat-value {
	font-size: 1.05rem;
	font-weight: 700;
	color: #083344;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat-cyan .e2z-ppc-stat-value { color: #0E7490; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat-bronze .e2z-ppc-stat-value { color: #B45309; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-stat-red .e2z-ppc-stat-value { color: #B91C1C; }

/* Slip bar: actual vs theoretical */
.e2z-tool-propeller-pitch-calculator .e2z-ppc-slipbar {
	display: flex;
	height: 32px;
	border-radius: 8px;
	overflow: hidden;
	margin: 12px 0 6px;
	border: 1px solid #A5F3FC;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-slipbar-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-propeller-pitch-calculator .e2z-ppc-slipbar-real { background: #0E7490; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-slipbar-lost { background: #B45309; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-slipbar-legend {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 0.72rem;
	color: #155E75;
	font-weight: 600;
}

/* P/D range band */
.e2z-tool-propeller-pitch-calculator .e2z-ppc-band {
	position: relative;
	height: 34px;
	background: #CFFAFE;
	border: 1px solid #A5F3FC;
	border-radius: 8px;
	margin: 10px 0 6px;
	overflow: hidden;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-band-ok {
	position: absolute;
	top: 0;
	bottom: 0;
	background: rgba(22, 163, 74, 0.26);
	border-left: 2px solid #16A34A;
	border-right: 2px solid #16A34A;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-band-marker {
	position: absolute;
	top: -2px;
	bottom: -2px;
	width: 4px;
	background: #B45309;
	border-radius: 2px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-band-scale {
	display: flex;
	justify-content: space-between;
	font-size: 0.68rem;
	color: #155E75;
	font-weight: 600;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.78rem;
	background: #fff;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-table th {
	background: #083344;
	color: #67E8F9;
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-table td {
	padding: 7px 6px;
	text-align: right;
	border-bottom: 1px solid #ECFEFF;
	white-space: nowrap;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-table td.e2z-ppc-td-left { text-align: left; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-table tbody tr:nth-child(odd) { background: #ECFEFF; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-table tbody tr.e2z-ppc-row-active { background: #FEF3C7; font-weight: 700; }

.e2z-tool-propeller-pitch-calculator .e2z-ppc-formula {
	display: block;
	background: #083344;
	color: #67E8F9;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.8rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
	line-height: 1.55;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-note-info { background: #CFFAFE; color: #155E75; border-left: 3px solid #0E7490; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-note-warn { background: #FEF3C7; color: #92400E; border-left: 3px solid #B45309; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-note-error { background: #FEE2E2; color: #991B1B; border-left: 3px solid #DC2626; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-note-good { background: #DCFCE7; color: #166534; border-left: 3px solid #16A34A; }

.e2z-tool-propeller-pitch-calculator .e2z-ppc-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-propeller-pitch-calculator .e2z-ppc-print-btn,
.e2z-tool-propeller-pitch-calculator .e2z-ppc-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-propeller-pitch-calculator .e2z-ppc-print-btn { background: #083344; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-copy-btn { background: #0E7490; }
.e2z-tool-propeller-pitch-calculator .e2z-ppc-print-btn:hover,
.e2z-tool-propeller-pitch-calculator .e2z-ppc-copy-btn:hover { filter: brightness(1.3); }

.e2z-tool-propeller-pitch-calculator .e2z-ppc-disclaimer {
	font-size: 0.75rem;
	color: #67E8F9;
	margin: 12px 0 0;
	line-height: 1.55;
}

.e2z-tool-propeller-pitch-calculator .e2z-ppc-hidden { display: none !important; }

@media (max-width: 480px) {
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-title { font-size: 1rem; }
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-inputs-panel,
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-results-panel { padding: 14px; }
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-hero-value { font-size: 1.45rem; }
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-field { min-width: 100%; }
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-slipbar-seg { font-size: 0.58rem; }
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-tab { min-width: 68px; font-size: 0.78rem; }
}
@media (max-width: 360px) {
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-header { padding: 16px 10px; }
	.e2z-tool-propeller-pitch-calculator .e2z-ppc-title { font-size: 0.92rem; }
}
