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

div.field_with_errors > label {
  color: red;
}

div.field_with_errors > :is(input, textarea, select) {
  border: 2px solid red;
  margin-bottom: 1rem;
}

/* Trix content rendering styles */
.trix-content pre {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2em 0 2em 0;
}

.trix-content code {
  background-color: #2d2d2d;
  color: #f8f8f2;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
}

/* For inline code (not in pre blocks) */
.trix-content :not(pre) > code {
  background-color: #f4f4f4;
  color: #c7254e;
  padding: 2px 4px;
  border-radius: 3px;
}

.trix-content a {
  color: indigo;
  text-decoration: underline;
}
