/* Copernicus: Trade Guide Library promo (launch bar + scroll popups). Review drafts only. */
:root{--cicp-ink:#191818;--cicp-ink2:#55514C;--cicp-red:#E5391C;--cicp-red-deep:#9E2221;--cicp-bg:#EBE8E9;--cicp-card:#F9F7F8;--cicp-line:rgba(25,24,24,.12);--cicp-ease:cubic-bezier(.16,1,.3,1);--cicp-display:'Overused Grotesk',Inter,system-ui,sans-serif;--cicp-sans:Inter,system-ui,sans-serif;--cicp-bar-h:40px}

/* ---------- launch bar ----------
   The bar and the site header move as ONE unit: the header keeps its own top/transform
   logic (pinning, hide on scroll down, show on scroll up); we only add a margin for the
   bar, and when the header hides (.is-hidden) the bar slides up with it. Close = normal header. */
html.cicp-has-bar body{padding-top:var(--cicp-bar-h);transition:padding-top .45s var(--cicp-ease)}
html.cicp-has-bar .header-wrapper{margin-top:calc(var(--wp-admin--admin-bar--height,0px) + var(--cicp-bar-h));transition:transform .45s cubic-bezier(.22,1,.36,1),margin-top .45s cubic-bezier(.22,1,.36,1)}
html.cicp-has-bar .header-wrapper.is-hidden{transform:translateY(calc(-100% - var(--cicp-bar-h) - var(--wp-admin--admin-bar--height,0px)))}
html.cicp-has-bar .header-wrapper.menu-open,html.cicp-has-bar .header-wrapper.mega-open{transform:none!important}
html.cicp-bar-closing body{padding-top:0}
html.cicp-bar-closing .header-wrapper{margin-top:0}
.cicp-bar{position:fixed;left:0;right:0;top:var(--wp-admin--admin-bar--height,0px);height:var(--cicp-bar-h);z-index:10000;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 64px;box-sizing:border-box;font:400 14px/1.2 var(--cicp-sans);color:#EEECEC;background:var(--cicp-ink);overflow:hidden;transform:translateY(-100%);transition:transform .45s cubic-bezier(.22,1,.36,1)}
.cicp-bar.is-in{transform:none}
html.cicp-hdr-hidden .cicp-bar.is-in{transform:translateY(calc(-100% - var(--wp-admin--admin-bar--height,0px)))}
.cicp-bar a{color:inherit}
.cicp-msg{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.cicp-msg b{font-weight:500;color:#fff}
.cicp-short{display:none}
.cicp-sep{opacity:.45;margin:0 8px}
.cicp-x{position:absolute;right:14px;top:50%;width:32px;height:32px;margin-top:-16px;border:0;border-radius:50%;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .2s linear}
.cicp-x:focus-visible,.cicp-link:focus-visible,.cicp-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* link with an arrow that nudges every few seconds */
.cicp-link{flex:none;display:inline-flex;align-items:center;gap:6px;color:#fff!important;text-decoration:none;font-weight:500}
.cicp-link span{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.45);transition:text-decoration-color .2s linear}
.cicp-arr{display:inline-block;animation:cicp-nudge 4s var(--cicp-ease) 1.6s infinite}
@keyframes cicp-nudge{0%,78%,100%{transform:none}86%{transform:translateX(4px)}92%{transform:translateX(0)}96%{transform:translateX(2px)}}

/* turning earth: 🌍 → 🌎 → 🌏, then a rest */
.cicp-earth{flex:none;position:relative;width:20px;height:20px;font-size:16px;line-height:20px;text-align:center;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.cicp-earth i{position:absolute;inset:0;font-style:normal;opacity:0}
.cicp-earth i:nth-child(1){animation:cicp-e1 6s steps(1,end) infinite}
.cicp-earth i:nth-child(2){animation:cicp-e2 6s steps(1,end) infinite}
.cicp-earth i:nth-child(3){animation:cicp-e3 6s steps(1,end) infinite}
@keyframes cicp-e1{0%{opacity:1}70%{opacity:0}90%{opacity:1}}
@keyframes cicp-e2{0%{opacity:0}70%{opacity:1}80%{opacity:0}}
@keyframes cicp-e3{0%{opacity:0}80%{opacity:1}90%{opacity:0}}

/* v1: quiet ink bar, turning earth + nudging arrow */

/* v2: brand red, "New" tag with pulse, shimmer across the key phrase */
.cicp-bar--v2{background:var(--cicp-red-deep);color:#fff}
.cicp-new{flex:none;display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px 0 8px;border-radius:999px;background:rgba(255,255,255,.14);font:500 12px/1 var(--cicp-sans);color:#fff}
.cicp-dot{flex:none;width:6px;height:6px;border-radius:50%;background:#fff;position:relative}
.cicp-dot::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1px solid rgba(255,255,255,.8);animation:cicp-pulse 2.4s var(--cicp-ease) infinite}
.cicp-shine{background-image:linear-gradient(90deg,#fff 0%,#fff 35%,#FFD7A8 45%,#FF9A6B 50%,#FFD7A8 55%,#fff 65%,#fff 100%);background-size:300% 100%;background-position:100% 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:cicp-shine 6s linear 1s infinite}
@keyframes cicp-shine{0%{background-position:100% 0}35%,100%{background-position:0 0}}
.cicp-btn{flex:none;display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 13px 0 14px;border-radius:999px;background:#fff;color:var(--cicp-ink)!important;font:400 13px/1 var(--cicp-display);text-decoration:none;transition:background .2s linear}
@keyframes cicp-pulse{0%{transform:scale(.6);opacity:.9}70%,100%{transform:scale(1.9);opacity:0}}

/* v3: country ticker, "Expanding into ___?" (old name fully leaves before the next lands) */
.cicp-q{display:inline-flex;align-items:center;white-space:nowrap}
.cicp-rot{position:relative;display:inline-block;height:var(--cicp-bar-h);vertical-align:top;overflow:hidden;transition:width .36s var(--cicp-ease);margin-left:.28em}
.cicp-rot-item{position:absolute;left:0;top:0;height:100%;display:flex;align-items:center;white-space:nowrap;font-weight:500;color:#fff;transform:translateY(100%);opacity:0;transition:transform .36s var(--cicp-ease),opacity .2s linear}
.cicp-rot-item.is-in{transform:none;opacity:1}
.cicp-rot-item.is-out{transform:translateY(-100%);opacity:0}

@media (max-width:760px){
  .cicp-bar{padding:0 46px 0 14px;gap:9px;justify-content:flex-start;font-size:13px}
  .cicp-long{display:none}.cicp-short{display:inline}
  .cicp-btn{height:26px;padding:0 10px 0 11px;font-size:12px}
  .cicp-link{margin-left:auto}
  .cicp-x{right:6px}
}

/* ---------- shared popup bits (compact: ~20% larger than the Kinrise viewing card, 240x174) ---------- */
.cicp-pop{position:fixed;z-index:9990;box-sizing:border-box;overflow:hidden;font:400 13.5px/1.4 var(--cicp-sans);color:var(--cicp-ink);opacity:0;pointer-events:none;transition:opacity .3s linear,background-color .35s linear,color .3s linear,transform .5s var(--cicp-ease),width .55s var(--cicp-ease),height .55s var(--cicp-ease),border-radius .55s var(--cicp-ease),right .55s var(--cicp-ease),margin-top .55s var(--cicp-ease)}
.cicp-pop.is-shown{opacity:1;pointer-events:auto}
.cicp-pop h3{font:400 18px/1.15 var(--cicp-display);letter-spacing:-.01em;margin:0;text-wrap:balance}
.cicp-pop p{margin:0}
.cicp-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--cicp-red-deep)}
.cicp-eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--cicp-red);display:inline-block}
.cicp-b{display:flex;align-items:center;justify-content:center;height:42px;padding:0 16px;border-radius:999px;font:400 15px/1 var(--cicp-display);text-decoration:none!important;transition:background .16s var(--cicp-ease),border-color .16s var(--cicp-ease),color .16s var(--cicp-ease)}
.cicp-b--dark{background:var(--cicp-ink);color:#fff!important}
.cicp-b--light{background:#4A4747;color:#F4F2F0!important}
.cicp-close{position:absolute;top:8px;right:8px;z-index:5;width:28px;height:28px;border-radius:50%;border:0;background:transparent;color:var(--cicp-ink2);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .16s linear,color .16s linear}
.cicp-close svg{width:11px;height:11px}
.cicp-pop :focus-visible{outline:2px solid currentColor;outline-offset:2px}
.cicp-fine{font-size:12px;color:var(--cicp-ink2)}
.cicp-fade{transition:opacity .26s linear}
.cicp-card{position:absolute;left:0;top:0;width:288px;opacity:0;pointer-events:none;box-sizing:border-box}
.cicp-pop.is-open .cicp-card{opacity:1;pointer-events:auto;transition-delay:.24s}
.cicp-row{display:flex;align-items:center;gap:12px}
.cicp-orb{position:relative;flex:none;border-radius:50%;overflow:hidden;background:#E9E7E8}

/* globe (same engine + arcs as the library sign-in) */
.cicp-g{position:absolute;pointer-events:none}
.cicp-g canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.cicp-g-over{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.cicp-g-over .arc{fill:none;stroke:var(--cicp-red);stroke-width:1;stroke-dasharray:2 3;opacity:.55}
.cicp-g-over .ping{fill:var(--cicp-red)}
.cicp-g-over .ring{fill:none;stroke:var(--cicp-red);stroke-width:1}
.cicp-g-tags{position:absolute;inset:0}
.cicp-tag{position:absolute;left:0;top:0;opacity:0;transition:opacity .4s linear}
.cicp-tag.is-on{opacity:1}
.cicp-tag>div{position:absolute;left:6px;bottom:4px;white-space:nowrap;background:#fff;border:1px solid rgba(25,24,24,.1);border-radius:6px;padding:3px 6px;font:400 10px/1.2 var(--cicp-sans);color:var(--cicp-ink)}
.cicp-tag b{display:block;font-weight:500}
.cicp-tag span{color:var(--cicp-ink2)}
.cicp-tag.hub>div{background:var(--cicp-ink);color:#fff;border-color:var(--cicp-ink)}
.cicp-tag.hub span{color:rgba(255,255,255,.7)}

/* ---------- popup v1: pill morphs into a dark card (288 x 212) ---------- */
.cicp-pop--v1,.cicp-pop--v2{right:18px;bottom:24px;width:260px;height:52px;border-radius:26px;background:#383838;color:#F4F2F0;transform:translateY(12px)}
.cicp-pop--v1.is-shown,.cicp-pop--v2.is-shown{transform:none}
.cicp-pop--v1.is-open{width:288px;height:212px;border-radius:8px}
.cicp-pill{position:absolute;inset:0;display:flex;align-items:center;gap:10px;padding:0 52px 0 8px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:opacity .2s linear}
.cicp-pill-g{position:relative;flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;background:#E9E7E8}
.cicp-pill-g .cicp-g{left:-6px;top:-6px}
.cicp-pill b{display:block;font:400 15px/1.1 var(--cicp-display);white-space:nowrap}
.cicp-pill small{white-space:nowrap}
.cicp-pill > span:last-child{min-width:0;overflow:hidden}
.cicp-pill b,.cicp-pill small{overflow:hidden;text-overflow:ellipsis}
.cicp-pill::after{content:"";position:absolute;right:46px;top:14px;bottom:14px;width:1px;background:rgba(244,242,240,.18)}
.cicp-pill small{display:block;font-size:11.5px;color:rgba(244,242,240,.66)}
.cicp-pill-x{position:absolute;right:12px;top:12px;box-shadow:none;width:28px;height:28px;border-radius:50%;border:0;background:transparent;color:rgba(244,242,240,.7);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.cicp-pill-x svg{width:11px;height:11px}
.cicp-pop.is-open .cicp-pill,.cicp-pop.is-open .cicp-pill-x{opacity:0;pointer-events:none}
.cicp-pop--v1 .cicp-card{height:212px;padding:16px;display:flex;flex-direction:column;gap:10px}
.cicp-pop--v1 .cicp-orb{width:76px;height:76px}
.cicp-pop--v1 .cicp-orb .cicp-g{left:-12px;top:-12px}
.cicp-pop--v1 .cicp-eyebrow{color:#F0A28F}
.cicp-pop--v1 .cicp-fine{color:rgba(244,242,240,.62)}
.cicp-pop--v1 .cicp-close{color:rgba(244,242,240,.7)}
.cicp-pop--v1 .cicp-b{margin-top:auto}

/* ---------- popup v2: same pill as v1, opens into a light panel with the globe rising from the corner (288 x 236) ---------- */
.cicp-pop--v2{background:#383838;color:#F4F2F0;transform:translateY(12px)}
.cicp-pop--v2.is-open{width:288px;height:236px;border-radius:8px;background:var(--cicp-card);color:var(--cicp-ink);border:1px solid var(--cicp-line)}
.cicp-pop--v2 .cicp-card{height:236px;padding:16px;display:flex;flex-direction:column;gap:8px}
.cicp-pop--v2 .cicp-card .cicp-g{left:146px;top:70px}
.cicp-pop--v2 .cicp-txt{position:relative;z-index:2;max-width:150px;display:flex;flex-direction:column;gap:6px}
.cicp-pop--v2 .cicp-b{position:relative;z-index:2;margin-top:auto}

/* ---------- popup v3: globe bubble grows into a card (288 x 228) ---------- */
.cicp-pop--v3{right:18px;bottom:24px;width:56px;height:56px;border-radius:28px;background:#E9E7E8;border:1px solid var(--cicp-line);transform:scale(.6)}
.cicp-pop--v3.is-shown{transform:none}
.cicp-pop--v3.is-open{width:288px;height:212px;border-radius:8px;background:var(--cicp-card)}
.cicp-pop--v3 .cicp-bubble{position:absolute;inset:0;border:0;background:transparent;cursor:pointer;padding:0;border-radius:inherit}
.cicp-pop--v3 > .cicp-g{left:50%;top:27px;transform:translate(-50%,-50%) scale(.38);transform-origin:50% 50%;transition:transform .6s var(--cicp-ease),left .6s var(--cicp-ease),top .6s var(--cicp-ease)}
.cicp-pop--v3.is-open > .cicp-g{left:214px;top:46px;transform:translate(-50%,-50%) scale(.6)}
.cicp-pop--v3 .cicp-g-over{opacity:0;transition:opacity .3s linear}
.cicp-pop--v3.is-open .cicp-g-over{opacity:1;transition-delay:.4s}
.cicp-pop--v3 .cicp-card{height:212px;padding:16px;display:flex;flex-direction:column;gap:6px}
.cicp-pop--v3 .cicp-txt{max-width:150px;display:flex;flex-direction:column;gap:6px}
.cicp-pop--v3 .cicp-b{margin-top:auto}
.cicp-hint{position:fixed;right:84px;bottom:31px;z-index:9989;height:34px;display:flex;align-items:center;padding:0 14px;border-radius:999px;background:#383838;color:#fff;font:400 13px/1 var(--cicp-display);white-space:nowrap;opacity:0;transform:translateX(10px);transition:opacity .3s linear,transform .5s var(--cicp-ease);pointer-events:none}
.cicp-hint-wrap.is-on .cicp-hint{opacity:1;transform:none}

/* +20% sub-variant (closed and open) */
@media (min-width:768px){.cicp-pop.cicp-lg,.cicp-hint-wrap.cicp-lg{zoom:1.2}}

@media (max-width:600px){
  .cicp-pop--v1,.cicp-pop--v2,.cicp-pop--v3{right:12px;bottom:12px}
  .cicp-hint{display:none}
}

/* reduced motion: no morph travel, no glint, no rotation */
@media (prefers-reduced-motion:reduce){
  .cicp-bar,.cicp-pop,.cicp-pop--v3 .cicp-g,.cicp-rot-item,html.cicp-has-bar .header-wrapper{transition:none!important}
  .cicp-dot::after,.cicp-arr,.cicp-shine,.cicp-earth i{animation:none!important}.cicp-earth i:first-child{opacity:1}.cicp-shine{-webkit-text-fill-color:#fff;color:#fff}
}


/* ---------- states (15 Oct 2026) ----------
   Hello Elementor turns every button pink (#c36) on :hover/:focus and links navy.
   Pin every state; the only hover colour is the site orange #FF620D (the "(9)" in the header). */
.cicp-bar .cicp-x:hover,.cicp-bar .cicp-x:focus,.cicp-bar .cicp-x:active,.cicp-bar .cicp-x:focus-visible{background:transparent;color:inherit}
.cicp-pop .cicp-close:hover,.cicp-pop .cicp-close:focus,.cicp-pop .cicp-close:active,.cicp-pop .cicp-close:focus-visible{background:transparent;color:var(--cicp-ink2)}
.cicp-pop.cicp-pop--v1 .cicp-close:hover,.cicp-pop.cicp-pop--v1 .cicp-close:focus,.cicp-pop.cicp-pop--v1 .cicp-close:active,.cicp-pop.cicp-pop--v1 .cicp-close:focus-visible{background:transparent;color:rgba(244,242,240,.7)}
.cicp-pop .cicp-pill:hover,.cicp-pop .cicp-pill:focus,.cicp-pop .cicp-pill:active,.cicp-pop .cicp-pill:focus-visible{background:transparent;color:inherit}
.cicp-pop .cicp-pill-x:hover,.cicp-pop .cicp-pill-x:focus,.cicp-pop .cicp-pill-x:active,.cicp-pop .cicp-pill-x:focus-visible{background:transparent;color:rgba(244,242,240,.7)}
.cicp-pop .cicp-bubble,.cicp-pop .cicp-bubble:hover,.cicp-pop .cicp-bubble:focus,.cicp-pop .cicp-bubble:active,.cicp-pop .cicp-bubble:focus-visible{background:transparent;color:inherit}
.cicp-bar a:focus,.cicp-bar a:active,.cicp-pop a:focus,.cicp-pop a:active{text-decoration-color:inherit}
.cicp-bar .cicp-link:focus,.cicp-bar .cicp-link:active{color:#fff!important}
.cicp-bar .cicp-btn:focus,.cicp-bar .cicp-btn:active{background:#fff;color:var(--cicp-ink)!important}
.cicp-pop .cicp-b--dark:focus,.cicp-pop .cicp-b--dark:active{background:var(--cicp-ink);color:#fff!important}
.cicp-pop .cicp-b--light:focus,.cicp-pop .cicp-b--light:active{background:#4A4747;color:#F4F2F0!important}

/* orange hover (mouse) + keyboard focus */
.cicp-bar .cicp-x:hover,.cicp-bar .cicp-x:focus-visible,
.cicp-pop .cicp-close:hover,.cicp-pop .cicp-close:focus-visible,
.cicp-pop.cicp-pop--v1 .cicp-close:hover,.cicp-pop.cicp-pop--v1 .cicp-close:focus-visible,
.cicp-pop .cicp-pill-x:hover,.cicp-pop .cicp-pill-x:focus-visible{color:#FF620D}
.cicp-bar .cicp-link:hover,.cicp-bar .cicp-link:focus-visible{color:#FF620D!important}
.cicp-bar .cicp-link:hover span,.cicp-bar .cicp-link:focus-visible span{text-decoration-color:#FF620D}
.cicp-bar .cicp-btn:hover,.cicp-bar .cicp-btn:focus-visible,
.cicp-pop .cicp-b--dark:hover,.cicp-pop .cicp-b--dark:focus-visible,
.cicp-pop .cicp-b--light:hover,.cicp-pop .cicp-b--light:focus-visible{background:#FF620D;color:#fff!important}

/* ---------- no jump between pages (15 Oct 2026) ----------
   The <head> snippet adds html.cicp-has-bar.cicp-bar-instant before first paint, so the header and page
   start 40px down. A dark strip holds the bar's place until the script drops the real bar on top. */
html.cicp-bar-instant body,html.cicp-bar-instant .header-wrapper,html.cicp-bar-instant .cicp-bar{transition:none!important}
html.cicp-has-bar:not(.cicp-bar-ready) body::before{content:"";position:fixed;left:0;right:0;top:var(--wp-admin--admin-bar--height,0px);height:var(--cicp-bar-h);background:var(--cicp-ink);z-index:10000;pointer-events:none}

/* Bar link: underline the words only, never the arrow (the arrow is still part of the link). */
.cicp-bar .cicp-link .cicp-arr,.cicp-bar .cicp-link:hover .cicp-arr,.cicp-bar .cicp-link:focus-visible .cicp-arr{text-decoration:none}
