/* v1.9.0 -- only calculated input state, home figures, header IST clock & assistant. */
/* The dark-on-focus bug is caused by theme focus, valid, and browser autofill selectors. */
.alsu-native .alsu-tool-field :is(input,select,textarea),
.alsu-native .alsu-tool-field :is(input,select,textarea):is(:focus,:focus-visible,:hover,:active,:valid),
body.page-id-1795 .cpcalc-wrap :is(input:not([type=submit]):not([type=button]),select,textarea),
body.page-id-1795 .cpcalc-wrap :is(input:not([type=submit]):not([type=button]),select,textarea):is(:focus,:focus-visible,:hover,:active,:valid),
body.page-id-1821 .calculator-wrapper :is(input:not([type=submit]):not([type=button]),select,textarea),
body.page-id-1821 .calculator-wrapper :is(input:not([type=submit]):not([type=button]),select,textarea):is(:focus,:focus-visible,:hover,:active,:valid){
 background:#fff!important;background-color:#fff!important;background-image:none!important;
 color:#142d4b!important;-webkit-text-fill-color:#142d4b!important;
 opacity:1!important;caret-color:#142d4b!important;filter:none!important;
 box-shadow:none!important;
}
.alsu-native .alsu-tool-field :is(input,textarea):-webkit-autofill,
.alsu-native .alsu-tool-field :is(input,textarea):-webkit-autofill:is(:focus,:hover),
body.page-id-1795 .cpcalc-wrap :is(input,textarea):-webkit-autofill,
body.page-id-1821 .calculator-wrapper :is(input,textarea):-webkit-autofill{
 -webkit-text-fill-color:#142d4b!important;
 -webkit-box-shadow:0 0 0 1000px #fff inset!important;
 box-shadow:0 0 0 1000px #fff inset!important;
 caret-color:#142d4b!important;
}
.alsu-native .alsu-tool-field :is(option,optgroup),
body.page-id-1795 .cpcalc-wrap :is(option,optgroup),
body.page-id-1821 .calculator-wrapper :is(option,optgroup){background:#fff!important;color:#142d4b!important}
.alsu-native .alsu-tool-field :is(input,select,textarea):focus-visible,
body.page-id-1795 .cpcalc-wrap :is(input,select,textarea):focus-visible,
body.page-id-1821 .calculator-wrapper :is(input,select,textarea):focus-visible{outline:2px solid #2864a0!important;outline-offset:1px!important}

/* Visible inside the header on all pages; JS docks in Astra's right-hand slot. */
#alsu-ist-clock{font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;
 white-space:nowrap;min-height:32px;padding:6px 10px;background:#000080;color:#fff;border-radius:7px;box-shadow:0 3px 12px #00134a24;
 font-size:13px;font-weight:700;letter-spacing:.01em;line-height:1.25;direction:ltr;font-variant-numeric:tabular-nums;
 margin:4px 8px;position:relative;z-index:50;flex:none}
#alsu-ist-clock .alsu-clock-icon{color:#f4cc75;font-size:17px}
#alsu-ist-clock .alsu-clock-zone{font-size:11px;color:#e4eaff;font-weight:700}
#alsu-ist-clock.alsu-clock-fallback{position:fixed;top:8px;right:7px;z-index:98998;margin:0;pointer-events:none}
@media(max-width:720px){#alsu-ist-clock{font-size:11px;padding:5px 6px;min-height:27px;gap:4px}#alsu-ist-clock .alsu-clock-zone{font-size:10px}#alsu-ist-clock .alsu-clock-icon{display:none}}

/* Keep assistant clear of the existing bottom-right translation controls. */
#alsu-v180-bar.alsu-v180-bar{right:auto!important;left:10px!important;bottom:9px!important;max-width:calc(100vw - 165px)!important;z-index:99991!important}
#alsu-assistant{position:fixed;right:10px;bottom:12px;z-index:99992;font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important;direction:ltr;line-height:1.45}
#alsu-assistant *,#alsu-assistant *::before,#alsu-assistant *::after{box-sizing:border-box}
#alsu-assistant [hidden]{display:none!important}
#alsu-chat-launch{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:0;background:transparent!important;border:0!important;cursor:pointer!important;padding:0!important;min-width:118px!important;max-width:134px!important;height:auto!important;box-shadow:none!important;line-height:1!important;opacity:1!important;transform:none!important;visibility:visible!important}
#alsu-chat-launch img{display:block;object-fit:contain;object-position:bottom center;max-width:100%;width:auto;height:154px;filter:drop-shadow(0 5px 9px #061d4770)}
#alsu-chat-launch .alsu-chat-launch-label{display:block;background:#000080!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid #fff;border-radius:20px;padding:7px 12px;box-shadow:0 5px 16px #001a5260;font-size:12px;font-weight:800;white-space:nowrap;position:relative;margin-top:-9px}
#alsu-chat-launch:focus-visible{outline:3px solid #e8af46!important;outline-offset:4px}
#alsu-chat-window{width:min(382px,calc(100vw - 20px));height:min(570px,calc(100dvh - 122px));min-height:280px;position:absolute;right:6px;bottom:174px;display:flex;flex-direction:column;background:#fff;color:#153252;border:1px solid #b5c9e4;border-radius:14px;overflow:hidden;box-shadow:0 15px 45px #061c426b}
#alsu-chat-window .alsu-chat-header{background:#000080;color:#fff;display:flex;align-items:center;padding:12px;gap:11px;flex:none;min-height:65px}
#alsu-chat-window .alsu-chat-mark{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#dbe8ff;color:#000080;font-size:23px;flex:none}
#alsu-chat-window .alsu-chat-brand{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
#alsu-chat-window .alsu-chat-brand strong{color:#fff!important;font-size:15px;font-weight:800;line-height:1.3}
#alsu-chat-window .alsu-chat-brand small{color:#e0eaff!important;font-size:10px}
#alsu-chat-window .alsu-chat-close{background:transparent!important;border:0!important;color:#fff!important;-webkit-text-fill-color:#fff!important;min-height:34px;min-width:34px;padding:0!important;font-size:28px;line-height:1;cursor:pointer}
#alsu-chat-window .alsu-chat-messages{flex:1;min-height:70px;overflow-y:auto;overscroll-behavior:contain;background:#f3f7fd;padding:13px 10px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}
#alsu-chat-window .alsu-chat-bubble{margin:0!important;max-width:95%;padding:10px 12px;color:#19334d!important;background:#fff;border:1px solid #d7e2f0;border-radius:11px;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
#alsu-chat-window .alsu-chat-bubble.alsu-from-user{margin-left:auto!important;background:#e1eafb;border-color:#c5d4ed}
#alsu-chat-window .alsu-chat-actions{padding:10px;display:flex;flex-wrap:wrap;gap:7px;max-height:163px;overflow-y:auto;border-top:1px solid #e1e8f2;background:#fff;flex:none}
#alsu-chat-window .alsu-chat-chip{background:#f5f8ff!important;color:#0e3865!important;-webkit-text-fill-color:#0e3865!important;border:1px solid #bed0e7!important;border-radius:19px!important;padding:7px 10px!important;font-size:12px!important;font-weight:650!important;line-height:1.25!important;min-height:33px!important;cursor:pointer!important;box-shadow:none!important;white-space:normal!important;text-align:left!important}
#alsu-chat-window a.alsu-chat-chip{text-decoration:none!important;display:inline-flex;align-items:center}
#alsu-chat-window .alsu-chat-chip:hover,#alsu-chat-window .alsu-chat-chip:focus-visible{background:#e0eafd!important;outline:2px solid #19539a!important;outline-offset:1px}
#alsu-chat-window .alsu-chat-form{margin:0!important;padding:9px!important;display:flex;gap:7px;border-top:1px solid #dbe5f2;background:#fff;flex:none}
#alsu-chat-window .alsu-chat-form input{min-width:0!important;flex:1!important;height:38px!important;max-height:38px!important;min-height:38px!important;font-size:13px!important;border:1px solid #a2bad7!important;border-radius:8px!important;background:#fff!important;color:#17314f!important;-webkit-text-fill-color:#17314f!important;box-shadow:none!important;opacity:1!important;padding:7px 10px!important}
#alsu-chat-window .alsu-chat-form input::placeholder{color:#617691!important;opacity:1!important}
#alsu-chat-window .alsu-chat-form button{width:39px!important;min-height:38px!important;height:38px!important;flex:none!important;cursor:pointer!important;background:#000080!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:0!important;border-radius:8px!important;box-shadow:none!important;padding:3px!important;font-size:20px!important}
#alsu-chat-window .alsu-chat-caution{margin:0!important;padding:4px 9px 7px!important;color:#5b6f86!important;font-size:9px!important;line-height:1.4;text-align:center;background:#fff;flex:none}
#alsu-assistant .alsu-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){#alsu-assistant{right:6px;bottom:6px}#alsu-chat-launch{min-width:88px!important;max-width:95px!important}#alsu-chat-launch img{height:110px}#alsu-chat-launch .alsu-chat-launch-label{font-size:11px;padding:5px 9px}#alsu-chat-window{position:fixed;right:8px;bottom:125px;width:min(374px,calc(100vw - 16px));height:min(540px,calc(100dvh - 129px))}#alsu-v180-bar.alsu-v180-bar{left:6px!important;max-width:calc(100vw - 110px)!important;padding:5px!important}#alsu-v180-bar.alsu-v180-bar label{display:none}}
@media(max-height:550px){#alsu-chat-window{height:calc(100dvh - 70px);bottom:62px}#alsu-chat-launch img{height:50px}#alsu-chat-launch{min-width:85px!important}}

/* v1.9.2 Date + Time: compact stacked tabs, never stretch across header. */
#alsu-ist-clock{--alsu-actual-founder-width:169px;width:var(--alsu-actual-founder-width)!important;max-width:calc(100vw - 20px)!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:0!important;margin:4px 6px!important;border-radius:7px!important;overflow:hidden!important;text-align:center!important;background:#000080!important;line-height:1.2!important}
#alsu-ist-clock .alsu-clock-date{width:100%;font-size:12px!important;font-weight:700!important;padding:7px 3px!important;color:#fff!important;border-bottom:1px solid rgba(255,255,255,.38)}
#alsu-ist-clock .alsu-clock-time{width:100%;padding:9px 2px!important;color:#fff!important;font-size:16px!important;font-weight:800!important;white-space:nowrap;letter-spacing:0!important}
#alsu-ist-clock .alsu-clock-digits{font-variant-numeric:tabular-nums}
#alsu-ist-clock.alsu-clock-fallback{margin:0!important}
@media(max-width:720px){#alsu-ist-clock{margin:3px 3px!important}#alsu-ist-clock .alsu-clock-time{font-size:14px!important;padding:6px 1px!important}#alsu-ist-clock .alsu-clock-date{font-size:11px!important;padding:5px 2px!important}}
