/* Nurses League — install sheet, banner and toast. Self-contained (works on theme pages too). */
.nl-pwa-sheet-wrap, .nl-pwa-banner, .nl-pwa-toast {
  --pwa-navy: #0A1B33; --pwa-blue: #1766D4; --pwa-blue-700: #0F57BD; --pwa-text: #0E2140; --pwa-text-2: #4A5D7A; --pwa-line: rgba(14, 33, 64, 0.1);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--pwa-text); box-sizing: border-box;
}
.nl-pwa-sheet-wrap *, .nl-pwa-banner * { box-sizing: border-box; }

/* Hide install buttons inside the installed app. */
html.nl-is-installed [data-nl-install], html.nl-is-installed .nl-install-only { display: none !important; }

.nl-pwa-sheet-wrap { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; }
.nl-pwa-backdrop { position: absolute; inset: 0; background: rgba(10, 27, 51, 0.5); animation: nl-pwa-fade .2s ease; }
.nl-pwa-sheet {
  position: relative; width: 100%; max-width: 460px; margin: 0; padding: 24px 22px calc(22px + env(safe-area-inset-bottom));
  background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px -20px rgba(10, 27, 51, 0.45);
  display: flex; flex-direction: column; gap: 18px; animation: nl-pwa-up .25s ease;
}
@media (min-width: 600px) { .nl-pwa-sheet-wrap { align-items: center; } .nl-pwa-sheet { border-radius: 24px; padding-bottom: 22px; } }
.nl-pwa-head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.nl-pwa-head img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.nl-pwa-head h2 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--pwa-text); font-family: inherit; letter-spacing: -0.01em; }
.nl-pwa-head p { margin: 2px 0 0; font-size: 14px; color: var(--pwa-text-2); }
.nl-pwa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.nl-pwa-steps li { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 15px; line-height: 1.45; }
.nl-pwa-steps b { font-weight: 700; }
.nl-pwa-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #F1F6FE; display: grid; place-items: center; color: var(--pwa-blue); }
.nl-pwa-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nl-pwa-ico circle { fill: currentColor; stroke: none; }
.nl-pwa-ico--app { background: none; }
.nl-pwa-ico--app img { width: 44px; height: 44px; border-radius: 11px; }
.nl-pwa-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--pwa-text-2); }
.nl-pwa-btn {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--pwa-blue); color: #fff; margin: 0;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.nl-pwa-btn:hover, .nl-pwa-btn:focus { background: var(--pwa-blue-700); color: #fff; }
.nl-pwa-btn:focus-visible, .nl-pwa-x:focus-visible { outline: 3px solid #BCD5F7; outline-offset: 2px; }
.nl-pwa-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nl-pwa-x {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--pwa-text-2); display: grid; place-items: center; cursor: pointer; box-shadow: none;
}
.nl-pwa-x:hover { background: #F1F6FE; color: var(--pwa-text); }
.nl-pwa-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Banner: above the app's bottom tab bar on phones. */
.nl-pwa-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9000;
  max-width: 460px; margin: 0 auto; padding: 10px 6px 10px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--pwa-line); box-shadow: 0 18px 40px -18px rgba(10, 27, 51, 0.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; align-items: center; gap: 10px; animation: nl-pwa-up .3s ease;
}
.nl-pwa-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.nl-pwa-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.nl-pwa-banner__text strong { font-size: 14px; font-weight: 700; }
.nl-pwa-banner__text span { font-size: 12px; color: var(--pwa-text-2); }
.nl-pwa-banner .nl-pwa-x { position: static; width: 40px; height: 40px; }

.nl-pwa-toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100001;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--pwa-navy); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 36px -16px rgba(10, 27, 51, 0.6); animation: nl-pwa-fade .2s ease;
}

@keyframes nl-pwa-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nl-pwa-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nl-pwa-sheet, .nl-pwa-banner, .nl-pwa-backdrop, .nl-pwa-toast { animation: none; } }
