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

/* Fix Leaflet map z-index overlaying nav/sidebar on mobile */
.leaflet-container {
  z-index: 0 !important;
  position: relative;
  isolation: isolate;
}

.leaflet-pane {
  z-index: 1 !important;
}

.leaflet-top,
.leaflet-bottom {
  z-index: 2 !important;
}

/* Ensure nav elements always sit above maps */
[data-sidebar-target="overlay"] {
  z-index: 9998 !important;
}

[data-sidebar-target="sidebar"] {
  z-index: 9999 !important;
}

/* Legal documents are server-rendered and must remain readable even when a Tailwind content build
   does not emit arbitrary descendant selectors. */
.legal-document h2 {
  color: #0f172a;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 2rem;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.legal-document h3 {
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.75rem;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.legal-document ul {
  list-style: disc;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-document li + li {
  margin-top: 0.375rem;
}
