/* Theme-aware surfaces and readable interaction states, scoped to this page. */
html[data-theme="light"] { --text-muted:#536477; --accent:#14649f; }
html[data-theme="dark"] { --text-muted:#9aadc2; }
body.rearch-home #header .nav-link,body.rearch-home #header.scrolled .nav-link,body.rearch-home #header .nav-item:is(:hover,.is-open)>.nav-link,body.rearch-home #header .btn-text { color:var(--nav-text)!important; }
body.rearch-home #header :is(.nav-link,.btn-text):is(:hover,:focus-visible) { background:var(--accent-soft)!important; color:var(--accent)!important; }
body.rearch-home #header .brand-tagline { opacity:1; color:var(--text-secondary)!important; }
body.rearch-home #header :is(.mega-menu,.mega-menu-inner,.mega-footer) { background:var(--surface-elevated)!important; color:var(--text-primary)!important; border-color:var(--border)!important; }
body.rearch-home #header :is(.submenu-title-group h3,.product-name,.products-tab,.footer-link) { color:var(--text-primary)!important; }
body.rearch-home #header :is(.submenu-title-group p,.product-tagline,.footer-status,.products-empty) { color:var(--text-secondary)!important; }
body.rearch-home #header :is(.submenu-search-box,.submenu-search-input,.carousel-chevron,.products-tab span) { background:var(--surface-muted)!important; color:var(--text-primary)!important; border-color:var(--border)!important; }
body.rearch-home #header .submenu-search-input::placeholder { color:var(--text-secondary); opacity:1; }
body.rearch-home #header .product-card { background:var(--surface)!important; border-color:var(--border)!important; color:var(--text-primary)!important; }
body.rearch-home #header .product-card:is(:hover,:focus-visible) { background:var(--surface-muted)!important; border-color:var(--accent)!important; }
body.rearch-home #header .product-card:is(:hover,:focus-visible) .product-tagline { color:var(--text-primary)!important; }
body.rearch-home #header .product-explore { color:var(--accent)!important; }
body.rearch-home #header .products-tab:is(.is-active,:hover,:focus-visible) { background:var(--accent-soft)!important; color:var(--accent)!important; }
body.rearch-home #mobileMenu :is(.mobile-product-link,.mobile-product-search,.mobile-account-link) { background:var(--surface)!important; color:var(--text-primary)!important; border-color:var(--border)!important; }
body.rearch-home #mobileMenu :is(h3,strong,summary,a) { color:var(--text-primary)!important; }
body.rearch-home #mobileMenu :is(p,small,.mobile-product-link>span) { color:var(--text-secondary)!important; }
body.rearch-home #mobileMenu input { color:var(--text-primary)!important; background:var(--surface)!important; }
body.rearch-home #mobileMenu input::placeholder { color:var(--text-secondary)!important; opacity:1; }
body.rearch-home .footer .flow-word { color:var(--text-primary)!important; }
html[data-theme="dark"] body.rearch-home :is(#header,.footer) .abd-word { color:#71b8ff!important; }
.rh-mini-builder { color:var(--text-primary); }
.rh-mini-builder :is(h3,strong) { color:var(--text-primary); }
.rh-mini-builder p,.rh-mini-count span { color:var(--text-secondary); }
.rh-stage-number,.rh-comparison h3 em,.rh-product-copy small,.rh-catalogue-link a { color:var(--accent); }
.rh-record-head small,.rh-record-list>span,.rh-record-content aside>span,.rh-flow-lanes article>span,.rh-flow-head>span,.rh-workspace-tabs button>span,.rh-comparison article>span,.rh-compare-switch,.rh-keep-strip small,.rh-keep-strip>i,.rh-ai-evidence span,.rh-ai-evidence i,.rh-ai-output footer,.rh-industry-directory span,.rh-industry-directory i { color:var(--text-secondary); }
.rh-flow-status b { color:var(--text-primary); }
.rh-record-list b { background:var(--accent-soft); color:var(--accent); }
.rh-product-top,.rh-badge { color:var(--text-secondary); border-color:var(--border-strong); }
.rh-product:is(:hover,:focus-visible) { background:var(--surface-muted); color:var(--text-primary); border-color:var(--accent); }
.rh-product:is(:hover,:focus-visible) p { color:var(--text-secondary); }
.rh-property-art span,.rh-menu-art span { color:#fff; text-shadow:0 2px 10px #000; }
.rh-industry-directory a:is(:hover,:focus-visible),.rh-catalogue-link a:is(:hover,:focus-visible) { color:var(--accent); }
.rh-industry-picker button:not([aria-pressed="true"]):is(:hover,:focus-visible),.rh-more-industries summary:hover { color:var(--accent); background:var(--accent-soft); border-color:var(--accent); }
.rh-workspace-tabs button:hover,.rh-ai-tabs button:hover,.rh-record-tabs button:hover { color:var(--text-primary); background:var(--accent-soft); }
body.rearch-home :is(a,button,summary,input):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
body.rearch-home #header :is(.products-tabs,.products-tab) { background:var(--surface)!important; border-color:var(--border)!important; }
body.rearch-home #header .products-tab:is(.is-active,:hover,:focus-visible) { background:var(--surface-muted)!important; color:var(--accent)!important; }
body.rearch-home .rh-catalogue-link a { color:var(--accent)!important; }
.rh-faq-list summary i { color:var(--text-secondary); }
/* Shared chrome has a more-specific legacy scrolled rule with a pale gradient. */
html[data-theme] body.rearch-home #header[data-abd-chrome="1"],
html[data-theme] body.rearch-home #header[data-abd-chrome="1"].is-visible.scrolled { background:var(--nav-bg)!important; border-color:var(--border)!important; }
html[data-theme] body.rearch-home #header .flow-word,
html[data-theme] body.rearch-home .footer .flow-word { color:var(--text-primary)!important; -webkit-text-fill-color:var(--text-primary)!important; text-shadow:none!important; }
html[data-theme="dark"] body.rearch-home :is(#header,.footer) .abd-word { -webkit-text-fill-color:#71b8ff!important; }
body.rearch-home #mobileMenu { background:var(--page-bg)!important; color:var(--text-primary)!important; }
