/* "Log in to save your favorites" dialog (partials/save-prompt.njk). Self-contained: loads on every page. */
.save-prompt { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; overscroll-behavior: contain; font-family: var(--body); color: var(--navy); }
.save-prompt__backdrop { position: fixed; inset: 0; background: rgba(15,26,48,0.6); }
.save-prompt__dialog { position: relative; margin: auto; width: 100%; max-width: 440px; background: #FFFFFF; border-radius: 24px; padding: 32px 28px 24px; box-shadow: 0 30px 80px rgba(15,26,48,0.45); display: flex; flex-direction: column; gap: 20px; }
.save-prompt__dialog:focus { outline: none; }
.save-prompt__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px; border: 0; padding: 0; background: transparent; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease; }
.save-prompt__close:hover { background: #F3F6FD; }
.save-prompt__badge { width: 56px; height: 56px; border-radius: 999px; background: #FFE9E3; color: var(--coral); display: grid; place-items: center; }
.save-prompt__head { display: flex; flex-direction: column; gap: 8px; }
.save-prompt__head h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
.save-prompt__head p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.save-prompt__actions { display: flex; flex-direction: column; gap: 10px; }
.save-prompt__sso { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; border: 1px solid var(--line-strong); border-radius: 12px; background: #FFFFFF; color: var(--navy); font-family: var(--head); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.save-prompt__sso:hover { background: #F3F6FD; border-color: var(--navy); color: var(--navy); }
.save-prompt__email { min-height: 52px; }
.save-prompt__login { margin: 0; font-size: 15px; text-align: center; }
.save-prompt__login a { font-weight: 600; }
.save-prompt__legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.save-prompt__legal a { color: var(--muted); }

/* While the dialog is open the page behind does not scroll. */
html.save-prompt-open { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  .save-prompt:not([hidden]) .save-prompt__backdrop { animation: save-prompt-fade .18s ease-out; }
  .save-prompt:not([hidden]) .save-prompt__dialog { animation: save-prompt-rise .22s cubic-bezier(.2,.8,.2,1); }
}
@keyframes save-prompt-fade { from { opacity: 0; } }
@keyframes save-prompt-rise { from { opacity: 0; transform: translateY(12px); } }
