/* LULA-INFO-MODAL 2026-05-20 — self-contained modal styles.
   Namespaced under .lula-info-modal-* so they cannot collide with
   the rest of the site's CSS. */

.lula-info-modal-host {
  position: fixed;
  inset: 0;
  z-index: 99999;          /* above everything; site nav is <= 1050 */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.lula-info-modal-host.is-open {
  opacity: 1;
  visibility: visible;
}

.lula-info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 28, 22, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.lula-info-modal-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(35, 28, 22, 0.30), 0 4px 12px rgba(35, 28, 22, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(8px) scale(0.985);
  transition: transform 0.20s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lula-info-modal-host.is-open .lula-info-modal-dialog {
  transform: translateY(0) scale(1);
}

.lula-info-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #f0e6da;
  background: #fbf4eb;
}

.lula-info-modal-title {
  margin: 0;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  color: #2d2a27;
  flex: 1;
  min-width: 0;
  /* Don't truncate — let it wrap, but cap to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lula-info-modal-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #4c6358;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease;
}
.lula-info-modal-close:hover {
  background: rgba(76, 99, 88, 0.10);
}
.lula-info-modal-close:focus-visible {
  outline: 2px solid #4c6358;
  outline-offset: 2px;
}

.lula-info-modal-body {
  padding: 22px 26px 26px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.55;
  color: #2d2a27;
}
.lula-info-modal-body p { margin: 0 0 12px; }
.lula-info-modal-body h1,
.lula-info-modal-body h2,
.lula-info-modal-body h3,
.lula-info-modal-body h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 500;
  margin: 18px 0 10px;
  color: #2d2a27;
}
.lula-info-modal-body h2 { font-size: 18px; }
.lula-info-modal-body h3 { font-size: 16px; }
.lula-info-modal-body ul,
.lula-info-modal-body ol { margin: 0 0 12px 22px; padding: 0; }
.lula-info-modal-body li { margin-bottom: 4px; }
.lula-info-modal-body a {
  color: #4c6358;
  text-decoration: underline;
}
.lula-info-modal-body a:hover {
  color: #3a4d44;
}

.lula-info-modal-loading {
  padding: 24px;
  text-align: center;
  color: #6b6661;
  font-size: 24px;
  letter-spacing: 4px;
  animation: lula-info-modal-pulse 1s ease-in-out infinite;
}
@keyframes lula-info-modal-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

body.lula-info-modal-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .lula-info-modal-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 24px);
    border-radius: 14px;
  }
  .lula-info-modal-header {
    padding: 14px 16px;
  }
  .lula-info-modal-title {
    font-size: 18px;
  }
  .lula-info-modal-body {
    padding: 16px 18px 22px;
    font-size: 14px;
  }
}
