/* Landing assistant widget: same look as the school bots (extracted from am site.css) */
.rc-panel{visibility:hidden;}
.rc-widget.rc-open .rc-panel{visibility:visible;}
@media (max-width:480px){
  .rc-panel{inset-inline-end:0;width:calc(100vw - 44px);}
}
/* ---- chatbot widget (moved from includes/chatbot_widget.php, site audit 2026-11-16) ---- */
  .rc-widget{position:fixed;inset-block-end:22px;inset-inline-end:22px;z-index:180;font-family:inherit;}
  .rc-bubble{position:relative;width:58px;height:58px;border-radius:50%;background:transparent;border:none;/* drop-shadow, not box-shadow: the button is transparent now, so a
     box-shadow would draw a circular shadow with nothing casting it.
     drop-shadow follows the logo artwork instead. */
    filter:drop-shadow(0 8px 18px rgba(0,0,0,.55));cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;animation:rc-bob 3.2s ease-in-out infinite;transition:transform .2s ease,box-shadow .2s ease;}
  .rc-bubble:hover{box-shadow:0 10px 28px -6px rgba(0,0,0,.6);}
  /* Fill more of the button now there is no white plate to sit on, and
     drop the border-radius -- it was clipping a logo that is already the
     right shape. */
  .rc-bubble img{width:100%;height:100%;object-fit:contain;}
  .rc-widget.rc-open .rc-bubble{animation:none;transform:scale(0);opacity:0;pointer-events:none;position:absolute;}
  @keyframes rc-bob{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}
  /* Was hover-only (opacity:0, shown on :hover) -- meaning it never
     appeared at all on a touchscreen, since there is no hover state on a
     phone. Visitors reported the icon "just looks like a UI element for
     show" as a direct result. Now permanently visible on both desktop and
     mobile; it disappears when the panel opens because it's a child of
     .rc-bubble, which .rc-widget.rc-open already hides (see below) -- no
     extra rule needed for that. */
  .rc-tooltip{position:absolute;inset-block-start:50%;inset-inline-end:calc(100% + 12px);transform:translateY(-50%);background:#181d20;color:#fff;font-size:12.5px;font-weight:600;padding:7px 12px;border-radius:8px;white-space:nowrap;opacity:1;pointer-events:none;box-shadow:0 6px 16px -4px rgba(0,0,0,.4);}
  .rc-panel{position:absolute;inset-block-end:0;inset-inline-end:0;width:340px;max-width:calc(100vw - 40px);height:460px;max-height:calc(100vh - 100px);background:#14181b;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 20px 60px -12px rgba(0,0,0,.7);display:flex;flex-direction:column;overflow:hidden;transform:translateY(16px) scale(.97);opacity:0;pointer-events:none;transition:transform .25s ease,opacity .25s ease;}
  .rc-widget.rc-open .rc-panel{transform:translateY(0) scale(1);opacity:1;pointer-events:auto;}
  .rc-panel-header{display:flex;align-items:center;gap:10px;padding:14px 16px;background:rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.08);flex:0 0 auto;}
  .rc-panel-avatar{width:30px;height:30px;object-fit:contain;}
  .rc-panel-title{flex:1;color:#fff;font-weight:700;font-size:14px;}
  .rc-close{background:none;border:none;color:rgba(255,255,255,.81);cursor:pointer;padding:4px;display:flex;}
  .rc-close:hover{color:#fff;}
  .rc-close svg{width:18px;height:18px;}
  .rc-messages{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px;}
  .rc-msg{max-width:82%;padding:9px 13px;border-radius:14px;font-size:13.5px;line-height:1.5;}
  .rc-msg-bot{align-self:flex-start;background:rgba(255,255,255,.08);color:rgba(255,255,255,.92);border-end-start-radius:4px;}
  .rc-msg-user{align-self:flex-end;background:var(--btn,#1a7ac7);color:#fff;border-end-end-radius:4px;}
  .rc-typing{padding:0 16px 8px;display:flex;gap:4px;}
  /* The HTML hidden attribute sets display:none via the UA stylesheet,
     but the author rule above outranks it -- so the typing dots stayed
     visible permanently no matter what the JS did. This restores it. */
  .rc-typing[hidden]{display:none;}
  .rc-typing span{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5);animation:rc-typing-bounce 1.2s ease-in-out infinite;}
  .rc-typing span:nth-child(2){animation-delay:.15s;}
  .rc-typing span:nth-child(3){animation-delay:.3s;}
  @keyframes rc-typing-bounce{0%,60%,100%{transform:translateY(0);opacity:.5;}30%{transform:translateY(-4px);opacity:1;}}
  .rc-input-row{display:flex;gap:8px;padding:12px;border-top:1px solid rgba(255,255,255,.08);flex:0 0 auto;}
  .rc-input-row input{flex:1;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:10px;padding:9px 12px;color:#fff;font-size:13.5px;font-family:inherit;}
  .rc-input-row input::placeholder{color:rgba(255,255,255,.4);}
  .rc-input-row input:focus{outline:none;border-color:var(--highlight,#4bae50);}
  .rc-input-row button{width:38px;height:38px;flex:0 0 auto;border-radius:10px;background:var(--btn,#1a7ac7);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;}
  .rc-input-row button svg{width:17px;height:17px;}
  .rc-input-row button:disabled{opacity:.5;cursor:not-allowed;}
  @media (max-width:480px){.rc-panel{width:calc(100vw - 32px);inset-inline-end:-6px;}}
/* ---- v83 (2026-11-21): Radhwa bot V2 -- a clear glass capsule, frosted in its lower half, with a blue sprite that has pill eyes.
   V1 (the logo bubble) is untouched; V2 is chosen with the chatbot_version setting. ---- */
.rc-bubble.rc-v2{width:62px;height:86px;filter:drop-shadow(0 12px 20px rgba(26,122,240,.45));}
.cs{position:relative;display:block;width:100%;height:100%;transform:rotate(var(--lean,0deg));}
.cs-cap{position:absolute;inset:0;border-radius:31px;overflow:hidden;border:1.5px solid rgba(255,255,255,.62);
  background:radial-gradient(120% 70% at 28% 8%,rgba(255,255,255,.34),transparent 55%),linear-gradient(180deg,rgba(160,215,255,.22),rgba(26,122,240,.16));
  box-shadow:inset 0 0 14px rgba(255,255,255,.28),inset 0 -12px 20px rgba(26,122,240,.38);}
.cs-r1{position:absolute;left:9px;top:8px;width:9px;height:30px;border-radius:9px;background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(255,255,255,.1));filter:blur(.6px);transform:rotate(8deg);}
.cs-r2{position:absolute;right:9px;top:18px;width:6px;height:15px;border-radius:6px;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0));filter:blur(.6px);}
.cs-sprite{position:absolute;left:50%;top:34%;width:38px;height:38px;margin-left:-19px;border-radius:50% 50% 46% 46%;
  background:radial-gradient(circle at 38% 26%,#8cc4ff 0,#2f8cf5 42%,#1a7af0 78%);box-shadow:0 0 14px rgba(26,122,240,.75);
  transform:translate(calc(var(--gx,0px) * .45),calc(var(--gy,0px) * .45));}
.cs-crown{position:absolute;left:9px;top:4px;width:18px;height:9px;border-radius:50%;background:radial-gradient(ellipse,rgba(255,255,255,.65),rgba(255,255,255,0) 70%);}
.cs-eyes{position:absolute;left:50%;top:41%;display:flex;gap:7px;transform:translate(-50%,0) translate(var(--gx,0px),var(--gy,0px));}
.cs-eye{display:block;width:7px;height:13px;border-radius:7px;background:linear-gradient(180deg,#fff,#cfe6ff);box-shadow:0 1px 2px rgba(0,0,50,.55);transform-origin:center;transition:transform .1s ease;}
.cs.blink .cs-eye{transform:scaleY(.1);}
.cs-frost{position:absolute;left:0;right:0;bottom:0;height:46%;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.26));}
.cs-seam{position:absolute;left:-5%;right:-5%;top:53%;height:12px;border-radius:50%;border:1.5px solid rgba(255,255,255,.6);transform:rotate(-7deg);}
.cs-mini{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:30px;height:30px;border-radius:50%;flex:0 0 30px;
  background:radial-gradient(circle at 38% 26%,#8cc4ff 0,#2f8cf5 45%,#1a7af0 80%);box-shadow:0 0 8px rgba(26,122,240,.6);}
.cs-mini i{display:block;width:4px;height:8px;border-radius:4px;background:#fff;}
.rc-ver2 .rc-tooltip{inset-inline-end:calc(100% + 10px);}
@media (prefers-reduced-motion:reduce){.rc-bubble.rc-v2{animation:none;}}

/* v84: the homepage "Ask the bot" card shows the same capsule sprite when bot V2 is on (static; it only blinks). */
.askbot-logo.askbot-v2{display:flex;align-items:center;justify-content:center;}
.askbot-logo.askbot-v2 .cs{position:relative;width:62px;height:86px;flex:0 0 auto;transform:scale(1.08);filter:drop-shadow(0 10px 18px rgba(26,122,240,.45));}
.cs-static .cs-eye{animation:csBlink 5.5s ease-in-out infinite;}
@keyframes csBlink{0%,92%,100%{transform:scaleY(1);}95%{transform:scaleY(.1);}}
@media (max-width:640px){.askbot-logo.askbot-v2 .cs{transform:scale(.95);}}
@media (prefers-reduced-motion:reduce){.cs-static .cs-eye{animation:none;}}

/* v85 (2026-11-21): the bot launcher is about 20% smaller (62x86 -> 50x70). The sprite keeps its design size and is scaled, so the proportions stay exact. */
.rc-bubble.rc-v2{width:50px;height:70px;}
.rc-bubble.rc-v2 .cs{position:absolute;left:50%;top:50%;width:62px;height:86px;margin:-43px 0 0 -31px;transform:rotate(var(--lean,0deg)) scale(.8);}
.askbot-logo.askbot-v2 .cs{transform:scale(.9);}
@media (max-width:640px){.askbot-logo.askbot-v2 .cs{transform:scale(.8);}}
