/* Site-wide dialogs and notifications (replaces the browser's own confirm / prompt / alert boxes).
   Self-contained: used by the public site, the sign-in page and the admin. */

.naa-dialog {
  --naa-ink: #0a0a0a; --naa-muted: #595959; --naa-rule: #d4d4d4; --naa-alert: #a3221c;
  border: 0; padding: 0; margin: auto; color: var(--naa-ink); background: #fff;
  width: min(460px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: auto;
  border-top: 3px solid var(--naa-ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .4);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.5;
}
.naa-dialog::backdrop { background: rgba(10, 10, 10, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.naa-dialog[open] { animation: naa-pop .24s cubic-bezier(.2, .7, .2, 1); }
.naa-dialog[open]::backdrop { animation: naa-fade .24s ease-out; }
.naa-dialog--danger { border-top-color: var(--naa-alert); }

.naa-dialog__body { padding: 30px 30px 6px; }
.naa-dialog__eyebrow { margin: 0 0 12px; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--naa-muted); }
.naa-dialog--danger .naa-dialog__eyebrow { color: var(--naa-alert); }
.naa-dialog__title { margin: 0 0 10px; font-size: 1.4rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.naa-dialog__msg { margin: 0; color: #333; font-size: .98rem; line-height: 1.6; }
.naa-dialog__field { margin: 18px 0 4px; }
.naa-dialog__field label { display: block; margin-bottom: 6px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.naa-dialog__field input {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--naa-ink);
  background: #fff; border: 1px solid var(--naa-ink); border-radius: 0;
}
.naa-dialog__field input:focus-visible { outline: 2px solid var(--naa-ink); outline-offset: 2px; }
.naa-dialog__error { margin: 6px 0 0; min-height: 1.2em; color: var(--naa-alert); font-size: .85rem; }

.naa-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 22px 30px 28px; }
.naa-btn {
  appearance: none; -webkit-appearance: none; border: 1px solid var(--naa-ink, #0a0a0a); background: #fff; color: var(--naa-ink, #0a0a0a); border-radius: 0;
  font: 700 .72rem/1 'Archivo', 'Helvetica Neue', Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase;
  padding: 0 24px; min-height: 46px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.naa-btn:hover { background: #ededed; }
.naa-btn--primary { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }
.naa-btn--primary:hover { background: #2a2a2a; }
.naa-btn--danger { background: #a3221c; border-color: #a3221c; color: #fff; }
.naa-btn--danger:hover { background: #861b16; border-color: #861b16; }
.naa-btn:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
.naa-btn--danger:focus-visible { outline-color: #a3221c; }

@media (max-width: 480px) {
  .naa-dialog__body { padding: 26px 22px 4px; }
  .naa-dialog__foot { padding: 20px 22px 24px; flex-direction: column-reverse; }
  .naa-btn { width: 100%; }
}

/* Notifications */
.naa-toasts {
  position: fixed; z-index: 2147483000; top: 16px; right: 16px; display: grid; gap: 10px;
  width: min(390px, calc(100vw - 32px)); pointer-events: none;
}
body.admin .naa-toasts { top: 74px; }
.naa-toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 15px 14px 15px 16px;
  background: #0a0a0a; color: #fff; border-left: 4px solid #fff; box-shadow: 0 14px 44px rgba(0, 0, 0, .35);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif; font-size: .92rem; line-height: 1.45;
  animation: naa-toast-in .32s cubic-bezier(.2, .7, .2, 1);
}
.naa-toast--success { border-left-color: #6fcf86; }
.naa-toast--error { border-left-color: #f0746c; }
.naa-toast.is-leaving { animation: naa-toast-out .22s ease-in forwards; }
.naa-toast__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.naa-toast--success .naa-toast__icon { color: #6fcf86; }
.naa-toast--error .naa-toast__icon { color: #f0746c; }
.naa-toast__text { flex: 1; min-width: 0; }
.naa-toast__title { display: block; font-weight: 700; margin-bottom: 1px; }
.naa-toast__close { flex: none; width: 28px; height: 28px; margin: -4px -2px 0 0; display: grid; place-items: center; border: 0; background: transparent; color: #bdbdbd; cursor: pointer; }
.naa-toast__close:hover { color: #fff; }
.naa-toast__close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

@keyframes naa-pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes naa-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes naa-toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes naa-toast-out { to { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) {
  .naa-dialog[open], .naa-dialog[open]::backdrop, .naa-toast, .naa-toast.is-leaving { animation: none; }
}
