/* SciNCERT site tools: Translate + Share dock */
#sct{font-family:'Poppins',Arial,sans-serif;color:#fff}
#sct *{box-sizing:border-box}
@keyframes sctPop{from{opacity:0;transform:translateY(30px) scale(.6)}to{opacity:1;transform:none}}
@keyframes sctSlide{from{opacity:0;transform:translateX(-46px) scale(.4) rotate(-20deg)}to{opacity:1;transform:none}}
@keyframes sctPing{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.9);opacity:0}}
@keyframes sctSpinIn{to{transform:rotate(360deg)}}

/* dock */
#sct .sct-dock{position:fixed;left:16px;bottom:18px;z-index:9990;display:flex;align-items:flex-end;gap:10px}
#sct button.sct-tr{display:inline-flex!important;align-items:center;gap:9px;height:46px!important;padding:0 18px 0 8px!important;border:0!important;border-radius:999px!important;background:#050505!important;color:#fff!important;font:600 14px/1 'Poppins',Arial,sans-serif!important;letter-spacing:0!important;text-transform:none!important;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.35)!important;animation:sctPop .7s cubic-bezier(.2,.9,.3,1.35) .5s both;transition:transform .25s,background .25s,color .25s,box-shadow .25s;max-width:60vw;width:auto!important}
#sct button.sct-tr .gl{width:32px;height:32px;border-radius:50%;background:#ff7722;color:#050505;display:grid;place-items:center;flex:0 0 32px;transition:transform .7s cubic-bezier(.3,1.4,.4,1),background .25s,color .25s}
#sct button.sct-tr .gl svg{width:18px;height:18px}
#sct button.sct-tr .tx{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sct button.sct-tr:hover,#sct button.sct-tr:focus-visible{background:#ff7722!important;color:#050505!important;transform:translateY(-3px);box-shadow:0 12px 28px rgba(255,119,34,.5)!important}
#sct button.sct-tr:hover .gl,#sct button.sct-tr:focus-visible .gl{transform:rotate(360deg) scale(1.08);background:#050505;color:#fff}
#sct.sct-on button.sct-tr{box-shadow:0 0 0 2px #ff7722,0 8px 24px rgba(0,0,0,.35)!important}

/* share icons */
#sct .sct-ic{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:0!important;padding:0!important;cursor:pointer;color:#fff!important;text-decoration:none!important;box-shadow:0 6px 16px rgba(0,0,0,.28)!important;transition:transform .3s cubic-bezier(.3,1.5,.5,1),box-shadow .3s;background:#555}
#sct .sct-ic svg{width:22px;height:22px;display:block;transition:transform .35s}
#sct .sct-ic::before{content:'';position:absolute;inset:0;border-radius:50%;border:2px solid currentColor;opacity:0;pointer-events:none}
#sct .sct-ic::after{content:attr(data-l);position:absolute;left:54px;top:50%;margin-top:-14px;white-space:nowrap;background:#050505;color:#fff;font:600 12px/1 'Poppins',Arial,sans-serif;padding:8px 11px;border-radius:8px;opacity:0;transform:translateX(-8px);pointer-events:none;transition:opacity .25s,transform .25s}
#sct .sct-ic:hover,#sct .sct-ic:focus-visible{transform:scale(1.2) rotate(-8deg);box-shadow:0 0 0 4px #fff,0 12px 26px rgba(0,0,0,.4)!important;z-index:2}
#sct .sct-ic:hover svg,#sct .sct-ic:focus-visible svg{transform:scale(1.12) rotate(8deg)}
#sct .sct-ic:hover::before,#sct .sct-ic:focus-visible::before{animation:sctPing .9s ease-out infinite}
#sct .sct-ic:hover::after,#sct .sct-ic:focus-visible::after{opacity:1;transform:none}
#sct .ic-wa{background:#25d366}#sct .ic-fb{background:#1877f2}#sct .ic-x{background:#050505}#sct .ic-tg{background:#229ed9}#sct .ic-li{background:#0a66c2}#sct .ic-pi{background:#e60023}#sct .ic-cp,#sct .ic-sh{background:#ff7722}
#sct .ic-x::before{color:#fff}
#sct button.sct-fab{display:none!important;width:46px;height:46px;border-radius:50%!important;background:#ff7722!important;border:0!important;padding:0!important;place-items:center;cursor:pointer;box-shadow:0 8px 24px rgba(255,119,34,.45)!important;animation:sctPop .7s cubic-bezier(.2,.9,.3,1.35) .65s both;transition:transform .25s,background .25s}
#sct button.sct-fab svg{width:22px;height:22px;transition:transform .35s}
#sct button.sct-fab:hover{transform:scale(1.12) rotate(-10deg)}
#sct button.sct-fab[aria-expanded=true]{background:#050505!important}
#sct button.sct-fab[aria-expanded=true] circle,#sct button.sct-fab[aria-expanded=true] path{stroke:#fff;fill:#fff}
#sct button.sct-fab[aria-expanded=true] path{stroke-width:1.8}

/* share icons stay hidden until the Share button is hovered (desktop) or tapped (phone) */
#sct .sct-share{position:fixed;z-index:9990;display:flex;pointer-events:none}
#sct .sct-share.open{pointer-events:auto}
#sct .sct-share .sct-ic{opacity:0;transform:translateY(24px) scale(.3);transition:transform .45s cubic-bezier(.2,.9,.3,1.3),opacity .3s,box-shadow .3s;transition-delay:calc(var(--i)*55ms)}
#sct .sct-share.open .sct-ic{opacity:1;transform:none}
#sct .sct-share.open .sct-ic:hover,#sct .sct-share.open .sct-ic:focus-visible{transform:scale(1.2) rotate(-8deg);transition-delay:0s}
#sct button.sct-fab{display:grid!important}
@media (min-width:1100px){
#sct button.sct-fab{position:fixed;left:14px;top:50%;margin-top:-23px;z-index:9991}
#sct .sct-share{left:72px;top:50%;margin-top:-22px;flex-direction:row;gap:10px}
#sct .sct-share .sct-ic{transform:translateX(-26px) scale(.3)}
#sct .sct-share .sct-ic::after{left:50%;top:-40px;margin:0;transform:translate(-50%,6px)}
#sct .sct-share .sct-ic:hover::after,#sct .sct-share .sct-ic:focus-visible::after{transform:translate(-50%,0)}
}
@media (max-width:1099px){
#sct .sct-share{left:16px;bottom:76px;flex-direction:column-reverse;gap:10px}
#sct .sct-share .sct-ic::after{display:none}
}
#sct.sct-has-inline .sct-share{display:none!important}
#sct.sct-has-inline button.sct-fab{display:none!important}

/* toast */
#sct .sct-toast{position:fixed;left:50%;bottom:84px;transform:translate(-50%,16px);background:#050505;color:#fff;font:600 13px/1.3 'Poppins',Arial,sans-serif;padding:10px 16px;border-radius:999px;box-shadow:0 10px 28px rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .25s,transform .25s;z-index:10001;max-width:88vw;text-align:center}
#sct .sct-toast.on{opacity:1;transform:translate(-50%,0)}

/* language panel */
#sct .sct-back{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9998;opacity:0;pointer-events:none;transition:opacity .25s}
#sct .sct-panel{position:fixed;left:16px;bottom:76px;width:min(400px,calc(100vw - 32px));max-height:min(560px,72vh);background:#0b0f19;color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.55);z-index:9999;display:flex;flex-direction:column;overflow:hidden;opacity:0;transform:translateY(24px) scale(.96);pointer-events:none;transition:opacity .25s,transform .35s cubic-bezier(.2,.9,.3,1.2)}
#sct.sct-open .sct-back{opacity:1;pointer-events:auto}
#sct.sct-open .sct-panel{opacity:1;transform:none;pointer-events:auto}
#sct .sct-ph{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 16px 10px}
#sct .sct-ph strong{display:block;font:600 16px/1.3 'Poppins',Arial,sans-serif;color:#fff}
#sct .sct-ph small{display:block;color:#aab;font-size:12px;margin-top:2px}
#sct button.sct-x{width:34px;height:34px;border-radius:50%!important;border:0!important;background:rgba(255,255,255,.1)!important;color:#fff!important;font-size:22px!important;line-height:1!important;padding:0!important;cursor:pointer;transition:background .2s,transform .3s}
#sct button.sct-x:hover{background:#ff7722!important;color:#050505!important;transform:rotate(90deg)}
#sct input.sct-s{margin:0 16px 10px;width:calc(100% - 32px);height:42px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:#141a28;color:#fff;padding:0 14px;font:400 14px 'Poppins',Arial,sans-serif;outline:none}
#sct input.sct-s:focus{border-color:#ff7722;box-shadow:0 0 0 3px rgba(255,119,34,.25)}
#sct .sct-list{overflow:auto;padding:0 16px 8px;display:grid;grid-template-columns:1fr 1fr;gap:8px;-webkit-overflow-scrolling:touch}
#sct button.sct-lg{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;padding:10px 12px!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.14)!important;background:#141a28!important;color:#fff!important;cursor:pointer;font-family:'Poppins',Arial,sans-serif!important;line-height:1.25!important;height:auto!important;width:100%!important;text-transform:none!important;letter-spacing:0!important;transition:transform .2s,border-color .2s,background .2s}
#sct button.sct-lg b{font-weight:600;font-size:15px;color:#fff}
#sct button.sct-lg small{font-size:11px;color:#9aa4b8}
#sct button.sct-lg:hover,#sct button.sct-lg:focus-visible{transform:translateY(-2px);border-color:#ff7722!important;background:#1b2234!important}
#sct button.sct-lg.on{background:#ff7722!important;border-color:#ff7722!important}
#sct button.sct-lg.on b,#sct button.sct-lg.on small{color:#050505}
#sct .sct-orig{grid-column:1/-1}
#sct .sct-note{margin:0;padding:10px 16px 14px;font-size:11.5px;line-height:1.45;color:#8d97ab}

/* inline Translate button inside the article share bar */
.scx-share button.sct-inline{display:inline-flex!important;align-items:center;gap:8px;height:42px!important;padding:0 16px!important;border:0!important;border-radius:999px!important;background:#050505!important;color:#fff!important;font:600 13px/1 Poppins,sans-serif!important;cursor:pointer;margin-left:auto;transition:transform .25s,background .25s,color .25s}
.scx-share button.sct-inline svg{width:18px;height:18px;transition:transform .6s cubic-bezier(.3,1.4,.4,1)}
.scx-share button.sct-inline:hover{background:#ff7722!important;color:#050505!important;transform:translateY(-3px)}
.scx-share button.sct-inline:hover svg{transform:rotate(360deg)}
.scx-share button.sct-inline+.scx-langsw,.scx-share button.sct-inline+.scx-lang{margin-left:0}

/* animation for the existing article share icons (stagger in, playful hover) */
.scx-share a.scx-ic,.scx-share button.scx-ic{position:relative;animation:sctPop .6s cubic-bezier(.2,.9,.3,1.3) both;transition:transform .3s cubic-bezier(.3,1.5,.5,1),box-shadow .3s!important}
.scx-share>.scx-ic:nth-child(2){animation-delay:.15s}.scx-share>.scx-ic:nth-child(3){animation-delay:.22s}.scx-share>.scx-ic:nth-child(4){animation-delay:.29s}.scx-share>.scx-ic:nth-child(5){animation-delay:.36s}.scx-share>.scx-ic:nth-child(6){animation-delay:.43s}.scx-share>.scx-ic:nth-child(7){animation-delay:.5s}.scx-share>.scx-ic:nth-child(8){animation-delay:.57s}.scx-share>.scx-ic:nth-child(9){animation-delay:.64s}
.scx-share a.scx-ic:hover,.scx-share button.scx-ic:hover,.scx-share a.scx-ic:focus-visible,.scx-share button.scx-ic:focus-visible{transform:translateY(-4px) scale(1.18) rotate(-8deg)!important;box-shadow:0 0 0 3px #fff,0 0 0 5px rgba(255,119,34,.7),0 12px 24px rgba(0,0,0,.3)!important}
.scx-share .scx-ic svg{transition:transform .35s}
.scx-share .scx-ic:hover svg{transform:scale(1.12) rotate(8deg)}

/* hide Google's own banner, tooltip and highlight so the page looks normal */
body{top:0!important;position:static!important}
.skiptranslate iframe,iframe.skiptranslate,.goog-te-banner-frame,body>.skiptranslate{display:none!important;visibility:hidden!important;height:0!important}
#goog-gt-tt,.goog-te-balloon-frame,.goog-tooltip,.goog-tooltip:hover{display:none!important}
.goog-text-highlight{background:none!important;box-shadow:none!important}
#sct-gt{position:fixed;left:-9999px;top:0;width:1px;height:1px;overflow:hidden}

@media (max-width:640px){
#sct .sct-panel{left:0;right:0;bottom:0;width:100%;max-height:80vh;border-radius:22px 22px 0 0;border-width:1px 0 0}
#sct .sct-list{grid-template-columns:1fr 1fr}
#sct .sct-dock{left:12px;bottom:14px}
#sct button.sct-tr{height:44px!important;padding:0 14px 0 6px!important;font-size:13px!important}
#sct .sct-share{left:12px;bottom:70px}
.scx-share button.sct-inline{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
#sct *,.scx-share .scx-ic{animation:none!important;transition-duration:.01ms!important}
}
