/* BASE final site-wide background / type pairing, 25 Oct 2026.
   Loaded after legacy and page-level inline styles to stop colour collisions.
   Maintain dark ink on cream/lilac and ivory on plum. */
:root{--qa-ink:#302238;--qa-body:#483b48;--qa-ivory:#fffaf5;--qa-light:#f7f2ed;--qa-lilac:#e9dbe9;--qa-plum:#302238;--qa-muted-light:#f0e4f0}
html body.rtb-sitewide-v2{background:var(--qa-light);color:var(--qa-ink)}
html body.rtb-sitewide-v2 .site-header{background:#fffaf5!important;color:#302238!important}
html body.rtb-sitewide-v2 .site-header :is(a,button,span){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 .site-footer{background:#231d28!important;color:#f7edf4!important}
html body.rtb-sitewide-v2 .site-footer :is(p,span,small,a,strong,.footer-title){color:#f7edf4!important;-webkit-text-fill-color:#f7edf4!important}
html body.rtb-sitewide-v2 .site-footer a:hover{text-decoration:underline}
/* Standard light sections. These selectors target section content, not nested dark demo devices. */
html body.rtb-sitewide-v2 :is(.section:not(.fund-dark),.split-section,.snapshot-section,.snapshot-after,.research-thesis,.rtb-research-why,.rtb-insight-section,.rtb-women,.rtb-research-partner,.rtb-pov,.framework-lens,.rtb-org-intro,.base-development-approach,.base-moment,.fp-section,.fund-offers,.fund-human-moment):not(.fund-dark){color:#302238!important}
html body.rtb-sitewide-v2 :is(.fp-section,.research-thesis,.rtb-research-why,.rtb-insight-section,.rtb-women,.rtb-research-partner,.framework-lens,.rtb-org-intro,.base-development-approach,.snapshot-after) :is(h1,h2,h3,h4){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 :is(.fp-section,.research-thesis,.rtb-research-why,.rtb-insight-section,.rtb-women,.rtb-research-partner,.framework-lens,.rtb-org-intro,.base-development-approach,.snapshot-after) :is(p,li,small){color:#483b48!important;-webkit-text-fill-color:#483b48!important;opacity:1!important}
/* Dark full-bleed panels. Never use brown headings or dark copy on dark plum. */
html body.rtb-sitewide-v2 :is(.rtb-client-panel,.fund-dark,.fund-research-evidence,.rtb-research-dark,.band-contact,.fp-hero,.fp-cta){background-color:#302238!important;color:#fffaf5!important}
html body.rtb-sitewide-v2 :is(.rtb-client-panel,.fund-dark,.fund-research-evidence,.rtb-research-dark,.band-contact,.fp-hero,.fp-cta) :is(h1,h2,h3,h4){color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important;opacity:1!important}
html body.rtb-sitewide-v2 :is(.rtb-client-panel,.fund-dark,.fund-research-evidence,.rtb-research-dark,.band-contact,.fp-hero,.fp-cta) :is(p,li,small){color:#f1e5ef!important;-webkit-text-fill-color:#f1e5ef!important;opacity:1!important}
html body.rtb-sitewide-v2 :is(.rtb-client-panel,.fund-dark,.fund-research-evidence,.rtb-research-dark,.band-contact,.fp-hero,.fp-cta) :is(.eyebrow,.fp-kicker,.fund-kicker,.rtb-client-kicker){color:#eac7f1!important;-webkit-text-fill-color:#eac7f1!important}
html body.rtb-sitewide-v2 .rtb-client-panel .rtb-client-tab{background:#3c3043!important;color:#fffaf5!important;border-color:#78677f!important}
html body.rtb-sitewide-v2 .rtb-client-panel .rtb-client-tab :is(strong,span,p){color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}
html body.rtb-sitewide-v2 .rtb-client-panel .rtb-client-link{background:#38253b!important;background-image:none!important;color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important;border:2px solid #a98bb1!important;opacity:1!important;text-shadow:none!important}
/* Research: dark hero copy with deliberately LIGHT research art; separate foregrounds. */
html body.page-research .rtb-research-hero .rtb-hero-copy :is(h1,h2,h3,p,.intro){color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}
html body.page-research .rtb-research-hero .rtb-hero-copy .eyebrow{color:#eac7f1!important;-webkit-text-fill-color:#eac7f1!important}
html body.page-research .rtb-research-hero .rtb-research-art{background:#eee3ef!important;color:#302238!important}
html body.page-research .rtb-research-hero .rtb-research-art :is(h2,h3,p,strong,span,a,blockquote){color:#302238!important;-webkit-text-fill-color:#302238!important}
/* Framework: the light illustration must not inherit white hero text. */
html body.page-framework .rtb-framework-hero .rtb-framework-art{background:#eee3ef!important;color:#302238!important}
html body.page-framework .rtb-framework-hero .rtb-framework-art :is(p,a,strong,span){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.page-framework .rtb-framework-hero .rtb-framework-art .rtb-framework-letters span{background:#fffaf5!important;color:#302238!important;-webkit-text-fill-color:#302238!important}
/* Forms: inputs, labels and feedback stay readable on any section colour. */
html body.rtb-sitewide-v2 :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#fffdf9!important;color:#302238!important;border-color:#8a7687!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 :is(input,textarea)::placeholder{color:#675967!important;-webkit-text-fill-color:#675967!important;opacity:1!important}
html body.rtb-sitewide-v2 :is(.form-card,.contact-form,.snapshot-form,.snapshot-panel) :is(label,legend){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 :is(button,a,input,select,textarea):focus-visible{outline:3px solid #ad78c0!important;outline-offset:3px!important}
/* New system: explicitly protect text contrast in each coloured section. */
html body.rtb-sitewide-v2 #main.rtb-clear :is(.bs-statement,.bs-system,.bs-contrast,.rc-white,.rc-soft,.rc-jo,.bs-split) :is(h1,h2,h3,h4,blockquote){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 #main.rtb-clear :is(.bs-statement,.bs-system,.bs-contrast,.rc-white,.rc-soft,.rc-jo,.bs-split) :is(p,li){color:#483b48!important;-webkit-text-fill-color:#483b48!important}
html body.rtb-sitewide-v2 #main.rtb-clear :is(.bs-hero,.rc-companion,.bs-cta) :is(h1,h2,h3,h4){color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}
html body.rtb-sitewide-v2 #main.rtb-clear :is(.bs-hero,.rc-companion,.bs-cta) :is(p,li){color:#f1e5ef!important;-webkit-text-fill-color:#f1e5ef!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-device{background:#fcf8f3!important;color:#302238!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-device :is(h3,p,strong,span){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-device .rc-prompt{background:#eee5ef!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-device .rc-choice button{color:#302238!important;-webkit-text-fill-color:#302238!important;background:#fffdf9!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-device .rc-choice button[aria-pressed=true]{background:#50314b!important;color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}
html body.rtb-sitewide-v2 #main.rtb-clear .bs-method>div{background:#fffaf5!important}
html body.rtb-sitewide-v2 #main.rtb-clear .bs-method :is(b,span){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-button.rc-light{background:#fffaf5!important;color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-button.rc-outline{background:transparent!important;color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important;border-color:#d9b9db!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-button:not(.rc-light):not(.rc-outline){background:#302238!important;color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}
html body.rtb-sitewide-v2 #main.rtb-clear .rc-textlink{color:#533457!important;-webkit-text-fill-color:#533457!important}
/* Explicit type sizes and line-height prevent unreadable compact labels. */
html body.rtb-sitewide-v2 main :is(p,li){line-height:1.6}
html body.rtb-sitewide-v2 main :is(.eyebrow,.rc-kicker,.bs-eyebrow){font-size:max(11px,.75rem);line-height:1.45}
@media(max-width:760px){html body.rtb-sitewide-v2 #main.rtb-clear .rc-wrap{width:calc(100% - 36px)}html body.rtb-sitewide-v2 .rtb-client-tabs{gap:12px}html body.rtb-sitewide-v2 .site-footer{overflow-wrap:anywhere}}

/* Exceptions: pale cards inside dark parent sections must retain dark type. */
html body.rtb-sitewide-v2 .fund-dark :is(.fund-offer-grid article,.fund-offer-grid article a:not(.fund-btn),.fund-offer-grid article p,.fund-offer-grid article h3){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 .fund-story .fund-offer-grid article{background:#fffdf9!important}
html body.rtb-sitewide-v2 .fund-story .fund-offer-grid article :is(h3,p,small,strong){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 .fund-story .fund-offer-grid article a{background:#43283a!important;color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}
html body.rtb-sitewide-v2 .base-moment .moment-phone{background:#fffdf9!important}
html body.rtb-sitewide-v2 .base-moment .moment-phone :is(h3,p,header){color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 .base-moment .moment-options button{background:#f3eaf0!important;color:#302238!important;-webkit-text-fill-color:#302238!important}
html body.rtb-sitewide-v2 .base-moment .moment-options button[aria-pressed=true]{background:#50334c!important;color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}
html body.rtb-sitewide-v2 .base-moment .moment-response{background:#f4eee8!important;color:#302238!important;-webkit-text-fill-color:#302238!important}

/* Critical mobile hero fix: override older homepage dark-type declarations. */
html body.rtb-sitewide-v2 main#main.rtb-clear section.rc-hero.bs-hero,
html body.rtb-sitewide-v2 main#main.rtb-clear section.rc-hero.bs-hero .rc-wrap{color:#fffaf5!important}
html body.rtb-sitewide-v2 main#main.rtb-clear section.rc-hero.bs-hero :is(h1,h2,h3,p,span,strong,small),
html body.rtb-sitewide-v2 main#main.rtb-clear section.rc-hero.bs-hero .rc-kicker{color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important;opacity:1!important;text-shadow:none!important}
html body.rtb-sitewide-v2 main#main.rtb-clear section.rc-hero.bs-hero .rc-kicker{color:#edc8f3!important;-webkit-text-fill-color:#edc8f3!important}
html body.rtb-sitewide-v2 main#main.rtb-clear section.rc-hero.bs-hero .rc-button.rc-light{color:#302238!important;-webkit-text-fill-color:#302238!important;background:#fffaf5!important}
html body.rtb-sitewide-v2 main#main.rtb-clear section.rc-hero.bs-hero .rc-button.rc-outline{color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important}

/* Contact pathway action: enforce matching background and text at highest component specificity. */
html body.rtb-sitewide-v2 main .rtb-client-panel a.rtb-client-link,html body.rtb-sitewide-v2 main .rtb-client-panel a.rtb-client-link:visited,html body.rtb-sitewide-v2 main .rtb-client-panel a.rtb-client-link:hover,html body.rtb-sitewide-v2 main .rtb-client-panel a.rtb-client-link:focus-visible{background:#38253b!important;background-color:#38253b!important;background-image:none!important;color:#fffaf5!important;-webkit-text-fill-color:#fffaf5!important;border:2px solid #ad90b5!important;opacity:1!important;text-shadow:none!important}
