/* ==========================================================================
   AlloNajah - Équations: ax + b = c et ax + b = cx + d (Page 92 - 1AC)
   Strict Pure White Background (#ffffff) Policy
   Prefix: rec-
   ========================================================================== */

.rec-section {
  background: #ffffff !important;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.rec-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #ffffff !important;
}

.rec-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.rec-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  background: #ffffff !important;
}

.rec-title i {
  color: #0284c7;
}

.rec-rule-banner {
  background: #ffffff !important;
  border: 2px solid #0284c7;
  border-radius: 0.65rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.rec-rule-banner h3 {
  font-weight: 700;
  color: #0369a1;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.rec-rule-banner p {
  color: #334155;
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
}

.rec-steps-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #ffffff !important;
}

.rec-step-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #ffffff !important;
}

.rec-step-num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #ffffff !important;
  border: 2px solid #0284c7;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.rec-step-desc {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.4;
}

.rec-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #ffffff !important;
}

@media (min-width: 768px) {
  .rec-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.rec-example-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rec-example-box.one-side {
  border-top: 3px solid #0284c7;
}

.rec-example-box.two-sides {
  border-top: 3px solid #059669;
}

.rec-calc-chain {
  background: #ffffff !important;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.rec-defi-box {
  background: #ffffff !important;
  border: 2px dashed #0284c7;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.rec-defi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rec-defi-tag {
  background: #ffffff !important;
  color: #0369a1;
  border: 1px solid #0284c7;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.rec-ar-note {
  direction: rtl;
  text-align: right;
  font-size: 0.85rem;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  background: #ffffff !important;
}
