/* BayesGenRx homepage v4. Scope: public homepage only; no QMS/workbench changes. */
.genrx-home{--gx-ui-blue:#1268e8;--gx-ui-navy:#10233d;--gx-ui-line:#dce7f4;--gx-ui-muted:var(--muted)}
.genrx-home .topbar{z-index:1000}
.genrx-home .topbar .nav.shell{width:min(1440px,calc(100% - 40px));max-width:1440px;gap:13px;min-height:68px}
.genrx-home .nav-links{gap:5px}
.genrx-home .nav-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.genrx-home .gx-account-slot{display:flex;align-items:center;justify-content:flex-end;min-width:0;max-width:200px}
.genrx-home #bp-auth-widget[data-bpq-docked=true]{position:relative!important;top:auto!important;right:auto!important;z-index:2!important;transform:none!important;visibility:visible}
.genrx-home #bp-auth-widget .bp-auth-pill{min-height:42px;padding:6px 10px;box-shadow:none;font-size:13px;background:#152b44;border-radius:12px}
.genrx-home #bp-auth-widget .bp-auth-menu{z-index:8;min-width:210px}
.genrx-home #bp-auth-widget .bp-auth-pill:focus-visible{outline:3px solid #69a9ff;outline-offset:3px}
.genrx-home .theme-choice{width:42px;height:42px;border-radius:12px}
.genrx-home .nav-links .nav-cta{background:#007f7a;padding:11px 14px}
.genrx-home .gx-entry{padding-top:36px;padding-bottom:30px;gap:28px;align-items:center}
.genrx-home .hero-copy>h1{font-size:clamp(2.45rem,3.65vw,3.55rem);line-height:1.1;margin:12px 0 16px;max-width:690px}
.genrx-home .hero-copy>p:not(.gx-audience){font-size:clamp(.95rem,1.2vw,1.07rem);line-height:1.62;max-width:670px}
.genrx-home .hero-copy>.actions{margin-top:24px;gap:12px}
.genrx-home .hero-copy>.gx-audience{margin-top:17px!important;line-height:1.55!important;font-size:.78rem!important;max-width:600px}
.genrx-home .gx-sample{box-shadow:0 13px 36px #071a3318}
.genrx-home .gx-sample-context{padding:16px 20px 14px}
.genrx-home .gx-sample-context h2{font-size:1.3rem;margin:8px 0}
.genrx-home .gx-sample-context p{font-size:.83rem;line-height:1.5}
.genrx-home .gx-sample-tabs{padding:0 15px 9px;gap:3px}
.genrx-home .gx-sample-tabs [role="tab"]{font-size:.78rem;min-height:42px}
.genrx-home .gx-sample-panel{padding:16px 22px 18px;min-height:225px}
.genrx-home .gx-sample-panel h3{font-size:1.07rem;line-height:1.35;margin:10px 0}
.genrx-home .gx-sample-panel>p{font-size:.83rem;line-height:1.55}
.genrx-home .gx-next{margin-top:15px;padding:11px 13px}
.genrx-home .gx-sample-foot{padding:10px 18px;font-size:.72rem}
.genrx-home .gx-science-entry{padding:26px 28px;margin-bottom:8px}
.genrx-home .gx-science-intro h2{font-size:clamp(1.72rem,2.7vw,2.55rem);line-height:1.15;margin:7px 0 11px}
.genrx-home .gx-science-intro p{font-size:.94rem;line-height:1.55}
.genrx-home .gx-science-actions{margin:14px 0 0;gap:13px}
.genrx-home .gx-market-cards{margin-top:17px;gap:13px}
.genrx-home .gx-market-card{min-height:155px;padding:16px;gap:8px;box-shadow:none}
.genrx-home .gx-market-card strong{font-size:.93rem;line-height:1.43}
.genrx-home .gx-market-caption{font-size:.75rem}
.genrx-home .gx-decision-entry{padding:34px 0 32px}
.genrx-home .gx-decision-title h2{font-size:clamp(1.7rem,2.8vw,2.35rem)}
.genrx-home .gx-decision-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:17px}
.genrx-home .gx-decision-grid>a{grid-column:span 2;min-height:172px;padding:19px;border-radius:15px;gap:8px}
.genrx-home .gx-decision-grid>a:nth-child(n+4){grid-column:span 3}
.genrx-home .gx-decision-grid>a:nth-child(2){border-top:3px solid #008c87}
.genrx-home .gx-decision-grid>a:nth-child(3){border-top:3px solid #1659ae}
.genrx-home .gx-decision-grid>a:nth-child(4){border-top:3px solid #6547a8}
.genrx-home .gx-decision-grid strong{font-size:1.04rem;line-height:1.3}
.genrx-home .gx-decision-grid small{font-size:.84rem;line-height:1.5}
.genrx-home .gx-decision-grid a>span:first-child{font-size:.83rem}
.genrx-home .gx-section{padding-top:54px;padding-bottom:54px}
.genrx-home .gx-quality .gx-split{gap:38px;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
.genrx-home .gx-quality-logo{width:174px;height:auto;margin-bottom:16px}
.genrx-home .gx-quality .gx-section h2,.genrx-home .gx-quality h2{font-size:clamp(1.65rem,2.8vw,2.35rem);line-height:1.2;margin:8px 0 14px}
.genrx-home .gx-quality .gx-feature-copy>p{font-size:.94rem;line-height:1.57}
.genrx-home .gx-quality .gx-boundary{font-size:.75rem;line-height:1.55}
.genrx-home .gx-quality-case [role="tabpanel"]{min-height:0;padding:17px 20px}
.genrx-home .gx-quality-case h3{font-size:1.02rem;margin:11px 0 13px}
.genrx-home .gx-horizontal-tabs{padding:10px 14px}
.genrx-home .gx-timeline li{padding-bottom:12px}
.genrx-home .gx-timeline strong{font-size:.84rem}
.genrx-home .gx-timeline span{font-size:.78rem}
.genrx-home .gx-directory-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(195px,260px);align-items:end;gap:14px;padding:18px}
.genrx-home .gx-directory-search,.genrx-home .gx-directory-category{min-width:0}
.genrx-home .gx-directory-tools label{font-size:.84rem;font-weight:700;line-height:1.4}
.genrx-home .gx-directory-tools input,.genrx-home .gx-directory-tools select{width:100%;height:48px;margin-top:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:.91rem;padding:10px 14px}
.genrx-home .gx-directory-tools select{cursor:pointer}
.genrx-home .gx-module-meta{padding:15px 0;font-size:.83rem}
.genrx-home .gx-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.genrx-home .gx-directory-card{padding:16px 19px;border-radius:13px;min-height:0}
.genrx-home .gx-directory-group{font-size:.78rem;line-height:1.4;font-weight:650}
.genrx-home .gx-directory-card h3{font-size:1.03rem;line-height:1.35;margin:8px 0}
.genrx-home .gx-directory-card p{font-size:.84rem;line-height:1.54;margin:0 0 12px}
.genrx-home .gx-directory-card .gx-output{padding-top:10px;font-size:.78rem}
.genrx-home .gx-directory-card .gx-output span{font-size:.75rem}
.genrx-home .gx-directory-access{font-size:.82rem;margin-top:13px}
.genrx-home .gx-section-head{gap:24px;margin-bottom:24px}
.genrx-home .gx-section-head h2{font-size:clamp(1.75rem,2.65vw,2.45rem)}
.genrx-home .gx-section-head>p{font-size:.91rem}
.genrx-home .gx-directory-tools input:focus-visible,.genrx-home .gx-directory-tools select:focus-visible,.genrx-home .gx-account-slot :focus-visible,.genrx-home .gx-decision-grid a:focus-visible{outline:3px solid #6dabff;outline-offset:3px}
html[data-theme="dark"] .genrx-home .gx-market-card{border-color:#345575}
html[data-theme="dark"] .genrx-home .gx-directory-tools select{background:#142a45;color:#e8f0fb}
@media(max-width:1420px){.genrx-home .nav-links{gap:3px}.genrx-home .nav-links>a{font-size:.77rem}.genrx-home .nav-links .gx-nav-direct{padding:7px 9px}}
@media(max-width:1240px){
 .genrx-home .gx-decision-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .genrx-home .gx-decision-grid>a,.genrx-home .gx-decision-grid>a:nth-child(n+4){grid-column:auto}
 .genrx-home .topbar .nav.shell{width:calc(100% - 28px)}
}
@media(max-width:900px){
 .genrx-home .gx-entry{grid-template-columns:1fr;padding:30px 0}
 .genrx-home .gx-quality .gx-split{grid-template-columns:1fr;gap:25px}
 .genrx-home .gx-market-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .genrx-home .gx-entry{padding:22px 0 30px}
 .genrx-home .hero-copy>h1{font-size:clamp(2.05rem,8.8vw,2.65rem)}
 .genrx-home .gx-science-entry{padding:20px 17px}
 .genrx-home .gx-market-cards,.genrx-home .gx-decision-grid,.genrx-home .gx-module-grid,.genrx-home .gx-directory-tools{grid-template-columns:1fr}
 .genrx-home .gx-market-card{min-height:0}
 .genrx-home .gx-decision-grid>a{min-height:0}
 .genrx-home .gx-directory-tools{padding:14px;gap:10px}
 .genrx-home .gx-account-slot{max-width:46px}
 .genrx-home #bp-auth-widget .bp-auth-pill{padding:0}
 .genrx-home .gx-quality-logo{width:152px}
 .genrx-home .gx-sample-panel{min-height:0}
 .genrx-home .gx-section{padding-top:42px;padding-bottom:42px}
}
@media(prefers-reduced-motion:reduce){.genrx-home .gx-market-card{transition:none}.genrx-home .gx-market-card:hover{transform:none}}

/* On laptop widths, keep authenticated actions visible without crushing navigation. */
@media(min-width:1181px) and (max-width:1420px){
 .genrx-home .nav-links .gx-nav-direct.gx-nav-plain{display:none}
 .genrx-home .gx-account-slot{max-width:46px}
 .genrx-home #bp-auth-widget .bp-auth-pill{width:42px;height:42px;padding:0;justify-content:center}
 .genrx-home #bp-auth-widget .bp-auth-pill>span:not(.bp-auth-avatar),
 .genrx-home #bp-auth-widget .bp-auth-pill>i{display:none}
 .genrx-home #bp-auth-widget .bp-auth-avatar{width:27px;height:27px;font-size:11px}
}
