/*
 * 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.
 */

/* Rendered rich text: link styles */
.leading-relaxed a[href],
.prose a[href] {
  color: #6b7280 !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-decoration-color: #9ca3af !important;
  text-underline-offset: 2px !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}

.leading-relaxed a[href]:hover,
.prose a[href]:hover {
  color: var(--color-primary) !important;
  text-decoration-color: var(--color-primary) !important;
}

/* Rendered rich text: list styles */
.leading-relaxed ul,
.prose ul {
  list-style-type: disc !important;
  padding-left: 1.5rem !important;
  margin: 0.25rem 0 !important;
}

.leading-relaxed ol,
.prose ol {
  list-style-type: decimal !important;
  padding-left: 1.5rem !important;
  margin: 0.25rem 0 !important;
}

.leading-relaxed li,
.prose li {
  margin-bottom: 0.125rem !important;
}

/* AI Chat: markdown content styles */
.ai-chat-content p {
  margin-bottom: 0.5rem;
}

.ai-chat-content p:last-child {
  margin-bottom: 0;
}

.ai-chat-content ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}

.ai-chat-content ol {
  list-style-type: decimal;
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}

.ai-chat-content li {
  margin-bottom: 0.125rem;
}

.ai-chat-content strong {
  font-weight: 600;
}

.ai-chat-content h1,
.ai-chat-content h2,
.ai-chat-content h3 {
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.ai-chat-content code {
  background: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.8em;
}

/* Bibliography: bullet-point list for each line */
.bibliography-list p {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.bibliography-list p::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6b7280;
}
