/* ASPN Club build 75ac1: Add-to-Home-Screen onboarding. Additive; reuses the
   app's .card/.sheet/.btn/.eyebrow language and theme tokens. */

/* The old bottom-of-Today install card (rendered by the app bundle) is
   replaced by this flow; hide it only once this module is running. */
html.a2hs-on .card.install{display:none}

/* Reminder card on Today */
.a2hs-card{gap:10px;border:1px solid var(--line)}
.a2hs-card .eyebrow{letter-spacing:.14em}
.a2hs-card .x{flex-shrink:0}
.a2hs-card .btn.sm{min-height:40px;padding:9px 18px}
.a2hs-never{background:none;border:0;padding:6px 4px;cursor:pointer;font-family:inherit}

/* Theme safety: the app's dark-theme sheet overrides target its own #sheetRoot,
   not this module's #a2hsRoot, so pin our surfaces to the per-theme tokens. */
#a2hsRoot .a2hs-sheet{background:var(--glass-strong);color:var(--ink)}
.a2hs-card{background:var(--paper);color:var(--ink)}

/* Bottom sheet (structure reuses .scrim/.sheet from app.css) */
.a2hs-sheet .x{font-size:20px;line-height:1}
.a2hs-steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.a2hs-steps li{position:relative;padding-left:34px;font-size:14.5px;line-height:1.5;color:var(--ink-2);counter-increment:a2hs}
.a2hs-steps{counter-reset:a2hs}
.a2hs-steps li::before{content:counter(a2hs);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;background:var(--sand-soft);color:var(--sand-text);font-size:12.5px;font-weight:600;display:grid;place-items:center}
.a2hs-sheet .btn.grow{flex:1}
@media (prefers-reduced-transparency:reduce){
  .a2hs-sheet{background:var(--paper)}
}
@media (max-width:480px){
  .a2hs-sheet .row:has(> .btn.grow){flex-direction:column;align-items:stretch}
  .a2hs-card .eyebrow{letter-spacing:.1em;font-size:10px}
}

html[data-theme=night] #a2hsRoot .btn.ghost,html[data-theme=sunset] #a2hsRoot .btn.ghost{color:var(--ink);border-color:var(--sand-text);background:transparent}
