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

/* Restore native <dialog> centering that Tailwind's preflight strips */
dialog::backdrop {
  background-color: rgb(15 23 42 / 0.5);
}

dialog[open] {
  margin: auto;
}

.directory-rich-text p,
.directory-rich-text div {
  margin-top: 0;
  margin-bottom: 1rem;
}

.directory-rich-text ul,
.directory-rich-text ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}

.directory-rich-text ul {
  list-style: disc outside;
}

.directory-rich-text ol {
  list-style: decimal outside;
}

.directory-rich-text li + li {
  margin-top: 0.25rem;
}

.directory-rich-text :is(p, div, ul, ol):last-child {
  margin-bottom: 0;
}
