/* =============================================================================
   Ledgergard accessibility foundation (US 4964, Feature 1.2 Design System)
   ---------------------------------------------------------------------------
   Cross-cutting primitives every component inherits: the shared keyboard focus
   indicator (from the --focus-ring-* tokens) and the screen-reader-only utility.
   Contrast (AA) of the #4955 pairings is enforced by a test; keyboard operability
   comes from using native controls. Tokens only.
   ========================================================================== */

/* Shared, consistent focus indicator for every interactive element (AC #1). Components
   may set their own offset, but the color/width come from the shared tokens. */
:where(a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Screen-reader-only: present to assistive tech, hidden visually (AC #3). */
.lg-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
