/* Reader-selected Home presentation. Article pages keep their own palette. */
[data-page="home"] .home-style-picker{
 margin:12px 0 0;padding:8px 7px 9px;min-width:0;border:1px solid #bb8a43;border-radius:12px;
 background:#0e0d0b;color:#f7d58b;box-shadow:0 3px 10px rgba(0,0,0,.18);font-family:Manrope,sans-serif;
}
[data-page="home"] .home-style-picker[hidden]{display:none!important}
[data-page="home"] .home-style-picker legend{padding:0 6px;font:700 12px/1.3 Manrope,sans-serif;letter-spacing:.03em;color:#f7d58b}
[data-page="home"] .home-style-picker button{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;margin:0;padding:5px 7px;
 border:1px solid transparent;border-radius:8px;background:transparent;color:#ead9b6;font:600 12px/1.2 Manrope,sans-serif;cursor:pointer;
}
[data-page="home"] .home-style-picker button[aria-pressed="true"]{border-color:#f4c76e;background:#2c2316;color:#ffe2a6;box-shadow:inset 0 -2px 0 #f4c76e}
[data-page="home"] .home-style-picker button:focus-visible{outline:2px solid #fff3df;outline-offset:2px}
[data-page="home"] .style-swatch{width:12px;height:12px;border-radius:50%;border:1px solid rgba(255,255,255,.5);flex:none}
[data-page="home"] .style-swatch--copper{background:linear-gradient(135deg,#521915,#db763c)}
[data-page="home"] .style-swatch--ivory{background:#ffffff}
[data-page="home"] .style-swatch--classic{background:#203a56}
@media(min-width:1101px){[data-page="home"] .home-intro{padding-top:214px}}

html:is([data-home-style="ivory"],[data-home-style="classic"]) body:has([data-page="home"].active){
 --bg:#ffffff;background-color:#ffffff!important;background-image:none!important;
}
html[data-home-style="classic"] body:has([data-page="home"].active){--bg:#e7ebef;background-color:#e7ebef!important}
html:is([data-home-style="ivory"],[data-home-style="classic"]) [data-page="home"]{--text:#202c3b;--muted:#58677a;color:#202c3b}
html:is([data-home-style="ivory"],[data-home-style="classic"]) [data-page="home"] .home-intro :is(h1,.brand-promise,.hero-message>p,.eyebrow,h1 span,.brand-promise span),
html:is([data-home-style="ivory"],[data-home-style="classic"]) [data-page="home"] .home-catalyst-section>:is(h2,p,span),
html:is([data-home-style="ivory"],[data-home-style="classic"]) [data-page="home"] .home-world-brand p,
html:is([data-home-style="ivory"],[data-home-style="classic"]) [data-page="home"] .home-world-brand p .home-world-emphasis,
html:is([data-home-style="ivory"],[data-home-style="classic"]) [data-page="home"] .weekly-catalyst-actions a{color:#202c3b!important;text-shadow:none!important;-webkit-text-fill-color:#202c3b}
html:is([data-home-style="ivory"],[data-home-style="classic"]) body:has([data-page="home"].active) .site-header{background:#ffffff!important;border-bottom-color:#c4b89e!important;--text:#202c3b;--muted:#58677a}
html[data-home-style="classic"] body:has([data-page="home"].active) .site-header{background:#f6f9fc!important;border-bottom-color:#b3c4d1!important}
html:is([data-home-style="ivory"],[data-home-style="classic"]) body:has([data-page="home"].active) .site-header :is(.brand strong,.brand em,.nav-links a,.search-trigger,.search-trigger kbd,.header-start span,.header-start strong){color:#10223b!important}
html:is([data-home-style="ivory"],[data-home-style="classic"]) body:has([data-page="home"].active) .site-header :is(.header-start,.search-trigger){background:#fffdf9!important;border-color:#10223b!important}
html:is([data-home-style="ivory"],[data-home-style="classic"]) body:has([data-page="home"].active) .site-header .menu-button>span:not(.sr-only){background:#10223b!important}
@media(max-width:900px){html:is([data-home-style="ivory"],[data-home-style="classic"]) body:has([data-page="home"].active) .site-header .nav-links{background:#fffdf9!important;border-color:#b3c4d1!important}}

html[data-home-style="classic"] [data-page="home"] :is(.home-latest-section,.weekly-catalyst-row,.mobile-explore-rail>a,.home-sidebar>.home-watchlist,.home-sidebar>.home-biotech-market){
 --be-surface:#203a56;--be-text:#f5f8ff;--be-muted:#d0dceb;--be-link:#8ae5ef;--be-border:#49617b;--be-accent:#8ae5ef;
 --panel:#203a56;--panel2:#142a42;--text:#f5f8ff;--muted:#d0dceb;--cyan:#8ae5ef;
 --rail-accent:#83dbe7!important;--rail-tint:#203a56!important;
 background:linear-gradient(145deg,#294964,#203a56 52%,#142a42)!important;border-color:#49617b!important;color:#f5f8ff!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 4px 0 #10223b,0 10px 16px rgba(16,34,59,.2)!important;
}
html[data-home-style="classic"] [data-page="home"] :is(.home-latest-section,.weekly-catalyst-row,.home-sidebar>.home-watchlist,.home-sidebar>.home-biotech-market) :is(h2,h3,strong),
html[data-home-style="classic"] [data-page="home"] .home-latest-section h3 a,
html[data-home-style="classic"] [data-page="home"] .mobile-explore-rail>a>span:not(.rail-arrow){color:#f5f8ff!important;text-shadow:none!important}
html[data-home-style="classic"] [data-page="home"] :is(.home-latest-section,.weekly-catalyst-row,.home-sidebar>.home-watchlist,.home-sidebar>.home-biotech-market) :is(p,time,small,.home-analysis-hook){color:#d0dceb!important}
html[data-home-style="classic"] [data-page="home"] :is(.home-latest-section,.weekly-catalyst-row,.home-sidebar>.home-watchlist,.home-sidebar>.home-biotech-market) :is(a,.ticker,.ticker a,.home-card-label,.weekly-catalyst-date),
html[data-home-style="classic"] [data-page="home"] .mobile-explore-rail .rail-arrow{color:#8ae5ef!important}
html[data-home-style="classic"] [data-page="home"] .home-latest-section h3 a{color:#f5f8ff!important}
html[data-home-style="classic"] [data-page="home"] .home-sidebar>.home-biotech-market .home-market-fallback{color:#202c3b!important}
html[data-home-style="classic"] [data-page="home"] .home-sidebar>.home-biotech-market .home-market-fallback a{color:#076d7c!important}
html[data-home-style="classic"] [data-page="home"] .home-sidebar>:is(.home-watchlist,.home-biotech-market)>h2{background:linear-gradient(125deg,#264963,#10223b)!important;border-bottom-color:#72cbd8!important;color:#f5f8ff!important}
html[data-home-style="classic"] [data-page="home"] .home-latest-section .home-feed-card{background:rgba(10,28,46,.28)!important;border-color:#49617b!important}
html[data-home-style="classic"] [data-page="home"] .home-latest-section[data-home-kind="analysis"] .home-feed-card{background:#203a56!important}
html[data-home-style="classic"] [data-page="home"] :is(.home-watchlist-row,.home-watchlist-remove,.home-watchlist-explore,.home-x-contact){background:#142a42!important;border-color:#49617b!important;color:#f5f8ff!important}
html[data-home-style="classic"] [data-page="home"] .home-x-contact :is(span,strong){color:#f5f8ff!important}
html[data-home-style="classic"] [data-page="home"] .mobile-explore-rail .rail-mascot{background:#142a42!important;box-shadow:0 0 0 1px rgba(131,219,231,.35),0 3px 8px rgba(0,0,0,.2)!important}
html[data-home-style="classic"] [data-page="home"] .mobile-explore-rail>a{border-top-color:#72cbd8!important}
html[data-home-style="classic"] [data-page="home"] .home-style-picker{background:#142a42;border-color:#72cbd8}
html[data-home-style="classic"] [data-page="home"] .home-style-picker :is(legend,button){color:#f5f8ff}
html[data-home-style="classic"] [data-page="home"] .home-style-picker button[aria-pressed="true"]{background:#294964;border-color:#8ae5ef;box-shadow:inset 0 -2px 0 #8ae5ef}
html[data-home-style="classic"] body:has([data-page="home"].active) footer{background:#203a56!important;border-color:#49617b!important}
html[data-home-style="classic"] body:has([data-page="home"].active) footer :is(a,p,span,small,strong,em){color:#d0dceb!important}
@media(hover:hover) and (prefers-reduced-motion:no-preference){html[data-home-style="classic"] [data-page="home"] .mobile-explore-rail>a:hover{background:linear-gradient(145deg,#345875,#244762 65%,#19334e)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 5px 0 #10223b,0 14px 19px rgba(16,34,59,.25)!important}}
@media(forced-colors:active){
 html[data-home-style] body:has([data-page="home"].active),html[data-home-style] body:has([data-page="home"].active) :is(.site-header,footer),
 html[data-home-style] [data-page="home"] :is(.home-style-picker,.home-style-picker button,.home-latest-section,.weekly-catalyst-row,.mobile-explore-rail>a,.home-sidebar>.home-watchlist,.home-sidebar>.home-biotech-market,.home-feed-card,.home-watchlist-row,.home-watchlist-remove,.home-watchlist-explore,.home-x-contact){background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}
 html[data-home-style] [data-page="home"] :is(h1,h2,h3,p,strong,span,time,small,a,button,legend),html[data-home-style] [data-page="home"] .home-intro :is(h1 span,.brand-promise span),html[data-home-style] body:has([data-page="home"].active) .site-header :is(strong,em,a,span,kbd){color:CanvasText!important;-webkit-text-fill-color:CanvasText;text-shadow:none!important}
 html[data-home-style] [data-page="home"] .home-style-picker button[aria-pressed="true"]{outline:2px solid Highlight}
}

/* Midnight Copper: warm bronze shadows and the Copper relief, with App Blue cards. */
html[data-site-variant="midnight"]{background:#302219;color-scheme:dark}
html[data-home-style="app"][data-site-variant="midnight"] body:has(#main){
 --reader-canvas:#302219;
 background-color:#493322!important;
 background-image:radial-gradient(ellipse at 18% 10%,rgba(164,107,57,.18),transparent 55%),linear-gradient(110deg,rgba(29,22,18,.58),rgba(43,29,22,.38) 48%,rgba(18,19,25,.66)),url("home-ember-background.webp")!important;
 background-blend-mode:screen,normal,luminosity!important;
 background-position:center top!important;background-size:auto,auto,cover!important;background-repeat:no-repeat!important;background-attachment:fixed!important;
}
html[data-home-style] :is(.home-style-picker,.site-style-picker) .style-swatch--midnight{background:linear-gradient(135deg,#86603c,#302219 50%,#0d1529)!important}
@media(forced-colors:active){html[data-home-style="app"][data-site-variant="midnight"] body:has(#main){background:Canvas!important;color:CanvasText!important}}
