/*
 * FFL Filters: Kadence theme adapter (v0.1 LOCKED: Paul, Nov 10, 2026, 3:53 PM ET). Ruling Q17: neutral default plus a Kadence adapter.
 * Load it only when the active theme (or parent theme) is Kadence. It remaps tokens and adds no component rules.
 * The var names were checked against the Kadence theme source on the box (/workspace/kadence-src/kadence, Version 1.5.0):
 *   palette1 Theme Accent, palette2 Theme Accent alt, palette3 Strongest text, palette4 Strong Text,
 *   palette5 Medium text, palette6 Subtle Text, palette7 Subtle Background, palette8 Lighter Background,
 *   palette9 White or offwhite. Font: --global-body-font-family, --global-heading-font-family.
 * Kadence 1.5.0 defines no global border radius var, so the radius stays on the FFL Filters default.
 * Each var() keeps the neutral value as a fallback, so a missing Kadence var can't blank the UI.
 */
:where(.ffl-filters) {
  --ffl-filters-font: var(--global-body-font-family, inherit);
  --ffl-filters-surface: var(--global-palette9, #FFFFFF);
  --ffl-filters-surface-alt: var(--global-palette8, #F5F6F8);
  --ffl-filters-text: var(--global-palette3, #1F2933);
  --ffl-filters-muted: var(--global-palette5, #52606D);
  --ffl-filters-border: var(--global-palette6, #8A94A3);
  --ffl-filters-border-subtle: var(--global-palette7, #D3D8DF);
  --ffl-filters-accent: var(--global-palette1, #0F1B2D);
  --ffl-filters-accent-contrast: var(--global-palette9, #FFFFFF);
  --ffl-filters-focus-ring: var(--global-palette2, #0F1B2D);
}
/* Headings inside the filter panel (group titles) follow the Kadence heading font. */
:where(.ffl-filters) .ffl-filters__group-title {
  font-family: var(--global-heading-font-family, var(--ffl-filters-font));
}
/*
 * Contrast caveat: the adapter takes the store's palette as it stands. If a store's palette6 falls under 3:1 on palette9,
 * control edges lose contrast. The plugin should check this in its settings screen and offer to keep the neutral border.
 */
