/* JRS public legacy-route presentation alignment, 2026-11-02.
   Opt-in only. This file changes visual presentation, not form actions,
   participant consent, completion rules, submissions or owner access.
   Private owner screens and historically retired person routes opt out. */
body.jrs-institutional.jrs-legacy-public{
  color-scheme:light;
  --bg:#f5f7f8;
  --surface:#ffffff;
  --surface2:#edf2f5;
  --surface3:#e7eef3;
  --panel:#ffffff;
  --text:#193148;
  --muted:#42576b;
  --muted-soft:#526778;
  --rule:#d8e1e7;
  --accent:#7f5e26;
  --accent-dim:#7b5b26;
  --gold:#805e27;
  --ready-text:#1d6247;
  --review-text:#855920;
  --stop-text:#9a3b3b;
  background:#f5f7f8!important;
  color:#193148!important;
  font:400 16px/1.72 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
/* Study pages sometimes place headings outside <main>; use the same serif
   typography there as on the online Standard and Training pages. */
body.jrs-institutional.jrs-legacy-public :where(h1,.h1-look){
  font:normal clamp(34px,4.5vw,50px)/1.15 Georgia,"Iowan Old Style",serif!important;
  letter-spacing:-.03em!important;color:#193148!important;
}
body.jrs-institutional.jrs-legacy-public h2{
  font:normal clamp(25px,2.35vw,33px)/1.24 Georgia,"Iowan Old Style",serif!important;
  color:#193148!important;
}
body.jrs-institutional.jrs-legacy-public :where(.wordmark){
  font-family:Georgia,"Iowan Old Style",serif!important;
  font-size:30px!important;line-height:1.2!important;
  letter-spacing:-.025em!important;color:#17364f!important;
}
body.jrs-institutional.jrs-legacy-public :where(.site-header .wordmark){
  color:#fff!important;
}
body.jrs-institutional.jrs-legacy-public :where(.eyebrow,.header-meta,.q .n,.caseno,.counter,.fc,.footer-copy,label.fl,.li .k,.codebox .k){
  font:700 13px/1.55 Inter,system-ui,sans-serif!important;
  letter-spacing:.025em!important;
}
body.jrs-institutional.jrs-legacy-public :where(.lede,.sub,.q .t,.recline,.rulebox,.privacy,.cred,.fine,.trust,.tip,.hook,.boundary,.knew,.srcline,.li .row,.deftable td){
  font-size:15px!important;line-height:1.65!important;
}
body.jrs-institutional.jrs-legacy-public :where(.card,.rulebox,.privacy,.hook,.codebox,.li,.opts label,.chk.core,.snippet){
  border-color:#cbd9e3!important;
  box-shadow:none!important;
}
body.jrs-institutional.jrs-legacy-public :where(.opts label,.chk.core,.codebox,.li,.snippet,.hook){
  background:#f4f7f9!important;color:#2b455a!important;
}
body.jrs-institutional.jrs-legacy-public :where(.opts label.sel){
  border-color:#426a85!important;background:#e7f0f5!important;
  color:#17364f!important;
}
body.jrs-institutional.jrs-legacy-public :where(input:not([type=checkbox]):not([type=radio]),textarea,select){
  background:#fff!important;color:#17364f!important;
  border:1px solid #9cb1c0!important;border-radius:4px!important;
  font:400 16px/1.5 Inter,system-ui,sans-serif!important;
  min-height:44px!important;
}
body.jrs-institutional.jrs-legacy-public :where(.opts label,.chk){
  font-size:15px!important;line-height:1.55!important;
}
body.jrs-institutional.jrs-legacy-public :where(button:not(.ghost):not(.copybtn),.cta,.btn-primary,.btn-accent){
  background:#193e58!important;color:#fff!important;
  border:1px solid #193e58!important;border-radius:4px!important;
  font:700 14px/1.5 Inter,system-ui,sans-serif!important;
  letter-spacing:.015em!important;text-transform:none!important;
  min-height:44px!important;
}
body.jrs-institutional.jrs-legacy-public :where(button.ghost,.copybtn,.btn-ghost){
  background:#fff!important;color:#17486a!important;
  border:1px solid #8caabf!important;border-radius:4px!important;
  font:700 14px/1.5 Inter,system-ui,sans-serif!important;
  min-height:44px!important;
}
body.jrs-institutional.jrs-legacy-public :where(a:not(.wordmark)){
  text-underline-offset:3px;
}
body.jrs-institutional.jrs-legacy-public :where(.fine,.footer-copy,.fc,.counter){
  color:#526778!important;font-size:13px!important;
}
body.jrs-institutional.jrs-legacy-public :where(.skip-link:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible){
  outline:3px solid #0b679c!important;outline-offset:3px!important;
}
body.jrs-institutional.jrs-legacy-public :where([hidden],.hidden){
  display:none!important;
}
/* Historic Review Engine status page lacks the normal site-header classes.
   Leave the closed/local-only engine status and its URLs unchanged. */
body.jrs-institutional.jrs-legacy-public.jrs-technical-route header{
  background:#162f46!important;border-bottom:3px solid #a27a39!important;
  color:#fff!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-technical-route header a{
  color:#fff!important;font:normal 30px/1.2 Georgia,serif!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-technical-route main{
  max-width:780px!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-technical-route .notice{
  border-left:4px solid #a27a39!important;
  background:#fff!important;color:#193148!important;
}
@media(max-width:640px){
 body.jrs-institutional.jrs-legacy-public :where(.wrap,.container){
   padding-left:18px!important;padding-right:18px!important;
 }
 body.jrs-institutional.jrs-legacy-public :where(.card){
   padding:20px 17px!important;
 }
 body.jrs-institutional.jrs-legacy-public :where(.opts label){
   min-height:44px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.jrs-institutional.jrs-legacy-public *{
   scroll-behavior:auto!important;
 }
}

/* Invitations and research forms retain their established submission and
   consent logic while borrowing the public institutional type hierarchy. */
body.jrs-institutional.jrs-legacy-public.jrs-invitation-route :where(.sect,.citation,.card),
body.jrs-institutional.jrs-legacy-public.jrs-study-route :where(.sect,.question,.card){
  background:#fff!important;border-color:#cbd9e3!important;color:#193148!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-invitation-route :where(.sect h2,.seal,.year),
body.jrs-institutional.jrs-legacy-public.jrs-study-route :where(.f,.meta){
  color:#745523!important;
  font:700 14px/1.5 Inter,system-ui,sans-serif!important;
  letter-spacing:.02em!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-invitation-route :where(label.f .l,.lede,.lead,.citation),
body.jrs-institutional.jrs-legacy-public.jrs-study-route :where(.hint,.sub){
  font-size:15px!important;line-height:1.65!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-study-route .hd{
  background:#162f46!important;color:#fff!important;
  border-bottom:3px solid #a27a39!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-study-route .wm{
  color:#fff!important;font:normal 28px/1.2 Georgia,serif!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-study-route .hd .meta{
  color:#dae5eb!important;
}
/* Keep public recovery links together at narrow viewport widths. */
body.jrs-institutional.jrs-legacy-public.jrs-error-route{
  min-height:100vh!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:flex-start!important;text-align:center!important;padding:24px!important;
  gap:24px;
}
body.jrs-institutional.jrs-legacy-public.jrs-error-route .wrap{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  max-width:580px!important;margin:0 auto!important;background:#fff!important;
  border:1px solid #d8e1e7!important;padding:38px 34px!important;
  overflow-wrap:anywhere!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-error-route :where(p,.mono){
  color:#42576b!important;font:400 16px/1.7 Inter,system-ui,sans-serif!important;
}
body.jrs-institutional.jrs-legacy-public.jrs-error-route .wrap a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:44px!important;padding:12px 18px!important;
  background:#193e58!important;color:#fff!important;
  border-radius:4px!important;text-decoration:none!important;
  font:700 14px/1.5 Inter,system-ui,sans-serif!important;
}

body.jrs-institutional.jrs-error-route .recovery-links{
  display:flex;flex-wrap:wrap;justify-content:center;gap:4px 20px;padding:0 12px;
}
body.jrs-institutional.jrs-error-route .recovery-links a{
  display:inline-flex;align-items:center;min-height:44px;
  padding:0;background:transparent;color:#235478!important;
  text-decoration:underline!important;
}
