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

 /*
 *= require trix
 */
@import "bootstrap";

/*
 * Editor chrome only. ActionText wraps its OUTPUT in .trix-content too, so
 * styling that class put an editor border and a 300px min-height around every
 * rich-text block on the public site. Target the editor element instead.
 */
trix-editor.trix-content {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  min-height: 300px;
  padding: 1rem;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: white;
}

.trix-toolbar {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.5rem;
}

.trix-button-group {
  margin: 0 0.25rem;
}

.trix-button {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #374151;
  transition: all 0.2s;
}

.trix-button:hover,
.trix-button.trix-active {
  background: #e5e7eb;
  color: #111827;
}

.trix-button-group.trix-button-group--file-tools {
  display: none; /* hide attach if not needed */
}

/* Headings, lists, quotes etc. */
.trix-content h1 { font-size: 1.875rem; font-weight: 700; margin: 1.5rem 0 1rem; }
.trix-content h2 { font-size: 1.5rem; font-weight: 600; margin: 1.25rem 0 0.75rem; }
.trix-content ul, .trix-content ol { padding-left: 1.5rem; margin: 1rem 0; }
.trix-content blockquote { border-left: 4px solid #cbd5e1; padding-left: 1rem; color: #4b5563; }