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

/* Flatpickr mobile responsive */
@media (max-width: 640px) {
  .flatpickr-calendar.open {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 2rem) !important;
    max-width: 320px;
  }

  .flatpickr-calendar::before,
  .flatpickr-calendar::after {
    display: none !important;
  }
}

/* Blog article typography */
.blog-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-prose p {
  color: #4b5563;
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.blog-prose ul, .blog-prose ol {
  color: #4b5563;
  font-size: 1.0625rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-prose ul {
  list-style-type: disc;
}

.blog-prose ol {
  list-style-type: decimal;
}

.blog-prose li {
  margin-bottom: 0.5rem;
}

.blog-prose a {
  color: #4f46e5;
  text-decoration: none;
}

.blog-prose a:hover {
  text-decoration: underline;
}

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

.blog-prose blockquote {
  border-left: 4px solid #a5b4fc;
  padding-left: 1rem;
  color: #4b5563;
  font-style: italic;
  margin: 1.5rem 0;
}

.blog-prose code {
  color: #4f46e5;
  background-color: #eef2ff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.blog-prose th {
  background-color: #f9fafb;
  color: #111827;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
}

.blog-prose td {
  color: #4b5563;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.blog-prose hr {
  border-color: #e5e7eb;
  margin: 2rem 0;
}
