/* ==========================================================================
   Agent-maintained stylesheet — stpat-ic (St. Patrick Church, Iowa City)
   One commented block per custom section. Linked from Gantry outline 15
   (Main Outline) Page Settings > Assets. Never edit another block.
   Site tokens: green #28604f (navigation), text #333, font Lato, gold #c8a45c.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section: DMI survey pop-up
   Prefix:  dmi-popup
   Ticket:  SOL-31418
   Scope:   .dmi-popup (outermost element of the section)
   Mirrored in /images/pub/editor.css: not applicable (site-wide overlay,
   not an article section).
   -------------------------------------------------------------------------- */
.dmi-popup {
  --dmi-green: #28604f;
  --dmi-green-dark: #1d4a3c;
  --dmi-ink: #333333;
  --dmi-gold: #c8a45c;
  --dmi-radius: 12px;
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: none;
}

.dmi-popup.is-open {
  display: block;
}

.dmi-popup .dmi-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 30, 26, 0.72);
}

.dmi-popup .dmi-popup__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  width: min(90vw, 460px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 38px 30px 26px;
  background: #ffffff;
  border-top: 6px solid var(--dmi-gold);
  border-radius: var(--dmi-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  font-family: Lato, sans-serif;
  color: var(--dmi-ink);
  text-align: center;
}

.dmi-popup .dmi-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6b7b76;
  font-family: Lato, sans-serif;
  font-size: 26px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dmi-popup .dmi-popup__close:hover,
.dmi-popup .dmi-popup__close:focus-visible {
  background: #eef3f1;
  color: var(--dmi-green);
}

.dmi-popup .dmi-popup__logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 6px;
}

.dmi-popup .dmi-popup__title {
  margin: 0 0 10px;
  padding: 0;
  color: var(--dmi-green);
  font-family: Lato, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.dmi-popup .dmi-popup__text {
  margin: 0 0 20px;
  color: var(--dmi-ink);
  font-family: Lato, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.dmi-popup .dmi-popup__cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  background: var(--dmi-green);
  color: #ffffff;
  font-family: Lato, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dmi-popup .dmi-popup__cta:hover,
.dmi-popup .dmi-popup__cta:focus {
  background: var(--dmi-green-dark);
  color: #ffffff;
  text-decoration: none;
}

.dmi-popup .dmi-popup__note {
  margin: 14px 0 0;
  color: #6b7b76;
  font-family: Lato, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.dmi-popup-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .dmi-popup .dmi-popup__card {
    width: 92vw;
    padding: 34px 20px 22px;
  }

  .dmi-popup .dmi-popup__title {
    font-size: 19px;
  }

  .dmi-popup .dmi-popup__logo {
    width: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dmi-popup .dmi-popup__close,
  .dmi-popup .dmi-popup__cta {
    transition: none;
  }
}
