/* DW accessibility layer (2026-11-10, lane cc-dw-a11y-20261110). Enqueued last on every front-end page by
   mu-plugins/dw-a11y-20261110.php. Only contrast, focus and the two helper controls change; the DW green and gold
   look stays. Nothing here touches the header sword (.site-branding / katana) or its dwKatanaSpark gem flicker.
   Ratios below are measured on the rendered page (tools/contrast.mjs), WCAG 2.1 1.4.3: 4.5:1 text, 3:1 large text. */

/* Helpers used by dw-a11y-20261110.js ------------------------------------------------------------------------------ */
.dw-a11y-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}
.dw-a11y-vhost{position:relative}
.dw-a11y-vpause{position:absolute;right:12px;bottom:12px;z-index:5;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(233,199,122,.55);border-radius:50%;background:rgba(10,12,11,.62);color:#e9c77a;cursor:pointer;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.dw-a11y-vpause svg{width:18px;height:18px;fill:currentColor}
.dw-a11y-vpause .dw-a11y-i-play,.dw-a11y-vpause.is-paused .dw-a11y-i-pause{display:none}
.dw-a11y-vpause.is-paused .dw-a11y-i-play{display:inline}
.dw-a11y-vpause:hover{border-color:#e9c77a}
.dw-a11y-vpause:focus-visible{outline:2px solid #ffe296;outline-offset:3px}

/* C1 Product page meta (SKU, Category, Tag): #6b6e76 on #0f0f11 was 3.75:1; #8a8d94 is 5.8:1 and stays quiet. ---- */
html body.single-product .product_meta,
html body.single-product .product_meta > span,
html body.single-product .product_meta a{color:#8a8d94!important}

/* C2 Checkout and cart fields: the floating labels inside the white fields were #a8a8a4 on #fff (2.4:1). -------- */
html body :is(.wc-block-checkout,.wc-block-cart,.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart) :is(.wc-block-components-text-input,.wc-block-components-textarea,.wc-block-components-combobox-control,.wc-blocks-components-select__container) label,
html body :is(.wc-block-checkout,.wc-block-cart,.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart) .wc-blocks-components-select__label{color:#5f5f5a!important}

/* C3 Book page testimonial roles: 50% cream on the card measured 4.49:1; 60% clears 4.5:1 with room. ------------ */
html body .dw-test-card .dw-test-role{color:rgba(236,230,218,.62)!important}

/* C4 /worlds/ door subline runs over the side artwork: #a79f92 fell to 3.95:1 on the bright edges. ------------ */
html body .ww-door-inner .ww-door-sub{color:#cdc6b9!important;text-shadow:0 1px 2px rgba(0,0,0,.85),0 0 14px rgba(0,0,0,.6)}

/* C5 /commissions/ hero: the gold title and the line under it sit on a bright violet bloom (2.4:1 and 2.2:1 at
   390 px). A soft dark halo behind the text block, no box: the art still shows around and through it. ---------- */
html body .dw-comm-hero .dw-hero-content{position:relative;isolation:isolate}
html body .dw-comm-hero .dw-hero-content::before{content:"";position:absolute;inset:-14% -16%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(10,8,16,.84) 0%,rgba(10,8,16,.8) 66%,rgba(10,8,16,0) 100%)}
html body .dw-comm-hero .dw-hero-content :is(h1,p){text-shadow:0 1px 2px rgba(0,0,0,.8),0 0 18px rgba(0,0,0,.55)}

/* K1 Leaderboard skip link: it slid in under the sticky header (z-index auto), so focus landed on a link nobody
   could read (2.4.7). It now shows above the header while focused. -------------------------------------------- */
html body .dw-lb-skip:focus{position:fixed!important;top:12px!important;left:12px!important;z-index:100001!important;outline:2px solid #141b13;outline-offset:-5px}

/* K2 /worlds/ Universe player controls (previous, play, pause, next) and the medallion spin: the bundle sets
   outline:none on the bound player controls and a 1.25 px dashed stroke on the spin hit area, so focus was not
   visible (2.4.7). A gold glow on the control's own art, and a solid ring on the transparent spin hit area. ---- */
html body .ww-universe [data-player-control="true"][data-player-bound="true"]:focus-visible{outline:none;filter:drop-shadow(0 0 1.5px #ffe296) drop-shadow(0 0 4px #ffe296)}
html body .ww-universe [data-dw-spin-hit]:focus-visible{stroke:#ffe296!important;stroke-width:3px!important;stroke-dasharray:none!important;vector-effect:non-scaling-stroke}

/* K3 Product gallery: the image link's focus outline was clipped by the slider viewport and painted under the
   image, so it never showed (2.4.7). The ring is drawn on a layer above the image, inside the slide. ---------- */
html body .woocommerce-product-gallery__image:has(> a:focus-visible){position:relative}
html body .woocommerce-product-gallery__image:has(> a:focus-visible)::after{content:"";position:absolute;inset:6px;z-index:9;pointer-events:none;border:3px solid #ffe1a1;border-radius:6px;box-shadow:0 0 0 2px rgba(15,15,17,.65)}

/* K4 Reveal-on-scroll sections start at opacity 0. When keyboard focus lands inside one before it has revealed,
   the focused link was invisible (2.4.7); a section that holds focus shows at once. -------------------------- */
html body :is(.dw-section,.dw-reveal,.dw-sister):focus-within{opacity:1!important;transform:none!important}

/* A5 Cart badge: its digit is drawn from data-dw-a11y-n (set by the layer JS), same look as the text it replaces. */
.dw-cart-count[data-dw-a11y-n]::after{content:attr(data-dw-a11y-n)}

/* K5 Product gallery thumbnails are keyboard focusable (tabindex, "View product image N") but showed no focus
   (2.4.7). A gold ring around the focused thumbnail. */
html body .woocommerce-product-gallery .flex-control-thumbs img:focus-visible{outline:2px solid #ffe1a1!important;outline-offset:2px!important}

/* C6 Footer ecosystem bar: the middle-dot separators measured 4.48:1 at 390 px (55% cream); 62% clears 4.5:1. */
html body #dw-lite-footer .dw-footer-siblings .dw-sibling-sep{color:rgba(var(--dw-txt-rgb,236,230,218),.62)}

/* R1 /commissions/ (and any tier card with a badge) on phones: the card clips its overflow below the desktop
   breakpoint, so the "Immersive" badge that sits 11 px above the card lost its top half (text cut, 1.4.10). The
   badged card lets it show, as it already does on desktop. */
html body .dw-tier-card:has(> .dw-tier-badge){overflow:visible!important}
