/* Braintech V102 — unify resource mastheads with Investments & Wealth.
   Desktop-only typography, positioning and scroll-revealed capsule.
   Mobile navigation and animated canvas stay unchanged. */
@media (min-width:791px) {
 body.resources-landing .topbar,
 body.resource-subpage .topbar,
 body.xray-page .topbar {
   position:fixed !important;
   z-index:75 !important;
   top:20px;
   width:min(calc(100% - 76px),1400px);
   height:78px;
   padding:0 24px 0 29px;
   gap:22px;
   border:1px solid transparent;
   border-radius:20px;
   background:rgba(8,12,18,.025);
   box-shadow:none;
   -webkit-backdrop-filter:none;
   backdrop-filter:none;
   transition:width .5s ease,height .5s ease,padding .5s ease,background .5s ease,
              border-color .5s ease,border-radius .5s ease,box-shadow .5s ease;
 }
 body.resources-landing .topbar.compact,
 body.resource-subpage .topbar.compact,
 body.xray-page .topbar.compact {
   width:min(calc(100% - 76px),1100px);
   height:66px;
   padding:0 23px;
   border-radius:100px;
   border-color:rgba(242,239,231,.15);
   background:rgba(9,14,21,.89);
   box-shadow:0 17px 44px rgba(0,0,0,.24);
   -webkit-backdrop-filter:blur(22px);
   backdrop-filter:blur(22px);
 }
 body.resources-landing .brand img,
 body.resource-subpage .brand img,
 body.xray-page .brand img {height:55px;max-width:239px;transition:height .5s ease,max-width .5s ease;}
 body.resources-landing .topbar.compact .brand img,
 body.resource-subpage .topbar.compact .brand img,
 body.xray-page .topbar.compact .brand img {height:46px;max-width:205px;}
 body.resources-landing .desktop-nav,
 body.resource-subpage .desktop-nav,
 body.xray-page .desktop-nav {gap:7px;}
 body.resources-landing .desktop-nav > a,
 body.resource-subpage .desktop-nav > a,
 body.xray-page .desktop-nav > a,
 body.resources-landing .nav-resources > a,
 body.resource-subpage .nav-resources > a,
 body.xray-page .nav-resources > a {
   height:auto;
   font-size:14px;
   font-weight:500;
   letter-spacing:.012em;
   padding:12px 14px 13px;
   border-radius:100px;
   color:#d8d1c4;
   transition:color .25s ease;
 }
 body.resources-landing .nav-resources,
 body.resource-subpage .nav-resources,
 body.xray-page .nav-resources {gap:0;}
 body.resources-landing .nav-resources > a,
 body.resource-subpage .nav-resources > a,
 body.xray-page .nav-resources > a {padding-right:6px;}
 body.resources-landing .submenu-toggle,
 body.resource-subpage .submenu-toggle,
 body.xray-page .submenu-toggle {padding:10px 7px 10px 4px;color:#d8d1c4;}
 body.resources-landing .desktop-nav > a::after,
 body.resource-subpage .desktop-nav > a::after,
 body.xray-page .desktop-nav > a::after,
 body.resources-landing .nav-resources > a::after,
 body.resource-subpage .nav-resources > a::after,
 body.xray-page .nav-resources > a::after {
   left:14px;right:14px;bottom:6px;height:2px;border-radius:999px;
   background:linear-gradient(90deg,#ff6a1f,#ffad77);
 }
 body.resources-landing .nav-resources > a::after,
 body.resource-subpage .nav-resources > a::after,
 body.xray-page .nav-resources > a::after {right:6px;}
 body.resources-landing .desktop-nav :is(a:hover,a:focus-visible,a.active),
 body.resource-subpage .desktop-nav :is(a:hover,a:focus-visible,a.active),
 body.xray-page .desktop-nav :is(a:hover,a:focus-visible,a.active) {color:#fff;}
 body.resources-landing .nav-dropdown,
 body.resource-subpage .nav-dropdown,
 body.xray-page .nav-dropdown {top:48px;right:-12px;}
}
@media (min-width:791px) and (max-width:1100px) {
 body.resources-landing .topbar,body.resource-subpage .topbar,body.xray-page .topbar,
 body.resources-landing .topbar.compact,body.resource-subpage .topbar.compact,body.xray-page .topbar.compact {gap:12px;padding-left:16px;padding-right:16px;}
 body.resources-landing .brand img,body.resource-subpage .brand img,body.xray-page .brand img {height:48px;max-width:196px;}
 body.resources-landing .topbar.compact .brand img,body.resource-subpage .topbar.compact .brand img,body.xray-page .topbar.compact .brand img {height:43px;max-width:178px;}
 body.resources-landing .desktop-nav,body.resource-subpage .desktop-nav,body.xray-page .desktop-nav {gap:2px;}
 body.resources-landing .desktop-nav > a,body.resource-subpage .desktop-nav > a,body.xray-page .desktop-nav > a,
 body.resources-landing .nav-resources > a,body.resource-subpage .nav-resources > a,body.xray-page .nav-resources > a {font-size:12.6px;padding:10px 9px 12px;}
 body.resources-landing .nav-resources > a,body.resource-subpage .nav-resources > a,body.xray-page .nav-resources > a {padding-right:5px;}
}
/* Resource pathways: warm ivory at rest, white on hover or keyboard focus. */
body.resources-landing .destination h2,
body.resource-subpage:not(.xray-page) .tool-row .tool-title,
body.resource-subpage:not(.xray-page) :is(.edition,.future-topic) h3 {color:#f2efe7 !important;}
body.resources-landing .destination:is(:hover,:focus-visible,:focus-within) h2,
body.resource-subpage:not(.xray-page) .tool-row:is(:hover,:focus-within) .tool-title,
body.resource-subpage:not(.xray-page) :is(.edition,.future-topic):is(:hover,:focus-within) h3 {color:#fff !important;}
/* Interactive overlines use the softer Braintech orange, not ivory. */
body.resource-subpage:not(.xray-page) .tool-row .tool-meta,
body.resource-subpage:not(.xray-page) .tool-row:is(:hover,:focus-within) .tool-meta {color:#eba06e !important;}
/* Touch screens: retain the approved high-contrast white resource titles. */
@media(max-width:790px) {
 body.resources-landing .destination h2,
 body.resource-subpage:not(.xray-page) .tool-row .tool-title,
 body.resource-subpage:not(.xray-page) :is(.edition,.future-topic) h3 {color:#fff !important;}
}
@media(prefers-reduced-motion:reduce) {
 body.resources-landing .topbar,body.resource-subpage .topbar,body.xray-page .topbar {transition:none;}
}
