/* Indus Invest – Accessibility Widget (gear + popup, fixed top center) */
#indus-acc-wrap {
  position: fixed;
  top: 50%;
  left: 2%;
  transform: translateX(-50%);
  z-index: 99999;
  font-family: "Open Sans", Poppins, Arial, sans-serif;
}

#indus-acc-toggle {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: #a89f91;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.15s ease;
}

#indus-acc-toggle:hover {
  background: #8f877b;
}

#indus-acc-toggle:focus-visible {
  outline: 2px solid #1f588f;
  outline-offset: 2px;
}

#indus-acc-toggle[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgba(31, 88, 143, 0.35);
}

#indus-acc-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  /*transform: translateX(-50%);*/
  width: 220px;
  padding: 14px 14px 12px;
  background: #fff !important;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  color: #222 !important;
}

#indus-acc-panel[hidden] {
  display: none !important;
}

#indus-acc-panel,
#indus-acc-panel * {
  color: inherit;
}

.indus-acc-heading {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #222 !important;
  text-align: left;
}

.indus-acc-colors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  justify-items: center;
  margin-bottom: 4px;
}

.indus-acc-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.indus-acc-swatch:hover {
  transform: scale(1.08);
}

.indus-acc-swatch:focus-visible {
  outline: 2px solid #1f588f;
  outline-offset: 2px;
}

.indus-acc-swatch[aria-pressed="true"],
.indus-acc-swatch.indus-acc-active {
  border-color: #222;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #222;
}

.indus-acc-font-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 12px;
}

.indus-acc-font-row button {
  min-width: 44px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f5f5f5 !important;
  color: #222 !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.indus-acc-font-row button:hover {
  background: #ebebeb !important;
}

.indus-acc-font-row button[aria-pressed="true"] {
  background: #1f588f !important;
  border-color: #1f588f;
  color: #fff !important;
}

.indus-acc-reset {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff !important;
  color: #444 !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
}

.indus-acc-reset:hover {
  background: #f5f5f5 !important;
}

/* Font scale */
html.indus-acc-fs-85 { font-size: 85%; }
html.indus-acc-fs-100 { font-size: 100%; }
html.indus-acc-fs-115 { font-size: 115%; }
html.indus-acc-fs-130 { font-size: 130%; }
html.indus-acc-fs-145 { font-size: 145%; }

/* ========== STRONG COLOR THEMES ========== */
/* Theme tokens */
html.indus-acc-color-red {
  --acc-bg: #ffebee;
  --acc-bg2: #ffcdd2;
  --acc-text: #1b0000;
  --acc-muted: #5c1a1a;
  --acc-accent: #e53935;
  --acc-accent-dark: #b71c1c;
  --acc-link: #c62828;
  --acc-icon: #d32f2f;
  --acc-on-accent: #ffffff;
}

html.indus-acc-color-gold {
  --acc-bg: #fff8e1;
  --acc-bg2: #ffecb3;
  --acc-text: #2a1f00;
  --acc-muted: #5d4a00;
  --acc-accent: #f9a825;
  --acc-accent-dark: #f57f17;
  --acc-link: #e65100;
  --acc-icon: #f9a825;
  --acc-on-accent: #1a1200;
}

html.indus-acc-color-cyan {
  --acc-bg: #e0f7fa;
  --acc-bg2: #b2ebf2;
  --acc-text: #00262b;
  --acc-muted: #004d56;
  --acc-accent: #00acc1;
  --acc-accent-dark: #00838f;
  --acc-link: #006064;
  --acc-icon: #00bcd4;
  --acc-on-accent: #ffffff;
}

html.indus-acc-color-green {
  --acc-bg: #e8f5e9;
  --acc-bg2: #c8e6c9;
  --acc-text: #0a1f0b;
  --acc-muted: #1b5e20;
  --acc-accent: #43a047;
  --acc-accent-dark: #2e7d32;
  --acc-link: #1b5e20;
  --acc-icon: #43a047;
  --acc-on-accent: #ffffff;
}

html.indus-acc-color-orange {
  --acc-bg: #fff3e0;
  --acc-bg2: #ffe0b2;
  --acc-text: #2a1400;
  --acc-muted: #6d3b00;
  --acc-accent: #fb8c00;
  --acc-accent-dark: #ef6c00;
  --acc-link: #e65100;
  --acc-icon: #ff9800;
  --acc-on-accent: #ffffff;
}

html.indus-acc-color-teal {
  --acc-bg: #e0f2f1;
  --acc-bg2: #b2dfdb;
  --acc-text: #00201d;
  --acc-muted: #004d40;
  --acc-accent: #00897b;
  --acc-accent-dark: #00695c;
  --acc-link: #004d40;
  --acc-icon: #00897b;
  --acc-on-accent: #ffffff;
}

html.indus-acc-color-pink {
  --acc-bg: #fce4ec;
  --acc-bg2: #f8bbd0;
  --acc-text: #280011;
  --acc-muted: #6a0f35;
  --acc-accent: #e91e63;
  --acc-accent-dark: #c2185b;
  --acc-link: #ad1457;
  --acc-icon: #e91e63;
  --acc-on-accent: #ffffff;
}

/* Page background + base text */
html[class*="indus-acc-color-"] body {
  background-color: var(--acc-bg) !important;
  background-image: none !important;
  color: var(--acc-text) !important;
}

html[class*="indus-acc-color-"] body main,
html[class*="indus-acc-color-"] body section,
html[class*="indus-acc-color-"] body article,
html[class*="indus-acc-color-"] body .bg-white,
html[class*="indus-acc-color-"] body .bg-gray-50,
html[class*="indus-acc-color-"] body .bg-gray-100,
html[class*="indus-acc-color-"] body .bg-dark-secondary,
html[class*="indus-acc-color-"] body .bg-dark-primary,
html[class*="indus-acc-color-"] body .bg-dark-card,
html[class*="indus-acc-color-"] body [class*="bg-[#f"],
html[class*="indus-acc-color-"] body [class*="bg-gray"] {
  background-color: var(--acc-bg) !important;
  background-image: none !important;
  color: var(--acc-text) !important;
}

/* Alternate band sections (blue brand bands → accent) */
html[class*="indus-acc-color-"] body [style*="background-color:#026cd7"],
html[class*="indus-acc-color-"] body [style*="background-color: #026cd7"],
html[class*="indus-acc-color-"] body [style*="background-color:#1f588f"],
html[class*="indus-acc-color-"] body [style*="background-color: #1f588f"],
html[class*="indus-acc-color-"] body [style*="background:#026cd7"],
html[class*="indus-acc-color-"] body [style*="background: #026cd7"],
html[class*="indus-acc-color-"] body [class*="bg-[#1f588f]"],
html[class*="indus-acc-color-"] body [class*="bg-[#026cd7]"],
html[class*="indus-acc-color-"] body [class*="bg-[#0d5ca1]"],
html[class*="indus-acc-color-"] body [class*="bg-[#0a4a8a]"],
html[class*="indus-acc-color-"] body [class*="bg-[#0f1419]"],
html[class*="indus-acc-color-"] body [class*="bg-[#1a1f2e]"],
html[class*="indus-acc-color-"] body .bg-brand-primary,
html[class*="indus-acc-color-"] body .bg-brand-secondary,
html[class*="indus-acc-color-"] body .trk-btn--primary,
html[class*="indus-acc-color-"] body .btn-primary,
html[class*="indus-acc-color-"] body .btn-contact {
  background-color: var(--acc-accent) !important;
  background: var(--acc-accent) !important;
  color: var(--acc-on-accent) !important;
  border-color: var(--acc-accent-dark) !important;
}

/* Header / footer chrome */
html[class*="indus-acc-color-"] body header,
html[class*="indus-acc-color-"] body .header-2,
html[class*="indus-acc-color-"] body footer {
  background-color: var(--acc-accent-dark) !important;
  background: var(--acc-accent-dark) !important;
  color: var(--acc-on-accent) !important;
  border-color: var(--acc-accent) !important;
}

html[class*="indus-acc-color-"] body header a,
html[class*="indus-acc-color-"] body footer a,
html[class*="indus-acc-color-"] body header nav,
html[class*="indus-acc-color-"] body footer p,
html[class*="indus-acc-color-"] body footer li,
html[class*="indus-acc-color-"] body footer h6,
html[class*="indus-acc-color-"] body .text-white {
  color: var(--acc-on-accent) !important;
}

/* Content text */
html[class*="indus-acc-color-"] body h1,
html[class*="indus-acc-color-"] body h2,
html[class*="indus-acc-color-"] body h3,
html[class*="indus-acc-color-"] body h4,
html[class*="indus-acc-color-"] body h5,
html[class*="indus-acc-color-"] body h6,
html[class*="indus-acc-color-"] body .text-dark,
html[class*="indus-acc-color-"] body .text-dark-heading,
html[class*="indus-acc-color-"] body .text-black,
html[class*="indus-acc-color-"] body .text-gray-600,
html[class*="indus-acc-color-"] body .text-gray-700,
html[class*="indus-acc-color-"] body .text-gray-800,
html[class*="indus-acc-color-"] body p,
html[class*="indus-acc-color-"] body li,
html[class*="indus-acc-color-"] body span,
html[class*="indus-acc-color-"] body label {
  color: var(--acc-text) !important;
}

/* Brand text → accent */
html[class*="indus-acc-color-"] body .text-brand-primary,
html[class*="indus-acc-color-"] body .text-brand-secondary,
html[class*="indus-acc-color-"] body [class*="text-[#1f588f]"],
html[class*="indus-acc-color-"] body [class*="text-[#026cd7]"] {
  color: var(--acc-accent) !important;
}

/* Links */
html[class*="indus-acc-color-"] body a {
  color: var(--acc-link) !important;
}

html[class*="indus-acc-color-"] body header a,
html[class*="indus-acc-color-"] body footer a {
  color: var(--acc-on-accent) !important;
}

/* ========== Font Awesome icons ========== */
html[class*="indus-acc-color-"] body i.fa,
html[class*="indus-acc-color-"] body i.fas,
html[class*="indus-acc-color-"] body i.far,
html[class*="indus-acc-color-"] body i.fal,
html[class*="indus-acc-color-"] body i.fab,
html[class*="indus-acc-color-"] body i.fad,
html[class*="indus-acc-color-"] body i[class*="fa-"],
html[class*="indus-acc-color-"] body span.fa,
html[class*="indus-acc-color-"] body span.fas,
html[class*="indus-acc-color-"] body span.far,
html[class*="indus-acc-color-"] body span.fab,
html[class*="indus-acc-color-"] body .fa-solid,
html[class*="indus-acc-color-"] body .fa-regular,
html[class*="indus-acc-color-"] body .fa-brands {
  color: var(--acc-icon) !important;
}

/* Icons on accent / dark chrome stay light */
html[class*="indus-acc-color-"] body header i.fa,
html[class*="indus-acc-color-"] body header i.fas,
html[class*="indus-acc-color-"] body header i.far,
html[class*="indus-acc-color-"] body header i.fab,
html[class*="indus-acc-color-"] body header i[class*="fa-"],
html[class*="indus-acc-color-"] body header .fa-solid,
html[class*="indus-acc-color-"] body footer i.fa,
html[class*="indus-acc-color-"] body footer i.fas,
html[class*="indus-acc-color-"] body footer i.far,
html[class*="indus-acc-color-"] body footer i.fab,
html[class*="indus-acc-color-"] body footer i[class*="fa-"],
html[class*="indus-acc-color-"] body footer .fa-solid,
html[class*="indus-acc-color-"] body .trk-btn--primary i,
html[class*="indus-acc-color-"] body .btn-primary i,
html[class*="indus-acc-color-"] body [style*="background-color:#026cd7"] i,
html[class*="indus-acc-color-"] body [style*="background-color: #026cd7"] i,
html[class*="indus-acc-color-"] body [class*="bg-[#1f588f]"] i,
html[class*="indus-acc-color-"] body [class*="bg-[#026cd7]"] i {
  color: var(--acc-on-accent) !important;
}

/* Cards / boxes */
html[class*="indus-acc-color-"] body .shadow,
html[class*="indus-acc-color-"] body .rounded-lg,
html[class*="indus-acc-color-"] body .rounded-xl,
html[class*="indus-acc-color-"] body .rounded-2xl {
  border-color: var(--acc-accent) !important;
}

html[class*="indus-acc-color-"] body .border,
html[class*="indus-acc-color-"] body .border-gray-100,
html[class*="indus-acc-color-"] body .border-gray-200,
html[class*="indus-acc-color-"] body .border-dark-border {
  border-color: var(--acc-accent) !important;
}

/* Keep accessibility widget itself clean */
html[class*="indus-acc-color-"] #indus-acc-wrap,
html[class*="indus-acc-color-"] #indus-acc-panel,
html[class*="indus-acc-color-"] #indus-acc-panel * {
  /* panel handled above with !important white bg */
}

html[class*="indus-acc-color-"] #indus-acc-panel {
  background: #fff !important;
  color: #222 !important;
}

html[class*="indus-acc-color-"] #indus-acc-panel .indus-acc-heading,
html[class*="indus-acc-color-"] #indus-acc-panel .indus-acc-reset,
html[class*="indus-acc-color-"] #indus-acc-panel .indus-acc-font-row button {
  color: #222 !important;
}

html[class*="indus-acc-color-"] #indus-acc-panel .indus-acc-font-row button[aria-pressed="true"] {
  background: var(--acc-accent) !important;
  border-color: var(--acc-accent-dark) !important;
  color: var(--acc-on-accent) !important;
}


#indus-acc-toggle svg {
    animation: rotateSvg 5s linear infinite;
}

@keyframes rotateSvg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 480px) {
#indus-acc-wrap {
    left: 6%;
  }

  #indus-acc-panel {
    width: min(220px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  #indus-acc-toggle,
  .indus-acc-swatch {
    transition: none;
  }
}
