/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* AI Analyst answers: render markdown nicely and never overflow the bubble. */
.md {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0.4rem 0; }
.md ul, .md ol { margin: 0.4rem 0; padding-left: 1.25rem; }
.md ul { list-style: disc; }
.md ol { list-style: decimal; }
.md li { margin: 0.15rem 0; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0.6rem 0 0.3rem;
}
.md h1 { font-size: 1.05rem; }
.md h2 { font-size: 1rem; }
.md h3, .md h4, .md h5, .md h6 { font-size: 0.95rem; }
.md a { color: #4f46e5; text-decoration: underline; }
.md code {
  background: rgb(241 245 249);
  border-radius: 0.25rem;
  padding: 0.05rem 0.3rem;
  font-size: 0.85em;
}
.md pre {
  background: rgb(241 245 249);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  margin: 0.5rem 0;
  overflow-x: auto;
}
.md pre code { background: none; padding: 0; }
.md blockquote {
  border-left: 3px solid rgb(203 213 225);
  color: rgb(100 116 139);
  padding-left: 0.6rem;
  margin: 0.5rem 0;
}
.md table {
  display: block;
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  overflow-x: auto;
}
.md th, .md td {
  border: 1px solid rgb(226 232 240);
  padding: 0.3rem 0.5rem;
  text-align: left;
}
.md hr { border: 0; border-top: 1px solid rgb(226 232 240); margin: 0.6rem 0; }
