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

/* Prevent body scrolling when a dialog is open */
body:has(dialog[open]) {
  overflow: hidden;
}

/* Prose styles */
.prose {
  max-width: 60ch;
  line-height: 1.6;
  color: #1a1a1a;
}

.prose p {
  margin: 1.25em 0;
}

.prose h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 2em 0 0.75em;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 1.75em 0 0.5em;
  line-height: 1.3;
}

.prose img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.prose strong {
  font-weight: 600;
}

.prose ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.75em 0;
  line-height: 1.7;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.9em;
  line-height: 1.5;
}

.prose th {
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 600;
  background-color: #f3f4f6;
  border-bottom: 2px solid #d1d5db;
}

.prose td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.prose a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2em 0;
}
