/* =============================
   Accessibility Toggle Button
   ============================= */
.a11y-toggle-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1100;
  background: #ffd700;
  color: #000000;
  color: #000;
  border: 2px solid #000;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.a11y-toggle-btn:hover {
  transform: scale(1.05);
  background: #ffea00;
  color: #000;
}

.a11y-toggle-btn:focus-visible {
  outline: 3px dashed #000;
  outline-offset: 3px;
}

/* =============================
   Accessibility Panel
   ============================= */
.a11y-panel {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 300px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1b1b1b, #111);
  color: #fff;
  border-radius: 16px 0 0 16px;
  padding: 1rem 1rem 0.75rem;
  z-index: 1099;
  font-size: 0.9rem;
  box-shadow: -8px 0 24px rgba(0,0,0,0.45);
}

.a11y-panel h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Groups */
.a11y-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.a11y-group span {
  flex: 1;
  color: #ddd;
}

/* Buttons inside panel */
.a11y-panel button {
  background: #ffd700;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.a11y-panel button:hover {
  background: #ffea00;
  transform: translateY(-1px);
}

.a11y-panel button:focus-visible {
  outline: 2px dashed #ffd700;
  outline-offset: 2px;
  color: #000000;
}

/* Feature grid */
.a11y-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.a11y-features button {
  width: 100%;
  padding: 0.45rem 0.4rem;
  font-size: 0.8rem;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #333;
}

.a11y-features button:hover {
  background: #ffd700;
  color: #000;
}

/* Controls */
.a11y-controls {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.a11y-controls button {
  flex: 1;
  font-size: 0.75rem;
  padding: 0.4rem;
}

/* Footer / Statement */
.a11y-footer {
  margin-top: 0.5rem;
  border-top: 1px solid #2a2a2a;
  padding-top: 0.5rem;
}

#a11yStatementToggle {
  color: #ffd700;
  text-decoration: none;
  font-size: 0.75rem;
}

#a11yStatementToggle:hover,
#a11yStatementToggle:focus-visible {
  text-decoration: underline;
}

#a11yStatementText {
  margin-top: 0.4rem;
  padding: 0.5rem;
  background: #0f0f0f;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #ddd;
  max-height: 200px;
  overflow-y: auto;
}

/* =============================
   Accessibility Effects
   ============================= */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast a {
  color: #ffd700 !important;
}

body.reduce-motion * {
  animation: none !important;
  transition: none !important;
}

.text-magnifier *:hover {
  transform: scale(1.2);
  transform-origin: left top;
}

.dyslexia-font {
  font-family: "OpenDyslexic", Arial, sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.accessibility-mode *:focus-visible {
  outline: 4px solid #ff9800 !important;
  outline-offset: 3px;
}

.cursor-dark {
  /*cursor: url("/images/big-black-cursor.svg") 4 4, auto !important;*/
  cursor: url("/images/big-black-cursor.cur"), auto !important;
}

.cursor-light {
  cursor: url("/images/white-cursor.svg") 4 4, auto !important;
}
.cognitive-reading p {
  max-width: 60ch;
  line-height: 1.8;
  font-size: 1.1em;
}
