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

/* Autocomplete dropdown styles */
.autocomplete-results {
  position: absolute;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
  min-width: 300px;
  top: 0;
  left: 0;
}

.autocomplete-result-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}

.autocomplete-result-item:last-child {
  border-bottom: none;
}

.autocomplete-result-item:hover,
.autocomplete-result-item.active {
  background-color: #eef2ff;
}

.autocomplete-results.hidden {
  display: none;
}

/* Prose/Article content styles */
.prose h1 {
  font-size: 2.25em;
  font-weight: 800;
  line-height: 1.1111;
  margin-top: 0;
  margin-bottom: 0.8888em;
  color: #111827;
}

.prose h2 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.3333;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #111827;
}

.prose h3 {
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: #111827;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose strong {
  font-weight: 600;
  color: #111827;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose a {
  color: #4f46e5;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #4338ca;
}
