@import './remix-icons.css';
/* Scope's typography, palette, spacing and local Remix masks are the visual authority. */
.ask{--ask-bg:var(--color-background);--ask-ink:var(--color-contrast);--ask-muted:var(--color-secondary);color:var(--ask-ink);font-family:var(--font-family-body);min-width:0}
.ask *,.ask-page{box-sizing:border-box}.ask [hidden]{display:none!important}.ask button,.ask textarea{font:inherit;color:inherit}.ask button{cursor:pointer}.ask button:disabled{cursor:wait}.ask a{color:inherit;text-decoration:none}
.ask :is(button,a,textarea):focus-visible{outline:2px solid var(--color-contrast);outline-offset:4px}
.ask-icon{display:inline-block;width:20px;height:20px;flex:0 0 20px;background:currentColor;mask:var(--ask-icon) center/contain no-repeat;-webkit-mask:var(--ask-icon) center/contain no-repeat}
.ask-icon--next{--ask-icon:var(--ri-arrow-right-s-line)}.ask-icon--send{--ask-icon:var(--ri-speak-ai-fill)}
.ask-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}.ask-eyebrow,.ask-open,.ask-reset{font:12px/1.5 var(--font-family-mono)}.ask-eyebrow{color:var(--ask-muted)}.ask-open,.ask-reset{display:inline-flex;align-items:center;gap:6px;min-height:40px}.ask-open:hover,.ask-continue:hover{color:var(--color-accent)}
.ask--compact{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,1.15fr);column-gap:48px;margin:36px 0 40px;padding:20px 28px 28px;border-block:1px solid var(--color-border)}
.ask--compact .ask-heading{grid-column:1/-1;margin-bottom:20px}.ask-intro{grid-column:1;grid-row:2/4}.ask-intro h2{margin:0 0 14px;font:600 26px/1.25 var(--font-family-headings);letter-spacing:-.035em}.ask-intro p{margin:0;max-width:370px;font-size:15px;line-height:1.7;color:var(--color-foreground)}
.ask--compact .ask-compose-wrap,.ask--compact .ask-suggestions{grid-column:2}.ask--compact .ask-compose-wrap{margin-top:18px}
.ask-suggestions{display:grid;gap:12px;margin:0}
.ask-suggestions button{display:flex;align-items:flex-start;gap:14px;width:100%;min-width:0;min-height:80px;padding:16px;background:var(--color-background-100);border:0;border-radius:6px;text-align:start;transition:background-color 160ms ease}
.ask-suggestions button>span:not(.ask-icon):not(.ask-topic-icon){flex:1;min-width:0}
.ask-suggestions strong{display:block;font-size:14px;font-weight:500;line-height:1.5}
.ask-suggestions small{display:block;margin-top:6px;color:var(--ask-muted);font-size:12px;line-height:1.5}
.ask-topic-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:5px;background:var(--color-background-200);color:var(--color-accent)}
.ask-suggestions button>.ask-icon{align-self:center;width:16px;height:16px;flex-basis:16px;color:var(--ask-muted)}
.ask-suggestions button:hover{background:var(--color-background-200)}
/* Scope styles every form and submit button globally; constrain those defaults. */
[data-ask] .ask-composer{display:flex;flex-direction:row;align-items:flex-end;gap:12px;--ask-input-inset:18px;padding:12px var(--ask-input-inset);width:calc(100% + 2 * var(--ask-input-inset));margin:0 calc(-1 * var(--ask-input-inset));border:0;border-radius:6px;background:var(--color-background-100);box-shadow:none;transition:box-shadow 180ms ease}
[data-ask] .ask-composer:focus-within{box-shadow:0 3px 18px color-mix(in srgb,var(--color-accent) 18%,transparent),0 0 0 1px color-mix(in srgb,var(--color-accent) 45%,transparent)}
[data-ask] .ask-composer textarea{display:block;resize:none;width:100%;min-width:0;height:40px;min-height:40px;max-height:140px;padding:8px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:15px;line-height:24px;color:var(--color-foreground)}
[data-ask] .ask-composer textarea:focus{outline:none}.ask-composer textarea::placeholder{color:var(--ask-muted);opacity:1;white-space:nowrap;text-overflow:ellipsis}
[data-ask] button.ask-send{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;flex:0 0 40px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ask-ink);line-height:1;transform:none}
[data-ask] button.ask-send:hover{background:transparent;box-shadow:none;color:var(--color-accent);transform:none}[data-ask] button.ask-send>.ask-icon{display:block}[data-ask] button.ask-send[data-busy]>.ask-icon{--ask-icon:var(--ri-stop-fill)}
.ask-bottom{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:10px;margin-top:10px;font:10px/1.6 var(--font-family-mono);color:var(--ask-muted)}.ask-continue{display:inline-flex;align-items:center;gap:4px;color:var(--ask-ink)!important;font-size:12px;min-height:36px}.ask-continue .ask-icon{width:16px;height:16px;flex-basis:16px}
.ask-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.ask-local{position:fixed;right:12px;bottom:8px;z-index:20;padding:3px 6px;font:9px/1.4 var(--font-family-mono);color:var(--color-secondary);background:var(--color-background);pointer-events:none}
.ask-thread{display:flex;flex-direction:column;gap:28px;overflow-wrap:anywhere;outline:none}.ask--compact[data-has-messages]{grid-template-columns:1fr}.ask--compact[data-has-messages] .ask-compose-wrap{grid-column:1}.ask--compact .ask-thread{grid-column:1/-1;max-height:400px;overflow-y:auto;overscroll-behavior:contain;margin:0 0 6px;padding-right:16px;scrollbar-width:thin}
.ask-message{max-width:100%;font-size:16px;line-height:1.75}.ask-message--user{align-self:flex-end;width:fit-content;max-width:88%;min-height:40px;margin-inline-start:auto;padding:8px 16px;border:0;border-radius:24px;background:var(--color-background-100);color:var(--ask-ink)}.ask-message--user p{margin:0;white-space:pre-wrap;font:400 16px/1.5 var(--font-family-body);letter-spacing:normal}.ask-message--assistant{padding:0 0 4px}.ask-author{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.ask-answer p{margin:0 0 16px}.ask-answer p:last-child{margin:0}.ask-answer strong{font-weight:600}
.ask-sources{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:20px}.ask-sources a{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:30px;font:11px/1.5 var(--font-family-mono);color:var(--ask-muted)}.ask-sources a>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px;border-bottom:1px solid var(--color-border)}.ask-sources a:hover{color:var(--ask-ink)}.ask-sources .ask-icon{width:14px;height:14px;flex-basis:14px}
.ask-followups{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.ask-followups button,.ask-jump{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 15px;border:0;border-radius:24px;background:var(--color-background-100);font-size:13px;line-height:1.4;color:var(--color-foreground);text-align:start;text-decoration:none;box-shadow:none;transition:background-color 160ms ease}
.ask-followups button:hover,.ask-jump:hover{border-color:var(--ask-muted);background:var(--color-background-200)}
.ask-followups .ask-icon{width:16px;height:16px;flex-basis:16px;color:var(--color-accent)}
.ask-jump{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);white-space:nowrap;box-shadow:0 4px 16px #0002}
.ask-answer--typing p:last-child::after{content:'';display:inline-block;width:2px;height:1em;background:var(--ask-ink);vertical-align:-.12em;margin-inline-start:3px;animation:ask-caret 900ms step-end infinite}
@keyframes ask-caret{50%{opacity:0}}
.ask-thinking{display:flex;align-items:center;gap:5px;min-height:24px}.ask-thinking span{width:4px;height:4px;border-radius:50%;background:var(--ask-muted);animation:ask-pulse 1.3s infinite}.ask-thinking span:nth-child(2){animation-delay:.18s}.ask-thinking span:nth-child(3){animation-delay:.36s}@keyframes ask-pulse{50%{opacity:.25}}
/* Center the reading column inside Scope’s content area. */
.ask-page{width:100%;padding:30px 28px 0;max-width:calc(820px + 56px);margin-inline:auto}.ask--full{display:flex;flex-direction:column;max-width:820px;min-height:calc(100svh - 120px);margin-top:16px}.ask-reset{background:transparent;border:0;padding:0;color:var(--ask-muted)!important}.ask-reset:hover{color:var(--ask-ink)!important}
.ask .ask-reset{font:12px/1.5 var(--font-family-mono)}
.ask-page-title{margin:30px 0 44px}.ask-page-title h1{margin:0 0 18px;font:600 clamp(32px,3.5vw,48px)/1.2 var(--font-family-headings);letter-spacing:-.035em}.ask-page-title p{max-width:620px;margin:0;font-size:18px;line-height:1.65;color:var(--color-foreground)}.ask-welcome{margin:0}.ask-welcome h2{margin:0 0 16px;font:12px/1.5 var(--font-family-mono);color:var(--ask-muted)}
.ask--full .ask-suggestions{grid-template-columns:1fr 1fr;gap:12px;margin:0 0 32px}.ask--full .ask-suggestions button{min-height:84px;padding:16px}.ask--full .ask-suggestions strong{font:450 15px/1.5 var(--font-family-headings)}
.ask--full .ask-compose-wrap{position:sticky;bottom:0;margin-top:auto;padding:20px 0 28px;background:var(--ask-bg);z-index:2}.ask--full .ask-thread{margin:0 0 24px;gap:30px}.ask--full .ask-message--assistant{max-width:720px}.ask--full[data-has-messages] .ask-page-title{margin-bottom:28px}
@media(max-width:1100px){.ask--compact{column-gap:28px;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr)}.ask-intro h2{font-size:24px}}
@media(max-width:767px){
.ask--compact{display:flex;flex-direction:column;padding:16px 0 22px;margin:28px 0 32px}.ask--compact .ask-heading{margin-bottom:20px}.ask-eyebrow,.ask-open,.ask-reset{font-size:10px}.ask-heading{gap:12px}.ask-open{gap:2px}.ask-intro h2{font-size:24px;margin-bottom:12px}.ask-intro p{font-size:14px;line-height:1.7;max-width:100%}.ask--compact .ask-compose-wrap{margin-top:18px}.ask--compact .ask-suggestions{margin-top:16px}.ask-suggestions strong{font-size:13px}
[data-ask] .ask-composer{--ask-input-inset:14px;padding:10px var(--ask-input-inset);gap:8px}[data-ask] .ask-composer textarea{font-size:16px}.ask-bottom{font-size:9px}.ask-page{padding:16px 0 0}.ask--full{margin-top:12px;min-height:calc(100svh - 95px)}.ask-page-title{margin:26px 0 32px}.ask-page-title h1{font-size:32px}.ask-page-title p{font-size:16px}.ask--full .ask-suggestions{grid-template-columns:1fr;margin-bottom:16px}.ask--full .ask-suggestions button{min-height:80px;padding:14px}.ask--full .ask-suggestions strong{font-size:14px}.ask--full .ask-compose-wrap{padding:16px 0 28px}.ask--compact .ask-thread{margin-bottom:0;padding-right:6px}.ask-message{font-size:15px}.ask-message--user p{font-size:16px}.ask-sources a>span:first-child{max-width:240px}
}
@media(prefers-reduced-motion:reduce){.ask *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.ask--full .ask-page-title{margin-top:12px}.ask-bottom>.ask-reset{order:2;margin-inline-start:auto;min-height:28px}
/* Native Scope fragments: layout adapters only; card media, headings and excerpt styles stay native. */
.ask-rich-cards{margin-top:24px}
.ask-rich-cards .section-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
.ask-rich-cards .post-card{min-width:0;cursor:pointer}
.ask-rich-article{margin-block:20px 28px;min-width:0}
.ask-rich-article .ask-article-native{width:100%;max-width:100%;padding:0;margin:0}
.ask-rich-article [hidden]{display:none!important}
.ask-rich-article .ask-block-revealing{position:relative}
.ask-rich-article .ask-block-revealing::after{content:'';display:inline-block;width:2px;height:1em;background:var(--ask-ink);margin-inline-start:3px;animation:ask-caret 900ms step-end infinite}
.ask-rich-status{font-size:13px;color:var(--ask-muted);margin-top:16px}
.ask-rich-status a{display:inline-block;margin-inline-start:12px;text-decoration:underline}
.ask-rich-retry{padding:8px 12px;border:0;border-radius:6px;background:var(--color-background-100)}
.ask--full .ask-message--assistant:has(.ask-rich-article){max-width:100%}
@media(max-width:600px){.ask-rich-cards .section-list{grid-template-columns:1fr}}

/* Theme link decorations must never bleed into action labels. */
.ask-followups button::after,.ask-followups button::before{content:none}
.ask-followups button,.ask-followups button span{text-decoration:none;border:0;box-shadow:none}
