/* ==========================================================================
   AlloNajah - Équations avec parenthèses et fractions (Page 98 - 1AC)
   Strict Pure White Background (#ffffff) Policy
   Prefix: rep-
   ========================================================================== */

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

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

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

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

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

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

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

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

.rep-action-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffff !important;
}

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

.rep-step-pill {
  background: #ffffff !important;
  border: 1.5px solid #0284c7;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

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

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

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

.rep-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.9rem;
  line-height: 1.75;
}

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