/* Lexxy Content Styling for Frontend */
/* This replaces Tailwind prose to allow Lexxy inline styles to work */

.lexxy-content {
  line-height: 1.7;
  color: rgb(55 65 81);
  font-size: 1.125rem;
}

/* Inline styles from Lexxy (colors, backgrounds) will automatically work */
/* because we're not using prose class that would override them */

.lexxy-content p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.lexxy-content ul,
.lexxy-content ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
}

.lexxy-content li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.lexxy-content h1,
.lexxy-content h2,
.lexxy-content h3,
.lexxy-content h4,
.lexxy-content h5,
.lexxy-content h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.lexxy-content strong,
.lexxy-content b {
  font-weight: 600;
}

.lexxy-content em,
.lexxy-content i {
  font-style: italic;
}

.lexxy-content a {
  color: var(--color-primary, #3b82f6);
  text-decoration: underline;
}

.lexxy-content a:hover {
  text-decoration: none;
}

.lexxy-content blockquote {
  border-left: 4px solid var(--color-primary, #3b82f6);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: rgba(0, 0, 0, 0.7);
}

.lexxy-content code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875em;
}

.lexxy-content pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.lexxy-content pre code {
  background-color: transparent;
  padding: 0;
}

/* Limit height for carousel display */
.news-carousel .lexxy-content {
  max-height: 200px;
  overflow: hidden;
  position: relative;
}

.news-carousel .lexxy-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
}
