/* Sample report popup (PDF). Loaded in addition to style.css. */

/* The button that opens the popup */
.report__open {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  font: 600 14px var(--font-body); color: var(--gold-text);
  background: #fff; border: 1.5px solid var(--gold); border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.report__open:hover { background: var(--sand); transform: translateY(-1px); }

/* Stop the floating motion while the visitor points at the card,
   so the button is easy to hit. */
.report:hover, .report:focus-within { animation-play-state: paused; }

/* Dialog */
.rm {
  width: min(1000px, calc(100% - 24px)); height: min(92dvh, 900px);
  padding: 0; border: 0; border-radius: 20px; overflow: hidden;
  color: var(--navy); background: var(--cream);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.rm[open] { display: flex; flex-direction: column; animation: rmIn .35s cubic-bezier(.2, .7, .2, 1); }
.rm::backdrop { background: rgba(11, 26, 35, .72); backdrop-filter: blur(3px); }
@keyframes rmIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.rm__top {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 14px 20px; color: var(--on-dark); background: var(--navy);
}
.rm__brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.rm__brand img { display: block; width: 130px; height: auto; }
.rm__brand strong { font: 600 15px var(--font-head); color: var(--soft); }
.rm__tools { display: flex; align-items: center; gap: 10px; }
.rm__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font-size: 14px; font-weight: 600; color: var(--on-dark);
  border: 1.5px solid rgba(243, 238, 229, .4); border-radius: 999px;
}
.rm__link:hover { background: rgba(243, 238, 229, .12); }
.rm__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  color: var(--on-dark); background: transparent;
  border: 1.5px solid rgba(243, 238, 229, .4); border-radius: 50%; cursor: pointer;
}
.rm__close:hover { background: rgba(243, 238, 229, .12); }

/* Viewer */
.rm__viewer { position: relative; flex: 1; min-height: 0; background: #E9E2D3; }
.rm__frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.rm__frame[hidden], .rm__fallback[hidden] { display: none; }

.rm__fallback {
  position: absolute; inset: 0; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 32px 24px; text-align: center; color: var(--gold-text); background: var(--cream);
}
.rm__fallback h3 { font-size: 22px; color: var(--navy); }
.rm__fallback p { max-width: 380px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.rm__fallback-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }

html.rm-lock { overflow: hidden; }

@media (max-width: 640px) {
  .rm { width: 100%; max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
  .rm__brand strong { display: none; }
  .rm__link { display: none; }
  .report__open span { display: none; }
  .report__open { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rm[open] { animation: none; }
}
