/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  right: 0;
  background: #005fcc;
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 14px;
  z-index: 9999;
  border-radius: 0 0 0 4px;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #ffff00;
  outline-offset: 0;
}

/* ===== Accessibility Icon ===== */
.accessibility-icon {
  position: fixed;
  top: 10px;
  right: 10px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 2px;
  line-height: 0;
}
.accessibility-icon:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* ===== Accessibility Menu ===== */
.accessibility-menu {
  position: fixed;
  top: 52px;
  right: 10px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 4px;
  padding: 8px;
  z-index: 1000;
  display: none;
  min-width: 190px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  direction: rtl;
}
.accessibility-menu.open {
  display: block;
}
.accessibility-menu button {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  background: #f4f4f4;
  border: 1px solid #aaa;
  border-radius: 3px;
  text-align: right;
}
.accessibility-menu button:hover,
.accessibility-menu button:focus-visible {
  background: #005fcc;
  color: #fff;
  border-color: #003f99;
  outline: none;
}

/* ===== Focus Indicators (global) ===== */
:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}

/* ===== High Contrast Mode ===== */
body.high-contrast,
body.high-contrast .box,
body.high-contrast .pros,
body.high-contrast header,
body.high-contrast footer,
body.high-contrast .container {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
body.high-contrast a {
  color: #ffff00 !important;
}
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
  background-color: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}
body.high-contrast button,
body.high-contrast input[type="submit"],
body.high-contrast input[type="button"] {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #fff !important;
}
body.high-contrast .accessibility-menu {
  background-color: #111 !important;
  border-color: #fff !important;
}
body.high-contrast .accessibility-menu button {
  background-color: #333 !important;
  color: #fff !important;
  border-color: #aaa !important;
}
body.high-contrast hr {
  border-color: #fff !important;
}

/* ===== Font Size Levels ===== */
body.font-lg1 { font-size: 1.1em; }
body.font-lg2 { font-size: 1.2em; }
body.font-lg3 { font-size: 1.35em; }
