/* Accessibility Widget Styles */
#a11y-widget-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483647;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
#a11y-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1a6ef5;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,110,245,0.4), 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
#a11y-trigger:hover {
  transform: scale(1.08);
  background: #1558d6;
  box-shadow: 0 6px 20px rgba(26,110,245,0.5), 0 2px 6px rgba(0,0,0,0.2);
}
#a11y-trigger:focus-visible {
  outline: 3px solid #1a6ef5;
  outline-offset: 3px;
}
#a11y-trigger.active {
  background: #0f46b8;
  transform: scale(0.95);
}
#a11y-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 300px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  animation: a11y-slide-in 0.22s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: bottom right;
}
#a11y-panel[hidden] { display: none; }
@keyframes a11y-slide-in {
  from { opacity: 0; transform: scale(0.88) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  background: #1a6ef5;
  color: #fff;
}
.a11y-panel-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.a11y-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.a11y-reset-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.a11y-reset-btn:hover { background: rgba(255,255,255,0.32); }
.a11y-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.a11y-close-btn:hover { background: rgba(255,255,255,0.32); }
.a11y-panel-body {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0 4px;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
}
.a11y-panel-body::-webkit-scrollbar { width: 4px; }
.a11y-panel-body::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 4px; }
.a11y-section {
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.a11y-section:last-child { border-bottom: none; }
.a11y-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 8px;
}
.a11y-stepper-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.a11y-step-btn {
  width: 38px;
  height: 32px;
  border-radius: 8px;
  background: #f0f4ff;
  border: 1px solid #d0dcff;
  color: #1a6ef5;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-step-btn:hover:not(:disabled) { background: #dce9ff; border-color: #1a6ef5; }
.a11y-step-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.a11y-step-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #222;
}
.a11y-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.a11y-radio-pill {
  padding: 5px 12px;
  border-radius: 20px;
  background: #f4f4f4;
  color: #444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  user-select: none;
}
.a11y-radio-pill:hover { background: #e8e8e8; }
.a11y-radio-pill.active {
  background: #e8f0ff;
  border-color: #1a6ef5;
  color: #1a6ef5;
}
.a11y-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.12s;
}
.a11y-toggle-row:hover { background: #f8f9ff; margin: 0 -8px; padding: 7px 8px; }
.a11y-toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: #222;
  flex: 1;
}
.a11y-toggle-switch {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #d8d8d8;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.a11y-toggle-switch.on { background: #1a6ef5; }
.a11y-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.a11y-toggle-switch.on .a11y-toggle-thumb { transform: translateX(16px); }
.a11y-row { display: flex; align-items: center; }
.a11y-panel-footer {
  padding: 6px 16px;
  font-size: 10px;
  color: #bbb;
  text-align: right;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}
.a11y-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
body.a11y-contrast-high {
  filter: contrast(1.6) !important;
}
body.a11y-contrast-dark {
  background: #000 !important;
  color: #fff !important;
}
body.a11y-contrast-dark a { color: #7fc6ff !important; }
body.a11y-contrast-dark button, body.a11y-contrast-dark input,
body.a11y-contrast-dark select, body.a11y-contrast-dark textarea {
  background: #111 !important;
  color: #fff !important;
  border-color: #555 !important;
}
body.a11y-contrast-light {
  background: #fff !important;
  color: #000 !important;
  filter: brightness(1.12) !important;
}
body.a11y-grayscale { filter: grayscale(100%) !important; }
body.a11y-grayscale.a11y-contrast-high { filter: grayscale(100%) contrast(1.6) !important; }
body.a11y-invert { filter: invert(100%) hue-rotate(180deg) !important; }
body.a11y-invert img, body.a11y-invert video { filter: invert(100%) hue-rotate(180deg) !important; }
body.a11y-highlight-links a {
  background: #ff0 !important;
  color: #000 !important;
  text-decoration: underline !important;
  outline: 2px solid #f00 !important;
  padding: 0 2px !important;
  border-radius: 2px !important;
}
body.a11y-readable-font,
body.a11y-readable-font p,
body.a11y-readable-font li,
body.a11y-readable-font span,
body.a11y-readable-font div,
body.a11y-readable-font h1,
body.a11y-readable-font h2,
body.a11y-readable-font h3 {
  font-family: 'Atkinson Hyperlegible', 'Verdana', 'Trebuchet MS', sans-serif !important;
}
body.a11y-line-height p,
body.a11y-line-height li,
body.a11y-line-height div,
body.a11y-line-height span {
  line-height: 1.9 !important;
}
body.a11y-letter-spacing p,
body.a11y-letter-spacing li,
body.a11y-letter-spacing div,
body.a11y-letter-spacing span {
  letter-spacing: 0.08em !important;
  word-spacing: 0.14em !important;
}
body.a11y-pause-animations *,
body.a11y-pause-animations *::before,
body.a11y-pause-animations *::after {
  animation-play-state: paused !important;
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
}
body.a11y-enhance-focus *:focus {
  outline: 3px solid #1a6ef5 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(26,110,245,0.25) !important;
}
body.a11y-hide-images img,
body.a11y-hide-images svg,
body.a11y-hide-images picture,
body.a11y-hide-images video,
body.a11y-hide-images canvas {
  visibility: hidden !important;
}
body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewport="0 0 40 40"><path d="M5 2L5 30L12 23L17 36L21 34L16 21L26 21Z" fill="%23000" stroke="%23fff" stroke-width="2"/></svg>') 5 2, auto !important;
}
@media (max-width: 420px) {
  #a11y-widget-host { bottom: 16px; right: 16px; }
  #a11y-panel { width: calc(100vw - 32px); right: 0; }
}
