/* ── Print / PDF protection (Task #889, shared in Task #891) ──
   Non-admin black-out. CSS-based so disabling JS does NOT bypass it:
   the locked state is the default; print_guard.js only UNLOCKS for admin
   by adding the `print-allowed` class. With JS disabled the message div
   is not injected, but the @media print rules below still hide all page
   content and black out the page, so confidential content never leaks. */
#print-guard{display:none}
#print-guard [data-pg-lang]{display:none}
#print-guard [data-pg-lang="en"]{display:block}
html[lang="ja"] #print-guard [data-pg-lang="en"]{display:none}
html[lang="ja"] #print-guard [data-pg-lang="ja"]{display:block}
html[lang="zh"] #print-guard [data-pg-lang="en"]{display:none}
html[lang="zh"] #print-guard [data-pg-lang="zh"]{display:block}
html[lang="es"] #print-guard [data-pg-lang="en"]{display:none}
html[lang="es"] #print-guard [data-pg-lang="es"]{display:block}
@media print{
  html:not(.print-allowed) body>*:not(#print-guard){display:none!important}
  html:not(.print-allowed) body{background:#000!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  html:not(.print-allowed) #print-guard{
    display:flex!important;position:fixed;inset:0;z-index:2147483647;margin:0;
    flex-direction:column;align-items:center;justify-content:center;
    background:#000;color:#fff;text-align:center;padding:40px;
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
  }
  html:not(.print-allowed) #print-guard .pg-icon{font-size:54px;margin-bottom:20px;line-height:1}
  html:not(.print-allowed) #print-guard .pg-title{font-size:24px;font-weight:800;margin-bottom:14px}
  html:not(.print-allowed) #print-guard .pg-msg{font-size:14px;max-width:520px;line-height:1.7;opacity:.85}
}
