/* ASFIRE accessibility toolbar - standalone, no framework dependency */
#asfire-a11y-toggle {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 99998;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0d3b66;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  font-size: 24px;
}
#asfire-a11y-toggle:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

#asfire-a11y-panel {
  position: fixed;
  bottom: 78px;
  inset-inline-start: 20px;
  z-index: 99999;
  width: 300px;
  max-width: calc(100vw - 40px);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  color: #111;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  display: none;
  font-family: Arial, Helvetica, sans-serif;
  direction: rtl;
}
#asfire-a11y-panel.open { display: block; }

#asfire-a11y-panel .a11y-header {
  background: #0d3b66;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px 10px 0 0;
  font-size: 17px;
  font-weight: bold;
}
#asfire-a11y-panel .a11y-header button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

#asfire-a11y-panel .a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px;
}
#asfire-a11y-panel button.a11y-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f5f7fa;
  border: 1px solid #e1e6ec;
  border-radius: 8px;
  padding: 12px 6px;
  cursor: pointer;
  font-size: 13px;
  color: #16324f;
}
#asfire-a11y-panel button.a11y-btn[aria-pressed="true"] {
  background: #0d3b66;
  color: #fff;
  border-color: #0d3b66;
}
#asfire-a11y-panel button.a11y-btn:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 1px;
}
#asfire-a11y-panel button.a11y-btn .a11y-icon { font-size: 20px; }
#asfire-a11y-panel button.a11y-full {
  grid-column: 1 / -1;
}

/* ---- Effects applied to <html> via classes ---- */
html.a11y-contrast-bright, html.a11y-contrast-bright body {
  background: #fff !important;
  color: #000 !important;
}
html.a11y-contrast-bright * {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

html.a11y-contrast-dark, html.a11y-contrast-dark body {
  background: #000 !important;
  color: #ffde59 !important;
}
html.a11y-contrast-dark * {
  background-color: #000 !important;
  color: #ffde59 !important;
  border-color: #ffde59 !important;
}

html.a11y-monochrome {
  filter: grayscale(100%);
}

html.a11y-no-blink *,
html.a11y-no-blink *::before,
html.a11y-no-blink *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

html.a11y-highlight-links a {
  background: #ffef7f !important;
  color: #000 !important;
  text-decoration: underline !important;
  outline: 1px solid #000;
}

/* font size steps applied as a root font-size percentage */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 137.5%; }
html.a11y-font-4 { font-size: 150%; }
