/* =========================================================================
   The accessibility bubble — see inc/a11y.php.
   1. the bubble and its panel   2. what each option does to the page.
   Every effect leaves the panel itself alone (:not(.xa11y *)), so it stays
   usable whatever is switched on.
   ========================================================================= */

.xa11y{
  --xa11y-brand:#8B0000; --xa11y-brand-deep:#6E0000; --xa11y-focus:#FFC93C;
  --xa11y-ink:#22201C; --xa11y-line:#EADFC7; --xa11y-mute:#645B4F; --xa11y-wash:#FFFBF3;
  position:fixed;left:14px;bottom:14px;z-index:9996;
  font:400 15px/1.4 'Work Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:var(--xa11y-ink);letter-spacing:normal;text-transform:none}
.xa11y *,.xa11y *::before,.xa11y *::after{box-sizing:border-box}
.xa11y button{font:inherit;letter-spacing:normal;text-transform:none;margin:0;-webkit-appearance:none;appearance:none}
.xa11y button:focus-visible{outline:3px solid var(--xa11y-focus);outline-offset:2px}

.xa11y .xa11y-bubble{display:grid;place-items:center;width:54px;height:54px;padding:0;border:0;border-radius:50%;cursor:pointer;
  background:var(--xa11y-brand);color:#fff;box-shadow:0 14px 30px -14px rgba(0,0,0,.6);transition:transform .2s ease,background .2s ease}
.xa11y .xa11y-bubble:hover{background:var(--xa11y-brand-deep);transform:scale(1.06)}
.xa11y .xa11y-bubble svg{width:32px;height:32px}
.xa11y .xa11y-bubble[aria-expanded="true"]{background:var(--xa11y-brand-deep)}

.xa11y .xa11y-panel{position:absolute;left:0;bottom:66px;width:min(330px,calc(100vw - 28px));
  max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow:auto;
  background:#fff;border:1px solid var(--xa11y-line);border-radius:22px;padding:18px 18px 14px;
  box-shadow:0 30px 60px -30px rgba(0,0,0,.55)}
.xa11y .xa11y-panel[hidden]{display:none}

.xa11y .xa11y-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.xa11y .xa11y-head h2{margin:0;padding:0;font:600 23px/1.2 'Fahkwang',Georgia,serif;color:var(--xa11y-ink);outline:0}
.xa11y .xa11y-x{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--xa11y-ink);cursor:pointer}
.xa11y .xa11y-x:hover{background:var(--xa11y-wash)}
.xa11y .xa11y-x svg{width:20px;height:20px}

.xa11y .xa11y-size{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;font-weight:600}
.xa11y .xa11y-size>div{display:flex;align-items:center;gap:6px}
.xa11y .xa11y-size button{min-width:46px;height:44px;padding:0 10px;border:1px solid var(--xa11y-line);border-radius:12px;
  background:#fff;color:var(--xa11y-ink);font-weight:700;cursor:pointer}
.xa11y .xa11y-size button:hover{border-color:var(--xa11y-brand)}
.xa11y .xa11y-size button:disabled{opacity:.4;cursor:default}
.xa11y .xa11y-size output{min-width:52px;text-align:center;font-weight:600}

.xa11y .xa11y-opt{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;margin:0 0 8px;padding:10px 14px;
  border:1px solid var(--xa11y-line);border-radius:14px;background:#fff;color:var(--xa11y-ink);
  font-weight:600;text-align:left;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.xa11y .xa11y-opt:hover{border-color:var(--xa11y-brand)}
.xa11y .xa11y-opt::after{content:"";width:20px;height:20px;flex:none;border-radius:50%;border:2px solid var(--xa11y-line)}
.xa11y .xa11y-opt[aria-pressed="true"]{background:var(--xa11y-brand);border-color:var(--xa11y-brand);color:#fff}
/* On is not told by colour alone: a ticked circle appears. */
.xa11y .xa11y-opt[aria-pressed="true"]::after{border-color:#fff;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}

.xa11y .xa11y-reset{width:100%;min-height:44px;margin:4px 0 0;padding:8px 14px;border:1px dashed var(--xa11y-line);border-radius:14px;
  background:transparent;color:var(--xa11y-brand);font-weight:600;cursor:pointer}
.xa11y .xa11y-reset:hover{background:var(--xa11y-wash)}
.xa11y .xa11y-note{margin:10px 2px 0;padding:0;font-size:13px;line-height:1.4;color:var(--xa11y-mute)}

/* The separate "Reduce motion" pill gives way to "Stop animations" here. */
body.wway-a11y .wway-calm{display:none!important}

@media print{.xa11y{display:none!important}}

/* =========================================================================
   2. The options
   ========================================================================= */

/* Text size — most of the design is set in pixels, so the page is zoomed
   (the panel and the fixed corner buttons are not). */
html.xa11y-zoomed body>*:not(.xa11y):not(script):not(style):not(#wpadminbar):not(.wway-top):not(.wway-calm):not(.wway-cursor):not(.wway-fade):not(.wway-pre):not(.wway-progress){
  zoom:var(--xa11y-zoom,1)}

/* High contrast — white on black, yellow links; photographs stay. */
html.xa11y-contrast body,
/* :where() keeps these rules light, so the link colours below win. */
html.xa11y-contrast body :where(*:not(.xa11y, .xa11y *, img, svg, svg *, video, iframe, #wpadminbar, #wpadminbar *)){
  background-color:#000!important;background-image:none!important;color:#fff!important;
  border-color:#fff!important;box-shadow:none!important;text-shadow:none!important}
html.xa11y-contrast body *:not(.xa11y *)::before,
html.xa11y-contrast body *:not(.xa11y *)::after{background-image:none!important;border-color:#fff!important}
html.xa11y-contrast body a:not(.xa11y *),
html.xa11y-contrast body a:not(.xa11y *) *{color:#FFE24D!important}
html.xa11y-contrast body :is(button,input,select,textarea,.btn):not(.xa11y *){border:2px solid currentColor!important}
html.xa11y-contrast body :is(input,select,textarea)::placeholder{color:#ccc!important}

/* Highlight links — underlined and marked, so they cannot be missed. */
html.xa11y-links body a:not(.xa11y *){
  text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important;
  background-color:#FFE24D!important;color:#111!important;outline:2px solid #111!important;outline-offset:1px}
html.xa11y-links body a:not(.xa11y *) *{color:#111!important}

/* Readable font — a plain, wide sans; icons are left as they are. */
html.xa11y-font body :where(*:not(.xa11y, .xa11y *, svg, svg *, i, [class*="icon"], [class*="fa-"])){
  font-family:Verdana,Tahoma,'Segoe UI',Arial,sans-serif!important;font-style:normal!important}

/* Text spacing — the WCAG 1.4.12 values. */
html.xa11y-spacing body :where(*:not(.xa11y, .xa11y *)){
  line-height:1.5!important;letter-spacing:.12em!important;word-spacing:.16em!important}
html.xa11y-spacing body p:not(.xa11y *){margin-bottom:2em!important}

/* Stop animations — nothing moves, and everything that waits to be revealed is shown. */
html.xa11y-still *,html.xa11y-still *::before,html.xa11y-still *::after{
  animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.xa11y-still .rv,html.xa11y-still [data-mo],html.xa11y-still .mo-line>span,html.xa11y-still .mo-img img{
  opacity:1!important;transform:none!important;clip-path:none!important;filter:none!important}
html.xa11y-still .wway-cursor,html.xa11y-still .wway-fade,html.xa11y-still .wway-pre,html.xa11y-still .wway-progress{display:none!important}

/* Bigger cursor — a 48px arrow, and a 48px hand on anything clickable. */
html.xa11y-cursor,html.xa11y-cursor body,html.xa11y-cursor body *{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M5 3l18 17h-9l5 9-4 2-5-9-5 6z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 7 4,auto!important}
html.xa11y-cursor body :is(a,button,[role="button"],label,select,summary,input[type="checkbox"],input[type="radio"],input[type="submit"]),
html.xa11y-cursor body :is(a,button,[role="button"],label,summary) *{
  cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M11 3a2 2 0 0 1 4 0v9l1-.2a2 2 0 0 1 2.3 1.5l.2.7 1-.2a2 2 0 0 1 2.3 1.4l.2.8.8-.1a2 2 0 0 1 2.2 1.7l.5 4.4c.4 3.6-2.2 6.8-5.8 7.2h-4.3c-2.1 0-4-1-5.3-2.7l-4.7-6.4a2 2 0 0 1 3-2.6L11 20z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 19 4,pointer!important}
html.xa11y-cursor .wway-cursor{display:none!important}
