/* Jazzrabbit front end. Scoped with jr- prefixes; nothing here changes the theme unless a visitor asks. */
.jr-a11y { position: fixed; bottom: 18px; z-index: 99990; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.jr-a11y.jr-side-left { left: 18px; }
.jr-a11y.jr-side-right { right: 18px; }
.jr-a11y-toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #1d4ed8; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.jr-a11y-toggle:focus-visible, .jr-a11y-panel button:focus-visible, .jr-consent button:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.jr-a11y-panel { position: absolute; bottom: 62px; width: 240px; background: #fff; color: #111; border-radius: 12px; padding: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 6px; text-align: right; }
.jr-side-left .jr-a11y-panel { left: 0; }
.jr-side-right .jr-a11y-panel { right: 0; }
.jr-a11y-panel[hidden] { display: none; }
.jr-a11y-title { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.jr-a11y-panel button { background: #f3f4f6; color: #111; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; text-align: right; }
.jr-a11y-panel button[aria-pressed="true"] { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.jr-a11y-row { display: flex; align-items: center; gap: 6px; }
.jr-a11y-row span { flex: 1; text-align: center; }
.jr-a11y-row button { width: 44px; text-align: center; font-weight: 700; }
.jr-a11y-panel a { color: #1d4ed8; text-decoration: underline; padding: 4px 2px; }

html.jr-a11y-contrast body { background: #000 !important; color: #fff !important; }
html.jr-a11y-contrast body *:not(.jr-a11y *):not(.jr-consent *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
html.jr-a11y-contrast body a:not(.jr-a11y *) { color: #ffeb3b !important; }
html.jr-a11y-gray body > *:not(#jr-a11y):not(#jr-consent) { filter: grayscale(1); }
html.jr-a11y-links a:not(.jr-a11y *) { text-decoration: underline !important; outline: 2px dashed currentColor; outline-offset: 2px; }
html.jr-a11y-readable body *:not(.dashicons):not([class*="icon"]) { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .02em; }
html.jr-a11y-motion *, html.jr-a11y-motion *::before, html.jr-a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

.jr-consent { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); background: #fff; color: #111; border-radius: 14px; padding: 16px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.25); z-index: 99991; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; text-align: right; }
.jr-consent[hidden] { display: none; }
.jr-consent p { margin: 0 0 10px; }
.jr-consent a { color: #1d4ed8; }
.jr-consent-custom { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.jr-consent-custom[hidden] { display: none; }
.jr-consent-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.jr-consent button { border-radius: 8px; padding: 9px 16px; cursor: pointer; font: inherit; border: 1px solid #1d4ed8; background: #fff; color: #1d4ed8; }
.jr-consent button[data-jrc="all"] { background: #1d4ed8; color: #fff; }
@media (prefers-reduced-motion: reduce) { .jr-a11y-toggle { transition: none; } }
