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

/*
 * Action Text / Trix, restyled onto the design tokens defined in
 * app/assets/tailwind/application.css. See DESIGN.md.
 * Loaded after actiontext.css (stylesheet_link_tag :app links stylesheets alphabetically),
 * so these win over the Trix defaults.
 */

trix-editor {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 0.5em 0.75em;
}

trix-editor:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

trix-toolbar .trix-button-group {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
}

trix-toolbar .trix-button {
  border-bottom: 0;
  color: var(--color-muted);
}

trix-toolbar .trix-button:not(:first-child) {
  border-left: 1px solid var(--color-line);
}

trix-toolbar .trix-button.trix-active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
