/*!
 * Andes Consent — registered theme: "andes".
 * Source: Andes Development design system package (2026-08-26); the canonical
 * implementation lives in the linkable-docs design system. Orange #f98c0e,
 * hairline borders, square corners, Space Grotesk uppercase + Inter.
 *
 * Schemes: dark (default) + light ("fondo blanco", the documented inversion).
 * The default scheme lives on :root; the light variant is scoped to the host
 * container attribute the library mirrors from `ui.theme`.
 *
 * Fonts are the page's responsibility (the library makes no network calls):
 * load Space Grotesk and Inter yourself, or the stacks fall back to system
 * fonts. Iframe facades read the :root values, so they follow the default
 * (dark) scheme; add .acns-facade rules if a light facade is needed.
 */

/* ---------- Default scheme: dark (orange on black) ---------- */

:root {
  --acns-bg: #131313;
  --acns-text: #e2e2e2;
  --acns-text-muted: #dcc2ae;
  --acns-primary: #f98c0e;
  --acns-primary-text: #000000;
  --acns-secondary-bg: transparent;
  --acns-secondary-text: #ffffff;
  --acns-secondary-border: #ffffff;
  --acns-border: rgba(255, 255, 255, 0.2);
  --acns-radius: 0px;
  --acns-shadow: none;
  --acns-overlay: rgba(0, 0, 0, 0.75);
  --acns-focus-ring: #f98c0e;
  --acns-switch-on: #f98c0e;
  --acns-switch-off: #454747;
  --acns-link: #f98c0e;
  --acns-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --acns-heading-font: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --acns-heading-weight: 700;
  --acns-heading-transform: uppercase;
  --acns-heading-tracking: -0.025em;
  --acns-button-font: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --acns-button-radius: 0px;
  --acns-button-weight: 700;
  --acns-button-transform: uppercase;
  --acns-button-tracking: 0.05em;
}

/* ---------- Light scheme ("fondo blanco"): same system, ink and paper swap.
   Orange FILLS stay #f98c0e (black text on orange passes AA on both grounds);
   orange TEXT and state colors darken to #b35c00 for AA on white.
   Keep this block and the auto block below in sync. ---------- */

#andes-consent-host[data-theme='light'] {
  --acns-bg: #ffffff;
  --acns-text: #23211f;
  --acns-text-muted: #6b5648;
  --acns-secondary-text: #0d0d0d;
  --acns-secondary-border: #0d0d0d;
  --acns-border: rgba(13, 13, 13, 0.22);
  --acns-focus-ring: #b35c00;
  --acns-switch-on: #b35c00;
  --acns-switch-off: #86868f;
  --acns-link: #b35c00;
}

@media (prefers-color-scheme: light) {
  #andes-consent-host[data-theme='auto'] {
    --acns-bg: #ffffff;
    --acns-text: #23211f;
    --acns-text-muted: #6b5648;
    --acns-secondary-text: #0d0d0d;
    --acns-secondary-border: #0d0d0d;
    --acns-border: rgba(13, 13, 13, 0.22);
    --acns-focus-ring: #b35c00;
    --acns-switch-on: #b35c00;
    --acns-switch-off: #86868f;
    --acns-link: #b35c00;
  }
}
