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

/* Carnets du Week-end - Article body styling */
/* Specificity: .markdown-body.article-body pour overrider les styles GitHub */
.markdown-body.article-body {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #374151;
}

.markdown-body.article-body p {
  margin-bottom: 0.9rem;
  line-height: 1.65;
}

.markdown-body.article-body p:has(+ ul) {
  margin-bottom: 0 !important;
}

.markdown-body.article-body a {
  color: #059669 !important;
  text-decoration: underline;
  text-decoration-color: #a7f3d0;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.markdown-body.article-body a:hover {
  color: #047857 !important;
  text-decoration-color: #059669;
}

.markdown-body.article-body strong {
  color: #111827;
  font-weight: 700;
}

.markdown-body.article-body em {
  color: #4b5563;
  font-style: italic;
}

.markdown-body.article-body ul,
.markdown-body.article-body ol {
  margin: 0.5rem 0 0.9rem 1.25rem;
  line-height: 1.55;
}

.markdown-body.article-body li {
  margin-bottom: 0.2rem;
  padding-left: 0.15rem;
  font-size: 0.98rem;
}

.markdown-body.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1rem;
}

.markdown-body.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin: 1.5rem 0 0.75rem;
}

/* Map popup card styling */
.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

.mapboxgl-popup-content a {
  text-decoration: none;
  color: inherit;
}
