/* Craigslist lead newsletter signup (enabled only with AWeber form URL) */
#cl-optin-overlay[hidden]{display:none!important}
#cl-optin-overlay{position:fixed;inset:0;z-index:2147480000;background:rgba(4,11,23,.76);display:grid;place-items:center;padding:18px;overflow-y:auto;backdrop-filter:blur(5px)}
#cl-optin-panel{position:relative;width:min(100%,680px);max-height:min(92dvh,850px);overflow:auto;border-radius:22px;border:1px solid #79b3f7;background:linear-gradient(160deg,#102d57,#08182e);box-shadow:0 28px 95px rgba(0,0,0,.65);padding:25px 24px 22px;color:#f8fbff;text-align:center}
#cl-optin-close{position:absolute;right:13px;top:11px;border:1px solid #6d8eb1;background:#142f54;border-radius:100px;color:white;width:37px;height:37px;font-size:23px;line-height:1;cursor:pointer}
#cl-optin-close:hover{background:#24568f}
#cl-optin-head{margin:16px 26px 9px;font-size:clamp(1.48rem,4vw,2.08rem);line-height:1.15;color:#fff}
#cl-optin-intro{color:#d2e5fc;font-size:1.02rem;line-height:1.53;margin:0 auto 15px;max-width:465px}
#cl-optin-form-frame{border:0;display:block;margin:auto;width:100%;height:clamp(255px,42vh,390px);background:#fff;border-radius:13px}
#cl-optin-consent{font-size:.76rem;color:#d4e3f5;line-height:1.5;margin:12px auto 0;max-width:460px}
#cl-optin-later{background:transparent;border:0;color:#acd5ff;text-decoration:underline;text-underline-offset:3px;font-size:.86rem;margin:12px 0 0;cursor:pointer}
body.cl-optin-open{overflow:hidden}
@media(max-width:520px){#cl-optin-overlay{padding:10px}#cl-optin-panel{padding:20px 12px}#cl-optin-form-frame{height:clamp(250px,43vh,370px)}}
@media(prefers-reduced-motion:no-preference){#cl-optin-panel{animation:cl-optin-in .25s ease-out}@keyframes cl-optin-in{from{opacity:.7;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}}

.cl-optin-fallback{font-size:.82rem;color:#c5defa;margin:12px auto 0;line-height:1.4}
.cl-optin-fallback a{color:#b8e7ff;text-decoration:underline;text-underline-offset:3px;font-weight:750}

/* Always-accessible return option beneath the embedded AWeber form. */
#cl-optin-return[hidden]{display:none!important}
#cl-optin-return{display:block;width:100%;padding:13px 16px;margin:12px auto 0;border-radius:10px;border:1px solid #a8e0ff;background:#084fbb;color:#fff;font:800 15px/1.3 system-ui,sans-serif;cursor:pointer}
#cl-optin-return:hover{filter:brightness(1.16)}
#cl-optin-panel{scrollbar-width:thin}
@media(max-height:760px){#cl-optin-panel{padding-top:16px;padding-bottom:14px}#cl-optin-head{font-size:clamp(1.3rem,3vw,1.8rem);margin-top:8px}}

/* Craigslist signup redesign — blue conversion-focused card */
#cl-optin-overlay{background:rgba(3,10,22,.82);padding:16px}
#cl-optin-panel{width:min(100%,610px);border:1px solid #5396e0;background:linear-gradient(155deg,#102e58 0%,#071b36 100%);padding:29px 28px 23px;box-shadow:0 32px 90px rgba(0,0,0,.68);overflow:auto}
#cl-optin-close{width:42px;height:42px;right:12px;top:12px;z-index:2;background:#163a68}
#cl-optin-kicker{display:inline-block;margin:0 auto 12px;padding:5px 12px;border:1px solid #548dd0;border-radius:40px;background:rgba(8,79,187,.35);color:#d4ecff;font-size:11px;line-height:1.5;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
#cl-optin-head{margin:6px 32px 13px;font-size:clamp(1.55rem,3vw,2.15rem);line-height:1.16;letter-spacing:-.035em}
#cl-optin-intro{font-size:clamp(.95rem,1.6vw,1.06rem);line-height:1.52;margin-bottom:17px}
#cl-optin-form-frame{width:100%;height:min(380px,46dvh);min-height:275px;background:#fff;border-radius:12px;border:1px solid #c5d9ee}
#cl-optin-consent{margin:15px auto 3px;font-size:.79rem;line-height:1.55;color:#d7e6fa}
#cl-optin-consent::before{content:"✓";display:inline-block;margin-right:7px;color:#a6e5bc;font-weight:900}
#cl-optin-later{padding:12px 15px;min-height:44px;margin-top:6px;color:#c2e3ff;font-weight:700;text-decoration:underline}
#cl-optin-later:hover{color:#fff}
#cl-optin-fallback{margin-top:5px}
@media(max-width:560px){
  #cl-optin-overlay{padding:8px}
  #cl-optin-panel{padding:22px 13px 14px;border-radius:17px;max-height:94dvh}
  #cl-optin-head{margin:12px 28px 10px;font-size:1.6rem}
  #cl-optin-form-frame{height:min(360px,42dvh);min-height:245px}
}

/* Medium ambient purple-and-blue backlight, inspired by the original AWeber form. */
#cl-optin-overlay{
  background:
    radial-gradient(ellipse 35% 43% at 30% 43%,rgba(126,63,218,.33) 0%,transparent 95%),
    radial-gradient(ellipse 41% 45% at 69% 57%,rgba(31,106,244,.31) 0%,transparent 95%),
    rgba(3,10,22,.82);
}
#cl-optin-panel{
  box-shadow:
    0 0 55px rgba(113,73,228,.27),
    0 0 105px rgba(25,103,238,.19),
    0 32px 90px rgba(0,0,0,.68);
}

/* Reference-style compact AWeber composition with Craigslist blue palette. */
#cl-optin-panel{
  width:min(100%,505px);
  padding:39px 32px 29px;
  border-radius:16px;
  border:1px solid rgba(103,164,242,.48);
  background:linear-gradient(135deg,#102f59 0%,#14274b 48%,#08182f 100%);
  box-shadow:0 25px 80px rgba(30,102,225,.24),0 0 62px rgba(125,68,210,.20);
  max-height:calc(100dvh - 25px);
}
#cl-optin-head{
  margin:0 24px 15px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(26px,4vw,30px);
  letter-spacing:0;
  line-height:1.2;
  color:#a4d5ff;
  text-shadow:0 2px 20px rgba(70,160,255,.28);
}
#cl-optin-intro{
  max-width:none;
  font-size:15px;
  line-height:1.5;
  color:rgba(255,255,255,.91);
  margin:0 0 25px;
}
#cl-optin-close{
  width:36px;height:36px;top:12px;right:12px;
  border:0;background:transparent;color:#b5cef1;font-size:24px;
}
#cl-optin-form-frame{
  display:block;
  width:100%;
  height:265px;
  min-height:265px;
  border:0;
  border-radius:0;
  background:transparent;
}
#cl-optin-consent{font-size:12px;margin:15px auto 0;line-height:1.5;color:#c9d8ed}
#cl-optin-later{font-size:13px;margin-top:10px;color:#b2d9ff}
@media(max-width:520px){
  #cl-optin-panel{padding:34px 22px 24px}
  #cl-optin-head{margin:0 16px 13px}
  #cl-optin-form-frame{height:265px;min-height:236px}
}

/* Match iframe canvas to the blue popup; no white rectangle during loading. */
#cl-optin-form-frame{background:#14284b!important;color-scheme:dark}
