/* Accessibility kit adapter for equinoxgroup.eu: maps the panel's --a11y-* tokens to the site's own design tokens, so the
   panel follows the site's theme by itself. Starting point written by the manager on 2026-12-01; from install on,
   the copy in the site's build belongs to the site chat (tune it there). Boot config: data-theme-attr="data-theme" data-motion-attr="data-motion" data-motion-value="paused" */
:root {
  --a11y-bg: var(--bg); --a11y-ink: var(--ink); --a11y-muted: var(--soft);
  --a11y-surface: color-mix(in srgb, var(--ink) 4%, var(--bg));
  --a11y-line: color-mix(in srgb, var(--ink) 16%, transparent);
  --a11y-accent: var(--metal); --a11y-accent-ink: var(--bg); --a11y-focus: var(--focus); --a11y-mark: var(--metal);
  --a11y-display: var(--f-display); --a11y-ui: var(--f-ui);
  --a11y-radius: 2px; --a11y-sheet-radius: 0px; --a11y-shadow: 0 40px 90px -40px rgba(10, 20, 36, .55);
  --a11y-backdrop: rgba(10, 20, 36, .36);
}
/* Higher contrast: secondary text takes the full ink colour; hairlines firm up */
html[data-a11y-contrast] { --soft: var(--ink); --field-line: var(--ink); }

/* ---------- Gilding (owner, 1 Dec 2026: "Make the accessibility panel match the site's gold more") ----------
   Every chosen thing takes the site's gold key (--key-fill, the "Talk to us" button): the selected segment, a switch
   that is on, the panel's buttons; a chosen profile gets a gilt edge and a faint gold wash. The small labels and the
   title are in the drifting gold of the headlines (the theme's golds: darker on the light ground, bright on the dark).
   Hairlines are gilt; the sheet's edge is a gilt rule. The focus ring stays the site's blue. Higher contrast and forced
   colours drop the gradients for solid ink. */
.a11y { --a11y-gilt-text: linear-gradient(105deg, var(--gs1) 0%, var(--gs2) 30%, var(--gs3) 50%, var(--gs2) 70%, var(--gs1) 100%) 0 0 / 240% 100%; }
.a11y__sheet { border-left-color: color-mix(in srgb, var(--gilt) 60%, transparent); }
.a11y__head { border-bottom: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--metal) 85%, transparent), transparent) 0 100% / 100% 1px no-repeat; }
.a11y__section { border-bottom-color: color-mix(in srgb, var(--metal) 22%, transparent); }
.a11y__foot { border-top-color: color-mix(in srgb, var(--metal) 40%, transparent); }
.a11y__eyebrow, .a11y__label, .a11y__title {
  background: var(--a11y-gilt-text); -webkit-background-clip: text; background-clip: text; color: var(--metal); -webkit-text-fill-color: transparent; }
.a11y__title { font-style: italic; padding-right: .06em; }
@media (prefers-reduced-motion: no-preference) {
  .a11y__eyebrow, .a11y__label, .a11y__title { animation: gold-drift 9s linear infinite; }
  :root[data-motion="paused"] :is(.a11y__eyebrow, .a11y__label, .a11y__title) { animation-play-state: paused; }
}
.a11y__radio:checked + span { background: var(--key-fill) 0 0 / 240% 100%; color: var(--key-ink); box-shadow: inset 0 0 0 1px var(--key-edge); }
.a11y__switch[aria-checked="true"] .a11y__track { background: var(--key-fill) 0 0 / 240% 100%; border-color: var(--key-edge); }
.a11y__switch[aria-checked="true"] .a11y__knob { background: #fbf8f1; box-shadow: 0 0 0 1px var(--key-edge); }
.a11y__button:not(.a11y__button--quiet) { background: var(--key-fill) 0 0 / 240% 100%; color: var(--key-ink); border-color: var(--key-edge);
  transition: background-position .9s cubic-bezier(.2, .7, .2, 1), filter .2s; }
.a11y__button:not(.a11y__button--quiet):hover:not(:disabled) { background-position: 72% 0; filter: brightness(1.06); }
.a11y__button--quiet:hover, .a11y__profile:hover, .a11y__step:hover:not([aria-disabled="true"]) { border-color: color-mix(in srgb, var(--gilt) 80%, var(--metal)); }
.a11y__profile[aria-pressed="true"] { border-color: var(--key-edge); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gilt) 70%, transparent);
  background: color-mix(in srgb, var(--gilt) 12%, var(--a11y-surface)); }
html[data-a11y-contrast] :is(.a11y__eyebrow, .a11y__label, .a11y__title) { background: none; -webkit-text-fill-color: currentColor; color: var(--ink); animation: none; }
@media (forced-colors: active) { :is(.a11y__eyebrow, .a11y__label, .a11y__title) { background: none; -webkit-text-fill-color: currentColor; } }
