/* ==========================================================================
   AlloNajah - Équations: Transposition et Simplification (Page 90 - 1AC)
   Strict Pure White Background (#ffffff) Policy
   Prefix: ret-
   ========================================================================== */

.ret-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);
}

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

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

.ret-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;
}

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

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

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

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

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

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

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

.ret-bridge-box.term {
  border-top: 3px solid #0284c7;
}

.ret-bridge-box.factor {
  border-top: 3px solid #d97706;
}

.ret-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  width: fit-content;
}

.ret-badge.term {
  color: #0369a1;
  border-color: #38bdf8;
}

.ret-badge.factor {
  color: #b45309;
  border-color: #fbbf24;
}

.ret-calc-step {
  background: #ffffff !important;
  border: 1px dashed #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.ret-arrow-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
}

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

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

.ret-defi-tag {
  background: #ffffff !important;
  color: #047857;
  border: 1px solid #059669;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.ret-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;
}
