/* Layout Component Container Definitions */
#dsel-a11y-trigger {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}
.languageclr{
	padding: 8px;
}
#dsel-a11y-panel {
  display: none;
  position: absolute;
  top: 55px;
  right: 20px;
  width: 360px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 12000;
  font-family: system-ui, -apple-system, sans-serif;
}

#dsel-a11y-panel.is-visible {
  display: block;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.panel-header h2 {
  font-size: 1.15rem;
  margin: 0;
  color: #222222;
}

#dsel-a11y-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  color:#000000;}

/* Row Grid Framework Alignment */
.control-row {
  border: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.control-row legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 8px;
}

.toggle-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.toggle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
  color:#000000;
}

.toggle-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Button & Switch Presentation Styles */
.control-buttons {
  display: flex;
  gap: 6px;
}

.control-buttons button, .a11y-switch-btn {
  padding: 6px 12px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  color:#000000;
}

.control-buttons button[aria-pressed="true"], 
.a11y-switch-btn[aria-checked="true"] {
  background-color: #0f4c81;
  color: #ffffff;
  border-color: #0f4c81;
}

.reset-all-btn {
  width: 100%;
  padding: 10px;
  background-color: #e02424;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.icon, .legend-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.fronticon{
  width: 24px;
  stroke: currentColor;
}

/* -------------------------------------------------------------
   PREFERENCE RENDERING RULES ENGINE (Targets Document Root)
------------------------------------------------------------- */

/* High Contrast View Styling Override */
body[data-a11y-theme="high-contrast"] {
  background-color: #000000 !important;
  color: #ffff00 !important;
}
body[data-a11y-theme="high-contrast"] a { color: #00ffff !important; }

/* Dark Contrast View Styling Override */
body[data-a11y-theme="dark-contrast"] {
  background-color: #121212 !important;
  color: #e0e0e0 !important;
}
body[data-a11y-theme="dark-contrast"] a { color: #3b82f6 !important; }

/* Color Inversion Logic */
body[data-a11y-invert="true"] {
  filter: invert(100%) hue-rotate(180deg);
}
/* Re-invert media components so photos aren't completely corrupted during lookups */
body[data-a11y-invert="true"] img, 
body[data-a11y-invert="true"] video,
body[data-a11y-invert="true"] #dsel-a11y-panel {
  filter: invert(100%) hue-rotate(180deg);
}

/* Saturation Levels Matrix */
body[data-a11y-sat="low"] { filter: grayscale(100%); }
body[data-a11y-sat="high"] { filter: saturate(200%); }

/* Explicit Hyperlink Highlight Structural Overrides */
body[data-a11y-links="true"] a {
  background-color: #ffff00 !important;
  color: #000000 !important;
  outline: 2px dashed #ff0000 !important;
  text-decoration: underline !important;
  font-weight: bold !important;
  padding: 5px; !important;
}

/* Image Layer Hiding Rules */
body[data-a11y-hide-imgs="true"] img,
body[data-a11y-hide-imgs="true"] svg:not(.icon):not(.legend-icon),
body[data-a11y-hide-imgs="true"] .background-image-container {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Standard Default Cursor Enforcer */
body[data-a11y-def-cursor="true"] *,
body[data-a11y-def-cursor="true"] a,
body[data-a11y-def-cursor="true"] button {
  cursor: default !important;
}