/* LVEP assistant widget (Powered by Clave). Source: _build/chat/chat.css, copied to assets/ by generate.py.
   Gold #E0A63C on black #0B0C0E. Every piece of text is 16px or larger and weight 400 or more. Never red.
   Mobile-safe by construction (Clave recipe step 4): grid input row with a fixed button track, 16px input
   so iOS never auto-zooms, overflow-wrap:anywhere on bubbles, min-width:0 on the scroll column, and
   env(safe-area-inset-bottom) under the credit so the iPhone home bar never covers it. */
.lvc-launch{
  position:fixed;right:20px;bottom:20px;z-index:1100;
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 20px;border:0;border-radius:999px;cursor:pointer;
  background:#E0A63C;color:#0B0C0E;
  font-family:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;font-weight:600;line-height:1;letter-spacing:.01em;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  transition:transform .18s,background .18s,opacity .18s,visibility .18s;
}
.lvc-launch:hover{background:#F7C468;transform:translateY(-2px)}
.lvc-launch:focus-visible{outline:2px solid #F7C468;outline-offset:3px}
.lvc-launch svg{width:22px;height:22px;fill:currentColor;flex:0 0 auto}
.lvc-launch .lvc-just{display:none}   /* desktop reads "Ask LVEP" */
.lvc-launch.lvc-hidden{opacity:0;visibility:hidden;transform:scale(.9)}

.lvc-panel{
  position:fixed;right:20px;bottom:20px;z-index:1101;
  width:min(400px,calc(100vw - 32px));max-width:100vw;
  height:min(600px,calc(100vh - 96px));
  display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;
  background:#0B0C0E;color:#F4F4F2;
  border:1px solid rgba(224,166,60,.5);border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.65);
  font-family:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:16px;line-height:1.5;
  opacity:0;visibility:hidden;transform:translateY(12px) scale(.98);
  transition:opacity .22s,transform .22s,visibility .22s;
}
.lvc-panel[hidden]{display:none}   /* closed = out of the page entirely (visibility:hidden alone still leaves it for scripts and the accessibility tree) */
.lvc-panel.lvc-open{opacity:1;visibility:visible;transform:none}
.lvc-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;background:#141619;border-bottom:2px solid #E0A63C;
}
.lvc-head strong{display:block;font-size:17px;font-weight:700;color:#F4F4F2;letter-spacing:.02em}
.lvc-head span{display:block;font-size:16px;font-weight:400;color:#C9CED4}
.lvc-close{
  flex:0 0 auto;background:none;border:0;cursor:pointer;
  color:#E0A63C;font-size:28px;font-weight:400;line-height:1;padding:4px 6px;
}
.lvc-close:hover{color:#F7C468}
.lvc-close:focus-visible{outline:2px solid #F7C468;outline-offset:2px}
.lvc-log{
  flex:1 1 auto;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;
  padding:16px;display:flex;flex-direction:column;gap:10px;box-sizing:border-box;
}
.lvc-msg{
  max-width:86%;padding:10px 14px;border-radius:12px;
  font-size:16px;font-weight:400;line-height:1.5;
  white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere;
}
.lvc-msg.lvc-user{align-self:flex-end;background:#E0A63C;color:#0B0C0E;border-bottom-right-radius:3px}
.lvc-msg.lvc-bot{align-self:flex-start;background:#1E2126;color:#F4F4F2;border-bottom-left-radius:3px}
.lvc-msg.lvc-bot strong{color:#F7C468;font-weight:700}
.lvc-msg.lvc-user strong{font-weight:700}
.lvc-msg.lvc-typing{color:#C9CED4;font-style:italic}
.lvc-msg a{color:#F7C468}
.lvc-form{
  display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:8px;
  padding:12px;border-top:1px solid rgba(255,255,255,.14);
  box-sizing:border-box;width:100%;max-width:100%;overflow:hidden;
}
.lvc-form input{
  min-width:0;width:100%;max-width:100%;box-sizing:border-box;
  background:#141619;color:#F4F4F2;border:1px solid rgba(255,255,255,.2);border-radius:8px;
  padding:12px 14px;font:inherit;font-size:16px;font-weight:400;
}
.lvc-form input::placeholder{color:#AEB4BC;opacity:1}
.lvc-form input:focus{outline:0;border-color:#E0A63C}
.lvc-form button{
  width:76px;padding:0;box-sizing:border-box;cursor:pointer;
  background:#E0A63C;color:#0B0C0E;border:0;border-radius:8px;
  font:inherit;font-size:16px;font-weight:700;
  transition:background .18s;
}
.lvc-form button:hover{background:#F7C468}
.lvc-form button:disabled{opacity:.6;cursor:default}
.lvc-form button:focus-visible{outline:2px solid #F7C468;outline-offset:2px}
.lvc-credit{
  display:flex;align-items:center;justify-content:center;gap:7px;
  padding:6px 12px 12px;text-decoration:none;
  font-size:16px;font-weight:400;color:#C9CED4;letter-spacing:.02em;
}
.lvc-credit img{width:18px;height:18px;display:block;border-radius:4px}
.lvc-credit b{font-weight:700;color:#F4F4F2}
.lvc-credit:hover b{color:#F7C468}
/* Phones and tablets (the call bar is on screen up to 1240px): the button docks into the bar's right end,
   icon only, so it floats over nothing (QA 10/28 FAIL 11). Hidden while the phone menu is open, like the bar. */
@media (max-width:1240px){
  /* Rigo 10/30: the bare bubble did not say "you can just ask". It now reads JUST ASK, words first, bubble after, in the bar's own type.
     Width comes from --askw in site.css. */
  .lvc-launch{right:8px;bottom:calc(5px + env(safe-area-inset-bottom,0px));width:var(--askw,140px);height:44px;padding:0 8px;gap:8px;flex-direction:row-reverse;justify-content:center;border-radius:12px;z-index:111;
    font-family:var(--f-mono,'IBM Plex Mono',monospace);font-size:16px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
  .lvc-launch .lvc-long{display:none}
  .lvc-launch .lvc-just{display:inline}
  .lvc-launch svg{width:22px;height:22px}
  body.menu-open .lvc-launch{display:none}
}
@media (min-width:390px) and (max-width:449px){
  .lvc-launch{letter-spacing:0;gap:6px}
}
@media (min-width:420px) and (max-width:449px){
  .lvc-launch{letter-spacing:.05em}
}
@media (max-width:389px){   /* iPhone SE / mini and small Androids: JUST over ASK, one line does not fit at 16px */
  .lvc-launch .lvc-txt{line-height:1.05;text-align:center}
  .lvc-launch .lvc-just{display:block}
}
@media (max-width:760px){
  .lvc-panel{right:0;bottom:0;left:0;width:100%;max-width:100%;height:100dvh;border-radius:0;border:0}
  .lvc-credit{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
}
@media (prefers-reduced-motion:reduce){
  .lvc-launch,.lvc-panel{transition:none}
}
