/* BTW Lodge accessible floating sun assistant */
#btwAskLodgeRoot{--ask-navy:#10263f;--ask-gold:#c5a56b;--ask-white:#fff;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.45;position:relative;z-index:9900}
#btwAskLodgeRoot *{box-sizing:border-box}
.btw-ask-launcher{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:9902;display:flex;align-items:center;gap:8px;background:#10263f;border:2px solid #d6b875;border-radius:999px;padding:3px 13px 3px 3px;color:white;box-shadow:0 7px 26px #071b3180;cursor:pointer;min-height:63px;transition:transform .2s,box-shadow .2s}
.btw-ask-launcher img{width:55px;height:55px;object-fit:contain;border-radius:50%;animation:btwSunGlow 4.8s ease-in-out infinite}
.btw-ask-launcher-text{font-size:13px;font-weight:800;letter-spacing:.01em;white-space:nowrap}
.btw-ask-launcher:hover{transform:translateY(-2px);box-shadow:0 7px 29px #bda46d8c}
.btw-ask-launcher:focus-visible,.btw-ask-close:focus-visible,.btw-ask-form button:focus-visible,.btw-ask-options button:focus-visible,.btw-ask-links a:focus-visible{outline:3px solid #d1a44b;outline-offset:3px}
.btw-ask-open .btw-ask-launcher{display:none}
@keyframes btwSunGlow{0%,85%,100%{filter:drop-shadow(0 0 0px #dbaf59)}91%{filter:drop-shadow(0 0 6px #e8bc72)}}
.btw-ask-panel{position:fixed;z-index:9901;right:max(16px,env(safe-area-inset-right));bottom:max(17px,env(safe-area-inset-bottom));width:min(380px,calc(100vw - 24px));height:min(590px,calc(100dvh - 36px));max-height:calc(100dvh - 34px);display:flex;flex-direction:column;border:1px solid #c5a56b;border-radius:20px;background:#fff;color:#182d42;box-shadow:0 18px 55px #00152866;overflow:hidden}
.btw-ask-panel[hidden]{display:none!important}
.btw-ask-header{background:var(--ask-navy);color:#fff;display:flex;align-items:center;gap:11px;padding:12px 13px;border-bottom:3px solid var(--ask-gold);flex-shrink:0}
.btw-ask-header img{width:46px;height:46px;object-fit:contain;flex:none}
.btw-ask-header div{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.35}
.btw-ask-header strong{font:700 21px/1.1 Georgia,serif;color:#fff}.btw-ask-header span{font-size:11px;color:#e2d5b5;margin-top:4px}
.btw-ask-close{border:1px solid #ffffff66;background:#ffffff19;color:white;width:42px;height:42px;border-radius:12px;font-size:27px;line-height:1;display:grid;place-items:center;flex:none}
.btw-ask-scroll{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:15px 14px;background:#faf9f5;display:flex;flex-direction:column;gap:12px}
.btw-ask-message{font-size:14px;line-height:1.5;border-radius:14px;padding:11px 13px;max-width:94%;white-space:normal;overflow-wrap:anywhere;flex-shrink:0}
.btw-ask-message p{margin:0}.btw-ask-reply{background:#fff;align-self:flex-start;border:1px solid #e6e1d8;box-shadow:0 3px 10px #172c4010}.btw-ask-user{background:#1c3955;color:#fff;align-self:flex-end}
.btw-ask-links{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:10px}.btw-ask-links a{display:inline-block;color:#153d68;text-decoration:underline;font-weight:750;font-size:13px;max-width:100%;padding:3px 0}
.btw-ask-options{padding:10px 12px;display:flex;gap:7px;flex-wrap:wrap;max-height:147px;overflow-y:auto;background:#fff;border-top:1px solid #eee8de;flex-shrink:0}
.btw-ask-options[hidden]{display:none}.btw-ask-options button{font-size:12px;font-weight:700;border-radius:999px;border:1px solid #cdbb96;background:#fcf9f2;color:#1a3249;min-height:34px;padding:6px 10px;cursor:pointer}
.btw-ask-options button:hover{background:#f3e8d0}
.btw-ask-form{padding:10px 11px;display:flex;gap:7px;border-top:1px solid #eee7dc;background:#fff;flex-shrink:0;margin:0}
.btw-ask-form input{flex:1;min-width:0;border:1px solid #d8d4cb;border-radius:10px;padding:10px 11px;min-height:44px;font:400 16px system-ui,sans-serif;color:#152c42;background:#fff}
.btw-ask-form button{flex:none;width:44px;height:44px;border-radius:11px;border:none;background:#a67b37;color:white;font-size:21px;cursor:pointer;display:grid;place-items:center}
.btw-ask-disclaimer{font:400 10px/1.4 system-ui,sans-serif;color:#66717a;padding:5px 12px 9px;text-align:center;background:#fff;flex-shrink:0}
.btw-ask-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:600px){.btw-ask-launcher{right:max(12px,env(safe-area-inset-right));bottom:max(13px,env(safe-area-inset-bottom));width:61px;height:61px;padding:2px;justify-content:center;border-width:2px}.btw-ask-launcher img{width:54px;height:54px}.btw-ask-launcher-text{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.btw-ask-panel{right:8px;left:8px;bottom:max(9px,env(safe-area-inset-bottom));width:auto;height:min(620px,calc(100dvh - 18px));max-height:calc(100dvh - 18px);border-radius:16px}.btw-ask-options{max-height:129px}.btw-ask-header{padding:10px 12px}}
@media(max-height:550px){.btw-ask-panel{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.btw-ask-options{max-height:90px}.btw-ask-header{padding:7px 11px}}
@media(prefers-reduced-motion:reduce){.btw-ask-launcher,.btw-ask-launcher img{animation:none;transition:none}}

/* BTW circular sun ASK launcher v2 */
#btwAskLodgeRoot .btw-ask-launcher{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:82px;height:auto;min-height:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#10263f;}
#btwAskLodgeRoot .btw-ask-launcher img{display:block;width:var(--sun-diameter);height:var(--sun-diameter);aspect-ratio:1/1;object-fit:cover;border:3px solid #d6b875;border-radius:50%;background:#10263f;box-shadow:0 6px 23px rgba(7,27,49,.38);}
#btwAskLodgeRoot .btw-ask-launcher-text{display:block;position:static;left:auto;width:auto;height:auto;overflow:visible;color:#10263f;background:#fffdf8;border:1px solid #d6b875;border-radius:999px;padding:1px 12px;font-size:12px;font-weight:900;letter-spacing:.14em;line-height:1.55;white-space:nowrap;box-shadow:0 3px 10px rgba(7,27,49,.12);}
#btwAskLodgeRoot .btw-ask-launcher:hover{box-shadow:none;transform:translateY(-2px);}
#btwAskLodgeRoot .btw-ask-launcher:hover img{box-shadow:0 7px 25px rgba(189,164,109,.6);}
@media(max-width:600px){#btwAskLodgeRoot .btw-ask-launcher{right:max(10px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:69px;height:auto;min-height:0;padding:0;gap:1px;}#btwAskLodgeRoot .btw-ask-launcher img{width:var(--sun-diameter);height:var(--sun-diameter);border-width:2px;}#btwAskLodgeRoot .btw-ask-launcher-text{font-size:10px;letter-spacing:.12em;padding:0 10px;}}

/* ASK sun responsive glow v3 */
/* The gold aura repeats gently every 3.2 seconds, remaining still for reduced-motion users. */
@keyframes btwSunGlow{0%,18%,63%,100%{filter:drop-shadow(0 0 0 rgba(217,170,82,0))}31%{filter:drop-shadow(0 0 9px rgba(244,194,96,.88))}43%{filter:drop-shadow(0 0 4px rgba(232,184,89,.35))}}
#btwAskLodgeRoot .btw-ask-launcher img{animation:btwSunGlow 3.2s ease-in-out infinite;max-width:100%;flex-shrink:0;}
#btwAskLodgeRoot .btw-ask-launcher{touch-action:manipulation;max-width:calc(100vw - 16px);-webkit-tap-highlight-color:transparent;}
#btwAskLodgeRoot .btw-ask-panel{max-width:calc(100vw - 16px);}
@media(min-width:601px) and (max-width:1024px){#btwAskLodgeRoot .btw-ask-launcher{right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));}}
@media(max-width:380px){#btwAskLodgeRoot .btw-ask-launcher{width:63px;right:max(8px,env(safe-area-inset-right));bottom:max(9px,env(safe-area-inset-bottom));}#btwAskLodgeRoot .btw-ask-launcher img{width:var(--sun-diameter);height:var(--sun-diameter);}#btwAskLodgeRoot .btw-ask-launcher-text{font-size:10px;line-height:1.5;padding:0 9px;}#btwAskLodgeRoot .btw-ask-header strong{font-size:18px;}#btwAskLodgeRoot .btw-ask-header span{font-size:10px;}}
@media(max-height:470px) and (orientation:landscape){#btwAskLodgeRoot .btw-ask-launcher{width:57px;bottom:max(6px,env(safe-area-inset-bottom));right:max(8px,env(safe-area-inset-right));}#btwAskLodgeRoot .btw-ask-launcher img{width:var(--sun-diameter);height:var(--sun-diameter);}#btwAskLodgeRoot .btw-ask-launcher-text{font-size:9px;padding:0 8px;}#btwAskLodgeRoot .btw-ask-panel{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);bottom:max(6px,env(safe-area-inset-bottom));}#btwAskLodgeRoot .btw-ask-scroll{min-height:0;}#btwAskLodgeRoot .btw-ask-options{max-height:75px;}#btwAskLodgeRoot .btw-ask-header{padding:6px 10px;}#btwAskLodgeRoot .btw-ask-header img{width:36px;height:36px;}#btwAskLodgeRoot .btw-ask-disclaimer{padding:3px 9px;font-size:9px;}}
@media(prefers-reduced-motion:reduce){#btwAskLodgeRoot .btw-ask-launcher img{animation:none!important;filter:none!important;}#btwAskLodgeRoot .btw-ask-launcher{transition:none!important;}}

/* BTW Ask sun halo and interaction polish v4. Preserve sun and ASK art. */
#btwAskLodgeRoot .btw-ask-launcher{--sun-diameter:83px;isolation:isolate;}
#btwAskLodgeRoot .btw-ask-launcher::before{content:"";position:absolute;pointer-events:none;z-index:-1;top:0;left:50%;width:var(--sun-diameter);height:var(--sun-diameter);border:2px solid rgba(226,183,93,.7);border-radius:50%;opacity:0;transform:translateX(-50%) scale(.95);animation:btwAskAura 3.2s ease-out infinite;}
@keyframes btwAskAura{0%,10%,56%,100%{opacity:0;transform:translateX(-50%) scale(.95)}22%{opacity:.67;transform:translateX(-50%) scale(1.09)}44%{opacity:0;transform:translateX(-50%) scale(1.33)}}
#btwAskLodgeRoot .btw-ask-launcher img{transition:transform .18s ease,box-shadow .18s ease}
#btwAskLodgeRoot .btw-ask-launcher:hover img,#btwAskLodgeRoot .btw-ask-launcher:focus-visible img{transform:scale(1.055)}
#btwAskLodgeRoot .btw-ask-launcher:active img{transform:scale(.965)}
#btwAskLodgeRoot .btw-ask-reset{flex:none;padding:6px 9px;min-height:36px;border-radius:9px;border:1px solid #ffffff66;background:transparent;color:#fff;font:700 11px/1.3 system-ui,sans-serif;cursor:pointer}
#btwAskLodgeRoot .btw-ask-reset:hover{background:#ffffff1d}
#btwAskLodgeRoot .btw-ask-reset:focus-visible{outline:3px solid #d1a44b;outline-offset:2px}
#btwAskLodgeRoot .btw-ask-typing{display:flex;align-self:flex-start;gap:5px;align-items:center;padding:12px 14px;border-radius:14px;background:white;border:1px solid #e6e1d8}
#btwAskLodgeRoot .btw-ask-typing span:not(.btw-ask-sr){width:7px;height:7px;border-radius:50%;background:#b39357;animation:btwAskDots 1s ease-in-out infinite}
#btwAskLodgeRoot .btw-ask-typing span:nth-child(2){animation-delay:.15s}
#btwAskLodgeRoot .btw-ask-typing span:nth-child(3){animation-delay:.3s}
@keyframes btwAskDots{0%,65%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
#btwAskLodgeRoot .btw-ask-form button:disabled,#btwAskLodgeRoot .btw-ask-options button:disabled{opacity:.6;cursor:wait}
#btwAskLodgeRoot .btw-ask-welcome-toast{position:fixed;z-index:9901;right:max(16px,env(safe-area-inset-right));bottom:max(118px,calc(env(safe-area-inset-bottom) + 108px));max-width:min(290px,calc(100vw - 32px));padding:11px 14px;border:1px solid #c5a56b;border-radius:13px;background:#fffdf8;color:#10263f;box-shadow:0 8px 26px #03152833;font:650 13px/1.45 system-ui,sans-serif;text-align:left;cursor:pointer}
#btwAskLodgeRoot .btw-ask-welcome-toast[hidden]{display:none!important}
@media(max-width:600px){#btwAskLodgeRoot .btw-ask-launcher{--sun-diameter:68px}#btwAskLodgeRoot .btw-ask-welcome-toast{right:max(10px,env(safe-area-inset-right));bottom:max(104px,calc(env(safe-area-inset-bottom) + 96px));max-width:min(250px,calc(100vw - 24px));font-size:12px}#btwAskLodgeRoot .btw-ask-reset{font-size:10px;padding:5px 7px}#btwAskLodgeRoot .btw-ask-header{gap:7px}#btwAskLodgeRoot .btw-ask-header strong{font-size:19px}}
@media(max-width:380px){#btwAskLodgeRoot .btw-ask-launcher{--sun-diameter:61px}#btwAskLodgeRoot .btw-ask-header img{width:38px;height:38px}#btwAskLodgeRoot .btw-ask-reset{max-width:68px;white-space:normal;text-align:center}}
@media(max-height:470px) and (orientation:landscape){#btwAskLodgeRoot .btw-ask-launcher{--sun-diameter:54px}#btwAskLodgeRoot .btw-ask-welcome-toast{bottom:72px;max-width:225px}}
@media(prefers-reduced-motion:reduce){#btwAskLodgeRoot .btw-ask-launcher::before,#btwAskLodgeRoot .btw-ask-typing span{animation:none!important}#btwAskLodgeRoot .btw-ask-launcher img{transition:none!important}}

/* ASK compact viewport accessibility v5 */
#btwAskLodgeRoot .btw-ask-panel{min-height:0;}
#btwAskLodgeRoot .btw-ask-close{touch-action:manipulation;}
#btwAskLodgeRoot .btw-ask-form{min-width:0;}
#btwAskLodgeRoot .btw-ask-form input{min-width:0;}
@media(max-height:350px){#btwAskLodgeRoot .btw-ask-header{padding:5px 9px;}#btwAskLodgeRoot .btw-ask-header img{width:30px;height:30px;}#btwAskLodgeRoot .btw-ask-header strong{font-size:16px;}#btwAskLodgeRoot .btw-ask-options{max-height:56px;}#btwAskLodgeRoot .btw-ask-form{padding:5px 8px;}#btwAskLodgeRoot .btw-ask-disclaimer{font-size:9px;padding:2px 8px;}#btwAskLodgeRoot .btw-ask-scroll{padding:8px;}#btwAskLodgeRoot .btw-ask-message{padding:7px 9px;}}

/* Keep the caption within the launcher on narrow screens. */
#btwAskLodgeRoot .btw-ask-launcher{width:max-content;min-width:var(--sun-diameter)}
#btwAskLodgeRoot .btw-ask-launcher-text{letter-spacing:.02em;padding-inline:8px}

/* Authorized Wisdom citations — distinct readable links on narrow screens. */
#btwAskLodgeRoot .btw-ask-links a.btw-ask-citation-link{display:block;max-width:100%;padding:8px 10px;border:1px solid #cdb98f;background:#fff9eb;border-radius:9px;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
#btwAskLodgeRoot .btw-ask-links a.btw-ask-citation-link:hover{background:#f7ebcc;text-decoration:underline}
#btwAskLodgeRoot .btw-ask-links a.btw-ask-citation-link:focus-visible{outline:3px solid #a67b37;outline-offset:2px}
@media(max-width:600px){#btwAskLodgeRoot .btw-ask-links{width:100%;min-width:0}#btwAskLodgeRoot .btw-ask-links a.btw-ask-citation-link{width:100%;font-size:13px;min-height:44px;display:flex;align-items:center}}

/* Short Wisdom answers and optional full detail */
#btwAskLodgeRoot .btw-ask-more{font-size:13px;margin-top:10px;border-top:1px solid #e6e1d8;padding-top:9px}#btwAskLodgeRoot .btw-ask-more summary{color:#174e76;font-weight:750;cursor:pointer;min-height:36px;display:flex;align-items:center}#btwAskLodgeRoot .btw-ask-more p{white-space:pre-line;margin:7px 0 0;overflow-wrap:anywhere}

/* Answer-first Wisdom: hide secondary details until explicitly requested. */
#btwAskLodgeRoot .btw-ask-details-button{display:block;max-width:100%;min-height:42px;margin-top:12px;padding:8px 12px;background:#fff9eb;color:#123a5b;border:1px solid #bea068;border-radius:10px;font:750 13px/1.4 system-ui,sans-serif;text-align:center;cursor:pointer}
#btwAskLodgeRoot .btw-ask-details-button:hover{background:#f4ead7}
#btwAskLodgeRoot .btw-ask-details-button:focus-visible{outline:3px solid #a67b37;outline-offset:2px}
#btwAskLodgeRoot .btw-ask-source-details[hidden]{display:none!important}
#btwAskLodgeRoot .btw-ask-source-details{margin-top:11px;border-top:1px solid #e6e1d8;padding-top:11px;font-size:13px;line-height:1.55}
#btwAskLodgeRoot .btw-ask-source-details p{white-space:pre-line;margin:0 0 10px}
#btwAskLodgeRoot .btw-ask-source-details ul{padding-left:18px;margin:6px 0 10px}
#btwAskLodgeRoot .btw-ask-source-details li{margin:4px 0;overflow-wrap:anywhere}
@media(max-width:600px){#btwAskLodgeRoot .btw-ask-details-button{width:100%;font-size:13px;min-height:44px}}

/* Past Master Wisdom portrait medallion — protruding from the chat header. */
#btwAskLodgeRoot .btw-ask-panel{overflow:visible}
#btwAskLodgeRoot .btw-ask-header{
 position:relative;
 isolation:isolate;
 min-height:112px;
 padding:14px 12px 14px 85px;
 border-radius:19px 19px 0 0;
 overflow:visible;
}
#btwAskLodgeRoot .btw-ask-header>img{
 position:absolute;
 left:-17px;
 top:14px;
 width:94px;
 height:94px;
 max-width:none;
 border:3px solid #d6b875;
 border-radius:50%;
 background:#10263f;
 object-fit:cover;
 box-shadow:0 0 0 5px rgba(212,172,83,.22),0 8px 22px rgba(2,18,35,.3);
 z-index:2;
 animation:btwWisdomHeaderHalo 3.2s ease-in-out infinite;
}
@keyframes btwWisdomHeaderHalo{
 0%,60%,100%{box-shadow:0 0 0 3px rgba(215,178,92,.18),0 8px 22px rgba(2,18,35,.3)}
 30%{box-shadow:0 0 0 9px rgba(215,178,92,.32),0 8px 22px rgba(2,18,35,.3)}
}
#btwAskLodgeRoot .btw-ask-header>div{min-width:0;flex:1}
#btwAskLodgeRoot .btw-ask-header strong{font-size:clamp(18px,2vw,22px)}
#btwAskLodgeRoot .btw-ask-header .btw-ask-close{flex-shrink:0}
#btwAskLodgeRoot .btw-ask-scroll{border-radius:0;overflow-y:auto}
#btwAskLodgeRoot .btw-ask-disclaimer{border-radius:0 0 19px 19px}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-header{
   min-height:96px;
   padding:11px 9px 11px 68px;
   border-radius:15px 15px 0 0;
   gap:6px;
 }
 #btwAskLodgeRoot .btw-ask-header>img{left:-6px;top:12px;width:75px;height:75px;border-width:2px}
 #btwAskLodgeRoot .btw-ask-header strong{font-size:18px}
 #btwAskLodgeRoot .btw-ask-header span{font-size:10px}
 #btwAskLodgeRoot .btw-ask-disclaimer{border-radius:0 0 15px 15px}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-header{min-height:87px;padding-left:61px;padding-right:7px;gap:5px}
 #btwAskLodgeRoot .btw-ask-header>img{left:-4px;top:12px;width:68px;height:68px}
 #btwAskLodgeRoot .btw-ask-header strong{font-size:16px}
}
@media(max-height:470px) and (orientation:landscape){
 #btwAskLodgeRoot .btw-ask-header{min-height:64px;padding-left:62px;padding-top:7px;padding-bottom:7px}
 #btwAskLodgeRoot .btw-ask-header>img{left:-5px;top:4px;width:63px;height:63px}
}
@media(prefers-reduced-motion:reduce){
 #btwAskLodgeRoot .btw-ask-header>img{animation:none}
}

/* Wisdom medallion corner overlap — position closer to upper-left corner. */
#btwAskLodgeRoot .btw-ask-header{padding-left:92px}
#btwAskLodgeRoot .btw-ask-header>img{left:-34px;top:-2px;width:94px;height:94px}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-header{padding-left:76px}
 #btwAskLodgeRoot .btw-ask-header>img{left:-16px;top:4px;width:75px;height:75px}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-header{padding-left:67px}
 #btwAskLodgeRoot .btw-ask-header>img{left:-12px;top:4px;width:68px;height:68px}
}
@media(max-height:470px) and (orientation:landscape){
 #btwAskLodgeRoot .btw-ask-header{padding-left:66px}
 #btwAskLodgeRoot .btw-ask-header>img{left:-12px;top:2px;width:63px;height:63px}
}

/* Wisdom header: single-line Lodge name anchored just above the gold divider. */
#btwAskLodgeRoot .btw-ask-header{padding-bottom:40px;min-height:142px}
#btwAskLodgeRoot .btw-ask-header>div>span{
 position:absolute;
 left:92px;
 bottom:9px;
 display:block;
 width:max-content;
 max-width:calc(100% - 108px);
 margin:0;
 color:#e2d5b5;
 font:600 12px/1.2 system-ui,sans-serif;
 white-space:nowrap;
 letter-spacing:.015em;
}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-header{min-height:120px;padding-bottom:35px}
 #btwAskLodgeRoot .btw-ask-header>div>span{left:76px;bottom:8px;font-size:11px;max-width:calc(100% - 88px)}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-header{min-height:114px;padding-bottom:33px}
 #btwAskLodgeRoot .btw-ask-header>div>span{left:67px;bottom:7px;font-size:10px;max-width:calc(100% - 76px)}
}
@media(max-height:470px) and (orientation:landscape){
 #btwAskLodgeRoot .btw-ask-header{min-height:92px;padding-bottom:27px}
 #btwAskLodgeRoot .btw-ask-header>div>span{left:66px;bottom:5px;font-size:10px}
}

/* Header subtitle: align with Wisdom title and remove oversized gap. */
#btwAskLodgeRoot .btw-ask-header>div>span{left:auto;bottom:auto;position:relative;align-self:flex-start;margin-top:7px;width:max-content;max-width:100%;white-space:nowrap}
#btwAskLodgeRoot .btw-ask-header>div{justify-content:center;align-items:flex-start}
@media(max-width:600px){#btwAskLodgeRoot .btw-ask-header>div>span{left:auto;bottom:auto;margin-top:5px}}
@media(max-width:380px){#btwAskLodgeRoot .btw-ask-header>div>span{left:auto;bottom:auto;margin-top:4px}}

/* Compact Wisdom header: use space formerly occupied by Lodge subtitle for chat. */
#btwAskLodgeRoot .btw-ask-header{
 min-height:98px;
 padding:10px 12px 10px 92px;
 align-items:center;
}
#btwAskLodgeRoot .btw-ask-header>div{justify-content:center;align-items:flex-start;min-width:0}
#btwAskLodgeRoot .btw-ask-header>div>span{display:none!important}
#btwAskLodgeRoot .btw-ask-header strong{line-height:1.08}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-header{min-height:90px;padding:9px 9px 9px 76px}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-header{min-height:84px;padding:8px 7px 8px 67px}
}
@media(max-height:470px) and (orientation:landscape){
 #btwAskLodgeRoot .btw-ask-header{min-height:66px;padding:6px 9px 6px 66px}
}

/* Wisdom adjustable chat and comic-book tips. */
#btwAskLodgeRoot .btw-ask-maximize{
 flex:none;display:grid;place-items:center;width:38px;height:40px;padding:0;
 color:white;background:#ffffff13;border:1px solid #ffffff77;border-radius:10px;
 font:700 24px/1 system-ui,sans-serif;cursor:pointer;
}
#btwAskLodgeRoot .btw-ask-maximize:hover{background:#ffffff28}
#btwAskLodgeRoot .btw-ask-maximize:focus-visible{outline:3px solid #e3b75b;outline-offset:2px}
#btwAskLodgeRoot .btw-ask-drag-handle{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
#btwAskLodgeRoot .btw-ask-drag-handle:active{cursor:grabbing}
#btwAskLodgeRoot .btw-ask-fullscreen{
 position:fixed!important;inset:0!important;left:0!important;top:0!important;right:0!important;bottom:0!important;
 width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;
 border-radius:0!important;z-index:2147483000!important;
}
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header{border-radius:0}
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-scroll{flex:1;min-height:0;padding-inline:max(16px,calc((100vw - 850px)/2))}
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-form,
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-options{padding-inline:max(16px,calc((100vw - 850px)/2))}
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-disclaimer{border-radius:0}
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header>img{left:12px;top:5px}
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header{padding-left:118px}
.btw-wisdom-comic-bubble{
 position:fixed;z-index:2147482500;display:flex;align-items:flex-start;gap:8px;
 width:280px;max-width:calc(100vw - 16px);background:#fffaf0;border:2px solid #b18c3e;
 border-radius:18px;padding:11px 12px;color:#16314a;box-shadow:0 7px 25px #00172b44;
 font:700 13px/1.45 system-ui,sans-serif;cursor:pointer;
}
.btw-wisdom-comic-bubble[hidden]{display:none!important}
.btw-wisdom-comic-bubble::after{
 content:"";position:absolute;bottom:-11px;right:35px;width:17px;height:17px;
 background:#fffaf0;border-right:2px solid #b18c3e;border-bottom:2px solid #b18c3e;transform:rotate(45deg);
}
.btw-wisdom-comic-bubble span{flex:1}
.btw-wisdom-comic-bubble button{flex:none;align-self:start;border:0;background:transparent;color:#4d6176;font:700 19px/1 system-ui,sans-serif;cursor:pointer;padding:0 1px}
.btw-wisdom-comic-bubble button:focus-visible{outline:2px solid #9e7433}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-maximize{width:34px;height:38px;font-size:21px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header{padding-left:90px;min-height:87px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header>img{width:74px;height:74px;left:8px;top:6px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-scroll{padding-inline:10px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-form,#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-options{padding-inline:10px}
 .btw-wisdom-comic-bubble{width:240px;font-size:12px}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-maximize{width:30px;height:34px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header{padding-left:74px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header>img{width:65px;height:65px;left:6px}
}

/* Independently animated Wisdom aura — unaffected by inline shadow styles. */
#btwWisdomStableLauncher{
 isolation:isolate;
}
#btwWisdomStableLauncher::before{
 content:"";
 position:absolute;
 z-index:-1;
 pointer-events:none;
 left:50%;
 top:-7px;
 width:90px;
 height:90px;
 border-radius:50%;
 border:3px solid rgba(224,184,90,.72);
 box-shadow:0 0 14px 3px rgba(230,177,67,.35);
 transform:translateX(-50%) scale(.9);
 opacity:0;
 animation:btwWisdomIndependentAura 3.8s ease-out infinite;
}
@keyframes btwWisdomIndependentAura{
 0%,14%,80%,100%{opacity:0;transform:translateX(-50%) scale(.9)}
 30%{opacity:.85;transform:translateX(-50%) scale(1.02)}
 61%{opacity:0;transform:translateX(-50%) scale(1.39)}
}
@media(max-width:600px){
 #btwWisdomStableLauncher::before{top:-7px;width:76px;height:76px}
}
@media(prefers-reduced-motion:reduce){
 #btwWisdomStableLauncher::before{animation:none;opacity:.38;transform:translateX(-50%) scale(1.02)}
}

/* Wisdom controls: Expand + Close top row; Start Over below. */
#btwAskLodgeRoot .btw-ask-header{gap:8px;min-height:112px;padding-top:9px;padding-bottom:9px}
#btwAskLodgeRoot .btw-ask-header-actions{
 display:grid;grid-template-columns:42px 42px;grid-template-rows:42px 35px;
 gap:5px 8px;align-items:center;justify-items:stretch;
 flex:none;margin-left:auto;
}
#btwAskLodgeRoot .btw-ask-header-actions #btwWisdomMaximize,
#btwAskLodgeRoot .btw-ask-header-actions .btw-ask-close{
 width:42px;height:42px;min-width:0;max-width:none;
}
#btwAskLodgeRoot .btw-ask-header-actions .btw-ask-close{grid-column:2;grid-row:1}
#btwAskLodgeRoot .btw-ask-header-actions #btwWisdomMaximize{grid-column:1;grid-row:1}
#btwAskLodgeRoot .btw-ask-header-actions .btw-ask-header-reset{
 grid-column:1/-1;grid-row:2;width:100%;height:35px;min-height:35px;
 max-width:none;padding:5px 7px;font-size:12px;white-space:nowrap;
 text-align:center;
}
#btwAskLodgeRoot .btw-ask-header>div{min-width:0;flex:1}
#btwAskLodgeRoot .btw-ask-guest-invite{
 flex:none;margin:0;padding:12px 16px 13px 18px;
 display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;
 border-bottom:1px solid #dbccab;background:#fff9ec;color:#183550;
 font:500 13px/1.45 system-ui,sans-serif;
}
#btwAskLodgeRoot .btw-ask-guest-invite[hidden]{display:none!important}
#btwAskLodgeRoot .btw-ask-guest-invite strong{display:block;width:100%;font:700 15px/1.35 Georgia,serif}
#btwAskLodgeRoot .btw-ask-guest-invite span{flex:1;min-width:130px}
#btwAskLodgeRoot .btw-ask-guest-invite a{
 display:inline-flex;justify-content:center;align-items:center;min-height:38px;
 border-radius:9px;background:#a87f35;color:white;text-decoration:none;
 font-weight:750;padding:7px 16px;white-space:nowrap;
}
#btwAskLodgeRoot .btw-ask-guest-invite a:focus-visible{outline:3px solid #b18c3e;outline-offset:3px}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-header{min-height:102px;padding-top:8px;padding-bottom:8px}
 #btwAskLodgeRoot .btw-ask-header-actions{grid-template-columns:36px 36px;grid-template-rows:38px 33px;gap:4px 5px}
 #btwAskLodgeRoot .btw-ask-header-actions #btwWisdomMaximize,
 #btwAskLodgeRoot .btw-ask-header-actions .btw-ask-close{width:36px;height:38px}
 #btwAskLodgeRoot .btw-ask-header-actions .btw-ask-header-reset{height:33px;min-height:33px;font-size:10px;padding:4px}
 #btwAskLodgeRoot .btw-ask-guest-invite{padding:9px 12px;font-size:12px}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-header{min-height:98px}
 #btwAskLodgeRoot .btw-ask-header-actions{grid-template-columns:33px 33px;gap:3px}
 #btwAskLodgeRoot .btw-ask-header-actions #btwWisdomMaximize,
 #btwAskLodgeRoot .btw-ask-header-actions .btw-ask-close{width:33px}
 #btwAskLodgeRoot .btw-ask-header-actions .btw-ask-header-reset{font-size:9px}
 #btwAskLodgeRoot .btw-ask-guest-invite a{min-height:36px}
}

/* Wisdom phone keyboard and accessibility QA 20261119 */
#btwAskLodgeRoot .btw-ask-panel{min-width:0}
#btwAskLodgeRoot .btw-ask-scroll{min-height:0;min-width:0;overflow-wrap:anywhere;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
#btwAskLodgeRoot .btw-ask-message,#btwAskLodgeRoot .btw-ask-source-details{min-width:0;max-width:100%;overflow-wrap:anywhere}
#btwAskLodgeRoot .btw-ask-form{min-width:0;padding-bottom:max(10px,env(safe-area-inset-bottom))}
#btwAskLodgeRoot .btw-ask-form input{font-size:16px;min-width:0}
#btwAskLodgeRoot .btw-ask-header-actions button{touch-action:manipulation}
#btwAskLodgeRoot .btw-ask-fullscreen{height:var(--btw-wisdom-visual-height,100dvh)!important;max-height:var(--btw-wisdom-visual-height,100dvh)!important;top:var(--btw-wisdom-visual-top,0px)!important;bottom:auto!important}
#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-form{padding-bottom:max(10px,env(safe-area-inset-bottom))}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-panel:not(.btw-ask-fullscreen){left:8px!important;right:8px!important;top:auto!important;width:auto!important;max-width:calc(100vw - 16px)!important}
 #btwAskLodgeRoot .btw-ask-header{padding-left:76px;min-height:96px;gap:6px}
 #btwAskLodgeRoot .btw-ask-header>img{left:0;top:9px;width:68px;height:68px}
 #btwAskLodgeRoot .btw-ask-header strong{font-size:clamp(15px,4.2vw,19px);line-height:1.14;overflow-wrap:anywhere}
 #btwAskLodgeRoot .btw-ask-header-actions{grid-template-columns:40px 40px;grid-template-rows:40px 40px;gap:4px;flex:none}
 #btwAskLodgeRoot .btw-ask-header-actions #btwWisdomMaximize,#btwAskLodgeRoot .btw-ask-header-actions .btw-ask-close{width:40px;height:40px;min-height:40px}
 #btwAskLodgeRoot .btw-ask-header-actions .btw-ask-header-reset{height:40px;min-height:40px;font-size:11px}
 #btwAskLodgeRoot .btw-ask-options{max-height:min(110px,20dvh);gap:6px;padding:8px}
 #btwAskLodgeRoot .btw-ask-options button{min-height:40px}
 #btwAskLodgeRoot .btw-ask-guest-invite{padding:8px 12px;gap:6px}
 #btwAskLodgeRoot .btw-ask-guest-invite a{min-height:44px}
 #btwAskLodgeRoot .btw-ask-disclaimer{padding:5px 8px 7px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header{min-height:96px;padding-left:76px}
 #btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header>img{width:68px;height:68px;left:0;top:9px}
 .btw-wisdom-comic-bubble{max-width:calc(100vw - 24px);overflow-wrap:anywhere}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-header,#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header{padding-left:65px;padding-right:7px}
 #btwAskLodgeRoot .btw-ask-header>img,#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header>img{width:58px;height:58px;left:0;top:16px}
 #btwAskLodgeRoot .btw-ask-header-actions{grid-template-columns:40px 40px}
 #btwAskLodgeRoot .btw-ask-header-actions #btwWisdomMaximize,#btwAskLodgeRoot .btw-ask-header-actions .btw-ask-close{width:40px}
}
@media(max-height:470px) and (orientation:landscape){
 #btwAskLodgeRoot .btw-ask-header,#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header{min-height:80px;padding-left:65px;padding-top:4px;padding-bottom:4px}
 #btwAskLodgeRoot .btw-ask-header>img,#btwAskLodgeRoot .btw-ask-fullscreen .btw-ask-header>img{width:56px;height:56px;left:0;top:9px}
 #btwAskLodgeRoot .btw-ask-guest-invite{padding:5px 9px}
 #btwAskLodgeRoot .btw-ask-options{max-height:65px}
 #btwAskLodgeRoot .btw-ask-disclaimer{font-size:9px;padding:3px 7px}
}
@media(prefers-reduced-motion:reduce){#btwAskLodgeRoot .btw-ask-panel{scroll-behavior:auto}}


/* Wisdom aura-only v2 — original artwork and face remain entirely static. */
@keyframes btwWisdomCalmBreath{0%,100%{opacity:.20;transform:translateX(-50%) scale(.98)}50%{opacity:.53;transform:translateX(-50%) scale(1.08)}}
#btwWisdomStableButton{animation:none!important;transform:none!important;}
#btwWisdomStableLauncher::before{animation:btwWisdomCalmBreath 4.5s ease-in-out infinite;}
#btwAskLodgeRoot .btw-ask-launcher{animation:none!important;}
#btwAskLodgeRoot .btw-ask-launcher img{animation:none!important;filter:none!important;}
#btwAskLodgeRoot .btw-ask-launcher::before{animation-duration:4.5s;}
@media(prefers-reduced-motion:reduce){#btwWisdomStableLauncher::before,#btwAskLodgeRoot .btw-ask-launcher::before{animation:none!important;opacity:.25;}}


/* Wisdom aura-only reactive states v3 */
/* Animate only the portrait's existing halo/shadow; never animate its face, pixels, position or scale. */
@keyframes btwWisdomAuraWelcome{0%{box-shadow:0 0 0 5px rgba(215,178,92,.18),0 8px 22px rgba(2,18,35,.3)}45%{box-shadow:0 0 0 12px rgba(215,178,92,.38),0 8px 22px rgba(2,18,35,.3)}100%{box-shadow:0 0 0 5px rgba(215,178,92,.18),0 8px 22px rgba(2,18,35,.3)}}
@keyframes btwWisdomAuraThinking{0%,100%{box-shadow:0 0 0 5px rgba(215,178,92,.20),0 8px 22px rgba(2,18,35,.3)}50%{box-shadow:0 0 0 9px rgba(215,178,92,.34),0 8px 22px rgba(2,18,35,.3)}}
#btwAskLodgeRoot .btw-ask-header>img{animation:btwWisdomHeaderHalo 4.5s ease-in-out infinite;transform:none!important;filter:none!important;}
#btwAskLodgeRoot.btw-wisdom-greeting .btw-ask-header>img,#btwAskLodgeRoot.btw-wisdom-answered .btw-ask-header>img{animation:btwWisdomAuraWelcome 1.1s ease-out 1;}
#btwAskLodgeRoot.btw-wisdom-thinking .btw-ask-header>img{animation:btwWisdomAuraThinking 2.3s ease-in-out infinite;}
@media(prefers-reduced-motion:reduce){#btwAskLodgeRoot .btw-ask-header>img{animation:none!important;}}


/* Wisdom animation 2: restrained outer-aura shimmer */
/* A slim independent ring catches a moment of light every 12s. The original PNG, face and rays remain entirely untouched. */
@keyframes btwWisdomOuterShimmer{
 0%,14%,48%,100%{opacity:0;transform:translateX(-50%) rotate(0deg)}
 20%{opacity:.27;transform:translateX(-50%) rotate(24deg)}
 34%{opacity:.36;transform:translateX(-50%) rotate(108deg)}
 43%{opacity:0;transform:translateX(-50%) rotate(154deg)}
}
#btwWisdomStableLauncher::after{
 content:"";position:absolute;pointer-events:none;z-index:-1;
 top:-11px;left:50%;width:98px;height:98px;border-radius:50%;
 background:conic-gradient(from 0deg,transparent 0deg,transparent 235deg,rgba(247,215,128,.12) 256deg,rgba(255,233,169,.8) 272deg,rgba(247,215,128,.13) 290deg,transparent 312deg,transparent 360deg);
 -webkit-mask:radial-gradient(circle,transparent 58%,#000 62%,#000 68%,transparent 72%);
 mask:radial-gradient(circle,transparent 58%,#000 62%,#000 68%,transparent 72%);
 opacity:0;transform:translateX(-50%);
 animation:btwWisdomOuterShimmer 12s ease-in-out infinite;
}
@media(max-width:600px){#btwWisdomStableLauncher::after{top:-10px;width:84px;height:84px;}}
@media(prefers-reduced-motion:reduce){#btwWisdomStableLauncher::after{animation:none!important;opacity:0!important;}}


/* Wisdom animation 3: speech-bubble aura accent */
/* One brief halo-only pulse when a remark appears; untouched stationary original sun PNG. */
@keyframes btwWisdomCommentGlow{
 0%{opacity:.22;transform:translateX(-50%) scale(.98);box-shadow:0 0 11px 2px rgba(230,177,67,.20)}
 48%{opacity:.72;transform:translateX(-50%) scale(1.15);box-shadow:0 0 19px 5px rgba(246,202,101,.38)}
 100%{opacity:.20;transform:translateX(-50%) scale(.98);box-shadow:0 0 11px 2px rgba(230,177,67,.20)}
}
#btwWisdomStableLauncher.btw-wisdom-comment-glow::before{animation:btwWisdomCommentGlow 1.3s ease-out 1,btwWisdomCalmBreath 4.5s ease-in-out 1.3s infinite;}
@media(prefers-reduced-motion:reduce){#btwWisdomStableLauncher.btw-wisdom-comment-glow::before{animation:none!important;}}


/* Wisdom one-sided joke grin v1 — alternate image only, original preserved */
/* Approved alternate image fades over the untouched original portrait. */
#btwWisdomStableButton{position:relative!important;}
#btwWisdomStableButton>img.btw-wisdom-joke-grin{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;z-index:2;opacity:0;pointer-events:none;transition:opacity .22s ease-in-out!important;animation:none!important;transform:none!important;filter:none!important;}
#btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin{z-index:3;opacity:0;pointer-events:none;animation:none!important;filter:none!important;box-shadow:none!important;transform:none!important;transition:opacity .22s ease-in-out!important;}
#btwWisdomStableButton>img.btw-wisdom-joke-grin.btw-wisdom-joke-visible,#btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin.btw-wisdom-joke-visible{opacity:1;}
@media(prefers-reduced-motion:reduce){#btwWisdomStableButton>img.btw-wisdom-joke-grin,#btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin{opacity:0!important;transition:none!important;}}


/* Wisdom gentle mouth-only smile v3 */
/* Only the existing mouth area changes; the gold ring, rays, eyes and face stay the original image at a fixed size. */
#btwWisdomStableButton>img.btw-wisdom-joke-grin,
#btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin{
 -webkit-mask-image:radial-gradient(ellipse 27% 12% at 50% 61%, #000 34%, rgba(0,0,0,.78) 58%, transparent 100%);
 mask-image:radial-gradient(ellipse 27% 12% at 50% 61%, #000 34%, rgba(0,0,0,.78) 58%, transparent 100%);
 transition:opacity .95s cubic-bezier(.22,.6,.26,1)!important;
 transform:none!important;
 box-shadow:none!important;
 animation:none!important;
}
@media(prefers-reduced-motion:reduce){#btwWisdomStableButton>img.btw-wisdom-joke-grin,#btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin{opacity:0!important;transition:none!important}}


/* Wisdom progressive mouth-only grin v4 */
/* Intermediate facial-expression stages affect opacity only inside the existing feathered mouth mask.
   This does not animate, resize, or replace the original ring, rays, eyes, or face. */
@keyframes btwWisdomSmileFormAndRelax{
 0%{opacity:0}
 9%{opacity:.04}
 18%{opacity:.13}
 28%{opacity:.30}
 39%{opacity:.55}
 50%{opacity:.78}
 57%,67%{opacity:.96}
 75%{opacity:.76}
 84%{opacity:.44}
 92%{opacity:.16}
 100%{opacity:0}
}
#btwWisdomStableButton>img.btw-wisdom-joke-grin,
#btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin{
 opacity:0;transition:none!important;animation:none!important;transform:none!important;
}
#btwWisdomStableButton>img.btw-wisdom-joke-grin.btw-wisdom-joke-visible,
#btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin.btw-wisdom-joke-visible{
 animation:btwWisdomSmileFormAndRelax 3.5s ease-in-out both!important;
}
@media(prefers-reduced-motion:reduce){
 #btwWisdomStableButton>img.btw-wisdom-joke-grin.btw-wisdom-joke-visible,
 #btwAskLodgeRoot .btw-ask-header>img.btw-wisdom-joke-grin.btw-wisdom-joke-visible{animation:none!important;opacity:0!important;}
}


/* Wisdom lets the complete portrait dip once before offering counsel. */
@property --btw-wisdom-dip {
  syntax:"<length>";
  inherits:true;
  initial-value:0px;
}
@keyframes btwWisdomCounselNod {
  0%,100% { --btw-wisdom-dip:0px; }
  45%,53% { --btw-wisdom-dip:5px; }
}
#btwAskLodgeRoot .btw-wisdom-primary-source { margin-block:.45rem; }
@keyframes btwWisdomCitePage {
  from { background-position:100% 0; }
  to { background-position:0% 0; }
}
@media (prefers-reduced-motion:no-preference) {
  #btwAskLodgeRoot.btw-wisdom-counsel-nod .btw-ask-header {
    animation:btwWisdomCounselNod 820ms ease-in-out 1;
  }
  #btwAskLodgeRoot.btw-wisdom-counsel-nod .btw-ask-header>img {
    translate:0 var(--btw-wisdom-dip,0px);
  }
  #btwAskLodgeRoot.btw-wisdom-archive-search .btw-ask-header>img:not(.btw-wisdom-joke-grin) {
    animation:btwWisdomAuraThinking 3.2s ease-in-out infinite;
  }
  #btwAskLodgeRoot .btw-wisdom-primary-source a.btw-ask-citation-link {
    background-image:linear-gradient(105deg,transparent 38%,rgba(224,176,71,.34) 50%,transparent 62%);
    background-size:320% 100%;
    background-repeat:no-repeat;
    animation:btwWisdomCitePage 1300ms ease-in-out 1 both;
  }
}


#btwAskLodgeRoot .btw-wisdom-degree-choices {
 display:flex;
 flex-wrap:wrap;
 gap:6px;
 margin-block-start:8px;
}
#btwAskLodgeRoot .btw-wisdom-degree-choices button {
 min-height:44px;
 padding:6px 11px;
 border:1px solid #baa06a;
 border-radius:9px;
 background:#fff9eb;
 color:#123a5b;
 font:700 13px/1.35 system-ui,sans-serif;
 cursor:pointer;
}
#btwAskLodgeRoot .btw-wisdom-degree-choices button:hover {background:#f6e8c6;}
#btwAskLodgeRoot .btw-wisdom-degree-choices button:focus-visible {outline:3px solid #946a26;outline-offset:2px;}
@property --btw-wisdom-question-angle {
 syntax:"<angle>";
 inherits:true;
 initial-value:0deg;
}
@keyframes btwWisdomClarify {
 0%,100% {--btw-wisdom-question-angle:0deg;}
 42%,58% {--btw-wisdom-question-angle:-7deg;}
}
@media (prefers-reduced-motion:no-preference) {
 #btwAskLodgeRoot.btw-wisdom-clarifying .btw-ask-header {animation:btwWisdomClarify 950ms ease-in-out 1;}
 #btwAskLodgeRoot.btw-wisdom-clarifying .btw-ask-header>img {rotate:var(--btw-wisdom-question-angle,0deg);}
}


/* Wisdom listening aura v5 — focused question field, no artwork changes */
@keyframes btwWisdomListeningHalo{
 0%,100%{box-shadow:0 0 0 5px rgba(215,178,92,.22),0 8px 22px rgba(2,18,35,.3)}
 50%{box-shadow:0 0 0 9px rgba(236,199,121,.39),0 8px 22px rgba(2,18,35,.3)}
}
/* Preserve all original pixels and face positions; only existing header portrait's outer shadow responds. */
#btwAskLodgeRoot.btw-wisdom-listening:not(.btw-wisdom-thinking):not(.btw-wisdom-greeting):not(.btw-wisdom-answered) .btw-ask-header>img:not(.btw-wisdom-joke-grin){
 animation:btwWisdomListeningHalo 3.6s ease-in-out infinite;
 transform:none!important;filter:none!important;
}
@media(prefers-reduced-motion:reduce){
 #btwAskLodgeRoot.btw-wisdom-listening .btw-ask-header>img:not(.btw-wisdom-joke-grin){animation:none!important;}
}


/* Wisdom thinking glow v6 — calm dual-stage halo, fixed portrait */
/* Quiet listening = a single slow ring. Thinking = two successive waves of warm light.
   Only the box-shadow around the original static portrait animates. */
@keyframes btwWisdomThinkingDualGlow{
 0%,100%{box-shadow:0 0 0 4px rgba(215,178,92,.18),0 0 0 8px rgba(215,178,92,.04),0 8px 22px rgba(2,18,35,.30)}
 22%{box-shadow:0 0 0 6px rgba(235,197,112,.34),0 0 0 10px rgba(237,192,101,.09),0 8px 22px rgba(2,18,35,.30)}
 46%{box-shadow:0 0 0 6px rgba(235,197,112,.25),0 0 0 13px rgba(239,191,91,.18),0 8px 22px rgba(2,18,35,.30)}
 70%{box-shadow:0 0 0 5px rgba(224,186,101,.24),0 0 0 11px rgba(239,191,91,.08),0 8px 22px rgba(2,18,35,.30)}
}
#btwAskLodgeRoot.btw-wisdom-thinking .btw-ask-header>img:not(.btw-wisdom-joke-grin){
 animation:btwWisdomThinkingDualGlow 4.2s ease-in-out infinite;
 transform:none!important;filter:none!important;
}
/* Resource searches use the same thoughtful effect; keep it behind the approved portrait and joke overlay. */
#btwAskLodgeRoot.btw-wisdom-thinking.btw-wisdom-archive-search .btw-ask-header>img:not(.btw-wisdom-joke-grin){animation:btwWisdomThinkingDualGlow 4.2s ease-in-out infinite;}
@media(prefers-reduced-motion:reduce){
 #btwAskLodgeRoot.btw-wisdom-thinking .btw-ask-header>img:not(.btw-wisdom-joke-grin){animation:none!important;}
}


/* Wisdom answer complete sparkle v7 — external halo accent */
/* A single tiny star at the upper-right edge of the medallion, never a change to its image pixels. */
@keyframes btwWisdomAnswerSparkle{
 0%{opacity:0;transform:translate3d(0,3px,0) scale(.45)}
 28%{opacity:.82;transform:translate3d(0,0,0) scale(1)}
 53%{opacity:.67;transform:translate3d(0,-1px,0) scale(.82)}
 100%{opacity:0;transform:translate3d(0,-3px,0) scale(.38)}
}
#btwAskLodgeRoot .btw-ask-header::after{
 content:"";position:absolute;left:72px;top:8px;width:14px;height:14px;
 pointer-events:none;z-index:4;opacity:0;
 background:radial-gradient(circle at 50% 50%,#fff8dd 0%,#f5d589 29%,#d6a64c 69%,transparent 100%);
 clip-path:polygon(50% 0%,58% 40%,100% 50%,58% 60%,50% 100%,42% 60%,0% 50%,42% 40%);
 filter:drop-shadow(0 0 3px rgba(236,183,80,.6));
}
/* A joke's animated grin takes precedence over the completion sparkle. */
#btwAskLodgeRoot.btw-wisdom-answered:not(:has(.btw-wisdom-joke-grin)) .btw-ask-header::after{
 animation:btwWisdomAnswerSparkle 1.1s ease-out 1 both;
}
@media(max-width:600px){#btwAskLodgeRoot .btw-ask-header::after{left:61px;top:8px;width:12px;height:12px;}}
@media(max-width:380px){#btwAskLodgeRoot .btw-ask-header::after{left:51px;top:8px;width:11px;height:11px;}}
@media(prefers-reduced-motion:reduce){
 #btwAskLodgeRoot .btw-ask-header::after{animation:none!important;opacity:0!important;}
}


/* Wisdom answer sparkle visibility v7b — outer rim, readable two-second glow */
/* Keep the marker outside Wisdom's face, against the navy backdrop rather than within the portrait. */
@keyframes btwWisdomAnswerSparkleVisible{
 0%{opacity:0;transform:translate3d(0,4px,0) scale(.35);filter:drop-shadow(0 0 0 rgba(255,214,128,0))}
 23%{opacity:1;transform:translate3d(0,0,0) scale(1.14);filter:drop-shadow(0 0 7px rgba(255,213,123,.95))}
 48%{opacity:.97;transform:translate3d(0,-1px,0) scale(1);filter:drop-shadow(0 0 9px rgba(255,213,123,.85))}
 72%{opacity:.67;transform:translate3d(0,-2px,0) scale(.87);filter:drop-shadow(0 0 5px rgba(255,213,123,.55))}
 100%{opacity:0;transform:translate3d(0,-3px,0) scale(.50);filter:drop-shadow(0 0 0 rgba(255,213,123,0))}
}
#btwAskLodgeRoot .btw-ask-header::after{
 left:76px;top:5px;width:24px;height:24px;
 background:radial-gradient(circle,#fffefa 0%,#fff7dd 13%,#f7d78c 40%,#d8a648 66%,transparent 83%);
 clip-path:polygon(50% 0%,59% 38%,83% 17%,62% 42%,100% 50%,62% 58%,83% 83%,58% 62%,50% 100%,42% 62%,17% 83%,38% 58%,0% 50%,38% 42%,17% 17%,42% 38%);
}
#btwAskLodgeRoot.btw-wisdom-answered:not(:has(.btw-wisdom-joke-grin)) .btw-ask-header::after{
 animation:btwWisdomAnswerSparkleVisible 2s ease-out 1 both;
}
@media(max-width:600px){#btwAskLodgeRoot .btw-ask-header::after{left:58px;top:3px;width:20px;height:20px;}}
@media(max-width:380px){#btwAskLodgeRoot .btw-ask-header::after{left:49px;top:4px;width:18px;height:18px;}}
@media(prefers-reduced-motion:reduce){#btwAskLodgeRoot .btw-ask-header::after{animation:none!important;opacity:0!important;}}


/* Wisdom companion sparkles v7c — two smaller staggered stars */
/* The large answer star stays at ::after. The two companions are independent light-only pseudo-elements; no face changes. */
@keyframes btwWisdomSmallStarBlink {
 0%,100%{opacity:0;transform:scale(.45)}
 26%{opacity:.9;transform:scale(1.08)}
 46%{opacity:.28;transform:scale(.72)}
 68%{opacity:.78;transform:scale(.95)}
 85%{opacity:.28;transform:scale(.64)}
}
@keyframes btwWisdomTinyStarBlink {
 0%,100%{opacity:0;transform:scale(.35)}
 24%{opacity:.76;transform:scale(1.05)}
 47%{opacity:.12;transform:scale(.55)}
 70%{opacity:.64;transform:scale(.86)}
 90%{opacity:.12;transform:scale(.46)}
}
#btwAskLodgeRoot .btw-ask-header::before,
#btwAskLodgeRoot .btw-ask-header>div:first-of-type::after{
 content:"";position:absolute;display:block;pointer-events:none;z-index:4;opacity:0;
 background:radial-gradient(circle,#fffdf3 0%,#f6d990 34%,#c99c4d 66%,transparent 84%);
 clip-path:polygon(50% 0%,60% 39%,100% 50%,60% 61%,50% 100%,40% 61%,0% 50%,40% 39%);
 transform-origin:center;
 filter:drop-shadow(0 0 3px rgba(244,200,100,.68));
}
#btwAskLodgeRoot .btw-ask-header::before{left:103px;top:0px;width:15px;height:15px;}
#btwAskLodgeRoot .btw-ask-header>div:first-of-type::after{left:100px;top:29px;width:10px;height:10px;}
#btwAskLodgeRoot.btw-wisdom-answered:not(:has(.btw-wisdom-joke-grin)) .btw-ask-header::before{
 animation:btwWisdomSmallStarBlink 1.45s ease-in-out .2s 1 both;
}
#btwAskLodgeRoot.btw-wisdom-answered:not(:has(.btw-wisdom-joke-grin)) .btw-ask-header>div:first-of-type::after{
 animation:btwWisdomTinyStarBlink 1.2s ease-in-out .52s 1 both;
}
@media(max-width:600px){
 #btwAskLodgeRoot .btw-ask-header::before{left:81px;top:0px;width:12px;height:12px;}
 #btwAskLodgeRoot .btw-ask-header>div:first-of-type::after{left:77px;top:24px;width:9px;height:9px;}
}
@media(max-width:380px){
 #btwAskLodgeRoot .btw-ask-header::before{left:66px;top:0px;width:11px;height:11px;}
 #btwAskLodgeRoot .btw-ask-header>div:first-of-type::after{left:64px;top:21px;width:8px;height:8px;}
}
@media(prefers-reduced-motion:reduce){
 #btwAskLodgeRoot .btw-ask-header::before,
 #btwAskLodgeRoot .btw-ask-header>div:first-of-type::after{animation:none!important;opacity:0!important;}
}


/* Wisdom Moments v8 — reflective response aura only */
/* A reflective answer gets one calm, warm external halo, not the normal three-star cluster.
   Only the original portrait's shadow changes; no scaling, moving, or facial artwork edits. */
@keyframes btwWisdomMomentsHalo{
 0%{box-shadow:0 0 0 4px rgba(215,178,92,.17),0 0 0 9px rgba(235,191,95,0),0 8px 22px rgba(2,18,35,.3)}
 25%{box-shadow:0 0 0 6px rgba(232,188,100,.30),0 0 0 10px rgba(237,194,102,.07),0 8px 22px rgba(2,18,35,.3)}
 50%{box-shadow:0 0 0 7px rgba(243,206,126,.48),0 0 0 14px rgba(240,198,109,.17),0 8px 22px rgba(2,18,35,.3)}
 70%{box-shadow:0 0 0 6px rgba(237,193,105,.37),0 0 0 12px rgba(237,194,102,.12),0 8px 22px rgba(2,18,35,.3)}
 100%{box-shadow:0 0 0 4px rgba(215,178,92,.17),0 0 0 9px rgba(235,191,95,0),0 8px 22px rgba(2,18,35,.3)}
}
#btwAskLodgeRoot.btw-wisdom-moment:not(.btw-wisdom-thinking) .btw-ask-header>img:not(.btw-wisdom-joke-grin){
 animation:btwWisdomMomentsHalo 2.7s ease-in-out 1 both!important;
 transform:none!important;filter:none!important;
}
/* The star trio belongs to ordinary completions, not reflective counsel. */
#btwAskLodgeRoot.btw-wisdom-moment .btw-ask-header::before,
#btwAskLodgeRoot.btw-wisdom-moment .btw-ask-header::after,
#btwAskLodgeRoot.btw-wisdom-moment .btw-ask-header>div:first-of-type::after{animation:none!important;opacity:0!important;}
@media(prefers-reduced-motion:reduce){
 #btwAskLodgeRoot.btw-wisdom-moment .btw-ask-header>img:not(.btw-wisdom-joke-grin){animation:none!important;}
}


/* Wisdom Moments reduced-motion specificity fix v8a */
@media (prefers-reduced-motion: reduce){
 #btwAskLodgeRoot.btw-wisdom-moment:not(.btw-wisdom-thinking) .btw-ask-header>img:not(.btw-wisdom-joke-grin){
  animation:none!important;
  transform:none!important;
 }
}


/* Wisdom Conversation 2.0 — accessible public follow-up chips */
#btwAskLodgeRoot .btw-wisdom-followups{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
#btwAskLodgeRoot .btw-wisdom-followups button{font:inherit;font-size:12px;font-weight:700;line-height:1.25;border:1px solid #ccb27f;background:#fff9ee;color:#1c3955;border-radius:999px;min-height:30px;padding:5px 9px;cursor:pointer;max-width:100%}
#btwAskLodgeRoot .btw-wisdom-followups button:hover{background:#f6e9cd}
#btwAskLodgeRoot .btw-wisdom-followups button:focus-visible{outline:3px solid #d1a44b;outline-offset:2px}
@media(max-width:380px){#btwAskLodgeRoot .btw-wisdom-followups{gap:5px}#btwAskLodgeRoot .btw-wisdom-followups button{font-size:11px;padding:5px 7px}}

/* Wisdom Education & Sources v1: source provenance, controlled correction workflow */
#btwAskLodgeRoot .btw-wisdom-source-bar{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:8px;font-size:.78rem;line-height:1.35}
#btwAskLodgeRoot .btw-wisdom-source-kind{color:#72521f;background:rgba(235,192,89,.14);border:1px solid rgba(155,108,32,.18);border-radius:6px;padding:3px 6px}
#btwAskLodgeRoot .btw-wisdom-source-bar a{color:inherit;text-decoration:underline;text-underline-offset:2px}
#btwAskLodgeRoot .btw-wisdom-correction-trigger{border:0;background:transparent;padding:4px;color:inherit;text-decoration:underline;font:inherit;font-size:inherit;cursor:pointer}
#btwAskLodgeRoot .btw-wisdom-correction-form{margin-top:8px;padding:9px;border:1px solid rgba(130,115,90,.3);border-radius:8px;background:rgba(245,240,228,.5)}
#btwAskLodgeRoot .btw-wisdom-correction-form[hidden]{display:none!important}
#btwAskLodgeRoot .btw-wisdom-correction-form p{margin:0 0 8px;font-size:.78rem}
#btwAskLodgeRoot .btw-wisdom-correction-form textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:54px;border:1px solid #a69b86;border-radius:6px;padding:6px;font:inherit;resize:vertical}
#btwAskLodgeRoot .btw-wisdom-correction-form button{margin:7px 6px 0 0;padding:6px 8px;border:1px solid #a6926c;border-radius:6px;background:transparent;color:inherit;font-size:.78rem;cursor:pointer}
#btwAskLodgeRoot .btw-wisdom-source-bar button:focus-visible,#btwAskLodgeRoot .btw-wisdom-correction-form button:focus-visible{outline:2px solid #d3a12f;outline-offset:2px}
@media(max-width:420px){#btwAskLodgeRoot .btw-wisdom-source-bar{font-size:.72rem;gap:5px}}
