/* Hanukkah cards: the recipient's view and the send dialog. Uses the page's colour variables. */

/* card view: the menorah, tonight's candles, the message and two buttons; no editing controls */
.app.card .dock,.app.card .dsheet,.app.card .stop,.app.card #read,.app.card .tpop,.app.card .hint{display:none!important}
.card-panel{display:none;left:0;right:0;bottom:0;z-index:7;padding:12px 12px calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(to top,rgba(4,8,22,.92) 62%,rgba(4,8,22,0));color:#eef2fb}
.app.card .card-panel{display:block;opacity:1!important}
.card-note{position:relative;max-width:520px;margin:0 auto 10px;padding:13px 44px 14px 16px;background:rgba(10,18,44,.72);border:1px solid rgba(255,255,255,.16);border-radius:16px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.card-note[hidden]{display:none}
.card-from{margin:0 0 4px;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:#c7d3ee}
.card-text{margin:0;font-family:Fraunces,Georgia,serif;font-size:21px;line-height:1.25;white-space:pre-wrap;overflow-wrap:anywhere}
.card-x{position:absolute;top:8px;right:8px;width:34px;height:34px;border-radius:999px;border:0;background:transparent;color:#c7d3ee;cursor:pointer;font-size:15px}
.card-acts{display:flex;gap:8px;justify-content:center;max-width:520px;margin:0 auto}
.card-acts button{flex:1;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#eef2fb;font:inherit;font-size:15px;cursor:pointer}
.card-acts .pri{background:var(--blue);border-color:var(--blue);color:var(--onblue)}
.card-show{display:none;top:8px;right:10px;height:34px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(5,10,28,.7);color:#eef2fb;font:inherit;font-size:14px;cursor:pointer}
.app.card .card-show:not([hidden]){display:block;opacity:1!important}

/* send dialog */
.card-dlg{border:0;border-radius:18px;padding:0;width:min(94vw,460px);max-height:92dvh;background:var(--bg);color:var(--ink);box-shadow:0 20px 60px rgba(0,0,0,.35)}
.card-dlg::backdrop{background:rgba(0,0,0,.55)}
.card-form{position:relative;display:flex;flex-direction:column;gap:6px;padding:18px 18px 16px}
.card-form h2{font-family:Fraunces,Georgia,serif;font-size:22px;margin:0 40px 6px 0}
.card-form img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px;background:#0a1430;margin-bottom:4px}
.card-form label{font-size:13.5px;color:var(--mute);margin-top:4px;display:flex;justify-content:space-between}
.card-form input,.card-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:var(--panel);font:inherit;color:var(--ink);resize:vertical}
#sendLink{font-size:12.5px;color:var(--mute)}
.card-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.card-btns>*{flex:1 1 auto;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--bg);color:var(--ink);display:grid;place-items:center;padding:0 14px;cursor:pointer;text-decoration:none;font:inherit;font-size:14.5px}
.card-btns .pri{background:var(--blue);border-color:var(--blue);color:var(--onblue)}
.card-post{min-height:48px;margin-top:8px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;font-size:14.5px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:6px 14px}
.card-post span{font-size:12.5px;color:var(--mute)}
.card-post[hidden]{display:none}
.card-status{min-height:1.2em;margin:4px 0 0;font-size:13.5px}
.card-fine{margin:2px 0 0;font-size:12.5px;color:var(--mute)}
.card-close{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer;font-size:15px}

/* in the full-screen view, Send is the third step on the bar at the bottom, so the top button would be a second home for it */
.app.focus #sendCard2{display:none}
