/* Custom CSS for FFR Website - Caption focus only */

/* Enhance figure captions without breaking site structure */
.figure .caption, figcaption, .plotly-caption {
  font-style: italic;
  color: #505560;
  font-size: 0.9em;
  text-align: center;
  margin-top: 0.5em;
  margin-bottom: 1.5em;
  border-top: 1px solid #e5e5e5;
  padding-top: 0.5em;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Add proper spacing to figures */
.figure, figure {
  margin-bottom: 2em;
  padding-bottom: 0.5em;
}

/* Style plotly visualizations */
.plotly {
  margin-bottom: 0.5em !important;
}

/* Ensure main container has proper width but don't break responsiveness */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Subtle section styling */
.section h1, .section h2, .section h3 {
  color: #2c3e50;
  margin-top: 1.2em;
  margin-bottom: 0.8em;
}

/* Subtle separation between major sections */
hr {
  margin: 2em 0;
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

/* Add a little spacing for lists */
ul, ol {
  margin-bottom: 1.5em;
}

/* Enhance code blocks without breaking defaults */
pre {
  margin-top: 0.5em;
  margin-bottom: 1.5em;
}

/* Don't override any critical theme elements */