/* WCAG 2.2 AA fixes that apply site-wide (audit 2026-11-23). */

/* 2.4.7 Focus visible: form fields, plugin checkboxes and map links show a clear ring when focused by keyboard. */
:is(input,select,textarea):focus-visible,
input:is([type=date],[type=time],[type=datetime-local],[type=month],[type=week]):focus{outline:2px solid var(--wd-emerald,#006039)!important;outline-offset:2px}
.slm-tgt{display:inline-flex;align-items:center;min-height:24px}
.jet-checkboxes-list__item:has(.jet-checkboxes-list__input:focus-visible),
.jet-radio-list__item:has(input:focus-visible),
.jet-form-builder__field-wrap:has(input:focus-visible){outline:2px solid var(--wd-emerald,#006039);outline-offset:2px;border-radius:6px}
svg a:focus{outline:none}
svg a:focus-visible :is(path,polygon,circle,ellipse,rect){stroke:#9FF5DE;stroke-width:3px;paint-order:stroke}
svg a:focus-visible text{text-decoration:underline}
a.post-chapters__list-link:focus-visible,[class*=post-chapters] a:focus-visible,[class*=sticky-chapters] a:focus-visible,.cctoc-overlay a:focus-visible{outline:2px solid var(--wd-emerald,#006039)!important;outline-offset:2px;border-radius:4px}
[data-slm-scroll]:focus-visible{outline:2px solid var(--wd-emerald,#006039);outline-offset:4px;border-radius:6px}

/* 1.4.3 Contrast: the disabled "previous" pagination link was 2.5:1. */
.jet-filters-pagination .prev > .jet-filters-pagination__link,
.jet-filters-pagination .next > .jet-filters-pagination__link{color:var(--wd-subtle,#6A7875)!important}

/* 2.5.8 Target size (24 x 24 minimum): standalone text links, the cookie settings button, the 404 search form. */
.slm-lux-ghost,.slm-lux a[href="#nearby"],.slm-hp-ask a,.slm-pb a{display:inline-flex;align-items:center;min-height:24px}
.cky-btn-revisit-wrapper{min-width:44px;min-height:44px}
.cky-btn-revisit-wrapper .cky-btn-revisit{width:44px;height:44px}
.slm-search{display:flex;flex-wrap:wrap;gap:8px}
.slm-search .wd-newsletter-input{flex:1 1 220px;min-height:46px;padding:0 14px;border:1px solid var(--wd-line-strong,#b8c6c0);border-radius:var(--wd-radius-leaf,0 10px 10px 0);background:var(--wd-white,#fff);color:var(--wd-ink,#212121);font-size:16px}
.slm-search .wd-btn{min-height:46px}

/* 2.4.11 Focus not obscured: anything focused scrolls clear of the sticky header. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus{scroll-margin-top:96px;scroll-margin-bottom:72px}

/* 1.4.10 Reflow: nothing needs sideways scrolling of the page at 320 CSS px (rows that are meant to scroll,
   scroll inside themselves; slm-a11y.js makes them keyboard-scrollable). */
body .slm-ag-wx,body .slm-pb-form,body .slm-pb-dates>*{min-width:0}
body .slm-ag-wx .slm-ag-days{max-width:100%;overflow-x:auto;scrollbar-width:thin}
body .slm-ag-days li{position:relative} /* keeps its screen-reader text inside the scrolling row */
@media (max-width:360px){
  body .slm-pb-form .slm-pb-dates{grid-template-columns:1fr}
  body .slm-ac-chips{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
}
