/*
 * AEC-4158: the "Filter workflows by industry" button row under
 * #operating-leverage toggles aria-expanded/hidden correctly via the
 * generic site.js handler (panel content does switch), but the buttons'
 * own active/inactive Tailwind classes are static at render time and
 * never change, so the black "active" look stays stuck on the first
 * button regardless of which panel is actually open. This file drives
 * the visual state from aria-expanded instead, reusing the exact design
 * tokens the static classes already encode (ink-900/ink-950/paper for
 * active, ink-200/paper-raised/ink-700/ink-400 for inactive+hover) --
 * same look, now actually synced to state. Scoped to this one component;
 * does not touch site.js or any other aria-controls/aria-expanded usage
 * (nav dropdowns, mobile menu, accordions).
 */
#operating-leverage [role="group"] button[aria-controls^="leverage-panel-"][aria-expanded="true"] {
  border-color: var(--color-ink-900);
  background-color: var(--color-ink-950);
  color: var(--color-paper);
}

#operating-leverage [role="group"] button[aria-controls^="leverage-panel-"][aria-expanded="false"] {
  border-color: var(--color-ink-200);
  background-color: var(--color-paper-raised);
  color: var(--color-ink-700);
}

#operating-leverage [role="group"] button[aria-controls^="leverage-panel-"][aria-expanded="false"]:hover {
  border-color: var(--color-ink-400);
  color: var(--color-ink-950);
}
