/* Reinforcement Learning Mathematical Book Styles */

$font-family-sans-serif: "Inter", "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
$font-family-monospace: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
$headings-font-weight: 700;

.hero-box {
  padding: 1.2rem 1.4rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(16,185,129,.10));
  border: 1px solid rgba(90,90,90,.20);
  margin: 1rem 0 1.4rem 0;
}

.math-goal {
  border-left: 5px solid #2563eb;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  background: rgba(37,99,235,.06);
  border-radius: 0.4rem;
}

.algorithm-box {
  border: 1px solid rgba(120,120,120,.28);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
  background: rgba(127,127,127,.045);
}

.theorem-box {
  border-left: 5px solid #0f9f6e;
  padding: 0.9rem 1rem;
  margin: 1.2rem 0;
  background: rgba(15,159,110,.06);
  border-radius: 0.4rem;
}

.warning-box {
  border-left: 5px solid #d97706;
  padding: 0.9rem 1rem;
  margin: 1.2rem 0;
  background: rgba(217,119,6,.07);
  border-radius: 0.4rem;
}

.plotly-demo {
  min-height: 420px;
  height: 420px;
  width: 100%;
  position: relative;
  margin: 1rem 0 1.5rem 0;
}

.small-note {
  font-size: 0.92rem;
  opacity: .88;
}

.table .math, table .math {
  white-space: nowrap;
}


.plotly-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: #64748b;
  font-size: 0.95rem;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 0.75rem;
  background: rgba(148, 163, 184, 0.08);
}
