/* Coin Insider newsletter sign-up: banner, popup, mini and pending card (q-coininsider-123, lane A). Staging only (CI_NEWSLETTER=1). */
/* Sizes follow the site's own scale (Angelina, 25 Nov: "too upsized"): eyebrow = sidebar/section heads (12px 700 caps), body = article text (16px),
   popup heading = article h2 (26px), mini heading = between sidebar titles (14px) and h2, banner heading = the old site banner (30px). */
/* brand red = the site header's --ci-header-red #8B1538, hover --ci-header-red-hover #6F112D (Angelina 2492: "stick to our brand red") */
.nl-signup,.nl-popup{--nl-ink:#141415;--nl-accent:#8B1538;--nl-accent-d:#6F112D;--nl-muted:#5C595A;--nl-line:#E5E0DE;--nl-field:#BEB8B6;--nl-serif:"Playfair Display","Playfair Fallback",Georgia,"Times New Roman",serif;--nl-sans:"Inter","Inter Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;color:var(--nl-ink);font-family:var(--nl-sans);-webkit-text-size-adjust:100%}
.nl-signup[hidden],.nl-popup[hidden],.nl-signup [hidden],.nl-popup [hidden]{display:none!important}
.nl-signup *,.nl-popup *{box-sizing:border-box}
.nl-status{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.nl-card{position:relative;background:#fff;border:1px solid var(--nl-line);border-top:4px solid var(--nl-accent);border-radius:6px;box-shadow:0 1px 2px rgba(20,20,21,.05),0 4px 14px rgba(20,20,21,.06)}
.nl-signup p,.nl-popup p{margin:0}
.nl-eyebrow{font:700 12px/1.3 var(--nl-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--nl-accent);margin:0 0 8px!important}
.nl-signup .nl-h,.nl-popup .nl-h{font-family:var(--nl-serif);font-weight:700;color:var(--nl-ink);letter-spacing:0;text-transform:none;margin:0 0 8px;padding:0;border:0}
.nl-body{font-size:15px;line-height:1.5;color:var(--nl-ink)}
.nl-trust{font-size:13px;line-height:1.4;font-weight:600;color:var(--nl-muted);margin-top:8px!important}

/* form */
.nl-form{margin:0;position:relative}
.nl-signup .nl-label,.nl-popup .nl-label{display:block;font:600 14px/1.3 var(--nl-sans);color:var(--nl-ink);margin:0 0 6px;text-transform:none;letter-spacing:0}
.nl-signup .nl-input,.nl-popup .nl-input{display:block;width:100%;height:42px;margin:0;padding:0 12px;font:400 15px/1.2 var(--nl-sans);color:var(--nl-ink);background:#fff;border:1px solid var(--nl-field);border-radius:4px;box-shadow:none;outline:0;-webkit-appearance:none;appearance:none}
.nl-signup .nl-input::placeholder,.nl-popup .nl-input::placeholder{color:#8B898A;opacity:1}
.nl-signup .nl-input:focus,.nl-popup .nl-input:focus{border-color:var(--nl-accent);box-shadow:0 0 0 3px rgba(139,21,56,.14)}
.nl-signup .nl-input[aria-invalid=true],.nl-popup .nl-input[aria-invalid=true]{border-color:#B3261E}
.nl-error{font-size:13px;line-height:1.35;color:#B3261E;margin-top:6px!important}
.nl-row{display:flex;align-items:center;gap:12px;margin-top:12px}
.nl-arrow{display:none;flex:0 0 auto;width:64px;height:28px;color:var(--nl-accent)}
.nl-signup .nl-btn,.nl-popup .nl-btn{display:flex;align-items:center;justify-content:center;flex:1 1 auto;width:100%;min-height:42px;margin:0;padding:8px 16px;border:0;border-radius:4px;background:var(--nl-accent);color:#fff;font:700 18px/1.1 var(--nl-serif);letter-spacing:0;text-transform:none;cursor:pointer;box-shadow:none;transition:background-color .15s ease}
.nl-signup .nl-btn:hover,.nl-popup .nl-btn:hover{background:var(--nl-accent-d)}
.nl-signup .nl-btn:focus-visible,.nl-popup .nl-btn:focus-visible,.nl-signup a:focus-visible,.nl-popup a:focus-visible,.nl-signup button:focus-visible,.nl-popup button:focus-visible{outline:2px solid var(--nl-accent);outline-offset:2px}
.nl-signup .nl-btn[aria-disabled=true],.nl-popup .nl-btn[aria-disabled=true]{opacity:.75;cursor:progress}
.nl-help{font-size:13px;line-height:1.5;color:var(--nl-muted);margin-top:12px!important}
.nl-signup .nl-help a,.nl-popup .nl-help a{display:block;width:max-content;color:var(--nl-ink);text-decoration:underline;text-underline-offset:2px;font-weight:400}
.nl-dot{display:none}

/* pending card */
.nl-done-head{display:flex;align-items:center;gap:10px;margin:2px 0 8px}
.nl-tada{font-size:24px;line-height:1;flex:0 0 auto}
.nl-done-h{font:700 24px/1.15 var(--nl-serif);color:var(--nl-ink)}
.nl-done-main{font-size:15px;line-height:1.5;color:var(--nl-ink)}
.nl-done-sub{font-size:13px;line-height:1.5;color:var(--nl-muted);margin-top:4px!important}
.nl-signup .nl-gotit,.nl-popup .nl-gotit{margin-top:16px;font:600 15px/1.1 var(--nl-sans);min-height:42px}
.nl-signup .nl-resend,.nl-popup .nl-resend{display:inline-block;margin:12px 0 0;padding:2px 0;border:0;background:none;color:var(--nl-accent);font:400 14px/1.3 var(--nl-sans);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.nl-signup .nl-resend[aria-disabled=true],.nl-popup .nl-resend[aria-disabled=true]{color:var(--nl-muted);text-decoration:none;cursor:default}
.nl-stage{font-size:12px;line-height:1.4;color:var(--nl-muted);margin-top:8px!important}
.nl-is-pending .nl-pitch,.nl-is-pending .nl-formslot,.nl-is-pending .nl-hide-wrap{display:none}
.nl-banner.nl-is-pending .nl-pitch{display:block}

/* envelope (Angelina 2492 "so short"/"clunky"; 2525 "bigger and smoother"): about 2 s, the steps overlap so nothing stops and starts.
   form folds away 0-450 ms; envelope grows in 150-700; letter slips in 500-1000; flap closes 900-1250; it lifts and flies off 1400-2050;
   the pending card fades up from 1900 (the envelope is gone by then) while the box eases to its new height (signup.js).
   2548: the fly-off is 0.9 s (was 0.65), so it ends at 2300; Almost There fades up over 0.75 s from 2050 */
.nl-anim{position:relative}
.nl-anim>.nl-formslot,.nl-anim>.nl-pitch{animation:nl-fold .45s cubic-bezier(.4,0,.2,1) forwards}
/* crisp (Angelina 2548 "a bit pixelated"): the envelope is vector SVG drawn at its final size and is never scaled above 1, and there is
   no will-change, which made the browser rasterise the layer once at the small starting scale and stretch that bitmap */
.nl-env{position:absolute;left:50%;top:50%;width:64px;height:49px;margin:-25px 0 0 -32px;pointer-events:none;opacity:0;animation:nl-appear .55s cubic-bezier(.22,1,.36,1) .15s forwards,nl-fly .9s cubic-bezier(.45,0,.7,.35) 1.4s forwards}
.nl-env svg{display:block;width:100%;height:100%;overflow:visible}
.nl-env .e-letter{animation:nl-slip .5s cubic-bezier(.45,0,.25,1) .5s forwards}
.nl-env .e-flap{transform-origin:30px 14px;transform:scaleY(-1);animation:nl-close .35s cubic-bezier(.45,0,.25,1) .9s forwards}
.nl-done.nl-reveal{animation:nl-reveal .75s cubic-bezier(.22,1,.36,1) both}
@keyframes nl-fold{to{opacity:0;transform:scale(.96)}}
@keyframes nl-appear{from{opacity:0;transform:translateY(10px) scale(.6)}to{opacity:1;transform:none}}
@keyframes nl-slip{to{transform:translateY(16px)}}
@keyframes nl-close{to{transform:scaleY(1)}}
@keyframes nl-fly{0%{opacity:1;transform:none}25%{opacity:1;transform:translateY(4px)}80%{opacity:0}100%{opacity:0;transform:translate(64px,-52px) rotate(-8deg) scale(.8)}}
@keyframes nl-reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
/* the banner has room: a much bigger envelope and a longer flight (Angelina 2525) */
.nl-banner .nl-env{width:120px;height:92px;margin:-46px 0 0 -60px;animation-name:nl-appear,nl-fly-lg}
@keyframes nl-fly-lg{0%{opacity:1;transform:none}25%{opacity:1;transform:translateY(6px)}80%{opacity:0}100%{opacity:0;transform:translate(120px,-90px) rotate(-8deg) scale(.8)}}
/* the divider of the pending banner fades in instead of popping */
.nl-banner .nl-col--action{border-left:1px solid transparent;transition:border-color .55s ease}
.nl-banner.nl-is-pending .nl-col--action{border-left-color:var(--nl-line)}
/* popup entrance (Angelina 2525 "very rushed"): an even fade over 0.55 s with a gentle rise and scale that settles over 0.7 s */
.nl-popup.nl-enter .nl-card{animation:nl-pop-fade .55s cubic-bezier(.4,0,.2,1) both,nl-pop-rise .7s cubic-bezier(.16,1,.3,1) both}
@keyframes nl-pop-fade{from{opacity:0}to{opacity:1}}
@keyframes nl-pop-rise{from{transform:translateY(28px) scale(.96)}to{transform:none}}
@keyframes nl-fade-in{from{opacity:0}to{opacity:1}}

/* banner: home and category pages, before the footer */
.nl-banner{background:transparent;margin:40px 0 48px}
.nl-banner .nl-wrap{max-width:1200px;margin:0 auto;padding:0 16px}
.nl-banner .nl-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;align-items:center;padding:28px 36px 30px}
.nl-banner .nl-h{font-size:30px;line-height:1.15;margin-bottom:8px}
.nl-banner .nl-body{font-size:16px;line-height:1.5}
.nl-banner .nl-trust{font-size:14px;margin-top:10px!important}
.nl-banner .nl-input{height:44px}
.nl-banner .nl-btn{min-height:44px}
.nl-banner .nl-help{margin-top:10px!important}
.nl-banner .nl-help a{margin-top:2px}
.nl-banner.nl-is-pending .nl-col--action{border-left:1px solid var(--nl-line);padding-left:40px;align-self:stretch;display:flex;align-items:center}
.nl-banner .nl-done-h{font-size:26px}

/* mini: below Today's Top News (desktop, 270 px column) or before More For You (phones) */
.nl-mini{margin:24px 0 0}
.nl-mini .nl-card{padding:18px 18px 18px}
.nl-mini .nl-eyebrow{letter-spacing:.1em;margin-bottom:6px!important}
.nl-mini .nl-h{font-size:20px;line-height:1.2;margin-bottom:6px}
.nl-mini .nl-body{font-size:14px;line-height:1.45}
.nl-mini .nl-trust{font-size:12px;font-weight:400;margin-top:6px!important}
.nl-mini .nl-form{margin-top:14px}
.nl-mini .nl-label{font-size:13px}
.nl-mini .nl-input{height:40px;font-size:14px}
.nl-mini .nl-row{margin-top:10px}
.nl-mini .nl-btn{font:600 15px/1.1 var(--nl-sans);min-height:40px}
.nl-mini .nl-help{font-size:12px;margin-top:10px!important}
.nl-mini .nl-done-h{font-size:20px}
.nl-mini .nl-tada{font-size:20px}
.nl-mini .nl-done-main{font-size:14px}
.nl-mini .nl-done-sub{font-size:12px}
.nl-mini .nl-resend{font-size:13px}
.nl-slot--more .nl-mini{margin:24px 0 32px}

/* popup: compact corner card on desktop, centred on phones; no backdrop, the page stays scrollable */
.nl-popup{position:fixed;z-index:2147483000;right:32px;bottom:28px;width:380px;max-width:calc(100vw - 32px)}
.nl-popup .nl-card{padding:20px 24px 18px;max-height:calc(100vh - 56px);overflow:auto;overscroll-behavior:contain;box-shadow:0 2px 6px rgba(20,20,21,.06),0 10px 28px rgba(20,20,21,.10)}
.nl-popup .nl-x{position:absolute;top:8px;right:8px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;border-radius:4px;background:transparent;color:var(--nl-ink);cursor:pointer}
.nl-popup .nl-x svg{width:20px;height:20px}
.nl-popup .nl-x:hover{background:#F3EFEE}
.nl-popup .nl-eyebrow{padding-right:36px}
.nl-popup .nl-h{font-size:26px;line-height:1.15;padding-right:20px}
.nl-popup.nl-m2 .nl-h,.nl-popup.nl-m3 .nl-h{font-size:24px;line-height:1.12}
.nl-popup .nl-trust{margin-top:8px!important}
.nl-popup .nl-form{margin-top:14px}
.nl-popup.nl-m3 .nl-arrow{display:block}
.nl-popup.nl-m3 .nl-row .nl-btn{flex:0 1 240px}
.nl-popup .nl-row{justify-content:flex-end}
.nl-hide-wrap{text-align:center;margin-top:14px!important}
.nl-popup .nl-hide{border:0;background:none;padding:2px 0;margin:0;font:400 13px/1.3 var(--nl-sans);color:var(--nl-ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.nl-popup .nl-hide span{font-weight:600}
.nl-popup.nl-is-pending .nl-card{padding-top:20px}

@media (max-width:991px){
	.nl-slot--more{max-width:1200px;margin:0 auto;padding:0 16px}
	.nl-mini .nl-card{padding:20px 20px 20px}
	.nl-mini .nl-h{font-size:22px}
	.nl-mini .nl-body{font-size:15px}
	.nl-mini .nl-label{font-size:14px}
	/* 16 px in fields stops iOS zooming the page on focus; 44 px+ touch targets */
	.nl-mini .nl-input{font-size:16px}
	.nl-mini .nl-input,.nl-mini .nl-btn{min-height:44px;height:44px}
}
@media (max-width:767px){
	.nl-signup .nl-help a,.nl-popup .nl-help a{display:inline;width:auto}
	.nl-dot{display:inline}
	.nl-signup .nl-input,.nl-popup .nl-input{font-size:16px;height:44px}
	.nl-signup .nl-btn,.nl-popup .nl-btn{min-height:44px}
	.nl-banner{margin:32px 0 36px}
	.nl-banner .nl-card{grid-template-columns:1fr;gap:18px;padding:20px 20px 20px}
	.nl-banner .nl-h{font-size:24px;line-height:1.15}
	.nl-banner .nl-body{font-size:15px}
	.nl-banner .nl-trust{font-size:13px;margin-top:8px!important}
	.nl-banner .nl-btn{font-size:17px}
	.nl-banner .nl-col--action{border-left:0;border-top:1px solid transparent}
	.nl-banner.nl-is-pending .nl-col--action{border-left:0;border-top:1px solid var(--nl-line);padding:18px 0 0}
	.nl-banner .nl-done-h{font-size:22px}
	/* centred in the visible viewport; --nl-vvh and --nl-vvt follow the on-screen keyboard (signup.js) */
	.nl-popup{left:0;right:0;top:var(--nl-vvt,0px);bottom:auto;width:auto;max-width:none;height:var(--nl-vvh,100vh);display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:none}
	.nl-popup .nl-card{pointer-events:auto;width:100%;max-width:400px;max-height:100%;padding:20px 20px 18px}
	.nl-popup .nl-h,.nl-popup.nl-m2 .nl-h,.nl-popup.nl-m3 .nl-h{font-size:22px;line-height:1.18;margin-bottom:8px;padding-right:24px}
	.nl-popup .nl-trust{font-weight:400}
	.nl-popup .nl-form{margin-top:14px}
	.nl-popup .nl-btn{font-size:17px}
	.nl-popup.nl-m3 .nl-arrow{width:52px;height:24px}
	.nl-popup .nl-hide{color:var(--nl-accent)}
	.nl-popup .nl-hide span{font-weight:400}
	.nl-done-h,.nl-mini .nl-done-h{font-size:22px}
	.nl-tada,.nl-mini .nl-tada{font-size:22px}
	.nl-env{animation-name:nl-appear,nl-fly-sm}
	@keyframes nl-fly-sm{0%{opacity:1;transform:none}25%{opacity:1;transform:translateY(4px)}80%{opacity:0}100%{opacity:0;transform:translate(40px,-36px) rotate(-8deg) scale(.8)}}
	.nl-banner .nl-env{width:96px;height:74px;margin:-37px 0 0 -48px;animation-name:nl-appear,nl-fly-lg}
}
/* "You're still subscribed" note after Keep Me Subscribed on the unsubscribe page (Angelina 2590) */
.nl-kept{position:fixed;left:50%;bottom:24px;z-index:100000;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 32px);padding:12px 18px;background:#fff;color:#141415;border:1px solid #E5E0DE;border-left:4px solid #8B1538;border-radius:6px;box-shadow:0 6px 20px rgba(20,20,21,.14);font:600 15px/1.35 "Inter","Inter Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;animation:nl-kept-in .35s ease-out both;transition:opacity .4s ease,transform .4s ease}
.nl-kept span{color:#8B1538;font-size:18px}
.nl-kept.is-out{opacity:0;transform:translate(-50%,8px);pointer-events:none}
@keyframes nl-kept-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
	.nl-kept{animation:none;transition:none}
	.nl-signup *,.nl-popup *{animation:none!important;transition:none!important}
	.nl-popup.nl-enter .nl-card{animation:nl-fade-in .3s ease-out both!important}
}
