/* Tirupati Balaji — WeInviteYou builder styles: modal dialog and selection outline */

.tb-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.tb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.tb-modal .modal-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  background: #140e09;
  border: 1px solid rgba(239, 191, 4, 0.4);
  border-radius: 0.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

@media (min-width: 768px) {
  .tb-modal .modal-card { padding: 2rem; }
}

.tb-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #EFBF04;
  font-size: 1.125rem;
  line-height: 1.75rem;
  transition: color 0.2s ease;
}

.tb-modal__close:hover,
.tb-modal__close:focus-visible { color: #fff; }

.tb-modal__title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 2rem;
  color: #EFBF04;
}

.tb-modal__body {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #efe6d6;
}

.tb-modal .sacred-cta-btn { width: 100%; }

/* The doors are one continuous journey. Welcome, Our Story, Family and the closing
   blessing are marked on the darshan, the sacred triad, the announcement and the
   all-gods artwork (wiy-data.js); switching one of those sections off must never
   take that artwork out of its door. */
#layer-divine-darshan[data-wiy-off],
#door2-sanctum-content[data-wiy-off],
#door2-announcement-card[data-wiy-off],
#door7-all-gods-container[data-wiy-off] { display: flex !important; }

/* Builder: the section outline sits inside the door it marks */
.is-preview .tirupati-stage [data-section].wiy-selected { outline-offset: 6px; }
