/* ===== Accessibility widget ===== */
.a11y-root, .a11y-root * { box-sizing: border-box; }
.a11y-root {
  --a-blue: #1c6fb8; --a-red: #c8102e; --a-bg: #fff; --a-text: #1d1d1d; --a-border: #d6d6d6;
  font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.3;
  zoom: 1 !important; filter: none !important;
}
.a11y-fab {
  position: fixed; bottom: 14px; left: 14px; z-index: 2147483000;
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff;
  background: var(--a-blue); color: #fff; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.a11y-fab svg { width: 30px; height: 30px; fill: currentColor; }
.a11y-fab:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }

.a11y-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483001;
  background: rgba(20, 32, 44, .92); padding: 0 12px 14px; display: none;
  max-height: 85vh; overflow: auto;
}
.a11y-panel.open { display: block; }
.a11y-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between;
  padding: 8px 0 10px;
}
.a11y-hint { background: var(--a-blue); color: #fff; padding: 6px 12px; font-size: 13px; }
.a11y-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a11y-tools button, .a11y-tools a, .a11y-tools select {
  font: inherit; font-size: 13px; background: #fff; color: var(--a-text); border: 1px solid var(--a-border);
  border-radius: 6px; padding: 6px 10px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; min-height: 34px;
}
.a11y-tools .a11y-close { background: var(--a-red); color: #fff; border-color: var(--a-red); }
.a11y-tools button:hover, .a11y-tools a:hover { border-color: var(--a-blue); color: var(--a-blue); }
.a11y-tools .a11y-close:hover { color: #fff; filter: brightness(1.1); }

.a11y-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px;
}
.a11y-opt {
  background: var(--a-bg); color: var(--a-text); border: 2px solid transparent; border-radius: 8px;
  min-height: 68px; padding: 8px 4px; cursor: pointer; font: inherit; font-size: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.a11y-opt svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a11y-opt:hover { border-color: var(--a-blue); }
.a11y-opt[aria-pressed="true"] { border-color: var(--a-red); background: #fff4f5; }
.a11y-opt kbd { font-family: inherit; font-size: 10px; color: #777; }
.a11y-root button:focus-visible, .a11y-root a:focus-visible, .a11y-root select:focus-visible,
.a11y-root input:focus-visible, .a11y-root textarea:focus-visible { outline: 3px solid #ffbf00; outline-offset: 1px; }

/* report dialog */
.a11y-dialog {
  position: fixed; inset: 0; z-index: 2147483002; background: rgba(0,0,0,.55);
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.a11y-dialog.open { display: flex; }
.a11y-dialog form {
  background: #fff; color: var(--a-text); width: 100%; max-width: 440px; border-radius: 10px; padding: 20px;
  display: grid; gap: 10px;
}
.a11y-dialog h2 { margin: 0 0 4px; font-size: 20px; }
.a11y-dialog label { font-weight: bold; font-size: 14px; display: grid; gap: 4px; }
.a11y-dialog input, .a11y-dialog textarea, .a11y-dialog select {
  font: inherit; font-weight: normal; padding: 8px; border: 1px solid #999; border-radius: 4px; width: 100%;
}
.a11y-dialog textarea { min-height: 100px; }
.a11y-dialog .a11y-actions { display: flex; gap: 8px; }
.a11y-dialog .a11y-actions button {
  font: inherit; padding: 8px 18px; border-radius: 6px; cursor: pointer; border: 1px solid var(--a-blue);
}
.a11y-dialog .a11y-send { background: var(--a-blue); color: #fff; }
.a11y-dialog .a11y-cancel { background: #fff; color: var(--a-blue); }
.a11y-dialog .a11y-status { min-height: 1.3em; font-weight: bold; color: var(--a-blue); }

.a11y-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Effects applied to the page (everything except the widget) ===== */
html.a11y-mono   body > :not(.a11y-root) { filter: grayscale(1); }
html.a11y-sepia  body > :not(.a11y-root) { filter: sepia(1); }
html.a11y-invert body > :not(.a11y-root) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body > :not(.a11y-root) img,
html.a11y-invert body > :not(.a11y-root) video { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast body > :not(.a11y-root) { filter: contrast(1.6); }

html.a11y-blackyellow body,
html.a11y-blackyellow body > :not(.a11y-root),
html.a11y-blackyellow body > :not(.a11y-root) * {
  background-color: #000 !important; color: #ff0 !important; border-color: #ff0 !important;
  background-image: none !important; box-shadow: none !important;
}
html.a11y-blackyellow body > :not(.a11y-root) svg { fill: #ff0 !important; stroke: #ff0 !important; }
html.a11y-blackyellow body > :not(.a11y-root) a { color: #0ff !important; }

html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

html.a11y-headings body > :not(.a11y-root) :is(h1, h2, h3, h4, h5, h6) {
  outline: 3px solid #e4007c !important; outline-offset: 4px; background: #fff7c2 !important; color: #000 !important;
}
html.a11y-links body > :not(.a11y-root) a {
  text-decoration: underline !important; text-underline-offset: 3px;
  outline: 2px solid #1c6fb8 !important; background: #fff7c2 !important; color: #000 !important;
}

html.a11y-readable body > :not(.a11y-root),
html.a11y-readable body > :not(.a11y-root) * {
  font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .03em !important; word-spacing: .12em !important;
  line-height: 1.7 !important; font-weight: 400;
}

html.a11y-keyboard *:focus { outline: 4px solid #ff6a00 !important; outline-offset: 3px !important; }
html.a11y-keyboard body > :not(.a11y-root) a,
html.a11y-keyboard body > :not(.a11y-root) button { outline: 1px dashed #ff6a00; }

html.a11y-cursor-big, html.a11y-cursor-big * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1 3.8 7.3-2.6 1.4-3.8-7.4L5 20z' fill='%23fff' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.a11y-cursor-black, html.a11y-cursor-black * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1 3.8 7.3-2.6 1.4-3.8-7.4L5 20z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 6 3, auto !important;
}

/* image descriptions */
.a11y-alt-tip {
  position: fixed; z-index: 2147482999; pointer-events: none; background: #000; color: #fff;
  font: 14px Arial, sans-serif; padding: 6px 10px; border-radius: 4px; max-width: 280px; display: none;
}
.a11y-alt-fixed {
  position: absolute; bottom: 0; right: 0; left: 0; z-index: 3; background: rgba(0,0,0,.78); color: #fff;
  font: 13px/1.3 Arial, sans-serif; padding: 4px 8px; text-align: center; pointer-events: none;
}

@media (max-width: 600px) {
  .a11y-grid { grid-template-columns: repeat(3, 1fr); }
  .a11y-hint { display: none; }
}
