/* modal do PDF: a moldura é da Korbify; dentro fica o leitor do navegador */
.pdf-modal { width: min(1040px, calc(100vw - 32px)); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #fff; color: var(--berinjela); box-shadow: 0 40px 90px #1e103373; }
.pdf-modal[open] { display: flex; flex-direction: column; animation: pdf-in .26s cubic-bezier(.2, .9, .3, 1.15); }
.pdf-modal::backdrop { background: #1e1033b8; backdrop-filter: blur(5px); }
/* as quatro fitas da marca */
.pdf-modal::before { content: ''; flex: none; height: 7px; background: linear-gradient(90deg, var(--vime) 0 25%, var(--coral) 25% 50%, var(--menta) 50% 75%, var(--lilas) 75%); }
.pdf-modal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 18px; }
.pdf-modal-head .mark { flex: none; }
.pdf-modal-name { flex: 1 1 200px; min-width: 0; }
.pdf-modal-name h2 { font-size: 1.02rem; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pdf-modal-name p { font-size: .9rem; line-height: 1.4; color: #6b627d; }
.pdf-modal-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.pdf-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--nevoa); transition: background-color .15s, transform .15s; }
.pdf-close:hover { background: #E0E3F2; transform: rotate(90deg); }
.pdf-modal-body { position: relative; flex: 1; min-height: 0; margin: 0 12px 12px; border-radius: 16px; overflow: hidden; background: var(--nevoa); }
.pdf-modal-body p { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: #6b627d; }
.pdf-modal-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html:has(.pdf-modal[open]) { overflow: hidden; }
@keyframes pdf-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (max-width: 640px) {
    .pdf-modal { width: 100vw; height: 100dvh; border-radius: 0; }
    .pdf-close { order: 1; }
    .pdf-modal-acts { order: 2; width: 100%; }
    .pdf-modal-acts .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pdf-modal[open] { animation: none; }
    .pdf-close:hover { transform: none; }
}
