/* SLI Research AI Navy–Gold brand, matched to SLI home, without adopting homepage layout. */
:root{--rai-bg:#091625;--rai-ink:#eef4f8;--rai-sub:#b5c8d9;--rai-line:#35516b;--rai-blue:#d7b678;--rai-card:#132c43;--rai-gold:#d7b678}
body.sli-research-brand{background:#091625;color:#edf4fa}
body.sli-research-brand .sli-assistant{max-width:1520px;padding:0 32px 70px}
body.sli-research-brand .sli-universal-nav{display:none!important}
.sli-ra-mast{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 2px;border-bottom:1px solid #2e4459}
.sli-ra-brand{display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;text-decoration:none!important;color:#f4f6f8!important;letter-spacing:normal;font-size:initial}
.sli-ra-brand-monogram{display:block;color:#e3c083;font:800 31px/.98 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.075em;padding:1px 12px 1px 0;border-right:1px solid #5b6470}
.sli-ra-brand-name{display:grid;gap:2px;letter-spacing:.09em}
.sli-ra-brand-name strong{color:#f4f6f8;font:720 12px/1.2 system-ui,sans-serif;white-space:nowrap}
.sli-ra-brand-name small{color:#d7b678;font:730 9px/1.2 system-ui,sans-serif;letter-spacing:.2em}
.sli-ra-brand:hover .sli-ra-brand-monogram{color:#f4dba8}
.sli-ra-primary-nav{display:flex;align-items:center;justify-content:center;gap:clamp(11px,1.6vw,25px);flex-wrap:wrap;min-width:0}
.sli-ra-primary-nav a{display:inline-flex;align-items:center;min-height:39px;white-space:nowrap;font:600 12px/1.3 system-ui,sans-serif;color:#d5e2ed;text-decoration:none!important;border-bottom:2px solid transparent}
.sli-ra-primary-nav a:hover,.sli-ra-primary-nav a:focus-visible{color:#f4d79f;border-bottom-color:#d7b678}
.sli-ra-primary-nav a[aria-current=page]{color:#f3d59f;border-bottom-color:#d7b678}
.sli-ra-mastlinks{gap:0;flex:0 0 auto}
.sli-ra-language{display:flex;gap:2px;background:#132d44;border:1px solid #3a5670;padding:3px;border-radius:8px}
.sli-ra-mastlinks .sli-ra-language button{font:650 11px/1.2 system-ui,sans-serif;color:#b8cad9;background:none;border:0;border-radius:5px;padding:7px 9px;min-height:31px;cursor:pointer}
.sli-ra-mastlinks .sli-ra-language button.active,.sli-ra-mastlinks .sli-ra-language button[aria-pressed=true]{background:#ddbf85;color:#0e2436}
.sli-ra-notice{background:#173751;border:1px solid #3b6077;color:#d5e7f0;max-width:1040px;margin:20px auto 0;border-radius:9px}
.sli-ra-notice[data-level=ready]{background:#163d41;border-color:#507e75;color:#bfe7d6}
.sli-ra-intro{text-align:left;max-width:1100px;margin:33px auto 26px;padding:17px 0 0}
.sli-ra-eyebrow{color:#d7b678;letter-spacing:.14em}
.sli-ra-intro h1{color:#f4f6f8;font:600 clamp(36px,4.8vw,61px)/1.14 Georgia,serif;letter-spacing:-.04em;margin:12px 0 10px}
.sli-ra-intro h1 em{color:#d7b678}
.sli-ra-intro h1 span{color:#abc2d5;font-size:.52em;font-weight:400;white-space:normal}
.sli-ra-intro p{color:#c4d4e2;font-size:clamp(15px,1.6vw,19px);line-height:1.55;margin:0 0 13px}
.sli-ra-access-label{background:#1d3b52;border:1px solid #60748a;color:#ebd198;border-radius:8px;font-size:11px;padding:6px 12px}
.sli-ra-utility-links{display:flex;gap:8px 18px;margin-top:14px;flex-wrap:wrap}
.sli-ra-utility-links a{color:#d8c18c;font-size:11px;text-decoration:none;border-bottom:1px solid #6a6a60}
.sli-ra-workspace{max-width:1100px}
.sli-ra-composer{background:#132c43;border:1.5px solid #4a6982;border-radius:13px;box-shadow:0 12px 38px rgba(0,0,0,.12)}
.sli-ra-composer:focus-within{border-color:#d7b678;box-shadow:0 0 0 3px rgba(215,182,120,.14)}
.sli-ra-composer textarea{color:#edf4fb;background:transparent;font-size:16px;min-height:132px}
.sli-ra-composer textarea::placeholder{color:#abc0d2;opacity:1}
.sli-ra-composer-bottom{border-top-color:#34546c}
.sli-ra-selects label{color:#b9cedc}
.sli-ra-selects select{background:#183750;border-color:#547086;color:#edf5f9;min-height:40px}
.sli-ra-send{background:#ddbf85;color:#0d2031;border-radius:9px;min-height:43px}
.sli-ra-send:hover{background:#f0d398;color:#091b2a}
.sli-ra-caution{color:#a9bdca}
.sli-ra-templates h2{color:#e2d0a9;font-size:15px}
.sli-ra-template{background:#132c43;border-color:#395570;color:#f0f5f9}
.sli-ra-template:hover{background:#1b3954;border-color:#d7b678;box-shadow:0 3px 16px rgba(5,12,24,.2)}
.sli-ra-template strong{color:#f5f6f7}.sli-ra-template span{color:#aec4d6}
.sli-ra-owner{background:#142e45;border-color:#41627d;color:#eaf0f6}
.sli-ra-owner-heading strong{color:#f0d69f}
.sli-ra-owner-state{background:#21445c;border-color:#4b6c83;color:#e0eaf2}
.sli-ra-owner p{color:#becddd}.sli-ra-owner a{color:#f0d69f}
.sli-ra-owner-input input{background:#0f263a;color:#edf4f8;border-color:#63839b}
.sli-ra-chat-head{border-bottom-color:#36516c}
.sli-ra-chat-head h2{color:#f2f5f9}
.sli-ra-chat-actions button{background:#132c43;border-color:#526f87;color:#e5edf3}
.sli-ra-chat-actions button:hover:not(:disabled){background:#21465f;border-color:#d7b678}
.sli-ra-message{background:#142e45;border-color:#385775;color:#edf2f7}
.sli-ra-message[data-role=user]{background:#1c3b54;border-color:#6b8091}
.sli-ra-message[data-role=system]{background:#413721;border-color:#8a7046;color:#f7e8d0}
.sli-ra-msg-meta{color:#d8c18e}
.sli-ra-msg-text{color:#e8f0f5}
.sli-ra-msg-text h3,.sli-ra-msg-text h4{color:#edd29a}
.sli-ra-msg-text a,.sli-ra-source-card a{color:#f1ce88;text-decoration:underline;text-underline-offset:2px}
.sli-ra-msg-text p,.sli-ra-msg-text li{color:#e4eff6}
.sli-ra-sources{background:#11283d;border-color:#3e5b73;max-height:82vh;scrollbar-color:#60748a #11283d}
.sli-ra-sources h3{color:#f2f4f8}
.sli-ra-sources p{color:#b2c4d4}
.sli-ra-source-card{border-top-color:#38546e;color:#eaf1f6}
.sli-ra-source-card strong{color:#eaf1f6}
.sli-ra-next{background:#10283e;border-color:#385671;color:#edf1f6}
.sli-ra-next h2{color:#f0d49c}.sli-ra-next p{color:#b7cad9}
.sli-ra-preview-link{color:#f3d49b}
.sli-ra-footer{border-top-color:#35516b;color:#aabfd0}
.sli-ra-footer a{color:#f0d49b}
.sli-ra-visuals{background:#122f47;border-color:#4e7189}
.sli-ra-visuals>h3{color:#eed29e}
.sli-ra-chart{background:#17364d;border-color:#4c6b81;color:#ebf3f9}
.sli-ra-chart-heading strong{color:#f2f4f7}.sli-ra-chart-heading span{color:#bed1de}
.sli-ra-chart-label,.sli-ra-chart-value{color:#ecf1f7}
.sli-ra-chart-track{background:#2b4d65}
.sli-ra-chart-bar{background:#d7b678}
.sli-ra-chart-note{color:#c4d3df!important}
.sli-ra-chart-source a{color:#f0d294}
.sli-ra-chart-none{background:#1d384e;color:#b9cada;border-left-color:#d7b678}
.sli-ra-evidence-note{background:#1c4256;color:#dbe9ec;border-color:#4c737e}
.sli-ra-source-role{background:#22425a;color:#ebd7a4!important;border-color:#5c768c}
.sli-ra-report-table th,.sli-ra-report-table td{border-color:#547089;color:#edf4f8}
.sli-ra-report-table th{background:#22445a;color:#f0d69e}
.sli-ra-msg-text code{background:#23445a;color:#f0d8ac}
.sli-assistant button:focus-visible,.sli-assistant a:focus-visible,.sli-assistant select:focus-visible,.sli-assistant textarea:focus-visible{outline:3px solid #e0bf80;outline-offset:3px}
@media(max-width:1030px){.sli-ra-mast{flex-wrap:wrap}.sli-ra-primary-nav{order:3;width:100%;justify-content:flex-start;gap:18px;border-top:1px solid #264257;padding-top:3px}.sli-ra-mastlinks{margin-left:auto}}
@media(max-width:650px){body.sli-research-brand .sli-assistant{padding:0 15px 40px}.sli-ra-mast{align-items:center;flex-direction:row;gap:10px;padding:12px 0}.sli-ra-brand{gap:10px}.sli-ra-brand-monogram{font-size:27px;padding-right:9px}.sli-ra-brand-name strong{font-size:10px}.sli-ra-brand-name small{font-size:8px}.sli-ra-primary-nav{overflow-x:auto;flex-wrap:nowrap;gap:17px;scrollbar-width:thin}.sli-ra-primary-nav a{font-size:11px}.sli-ra-intro{margin:24px auto 20px}.sli-ra-intro h1{font-size:42px}.sli-ra-intro h1 span{display:block;font-size:.49em;margin-top:5px}.sli-ra-composer{padding:13px}.sli-ra-message,.sli-ra-sources{padding:15px}}

/* Research sources: dark Navy–Gold throughout, including light-mode source panel overrides. */
body.sli-research-brand #raConversation #raSourcesPanel{
 background:#122c42!important;border:1px solid #45637a!important;
 border-radius:13px;color:#eaf2f8!important;padding:18px 20px!important;
}
body.sli-research-brand #raConversation #raSourcesPanel>summary{
 color:#f2d79f!important;border-bottom-color:#426279!important;
}
body.sli-research-brand #raConversation #raSourcesPanel>h3{
 color:#f5f7fa!important;font-size:17px!important;
}
body.sli-research-brand #raConversation #raSourcesPanel>p{
 color:#c5d7e3!important;font-size:13px!important;
}
body.sli-research-brand #raConversation #raSourcesList .sli-ra-source-card{
 background:#0e2538!important;border:1px solid #3e5c72!important;
 color:#ebf3f9!important;border-radius:10px;
}
body.sli-research-brand #raConversation #raSourcesList .sli-ra-source-card>a{
 color:#e8cb93!important;text-underline-offset:4px;line-height:1.65!important;
}
body.sli-research-brand #raConversation #raSourcesList .sli-ra-source-role{
 background:#193c53!important;border-color:#547389!important;
 color:#e1e9ed!important;
}
body.sli-research-brand #raConversation #raSourcesList .sli-ra-source-card a:focus-visible{
 outline:3px solid #e5c88f!important;outline-offset:3px;
}
@media(max-width:650px){body.sli-research-brand #raConversation #raSourcesPanel{padding:14px!important}}


/* Conversation disclosures and follow-ups share the navy/gold research theme.
   Specificity intentionally beats the old light-mode CSS used on other pages. */
body.sli-research-brand #raConversation #raModelStatement{
 background:#132d43!important;border:1px solid #41647d!important;
 color:#dfebf2!important;border-radius:13px!important;
 max-width:100%!important;width:100%!important;
 box-sizing:border-box!important;
}
body.sli-research-brand #raConversation #raModelStatement>summary{
 color:#f2d49c!important;background:transparent!important;
 cursor:pointer;
}
body.sli-research-brand #raConversation #raModelStatementBody,
body.sli-research-brand #raConversation #raModelStatementBody p{
 color:#d6e5ed!important;background:transparent!important;
 opacity:1!important;line-height:1.7!important;
}
body.sli-research-brand #raFollowupPanel{
 max-width:100%;width:100%;box-sizing:border-box;
 background:#122c41!important;border:1px solid #426179!important;
 color:#e8f0f5!important;
}
body.sli-research-brand #raFollowupPanel .sli-ra-followup-heading,
body.sli-research-brand #raFollowupPanel .sli-ra-followup-form label{
 color:#f0d49c!important;
}
body.sli-research-brand #raFollowupPanel .sli-ra-followup-actions button{
 color:#f1e5cd!important;background:#1b4059!important;
 border:1px solid #597991!important;min-height:39px;
}
body.sli-research-brand #raFollowupPanel .sli-ra-followup-actions button:hover{
 background:#2a5168!important;border-color:#ebcd92!important;
}
body.sli-research-brand #raFollowupPanel textarea{
 background:#0b2236!important;border:1px solid #5c7d95!important;
 color:#f3f7fa!important;min-height:120px;
}
body.sli-research-brand #raFollowupPanel textarea::placeholder{color:#b1c6d4!important;opacity:1!important}
body.sli-research-brand #raFollowupPanel .sli-ra-followup-disclaimer{color:#c1d2df!important}
body.sli-research-brand #raFollowupPanel .sli-ra-followup-form button{
 background:#dfbf82!important;color:#102637!important;
 font-weight:750!important
}
body.sli-research-brand #raFollowupPanel .sli-ra-followup-form button:hover{
 background:#f2d6a1!important;
}
@media(max-width:700px){
 body.sli-research-brand #raFollowupPanel{padding:14px!important}
 body.sli-research-brand #raFollowupPanel .sli-ra-followup-actions button{flex:1 1 170px;white-space:normal}
}


/* Compact quick-start: optional examples never dominate a research conversation. */
body.sli-research-brand #raTemplates{
 margin:18px 0 14px!important;max-width:100%;
 background:transparent!important;padding:0!important;border:0!important;
}
body.sli-research-brand #raTemplates .sli-ra-templates-head{
 display:flex;gap:8px 18px;align-items:center;flex-wrap:wrap;margin:0 0 10px;
}
body.sli-research-brand #raTemplates .sli-ra-templates-head>span:first-child{
 color:#ebd19d;font:750 12px/1.4 system-ui,sans-serif;
}
body.sli-research-brand #raTemplates .sli-ra-templates-hint{
 color:#a7c0d1;font:450 11px/1.5 system-ui,sans-serif;
}
body.sli-research-brand #raTemplates .sli-ra-template-grid{
 display:flex!important;flex-wrap:wrap;gap:8px!important;align-items:stretch;
}
body.sli-research-brand #raTemplates .sli-ra-template,
body.sli-research-brand #raTemplates .sli-ra-template-featured{
 display:inline-flex!important;flex-direction:row!important;align-items:center;
 justify-content:space-between;gap:12px;flex:0 1 auto!important;
 min-width:0!important;width:auto!important;grid-column:auto!important;
 margin:0!important;padding:9px 13px!important;min-height:39px!important;
 border:1px solid #4a6478!important;border-radius:9px!important;
 background:#142e43!important;color:#e3edf4!important;
 font:600 12px/1.4 system-ui,sans-serif!important;box-shadow:none!important;
 text-align:left;letter-spacing:0;transition:background .15s,border-color .15s;
}
body.sli-research-brand #raTemplates .sli-ra-template span{
 color:inherit!important;font:inherit!important;
}
body.sli-research-brand #raTemplates .sli-ra-template span[aria-hidden]{
 color:#dfbd83!important;font-size:13px!important;
}
body.sli-research-brand #raTemplates .sli-ra-template:hover{
 background:#23465b!important;border-color:#dfbd83!important;
}
body.sli-research-brand #raTemplates .sli-ra-template:focus-visible,
body.sli-research-brand #raTemplates summary:focus-visible{
 outline:2px solid #e6c587!important;outline-offset:3px;
}
body.sli-research-brand #raTemplates .sli-ra-template-more{
 background:none!important;border:0!important;padding:0!important;
 margin:9px 0 0!important;color:#b7cddc!important;
}
body.sli-research-brand #raTemplates .sli-ra-template-more>summary{
 width:max-content;cursor:pointer;color:#cbd8e2!important;
 font:600 11px/1.5 system-ui,sans-serif;padding:5px 1px;
}
body.sli-research-brand #raTemplates .sli-ra-template-grid-secondary{
 margin-top:8px!important;
}
body.sli-research-brand #raConversation:not([hidden]) ~ #raTemplates{
 display:none!important;
}
/* The chat transcript is the focus after the first completed instruction. */
body.sli-research-brand:has(#raConversation:not([hidden])) #raTemplates{
 display:none!important;
}
@media(max-width:650px){
 body.sli-research-brand #raTemplates .sli-ra-template-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 body.sli-research-brand #raTemplates .sli-ra-template{
  width:100%!important;justify-content:space-between;
  white-space:normal!important;padding:9px 10px!important;
 }
}


/* DERGUBA AI: brand heritage and direct, accessible map link to Dusun Derepan.
   Keep this within the existing SLI navy-and-gold system, not a standalone add-on. */
body.sli-research-brand .sli-ra-intro .sli-ra-derguba-brand-story{
 max-width:940px;margin:15px 0 18px;padding:15px 19px;
 border:1px solid #3f566b;border-left:3px solid #d7b678;border-radius:11px;
 background:linear-gradient(105deg,rgba(21,49,70,.96),rgba(11,32,50,.94));
 color:#c6d7e3
}
body.sli-research-brand .sli-ra-derguba-kicker{
 display:block;margin:0 0 8px;font:780 11px/1.5 system-ui,sans-serif;
 letter-spacing:.13em;color:#e7c98e
}
body.sli-research-brand .sli-ra-intro .sli-ra-derguba-heritage,
body.sli-research-brand .sli-ra-intro .sli-ra-derguba-meaning{
 margin:0 0 6px;color:#c7d9e6;font:450 13px/1.65 system-ui,sans-serif
}
body.sli-research-brand .sli-ra-derguba-meaning{
 letter-spacing:.005em;overflow-wrap:break-word
}
body.sli-research-brand .sli-ra-derguba-meaning strong{color:#edcf94;font-weight:780}
body.sli-research-brand .sli-ra-derepan-map{
 display:inline;color:#f2d59a!important;text-decoration:underline;
 text-decoration-color:rgba(215,182,120,.7);text-underline-offset:3px;
 font-weight:760;white-space:normal
}
body.sli-research-brand .sli-ra-derepan-map:hover{color:#fff2d3!important}
body.sli-research-brand .sli-ra-derepan-map:focus-visible{
 outline:2px solid #f1d392;outline-offset:3px;border-radius:2px
}
@media(max-width:650px){
 body.sli-research-brand .sli-ra-intro .sli-ra-derguba-brand-story{
  padding:13px 14px;margin:13px 0 16px
 }
 body.sli-research-brand .sli-ra-intro .sli-ra-derguba-heritage,
 body.sli-research-brand .sli-ra-intro .sli-ra-derguba-meaning{font-size:12px;line-height:1.6}
}

/* DERGUBA workspace first: responsive masthead and legible introduction. */
body.sli-research-brand{overflow-x:hidden}
body.sli-research-brand .sli-assistant{max-width:100%;box-sizing:border-box}
body.sli-research-brand .sli-ra-mast{min-width:0}
body.sli-research-brand .sli-ra-mastlinks{min-width:0}
body.sli-research-brand .sli-ra-intro{padding-top:8px;margin-top:18px}
body.sli-research-brand .sli-ra-intro h1{font-size:clamp(44px,6vw,78px);letter-spacing:-.045em;line-height:1.08;margin:6px 0 3px;overflow-wrap:anywhere}
body.sli-research-brand .sli-ra-byline{color:#b9ccdc;font:500 clamp(15px,1.5vw,21px)/1.5 Georgia,serif;margin:0 0 15px}
body.sli-research-brand .sli-ra-chat-promise{color:#d3e2ec!important;opacity:1!important;line-height:1.65!important;font-weight:450!important;max-width:850px;margin:0 0 17px}
body.sli-research-brand .sli-ra-intro .sli-ra-derguba-brand-story{max-width:940px;margin:12px 0 16px;padding:0 16px}
body.sli-research-brand .sli-ra-derguba-brand-story>summary{color:#e8cf9f;cursor:pointer;padding:12px 3px;font:700 13px/1.5 system-ui,sans-serif}
body.sli-research-brand .sli-ra-derguba-brand-story .sli-ra-heritage-content{padding:0 3px 12px}
body.sli-research-brand .sli-ra-notice{box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}
@media(max-width:700px){
 body.sli-research-brand .sli-ra-intro h1{font-size:clamp(39px,10vw,57px)}
 body.sli-research-brand .sli-ra-primary-nav{max-width:100%;min-width:0;scrollbar-width:thin}
 body.sli-research-brand .sli-ra-intro{padding-top:0;margin-top:16px}
 body.sli-research-brand .sli-ra-chat-promise{font-size:13px!important}
 body.sli-research-brand .sli-ra-notice{font-size:12px;padding:12px}
}
