/* --- Widget Styling --- */
.a11y-btn {
  position: fixed;
  bottom: 80px; /* Shifted slightly up so it doesn't overlap your cookie banner */
  right: 20px;
  background-color: #047857; /* Matched to your site's emerald theme */
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a11y-menu {
  position: fixed;
  bottom: 145px;
  right: 20px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.a11y-menu.hidden {
  display: none;
}

.a11y-menu button {
  padding: 10px 15px;
  cursor: pointer;
  border: 1px solid #eeeeee;
  background: #f9f9f9;
  color: #333;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.a11y-menu button:hover {
  background: #e9e9e9;
}

/* --- Accessibility Rules --- */
/* High Contrast Mode (Overrides Tailwind utilities) */
body.high-contrast, 
body.high-contrast * {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}
body.high-contrast a, 
body.high-contrast a * {
  color: #66b2ff !important;
}
body.high-contrast .a11y-btn {
  background-color: #047857 !important;
  color: #ffffff !important;
}

/* Larger Text Mode */
body.large-text {
  font-size: 120% !important; 
}