/* GematriaRTM V64 — one clear navigation hierarchy across public pages. */
:root{--n64-ink:#17243a;--n64-muted:#617086;--n64-line:#dbe4ee;--n64-soft:#f5f7fb;--n64-blue:#3659db;--n64-teal:#087d82}
body:not(.rtm-lab-page) .header{background:rgba(255,255,255,.985)!important;border-bottom:1px solid var(--n64-line)!important;box-shadow:0 5px 18px rgba(18,36,60,.055)!important}
body:not(.rtm-lab-page) .header-inner{height:72px!important;min-height:72px!important;width:min(1460px,calc(100% - 36px))!important;gap:18px!important}
body:not(.rtm-lab-page) .brand{flex:0 0 auto!important;gap:9px!important}
body:not(.rtm-lab-page) .brand img{width:39px!important;height:39px!important}
body:not(.rtm-lab-page) .brand strong{color:#101a2a!important;-webkit-text-fill-color:#101a2a!important;font-size:17px!important;font-weight:950!important}
body:not(.rtm-lab-page) .brand small{color:#748399!important;-webkit-text-fill-color:#748399!important;font-size:8px!important;letter-spacing:.08em!important}
body:not(.rtm-lab-page) .nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;flex:1 1 auto!important;min-width:0!important}
body:not(.rtm-lab-page) .nav a{height:40px!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid transparent!important;border-radius:10px!important;color:#586a81!important;-webkit-text-fill-color:#586a81!important;background:transparent!important;font-size:12px!important;font-weight:850!important;white-space:nowrap!important;text-decoration:none!important;position:relative!important}
body:not(.rtm-lab-page) .nav a:hover{background:#f5f7fb!important;border-color:#e4eaf1!important;color:#17243a!important;-webkit-text-fill-color:#17243a!important}
body:not(.rtm-lab-page) .nav .nav-divider{width:1px!important;height:24px!important;margin:0 7px!important;background:#d8e1eb!important;flex:0 0 1px!important}
body:not(.rtm-lab-page) .nav a.nav-current{background:#eef3ff!important;border-color:#d9e3ff!important;color:#3151cd!important;-webkit-text-fill-color:#3151cd!important;font-weight:950!important}
body:not(.rtm-lab-page) .nav a.nav-current:after{content:""!important;position:absolute!important;inset-inline:10px!important;bottom:3px!important;height:2px!important;border-radius:999px!important;background:#4f69ed!important}
body:not(.rtm-lab-page) .nav a.nav-tool{font-size:11.5px!important;color:#68788d!important;-webkit-text-fill-color:#68788d!important}
body:not(.rtm-lab-page) .nav a.nav-tanakh{color:var(--n64-teal)!important;-webkit-text-fill-color:var(--n64-teal)!important;border-color:#b9e3e2!important;background:#f2fbfb!important}
body:not(.rtm-lab-page) .nav a.nav-lab{padding-inline:13px!important;background:linear-gradient(135deg,#4260ef,#6657e8)!important;border-color:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 7px 18px rgba(72,73,205,.16)!important;font-weight:950!important}
body:not(.rtm-lab-page) .nav a.nav-lab:before{content:"◆";font-size:6px;margin-inline-end:6px;color:#79eee4!important;-webkit-text-fill-color:#79eee4!important}
body:not(.rtm-lab-page) .nav a.nav-lab.nav-current:after{display:none!important}
body:not(.rtm-lab-page) .header-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}
body:not(.rtm-lab-page) .v13-lang-btn{min-width:42px!important;height:38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #d9e3ed!important;border-radius:10px!important;background:#fff!important;color:#64758a!important;-webkit-text-fill-color:#64758a!important;font-size:11px!important;font-weight:900!important;text-decoration:none!important}
body:not(.rtm-lab-page) .v13-menu-btn{display:none!important;width:40px!important;height:38px!important;border:1px solid #d9e3ed!important;border-radius:10px!important;background:#fff!important;color:#24354c!important;-webkit-text-fill-color:#24354c!important}

/* external research strip is deliberately subtle, not part of primary navigation */
.research-strip,.rtm-research-strip{height:30px!important;min-height:30px!important;background:#091522!important;border-bottom:1px solid rgba(255,255,255,.07)!important}
.research-strip-inner,.rtm-research-strip-inner{height:30px!important;min-height:30px!important;width:min(1460px,calc(100% - 36px))!important;margin:auto!important}
.research-strip-label,.research-link,.rtm-research-label,.rtm-research-link{height:30px!important;min-height:30px!important;font-size:9px!important}
body:not(.rtm-lab-page) .header{top:30px!important}

.v13-mobile-nav{top:98px!important;inset-inline:10px!important;z-index:135!important;max-height:calc(100vh - 112px)!important;overflow:auto!important;padding:10px!important;border:1px solid #dbe4ee!important;border-radius:16px!important;background:rgba(255,255,255,.99)!important;box-shadow:0 22px 55px rgba(12,30,52,.18)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
.v13-mobile-nav.open{display:grid!important}
.v13-mobile-nav a{min-height:44px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:9px!important;border:1px solid #e4eaf1!important;border-radius:10px!important;background:#f8fafc!important;color:#283950!important;-webkit-text-fill-color:#283950!important;font-size:13px!important;font-weight:850!important;text-align:center!important;text-decoration:none!important}
.v13-mobile-nav a[href*="rtm-lab"]{background:linear-gradient(135deg,#4260ef,#6657e8)!important;border-color:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

@media(max-width:1240px){
 body:not(.rtm-lab-page) .header-inner{width:min(100% - 24px,1460px)!important;gap:10px!important}
 body:not(.rtm-lab-page) .nav a{padding-inline:8px!important;font-size:11px!important}
 body:not(.rtm-lab-page) .nav a.nav-tool{font-size:10.5px!important}
 body:not(.rtm-lab-page) .brand small{display:none!important}
}
@media(max-width:1080px){body:not(.rtm-lab-page) .nav a.nav-profile{display:none!important}}
@media(max-width:920px){
 .research-strip,.rtm-research-strip{height:28px!important;min-height:28px!important}
 .research-strip-inner,.rtm-research-strip-inner,.research-strip-label,.research-link,.rtm-research-label,.rtm-research-link{height:28px!important;min-height:28px!important}
 body:not(.rtm-lab-page) .header{top:28px!important}
 body:not(.rtm-lab-page) .header-inner{height:64px!important;min-height:64px!important}
 body:not(.rtm-lab-page) .nav{display:none!important}
 body:not(.rtm-lab-page) .v13-menu-btn{display:grid!important;place-items:center!important}
 .v13-mobile-nav{top:96px!important}
}
@media(max-width:560px){
 body:not(.rtm-lab-page) .brand img{width:34px!important;height:34px!important}
 body:not(.rtm-lab-page) .brand strong{font-size:15px!important}
 .v13-mobile-nav{grid-template-columns:1fr!important}
}

/* V65 navigation polish: Findings is a first-class research destination. */
body:not(.rtm-lab-page) .nav a.nav-findings{font-weight:950!important;color:#435975!important;-webkit-text-fill-color:#435975!important}
body.rtm-findings-page .nav a.nav-findings{background:#eef3ff!important;border-color:#d9e3ff!important;color:#3151cd!important;-webkit-text-fill-color:#3151cd!important}
body.rtm-findings-page .nav a.nav-findings:after{content:""!important;position:absolute!important;inset-inline:10px!important;bottom:3px!important;height:2px!important;border-radius:999px!important;background:#4f69ed!important}
.v13-mobile-nav a.mobile-current{background:#eef3ff!important;border-color:#d9e3ff!important;color:#3151cd!important;-webkit-text-fill-color:#3151cd!important;font-weight:950!important}
