/* FSCLN website design system v3 (10.0.0): the shared component rules of Material Design 3, for the website and Beheer.
 *
 * State layers. A control shows its state as a layer of its own content colour (currentColor) over its container:
 * 8% on hover, 10% on keyboard focus and on press. It is drawn as a background-image over the control's background
 * colour, so it needs no pseudo-element (those are often taken) and sits under the control's text and icons. A page
 * applies it to its own controls with the three custom properties below, or with the .md-state class:
 *     .my-button:hover { background-image: var(--md-state-hover); }
 * Text links do not get one: they keep "recolour only" (owner, 3 December 2026).
 *
 * Focus ring. Every interactive element shows a 2px ring in primary when reached with the keyboard (:focus-visible):
 * the dark lime on the light scheme, the lime on the dark one. */
:root {
  --md-state-hover: linear-gradient(color-mix(in srgb, currentColor calc(var(--md-sys-state-hover-state-layer-opacity) * 100%), transparent) 0 0);
  --md-state-focus: linear-gradient(color-mix(in srgb, currentColor calc(var(--md-sys-state-focus-state-layer-opacity) * 100%), transparent) 0 0);
  --md-state-pressed: linear-gradient(color-mix(in srgb, currentColor calc(var(--md-sys-state-pressed-state-layer-opacity) * 100%), transparent) 0 0);
  --md-focus-ring: var(--md-sys-state-focus-ring-width) solid var(--md-sys-color-primary);
}
.md-state:hover { background-image: var(--md-state-hover); }
.md-state:focus-visible { background-image: var(--md-state-focus); }
.md-state:active { background-image: var(--md-state-pressed); }
.md-state:focus-visible { outline: var(--md-focus-ring); outline-offset: var(--md-sys-state-focus-ring-offset); }
:focus-visible { outline: var(--md-focus-ring); outline-offset: var(--md-sys-state-focus-ring-offset); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
