/* GematriaRTM V138 FINAL PUBLIC POLISH
   Presentation/accessibility only. Scientific engine, RTM Lab logic and finding data unchanged. */

/* Research strip: slightly more breathing room without stealing vertical space. */
.research-strip{min-height:42px!important}
.research-strip-inner{min-height:42px!important;padding-block:4px!important;gap:10px!important}
.research-strip-label{min-height:29px!important;padding:4px 10px!important}
.research-link{min-height:30px!important;padding-inline:11px!important}
body:not(.rtm-lab-page) .header{top:42px!important}

/* Desktop navigation: one small readability lift, then controlled compression. */
@media(min-width:1381px){
  body:not(.rtm-lab-page) .nav a.nav-core{font-size:15px!important}
  body:not(.rtm-lab-page) .nav a.nav-tool{font-size:13.5px!important}
}
@media(min-width:1241px) and (max-width:1380px){
  body:not(.rtm-lab-page) .nav a.nav-core{font-size:13.7px!important;padding-inline:10px!important}
  body:not(.rtm-lab-page) .nav a.nav-tool{font-size:12.5px!important;padding-inline:8px!important}
  body:not(.rtm-lab-page) .nav .nav-divider{margin-inline:5px!important}
}
@media(max-width:1240px) and (min-width:1081px){
  body:not(.rtm-lab-page) .nav a.nav-core{font-size:12.8px!important;padding-inline:8px!important}
  body:not(.rtm-lab-page) .nav a.nav-tool{font-size:11.8px!important;padding-inline:7px!important}
}

/* Standalone Tanakh uses its own nav; give it the same optical density. */
.tanakh-standalone-page .research-strip{min-height:42px!important}
.tanakh-standalone-page .research-strip-inner{min-height:42px!important}
@media(min-width:1180px){.tanakh-global-links a{font-weight:800}}

/* RTM Lab has an isolated header stack; only polish its external research strip. */
.rtm-research-strip{min-height:42px!important}
.rtm-research-strip-inner{min-height:42px!important;gap:10px!important}

/* Keyboard and anchored-navigation polish site-wide. */
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid rgba(63,94,234,.38)!important;outline-offset:3px!important}
:target{scroll-margin-top:150px}

/* Avoid motion for visitors who request it. */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* Mobile strip stays compact and horizontally usable. */
@media(max-width:780px){
  .research-strip,.research-strip-inner{min-height:40px!important}
  body:not(.rtm-lab-page) .header{top:40px!important}
  .research-strip-inner{gap:7px!important}
  .research-link{padding-inline:9px!important}
  .rtm-research-strip,.rtm-research-strip-inner{min-height:40px!important}
}

.v138-skip{position:fixed;inset-inline-start:12px;top:8px;z-index:10000;transform:translateY(-160%);padding:9px 13px;border-radius:9px;background:#fff;color:#15233a;font-weight:850;box-shadow:0 8px 28px rgba(0,0,0,.2)}
.v138-skip:focus{transform:translateY(0)}
