/* The RiskNET search follows the shared page inset. */
.search-assistant{position:fixed;left:50%;bottom:max(40px,env(safe-area-inset-bottom));width:min(calc(100% - 3rem),var(--page-max,80rem));transform:translateX(-50%);z-index:1150;display:flex;justify-content:flex-end;pointer-events:none;font:400 15px/1.5 Arial,Helvetica,sans-serif;color:#393a3d}
.search-assistant[hidden],.search-assistant [hidden]{display:none!important}
.search-assistant *,.search-assistant *::before,.search-assistant *::after{box-sizing:border-box}
.sa-nav-trigger{display:none}
.search-assistant>.sa-launcher,.search-assistant>.sa-panel{pointer-events:auto}
.search-assistant button,.search-assistant input{font:inherit;text-transform:none;letter-spacing:normal;margin:0;box-shadow:none;text-decoration:none}
.search-assistant button{cursor:pointer}
.search-assistant button::after,.search-assistant button::before{content:none}
.search-assistant :is(button,a,input,summary):focus-visible{outline:2px solid #2d4281;outline-offset:3px}
.search-assistant svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.search-assistant .sa-launcher{--button-surface:#fcb13f;--button-contour:transparent;--button-ink:#2d4281;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:11px 20px 11px 16px;border:0;border-radius:99px;background:#fcb13f;color:#2d4281;font-weight:700;font-size:15px;box-shadow:0 6px 24px #18294c20}
.sa-panel{position:absolute;right:0;bottom:70px;width:min(460px,100%);max-height:min(620px,calc(100dvh - 142px - var(--sa-footer-offset, 0px)));display:flex;flex-direction:column;border:0;border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 12px 48px #18294c24;isolation:isolate}
.sa-panel.is-expanded{width:min(740px,100%);max-height:min(810px,calc(100dvh - 142px - var(--sa-footer-offset, 0px)))}
.sa-header{flex:none;background:#fff;color:#2d4281;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 14px 18px 20px}
.sa-identity{min-width:0}
.sa-header strong{display:block;font-size:17px;line-height:1.3;color:#2d4281;font-weight:700}
.sa-scope{margin:0;padding:0 20px 8px;color:#535c6d;font-size:14px}
.sa-tools{display:flex;flex:none;gap:0}
.search-assistant .sa-tools button{--button-surface:transparent;--button-contour:transparent;--button-ink:#2d4281;display:grid;place-items:center;width:36px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#2d4281;min-width:0;min-height:0}
.search-assistant .sa-tools button:focus-visible{outline-color:#2d4281;outline-offset:-2px}
.sa-content{flex:1;min-height:0;overflow:auto;padding:16px 20px 12px;background:#fff;overscroll-behavior:contain;scroll-padding-top:12px}
.sa-content:empty{display:none}
.sa-content:focus-visible{outline:2px solid #2d4281;outline-offset:-4px}
.sa-result-status{margin:0 0 8px;color:#2d4281;font-size:14px;font-weight:700}

.sa-results{display:grid;gap:8px}
.search-assistant .sa-result{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;color:#2d4281;text-decoration:none!important;border:0;border-radius:8px;background:transparent;line-height:1.4;transition:background .15s ease}
.sa-result-copy{min-width:0}.sa-result>svg{width:17px;height:17px;color:#667085}
.sa-result small{display:block;color:#667085;font-size:11px;line-height:1.4;margin-bottom:5px;font-weight:600}
.sa-result strong{font-size:14px;font-weight:700;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.45}
.sa-result span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;color:#535c6d;margin-top:5px;line-height:1.5}
.search-assistant .sa-result:hover{background:#e9eef8}
.search-assistant .sa-all-results{display:inline-flex;align-items:center;min-height:40px;margin-top:8px;font-size:14px;color:#2d4281;text-underline-offset:3px}
.sa-result-disclosure{margin:12px 0 0}
.sa-result-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;list-style:none;cursor:pointer;color:#2d4281;font-size:13px;font-weight:600;padding:8px 0}
.sa-result-disclosure>summary::-webkit-details-marker{display:none}.sa-result-disclosure>summary svg{width:16px;height:16px;transition:transform .15s ease}.sa-result-disclosure[open]>summary svg{transform:rotate(45deg)}.sa-result-disclosure>.sa-results{margin-top:5px}
.sa-prompt-dock{flex:none;padding:8px 20px 12px;background:#fff}.sa-prompt-dock:empty{display:none}.sa-suggestions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;margin:0}
.search-assistant .sa-suggestions button{--button-surface:#fff;--button-contour:#d4dbea;--button-ink:#2d4281;display:inline-flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;color:#2d4281;border:1px solid #d4dbea;border-radius:22px;padding:10px 15px;min-height:44px;max-width:100%;font-size:13px;line-height:1.4;text-align:left;font-weight:400;transition:background .15s ease,border-color .15s ease}
.sa-suggestions button>svg{width:15px;height:15px}
.search-assistant .sa-suggestions button:hover{background:#f2f5fb;border-color:#b7c3dd}.search-assistant .sa-tools button:hover{background:#f2f5fb}
.search-assistant .sa-suggestions button:disabled{opacity:.6;cursor:wait}
.sa-compose{display:flex;align-items:flex-end;gap:8px;padding:8px 16px 8px;background:#fff;flex:none;margin:0}
.search-assistant .sa-compose input{min-width:0;width:100%;min-height:48px;padding:12px 15px;border:1px solid #cbd2e0;border-radius:24px;background:#f7f8fb;color:#393a3d;font-size:14px;line-height:22px;outline-offset:2px}
.search-assistant .sa-compose input::placeholder{color:#667085;opacity:1}
.search-assistant .sa-compose button{--button-surface:#fcb13f;--button-contour:transparent;--button-ink:#2d4281;flex:none;display:grid;place-items:center;min-width:48px;height:48px;padding:0;background:#fcb13f;color:#2d4281;border:0;border-radius:50%}
.search-assistant .sa-compose button:disabled{cursor:wait;opacity:.6;transform:none}
body:has(dialog[open]) .search-assistant,body:has([aria-modal="true"]:not([hidden])) .search-assistant{visibility:hidden}
@media(max-width:600px){.sa-panel,.sa-panel.is-expanded{width:100%;max-height:min(620px,calc(100dvh - 120px - var(--sa-footer-offset, 0px)));bottom:66px;border-radius:20px}.sa-panel.is-expanded{max-height:calc(100dvh - 120px - var(--sa-footer-offset, 0px))}.sa-header{padding:15px 10px 15px 16px;gap:5px}.sa-avatar{width:34px;height:36px}.sa-avatar svg.sa-mark{width:25px;height:25px}.sa-header strong{font-size:16px}.sa-header .sa-identity>div>span{font-size:11px}.search-assistant .sa-tools button{width:32px}.sa-content{padding:20px 16px 12px}.sa-welcome h2{font-size:18px}.sa-compose{padding:10px 12px 8px}.search-assistant .sa-compose input{font-size:16px}.sa-result strong{font-size:14px}}
@media(max-width:48rem){
 .search-assistant{bottom:max(16px,env(safe-area-inset-bottom));width:calc(100% - 2rem)}
 .search-assistant .sa-launcher{display:none}
}
@media(prefers-reduced-motion:reduce){.search-assistant button,.search-assistant .sa-result,.sa-result-disclosure>summary svg{transition:none!important;transform:none!important}}

@media(max-width:600px){.sa-prompt-dock{padding-inline:16px}.sa-suggestions{gap:7px}.search-assistant .sa-suggestions button{font-size:12px;padding:9px 12px}.sa-header strong{font-size:15px}.sa-scope,.sa-content{padding-inline:16px}}
@media(max-height:600px){
 .search-assistant{bottom:max(16px,env(safe-area-inset-bottom))}
 .sa-panel,.sa-panel.is-expanded{bottom:0;max-height:calc(100dvh - 32px - var(--sa-footer-offset, 0px))}
 .sa-launcher[aria-expanded=true]{visibility:hidden}
 .sa-header{padding-block:10px}
 .sa-prompt-dock{padding-block:6px}
}

/* Keep fixed controls clear of the graph toolbar and the forum category cards. */
.search-assistant.is-in-page{position:static;width:100%;transform:none;margin-block:.25rem .75rem}
.search-assistant.is-in-page .sa-launcher{width:auto;height:auto;min-height:44px;padding:.5rem .875rem;gap:.5rem;font-size:.8125rem;box-shadow:none}
.search-assistant.is-in-page .sa-launcher>span{position:static;width:auto;height:auto;margin:0;clip-path:none;overflow:visible}
.search-assistant.is-in-page .sa-panel{position:fixed;z-index:1150;right:max(1rem,calc((100% - var(--page-max,80rem)) / 2));bottom:max(1rem,env(safe-area-inset-bottom));max-width:calc(100vw - 2rem);max-height:calc(100dvh - 2rem - var(--sa-footer-offset, 0px))}

/* Reserve the visible footer area for its links while keeping the original floating position. */
.search-assistant:not(.is-in-page){translate:0 calc(-1 * var(--sa-footer-offset, 0px))}
.search-assistant.is-in-page .sa-panel{bottom:calc(max(1rem,env(safe-area-inset-bottom)) + var(--sa-footer-offset, 0px))}
.search-assistant.footer-fills-viewport:not(.is-in-page),
.search-assistant.footer-limits-panel .sa-panel{visibility:hidden;pointer-events:none}
