/* pak-241-a11y: accessibility touches for PRSXA and Pearl AI (prefix pa11-). Same file in both apps.
   Only: text that screen readers read but nobody sees, focus rings where none showed, small text a little darker
   (light) or lighter (dark) where it was too faint to read comfortably (same colours, just enough contrast), and calmer
   motion for people who ask their device for less motion. Nothing else about the look changes. */

/* read by screen readers only */
.pa11-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}

/* ---------------------------------------------------------------- focus rings where none showed */
.plb-row:focus-visible{outline:2px solid var(--accent,#3161E8);outline-offset:-2px}
pre[data-pa11-scroll]:focus-visible{outline:2px solid var(--accent,#3161E8);outline-offset:2px}
.pal-menu [role="menuitem"]:focus-visible,.pal-menu button:focus-visible{outline:2px solid var(--accent,#3161E8);outline-offset:-2px}
html[data-theme="dark"] .plb-row:focus-visible,html[data-theme="dark"] pre[data-pa11-scroll]:focus-visible,
html[data-theme="dark"] .pal-menu [role="menuitem"]:focus-visible,html[data-theme="dark"] .pal-menu button:focus-visible{outline-color:var(--accent-bright,#85A5F0)}

/* ---------------------------------------------------------------- contrast (screen only: printing keeps its own colours) */
@media screen{
  /* light theme: faint grey text one step darker (was #8790a6, 3.0-3.2 : 1; now 4.5-5 : 1) */
  html:not([data-theme="dark"]) .pxs-set{--pxs-faint:#656e85}
  html:not([data-theme="dark"]) .pap{--pxs-faint:#656e85}
  html:not([data-theme="dark"]) .prdr-ov{--prdr-faint:#656e85}
  html:not([data-theme="dark"]) .pas-search .pas-kbd,
  html:not([data-theme="dark"]) .plb-side kbd{opacity:1;color:#656e85}
  /* light theme: blue text on the light-blue "current" background (was 4.4 : 1) */
  html:not([data-theme="dark"]) #sidebar .thread-item.active .thread-title,
  html:not([data-theme="dark"]) .prdr-toc a[aria-current="true"]{color:#2b52d6}
  /* light theme: orange and pink type labels in Creations (was 3.4 and 4.4 : 1) */
  html:not([data-theme="dark"]) .pcr-t-deck .pcr-sub{color:#c2410c}
  html:not([data-theme="dark"]) .pcr-t-design .pcr-sub{color:#be185d}

  /* dark theme: faint text one step lighter (was #6a83b8, 4.2 : 1 on the panels) */
  html[data-theme="dark"] .pxs-set{--pxs-faint:#8aa1cf}
  html[data-theme="dark"] .pap{--pxs-faint:#8aa1cf}
  html[data-theme="dark"] .prdr-ov{--prdr-faint:#8aa1cf}
  /* dark theme: brand-blue text on navy uses the bright brand blue, as the rest of the dark theme does (was 3.0-3.3 : 1) */
  html[data-theme="dark"] .pal-source,
  html[data-theme="dark"] .pwn-new,
  html[data-theme="dark"] .pwn-try{color:var(--accent-bright,#85A5F0)}
  /* dark theme: Pearl Canvas check label (was 2.8-3.0 : 1) */
  html[data-theme="dark"] .pcp-qa.is-ok{color:#3fb98a}
  html[data-theme="dark"] .pcp-qa.is-warn{color:#f0a23b}
}

/* ---------------------------------------------------------------- less motion when the device asks for it */
@media (prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto!important}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;animation-delay:0s!important;transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
}
