/* Ask GovGreed: an upgrade of the existing chat surface and design system.
   All colors/font families come from theme.css; original rich chat rendering stays. */
.gg-research-chat .chat-page{max-width:1180px;min-height:calc(100dvh - 88px);padding:0 32px}
.gg-research-chat .chat-header-bar{justify-content:space-between;align-items:center;gap:18px;padding:25px 0 20px;border-bottom:1px solid var(--border);margin-bottom:0;flex-wrap:wrap}
.research-product{display:flex;align-items:center;gap:9px;font-family:var(--font-mono);font-size:max(var(--fs-min,0px),11px);letter-spacing:1.1px;color:var(--green);font-weight:600}
.research-live-dot{width:6px;height:6px;background:var(--green);border-radius:50%;box-shadow:var(--glow-green)}
.research-product-sub{font-family:var(--font-sans);font-size:max(var(--fs-min,0px),12px);letter-spacing:0;color:var(--text-dim);font-weight:400;border-left:1px solid var(--border);padding-left:14px;margin-left:5px}
.research-toolbar{display:flex;gap:8px;align-items:center}
.gg-research-chat .chat-new-btn{min-height:38px;font-size:max(var(--fs-min,0px),12px);padding:8px 12px;display:inline-flex;align-items:center;gap:7px;color:var(--text);border-color:var(--border);background:var(--surface);border-radius:8px}
.gg-research-chat .chat-new-btn:hover{color:var(--green);border-color:var(--green)}
.gg-research-chat #chatNewBtn{color:var(--green);background:var(--green-dim);border-color:var(--green-border)}
.gg-research-chat .chat-welcome{padding:40px 20px 24px;gap:15px;flex:1;justify-content:center}
.gg-research-chat .chat-welcome-logo{width:53px;height:53px;border-radius:15px;box-shadow:var(--glow-green);background:var(--green-dim);border-color:var(--green-border)}
.gg-research-chat .chat-welcome-logo svg{width:32px;height:32px}
.research-eyebrow{font:max(var(--fs-min,0px),10px)/1.6 var(--font-mono);letter-spacing:1.5px;color:var(--text-dim);text-align:center}
.gg-research-chat .chat-welcome-title{font-family:var(--font-display);font-size:clamp(34px,4.1vw,53px);font-weight:600;letter-spacing:-1.9px;line-height:1.15;text-align:center;margin:0;color:var(--text-bright)}
.gg-research-chat .chat-welcome-title span{color:var(--green)}
.gg-research-chat .chat-welcome-sub{max-width:580px;font-size:16px;line-height:1.75;color:var(--text-dim)}
.gg-research-chat .chat-suggestions-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:100%;margin-top:14px}
.gg-research-chat .chat-suggest-btn{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:17px;padding:22px 19px;background:var(--surface);border:1px solid var(--border);border-radius:12px;min-height:176px;color:var(--text)}
.gg-research-chat .chat-suggest-btn:hover{background:var(--surface2);border-color:var(--green);box-shadow:var(--shadow-md)}
.gg-research-chat .chat-suggest-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--green-border);border-radius:8px;background:var(--green-dim);color:var(--green);font-size:22px}
.research-starter-copy strong{display:block;font-size:15px;font-weight:600;color:var(--text-bright);margin-bottom:7px;line-height:1.4}
.research-starter-copy>span{display:block;font-size:max(var(--fs-min,0px),13px);color:var(--text-dim);line-height:1.7}
.research-starter-arrow{position:absolute;top:22px;right:19px;color:var(--text-dim);font-size:16px}
.research-quick-questions{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:5px;font-size:max(var(--fs-min,0px),12px);color:var(--text-dim)}
.research-quick-questions button{font:inherit;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:8px 13px;cursor:pointer}
.research-quick-questions button:hover{color:var(--green);border-color:var(--green-border)}
.research-evidence-strip{display:flex;justify-content:center;gap:24px;flex-wrap:wrap;padding:9px 0 0;font-size:max(var(--fs-min,0px),11px);color:var(--text-dim)}
.research-evidence-strip span::before{content:'✓';color:var(--green);margin-right:7px}
.research-page-context{display:flex;justify-content:space-between;gap:14px;padding:12px 15px;margin-top:15px;background:var(--green-dim);border:1px solid var(--green-border);border-radius:8px;font-size:max(var(--fs-min,0px),13px);overflow-wrap:anywhere}
.research-page-context[hidden]{display:none}
.research-page-context a{color:var(--green);text-decoration:none;white-space:nowrap;align-self:center}
.gg-research-chat .chat-input-bar{padding-top:16px;padding-bottom:16px}
.gg-research-chat .chat-input-inner{border-color:var(--border);background:var(--surface);padding:10px 10px 10px 16px;border-radius:14px;align-items:flex-end;gap:13px;box-shadow:var(--shadow-lg)}
.gg-research-chat .chat-input-textarea{font-size:16px;line-height:1.65;min-height:53px;color:var(--text-bright);padding:5px 0}
.gg-research-chat .chat-send-btn{width:45px;height:45px;background:var(--green);color:var(--bg);border-radius:10px}
.gg-research-chat .chat-mode-toggle{align-self:flex-end;margin-bottom:2px}
.gg-research-chat .chat-mode-btn{min-height:36px;padding:6px 10px;font-size:max(var(--fs-min,0px),11px);white-space:nowrap}
.research-input-help{display:flex;justify-content:space-between;gap:12px;margin-top:12px!important;text-align:left!important}
.gg-research-chat .chat-input-hint{font-size:max(var(--fs-min,0px),11px);line-height:1.7;color:var(--text-dim)}
.gg-research-chat .chat-msg-row{gap:15px}
.gg-research-chat .chat-bubble-assistant{font-size:16px;line-height:1.8}
.gg-research-chat .chat-bubble-assistant p{line-height:1.8}
.gg-research-chat .chat-bubble-user{font-size:16px;line-height:1.7}
.gg-research-chat .chat-msg-actions{opacity:1}
.gg-research-chat .chat-msg-action-btn{min-height:32px;font-size:max(var(--fs-min,0px),11px)}
.gg-research-chat.research-large-text .chat-bubble-assistant,.gg-research-chat.research-large-text .chat-bubble-user,.gg-research-chat.research-large-text .chat-input-textarea{font-size:20px}
.research-history-dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;width:min(650px,calc(100% - 32px));max-height:80dvh;margin:auto;padding:25px;box-shadow:var(--shadow-lg)}
.research-history-dialog::backdrop{background:var(--bg);opacity:.85}
.research-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}
.research-dialog-header .research-eyebrow{text-align:left;font-size:max(var(--fs-min,0px),9px)}
.research-dialog-header h2{font-family:var(--font-display);font-size:25px;color:var(--text-bright);margin:5px 0 0}
.research-history-list{font-size:14px;color:var(--text-dim);min-height:80px}
.research-history-list>a{color:var(--green)}
.research-history-item{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;text-align:left;background:none;color:var(--text);border:0;border-bottom:1px solid var(--border);padding:16px 8px;font:inherit;cursor:pointer}
.research-history-item strong{font-size:14px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.research-history-item span{font-size:max(var(--fs-min,0px),11px);white-space:nowrap;color:var(--text-dim)}
.research-history-item:hover{background:var(--surface2);color:var(--green)}
.gg-research-chat button:focus-visible,.gg-research-chat a:focus-visible{outline:2px solid var(--green);outline-offset:4px}
@media(min-width:1500px){.gg-research-chat .chat-welcome{padding-top:55px;padding-bottom:35px;gap:20px}}
@media(max-width:1080px){.research-product-sub{display:none}.gg-research-chat .chat-suggestions-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:740px}.gg-research-chat .chat-suggest-btn{min-height:150px;padding:18px;gap:12px}.gg-research-chat .chat-welcome{padding-top:30px}}
@media(max-width:640px){.gg-research-chat .chat-page{padding:0 15px;min-height:calc(100dvh - 56px)}.gg-research-chat .chat-header-bar{padding:16px 0 14px;gap:13px}.research-product{font-size:max(var(--fs-min,0px),10px)}.research-toolbar{gap:6px;width:100%;justify-content:space-between}.gg-research-chat .chat-new-btn{padding:7px 10px;font-size:max(var(--fs-min,0px),11px);min-height:36px}.gg-research-chat .chat-welcome{padding:27px 0 22px;gap:15px;flex:initial}.research-eyebrow{font-size:max(var(--fs-min,0px),8px);letter-spacing:1px}.gg-research-chat .chat-welcome-title{font-size:35px;letter-spacing:-1.2px}.gg-research-chat .chat-welcome-sub{font-size:15px}.gg-research-chat .chat-suggestions-grid{gap:9px;margin-top:8px}.gg-research-chat .chat-suggest-btn{padding:15px 12px;min-height:175px}.research-starter-copy strong{font-size:14px}.research-starter-copy>span{font-size:max(var(--fs-min,0px),12px)}.research-starter-arrow{right:13px;top:17px}.research-quick-questions{font-size:max(var(--fs-min,0px),11px);gap:7px}.research-quick-questions>span{width:100%;text-align:center}.research-evidence-strip{gap:8px 15px;font-size:max(var(--fs-min,0px),10px)}.gg-research-chat .chat-input-inner{flex-wrap:wrap;gap:6px 12px;padding:10px}.gg-research-chat .chat-mode-toggle{order:3;flex-basis:100%;display:flex;justify-content:flex-start}.gg-research-chat .chat-input-textarea{width:calc(100% - 60px);min-width:0;min-height:65px}.gg-research-chat .chat-input-bar{position:static;padding-top:5px}.gg-research-chat:has(.chat-messages[style*="display: flex"]) .chat-input-bar{position:sticky}.research-input-help>span:last-child{display:none}.research-page-context{font-size:max(var(--fs-min,0px),12px)}.research-history-dialog{padding:20px}.research-dialog-header h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.gg-research-chat *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Short screens (1366x768 in large text): the sticky question bar covered the starter cards
   (fix list item 7, 2026-11-14). Compact the welcome and let the bar follow it in the flow until
   a conversation starts, as the phone layout already does. */
@media(max-height:900px) and (min-width:641px){.gg-research-chat .chat-welcome{padding:14px 20px 12px;gap:8px;justify-content:flex-start}.gg-research-chat .chat-welcome-logo,.gg-research-chat .research-eyebrow{display:none}.gg-research-chat .chat-welcome-title{font-size:clamp(30px,3.4vw,44px)}.gg-research-chat .chat-welcome-sub{font-size:max(var(--fs-min,0px),15px);line-height:1.55}.gg-research-chat .chat-suggest-btn{min-height:0;padding:14px 16px}.gg-research-chat .chat-input-bar{position:static}.gg-research-chat:has(.chat-messages[style*="display: flex"]) .chat-input-bar{position:sticky}}
