/* =====================================================================
   CONTROL AND COORDINATION (CLASS 10) — Science Notes
   Base styles (.notes-page-wrap, .notes-toc, .topic-section, .concept-card,
   .formula-box, .definition-box, .props-list) come from /css/notes-content.css.
   ===================================================================== */

.proof-box { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; padding: 16px 20px; margin: 18px 0; font-size: 14.5px; line-height: 1.7; color: #334155; }
.proof-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #2563eb; margin-bottom: 8px; }
.proof-step { margin-bottom: 8px; }
.proof-step strong { color: #0f172a; }

.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.ai-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.ai-card h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; color: #0f172a; }
.ai-card p { margin: 0 0 10px; font-size: 13.5px; color: #475569; line-height: 1.55; }
.ai-badge { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 4px; padding: 2px 7px; margin-bottom: 8px; }
.ai-badge.green { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }
.ai-badge.red { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.ai-badge.amber { color: #b45309; background: #fffbeb; border-color: #fde68a; }

.ai-table-wrap { overflow-x: auto; margin: 16px 0; }
.ai-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; color: #334155; }
.ai-table th, .ai-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; }
.ai-table th { background: #f1f5f9; color: #0f172a; font-weight: 700; }

/* Reaction lines: one equation per row, scrolls sideways on small screens */
.rx { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 6px; padding: 9px 14px; margin: 10px 0; font-size: 15px; color: #0c4a6e; overflow-x: auto; white-space: nowrap; }
.rx small { display: block; font-size: 12px; color: #64748b; margin-top: 2px; white-space: normal; }
.rx .cond { font-size: 12px; color: #b45309; font-weight: 600; }