/* ==========================================
ENGINE DISPLACEMENT CALCULATOR - NON-CRITICAL CSS
========================================== */
.mode-label:hover { background: #f8fafc; }
.mode-option input[type="radio"]:checked + .mode-label .radio-circle { box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1); }
.mode-option input[type="radio"]:checked + .mode-label { background: #f5f3ff; }
.left-panel, .right-panel {
box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
transition: box-shadow 0.3s ease;
}
.input-field { transition: all 0.2s ease; }
.input-field input:focus { outline: none; }
.input-field input.result-input { font-weight: 600; color: #5b21b6; }
.input-label.result-label { color: #5b21b6; }
.custom-select-trigger::after { content: '▼'; font-size: 0.6rem; color: #94a3b8; margin-left: 4px; }
.custom-options { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); max-width: 360px; }
.custom-option { transition: background 0.2s; overflow: hidden; text-overflow: ellipsis; }
.custom-option:hover { background: #f5f3ff; color: #5b21b6; }
.custom-option.selected { background: #ede9fe; font-weight: 600; color: #5b21b6; }

/* Formula Parameter Breakdown */
.formula-params { border-top: 1px solid #e2e8f0; padding-top: 12px; margin-top: 12px; }
.formula-params-title { font-size: 0.75rem; font-weight: 600; color: #64748b; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.formula-param-list { list-style: none; padding: 0; }
.formula-param-item { font-size: 0.8125rem; color: #475569; padding: 4px 0; display: flex; gap: 8px; }
.formula-param-symbol { font-weight: 700; color: #5b21b6; min-width: 30px; font-family: 'KaTeX_Math', serif; }
.formula-param-desc { flex: 1; }

/* Error Message Styling */
.calc-error { display: none; background-color: #fef2f2; color: #b91c1c; font-size: 0.8125rem; margin-top: 8px; padding: 10px 12px; border-radius: 8px; border: 1px solid #fee2e2; font-weight: 500; align-items: center; gap: 8px; line-height: 1.4; }
.calc-error::before { content: '⚠️'; font-size: 0.9rem; }

@media (min-width: 769px) {
.mode-selector { gap: 4px; margin-bottom: 16px; }
.mode-label { padding: 6px 10px; }
.mode-text { font-size: 0.875rem; }
}
@media (max-width: 768px) {
.ed-calc-wrapper { padding: 0 8px; }
.left-panel, .right-panel { padding: 20px; min-height: auto; }
.formula-wrapper { min-height: 220px; }
}
.related-calculators-grid a {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: white;
border: 1px solid #f1f5f9;
border-radius: 10px;
text-decoration: none;
color: #1e293b;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.related-calculators-grid a:hover {
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transform: translateY(-2px);
}