/* Heroglot chat: Plume in a circle in the corner, and the small chat it opens. Every rule stays inside .hgc. */
.hgc,.hgc *{box-sizing:border-box}
.hgc{position:fixed;right:20px;bottom:20px;z-index:9000;font:500 15px/1.45 'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;color:#123F46;text-align:left}
.hgc button{all:unset;box-sizing:border-box;cursor:pointer}
.hgc p{margin:0}
.hgc img{display:block;max-width:none}
.hgc [hidden]{display:none!important}

/* the circle */
.hgc .hgc-disc{position:relative;display:block;width:100%;aspect-ratio:1;border-radius:50%;background:#F6B82C}
.hgc .hgc-pop{position:absolute;left:0;right:0;bottom:0;height:140%;overflow:hidden;border-radius:0 0 50% 50% / 0 0 35.720% 35.720%}
.hgc .hgc-pop img{position:absolute;width:112%;left:-13%;bottom:-17%;height:auto}
.hgc .hgc-fab{display:block;width:66px;border-radius:50%;box-shadow:0 0 0 4px #fff,0 14px 24px -8px rgba(18,63,70,.55);transition:transform .25s,opacity .25s}
.hgc .hgc-fab:hover{transform:translateY(-3px)}
.hgc.low .hgc-fab{transform:translateY(110px);opacity:0;pointer-events:none}
.hgc .hgc-fab:hover .hgc-pop img{animation:hgc-bob .7s ease}
.hgc .hgc-fab:focus-visible,.hgc .hgc-x:focus-visible,.hgc .hgc-form button:focus-visible,.hgc .hgc-chips button:focus-visible,.hgc .hgc-tip-x:focus-visible{outline:3px solid #F4821F;outline-offset:3px}
@keyframes hgc-bob{40%{transform:translateY(-6%) rotate(-4deg)}}

/* Plume says hello */
.hgc .hgc-tip{position:absolute;right:80px;bottom:10px;display:flex;align-items:center;gap:6px;width:max-content;max-width:min(270px,calc(100vw - 120px));background:#fff;border-radius:18px 18px 4px 18px;padding:10px 8px 10px 14px;box-shadow:0 12px 24px -12px rgba(18,63,70,.5);cursor:pointer;animation:hgc-in .35s cubic-bezier(.3,1.400,.5,1)}
.hgc .hgc-tip b{font-family:'Trexos','Baloo 2',sans-serif;color:#1F747E}
.hgc .hgc-tip-x{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:#5A7A7F}
.hgc .hgc-tip-x svg{width:14px;height:14px}

/* the chat */
.hgc .hgc-panel{position:fixed;right:20px;bottom:100px;width:372px;height:min(560px,calc(100vh - 124px));display:flex;flex-direction:column;background:#FFF6E2;border-radius:24px;overflow:hidden;box-shadow:0 2px 6px rgba(18,63,70,.14),0 30px 50px -20px rgba(18,63,70,.6);animation:hgc-in .28s cubic-bezier(.3,1.250,.5,1);transform-origin:100% 100%}
@keyframes hgc-in{0%{opacity:0;transform:translateY(10px) scale(.94)}}
.hgc .hgc-head{flex:none;display:flex;align-items:center;gap:12px;background:#1F747E;color:#fff;padding:12px 12px 12px 16px}
.hgc .hgc-head .hgc-disc{width:44px;flex:none}
.hgc .hgc-head div{flex:1;min-width:0}
.hgc .hgc-head b{display:block;font:700 1.250rem/1.1 'Trexos','Baloo 2',sans-serif;font-size:20px}
.hgc .hgc-head div span{display:block;font-size:13px;opacity:.85}
.hgc .hgc-x{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff}
.hgc .hgc-x:hover{background:rgba(255,255,255,.14)}
.hgc .hgc-x svg{width:20px;height:20px}
.hgc .hgc-log{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px 14px 8px;display:flex;flex-direction:column;gap:8px}
.hgc .hgc-m{max-width:84%;padding:10px 14px;border-radius:18px;overflow-wrap:anywhere}
.hgc .hgc-a{align-self:flex-start;background:#fff;border-bottom-left-radius:6px;box-shadow:0 8px 16px -14px rgba(18,63,70,.6)}
.hgc .hgc-u{align-self:flex-end;background:#1F747E;color:#fff;border-bottom-right-radius:6px}
.hgc .hgc-a a{color:#1F747E;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hgc .hgc-err{background:#FDEBD9}
.hgc .hgc-wait{display:flex;gap:5px;padding:14px 16px}
.hgc .hgc-wait i{width:8px;height:8px;border-radius:50%;background:#1F747E;opacity:.35;animation:hgc-dot 1s infinite}
.hgc .hgc-wait i:nth-child(2){animation-delay:.15s}.hgc .hgc-wait i:nth-child(3){animation-delay:.3s}
@keyframes hgc-dot{30%{opacity:1;transform:translateY(-4px)}60%{opacity:.35;transform:none}}
.hgc .hgc-chips{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 2px}
.hgc .hgc-chips button{background:#fff;border-radius:999px;padding:8px 14px;font-weight:600;font-size:14px;color:#1F747E;box-shadow:inset 0 0 0 1.500px #1F747E;transition:background .15s,color .15s}
.hgc .hgc-chips button:hover{background:#1F747E;color:#fff}
.hgc .hgc-form{flex:none;display:flex;align-items:center;gap:8px;margin:6px 12px 0;background:#fff;border-radius:999px;padding:5px 5px 5px 16px;box-shadow:inset 0 0 0 1.500px #D9CFB4}
.hgc .hgc-form:focus-within{box-shadow:inset 0 0 0 2px #1F747E}
.hgc .hgc-form input{all:unset;box-sizing:border-box;flex:1;min-width:0;font:inherit;font-size:16px;color:#123F46;padding:8px 0}
.hgc .hgc-form input::placeholder{color:#7C8F8E}
.hgc .hgc-form button{flex:none;width:40px;height:40px;border-radius:50%;background:#F6B82C;color:#123F46;display:grid;place-items:center;transition:transform .12s}
.hgc .hgc-form button:active{transform:scale(.92)}
.hgc .hgc-form button svg{width:20px;height:20px}
.hgc.busy .hgc-form button{opacity:.5;pointer-events:none}
.hgc .hgc-note{flex:none;font-size:11.500px;line-height:1.35;opacity:.65;text-align:center;padding:8px 16px 12px}

/* phones: the chat is a sheet from the bottom, the circle steps aside while it is open */
@media (max-width:560px){
  .hgc{right:14px;bottom:14px}
  .hgc .hgc-fab{width:58px}
  .hgc .hgc-tip{right:70px;bottom:6px}
  .hgc .hgc-panel{right:0;left:0;bottom:0;width:auto;height:min(82svh,640px);border-radius:24px 24px 0 0;transform-origin:50% 100%}
  .hgc.open .hgc-fab{display:none}
  .hgc .hgc-note{padding-bottom:max(12px,env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){.hgc-panel,.hgc-tip,.hgc-wait i,.hgc-fab:hover .hgc-pop img{animation:none}.hgc-fab{transition:none}}
@media print{.hgc{display:none}}
