/* Calaveras Transparency Project PWA – v0.1.25.
   Scoped to install/update guidance. Existing page layout is unaffected. */
.ctp-pwa-toast[hidden], .ctp-pwa-help[hidden], .ctp-pwa-offline-warning[hidden] { display:none !important; }
.ctp-pwa-offline-warning { background:var(--copper-soft); color:var(--text); border-bottom:1px solid var(--copper); padding:10px 20px; text-align:center; font-size:13px; font-weight:700; }
.ctp-pwa-toast {
  position:fixed; z-index:1200; right:16px;
  bottom:max(16px, env(safe-area-inset-bottom, 0px));
  max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain;
  width:min(390px, calc(100vw - 32px));
  padding:16px; border:1px solid var(--line); border-radius:14px;
  background:var(--surface); color:var(--text);
  box-shadow:0 14px 44px rgba(0,0,0,.23);
  font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  line-height:1.4;
}
.ctp-pwa-toast * { box-sizing:border-box; }
.ctp-pwa-intro { display:flex; align-items:flex-start; gap:12px; }
.ctp-pwa-icon { width:44px; height:44px; flex:0 0 44px; object-fit:cover; border-radius:10px; background:var(--surface-2); }
.ctp-pwa-copy { min-width:0; flex:1; }
.ctp-pwa-title { display:block; font-size:15px; line-height:1.3; font-weight:750; color:var(--text); }
.ctp-pwa-description { margin:5px 0 0; font-size:13px; line-height:1.4; color:var(--muted); }
.ctp-pwa-actions { display:flex; flex-wrap:wrap; gap:9px; justify-content:flex-end; margin-top:14px; }
.ctp-pwa-actions button { min-height:40px; padding:8px 12px; border-radius:9px; font-size:13px; line-height:1.25; font-weight:700; cursor:pointer; }
.ctp-pwa-secondary { color:var(--text); border:1px solid var(--line); background:var(--surface-2); }
.ctp-pwa-primary { color:var(--button-text); border:1px solid transparent; background:var(--button-bg); }
.ctp-pwa-actions button:hover { filter:brightness(.96); }
.ctp-pwa-toast button:focus-visible, .ctp-pwa-footer-link:focus-visible { outline:3px solid var(--copper); outline-offset:3px; }
.ctp-pwa-help { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); color:var(--text); font-size:13px; }
.ctp-pwa-help ol { margin:7px 0 0; padding-left:21px; }
.ctp-pwa-help li+li { margin-top:5px; }
.ctp-pwa-help p { margin:0; }
.ctp-pwa-help p+ p { margin-top:8px; }
.ctp-pwa-footer-link { display:inline; border:0; padding:0; background:none; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
@media(max-width:600px) {
  .ctp-pwa-toast { left:12px; right:12px; width:auto; bottom:max(12px, env(safe-area-inset-bottom, 0px)); padding:14px; }
}
@media(prefers-reduced-motion:reduce) { .ctp-pwa-toast, .ctp-pwa-actions button { transition:none; } }

/* v0.1.26: footer install-help action matches the other un-underlined links. */
.ctp-pwa-footer-link { text-decoration:none; transition:color .16s ease; }
.ctp-pwa-footer-link:hover { color:var(--copper); text-decoration:none; }
@media (prefers-reduced-motion:reduce) { .ctp-pwa-footer-link { transition:none; } }
