/* November Challenge — scoped, accessible modal; does not change site layout */
.nov-popup {
  padding:0; border:0; width:min(535px,calc(100vw - 24px)); max-width:none;
  max-height:calc(100vh - 28px); max-height:calc(100dvh - 28px);
  border-radius:26px; background:transparent; color:#4e2737;
  overflow:visible; box-shadow:none; margin:auto; direction:rtl;
}
.nov-popup::backdrop { background:rgba(28,15,25,.70); backdrop-filter:blur(9px); -webkit-backdrop-filter:blur(9px); }
.nov-popup__surface { position:relative; border-radius:26px; background:#fff7f8;
  box-shadow:0 28px 95px rgba(31,13,24,.37); overflow:hidden;
  border:1px solid rgba(254,244,248,.8); isolation:isolate;
}
.nov-popup[open] .nov-popup__surface { animation:novPopupArrive .48s cubic-bezier(.18,.78,.2,1) both; }
.nov-popup__link { display:block; line-height:0; cursor:pointer; }
.nov-popup__link img { width:100%; height:auto; max-height:calc(100vh - 30px); max-height:calc(100dvh - 30px);
  object-fit:contain; border:0; background:#fff5f7; display:block; }
.nov-popup__link:focus-visible { outline:4px solid #d33e7d; outline-offset:-7px; border-radius:26px; }
.nov-popup__close { position:absolute; z-index:4; inset-block-start:13px; inset-inline-start:14px;
  width:44px; height:44px; padding:0; border-radius:50%;
  background:rgba(255,250,252,.97); color:#5c2847; border:1px solid rgba(160,93,123,.2);
  box-shadow:0 3px 15px rgba(69,29,49,.18); display:flex; align-items:center;justify-content:center;
  cursor:pointer; transition:transform .2s, background .2s; }
.nov-popup__close:hover { background:#fff; transform:scale(1.06); }
.nov-popup__close svg { width:22px;height:22px; stroke:currentColor;fill:none;stroke-width:2.6;stroke-linecap:round; }
.nov-popup__close:focus-visible { outline:3px solid #d33476; outline-offset:3px; }
@keyframes novPopupArrive { from { opacity:0; transform:translateY(24px) scale(.95); }
 to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:520px) { .nov-popup{ width:calc(100vw - 20px);border-radius:20px; }
  .nov-popup__surface{border-radius:20px;} .nov-popup__close{width:42px;height:42px;inset-block-start:9px;inset-inline-start:10px;}
}
@media (prefers-reduced-motion:reduce) { .nov-popup[open] .nov-popup__surface{animation:none;} .nov-popup__close{transition:none;} }

/* Small, respectful November reminder, separate from the modal. */
.nov-reminder{position:fixed;z-index:125;inset-inline-end:24px;bottom:26px;width:min(385px,calc(100vw - 28px));display:flex;align-items:stretch;gap:12px;background:#fffafc;border:1px solid #eccedc;border-radius:20px;box-shadow:0 17px 56px rgba(52,17,39,.23);padding:12px;color:#482439;opacity:0;transform:translateY(22px) scale(.97);pointer-events:none;transition:transform .36s cubic-bezier(.2,.8,.2,1),opacity .32s ease;font-family:'Alexandria',Tahoma,sans-serif;line-height:1.55}
.nov-reminder--visible{opacity:1;transform:translateY(0) scale(1);pointer-events:auto}
.nov-reminder__photo{width:72px;height:96px;flex:0 0 72px;object-fit:cover;object-position:center 16%;border-radius:13px;background:#edccd7}
.nov-reminder__body{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding-inline-end:18px}
.nov-reminder__eyebrow{font-size:10px;font-weight:600;color:#ae6280;line-height:1.5}
.nov-reminder__title{font-size:14px;font-weight:800;line-height:1.55;color:#50283c}
.nov-reminder__message{font-size:11.5px;margin:0;color:#785765;line-height:1.6}
.nov-reminder__cta{display:inline-flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:750;background:#9a456a;color:#fff;padding:7px 15px;border-radius:9px;margin-top:5px;line-height:1.6;text-decoration:none}
.nov-reminder__cta:hover{background:#7f3658;color:white}
.nov-reminder__close{position:absolute;inset-block-start:5px;inset-inline-end:6px;background:transparent;border:0;width:31px;height:31px;padding:0;font:400 23px/1 Arial,sans-serif;color:#855d6d;display:grid;place-items:center;cursor:pointer;border-radius:50%}
.nov-reminder__close:hover{background:#f9e8ef}
.nov-reminder__close:focus-visible,.nov-reminder__cta:focus-visible{outline:3px solid #aa557c;outline-offset:3px}
@media(max-width:820px){.nov-reminder{bottom:calc(88px + env(safe-area-inset-bottom));inset-inline-end:12px;width:min(345px,calc(100vw - 24px));gap:10px;padding:10px}.nov-reminder__photo{width:60px;flex-basis:60px;height:92px}.nov-reminder__title{font-size:13px}.nov-reminder__message{font-size:11px}}
@media(prefers-reduced-motion:reduce){.nov-reminder{transition:none;transform:none}}

/* V17: notification reads as a clear second touchpoint with a small November creative. */
.nov-reminder{border:2px solid #d999b4;border-radius:22px;box-shadow:0 20px 58px rgba(61,17,44,.28)}
.nov-reminder__photo{object-position:center center;background:#f8d8e4}
.nov-reminder__eyebrow{font-size:11px;color:#af416d;font-weight:800}
.nov-reminder__title{font-size:15px!important;line-height:1.45}
.nov-reminder__cta{padding:9px 16px;font-size:12px;background:#a33d6a}
@media(max-width:820px){.nov-reminder{bottom:calc(96px + env(safe-area-inset-bottom))}.nov-reminder__title{font-size:14px!important}}
