/* ============================
   ITER-INDIA ACCESSIBILITY CSS
   ============================ */

/* Root variables */
:root {
  --iter-base-font-size: 16px;
  --iter-line-height: 1.6;
  --iter-letter-spacing: 0em;
}

html {
  font-size: var(--iter-base-font-size);
  line-height: var(--iter-line-height);
  letter-spacing: var(--iter-letter-spacing);
}

/* Ensure line-height and letter-spacing cascade with !important for overrides */
body,
body * {
  line-height: var(--iter-line-height);
  letter-spacing: var(--iter-letter-spacing);
}

/* Body typography */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Skip link (commented out) */
.skip-to-content {
  display: none !important;
}

/* ====================
   MAIN ACCESS BUTTON
   ==================== */
.iter-access-btn {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Left bottom as preferred */
  z-index: 9999;
  background: #024;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  transition: background .3s;
}

.iter-access-btn:hover {
  background: #024;
}

.iter-access-btn:focus {
  outline: 3px solid rgb(0, 34, 68, .6);
  outline-offset: 4px;
}

/* ====================
   OVERLAY + TOOLBAR
   ==================== */
.iter-access-overlay {
  position: fixed;
  display: none;
  z-index: 9998;
  /* Position set via JS to button's viewport location */
}

.iter-access-toolbar {
  position: absolute;
  bottom: calc(100% + 10px); /* Above overlay (at button pos) with 10px gap */
  left: 0; /* Left-aligned to button */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  width: 320px;
  padding: 16px;
  font-size: 14px;
  overflow-y: auto;
  max-height: 70vh;
  animation: iter-pop .28s ease-out;
}

@keyframes iter-pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.iter-access-toolbar h4 {
  margin: 0 0 10px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition: all .2s;
  margin-bottom: 0.5rem;
}

.icon-btn:focus {
  outline: 3px solid rgba(0, 34, 68, 0.8);
  outline-offset: 3px;
}

.icon-btn.active {
  /* box-shadow: 0 0 0 3px rgba(74,144,226,.12); */
  background: #024;
  border-color: rgba(0, 34, 68, 0.8);
  color: #fff;
}

/* Highlight links */
.iterindia-highlight-links a {
  color: #ff0 !important;
  background-color: #000 !important;
  text-decoration: none !important;
  border-radius: 5px;
  background: #dfdfdf;
  color: #222;
  border: none;
  margin: 2px;
}


/* Hide images */
.iterindia-hide-images img {
  display: none !important;
}

/* ====================
   HIGH CONTRAST (FIXED) - Enhanced specificity and WHCM support
   ==================== */
/* Custom toggle: Higher specificity to override inline/site styles */
body.iterindia-high-contrast,
body.iterindia-high-contrast *,
html body.iterindia-high-contrast,
html body.iterindia-high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  fill: #fff !important; /* For SVGs */
  text-shadow: none !important; /* Clear shadows for clarity */
}

body.iterindia-high-contrast a,
body.iterindia-high-contrast a *,
html body.iterindia-high-contrast a,
html body.iterindia-high-contrast a * {
  color: #ff0 !important;
  text-decoration: underline !important;
  border-color: #ff0 !important;
}

body.iterindia-high-contrast a:focus,
html body.iterindia-high-contrast a:focus {
  outline-color: #ff0 !important;
  outline-style: solid !important;
  outline-width: 2px !important;
}

/* Normal contrast reset - Scoped to body */
body.iterindia-normal-contrast {
  background-color: #fff !important;
  color: #000 !important;
}

/* OS High Contrast Mode support (bonus: auto-applies if user enables WHCM) */
@media (prefers-contrast: high), (forced-colors: active) {
  body {
    background-color: Canvas !important;
    color: CanvasText !important;
    border-color: CanvasText !important;
  }
  
  body a {
    color: LinkText !important;
    text-decoration: underline !important;
  }
  
  body a:focus {
    outline-color: Highlight !important;
  }
  
  /* Ensure forced colors override images/backgrounds */
  img {
    forced-color-adjust: auto;
  }
  
  /* Hide decorative elements if needed */
  .decorative {
    opacity: 0.5 !important;
  }
}

/* ====================
   BIG CURSOR (FIXED)
   ==================== */
/* html.iterindia-big-cursor-enabled {
  cursor: none !important;
}

#iterindia-big-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0, 34, 68, .8);
  display: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,.12);
}

html.iterindia-big-cursor-enabled #iterindia-big-cursor {
  display: block;
} */

html.iterindia-big-cursor-enabled {
  cursor: none !important;
}

#iterindia-big-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0, 34, 68);          
  display: none;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

#iterindia-big-cursor::before {
  content: '';
  position: absolute;
  inset: -20px;                           
  border: 4px solid #ffca28;              
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 202, 40, 0.6); 
  opacity: 0.95;
}

html.iterindia-big-cursor-enabled #iterindia-big-cursor {
  display: block;
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width:768px) {
  .iter-access-btn {
    bottom: 10px;
    left: 10px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .iter-access-toolbar {
    width: 280px;
  }
}

@media print {
  .iter-access-btn,
  .iter-access-overlay,
  .iter-access-toolbar { display: none; }
}