/* focus-ring-1 (FR1, his words Nov 25 05:13 "dont use the blue ring anywhere" (approvals.md 5736) and 15:37 "get rid of the blue rings sitewide" (5907); DESIGN.md FR1; Apple HIG Keyboard focus): THE one owner of focus rings, sitewide.
   No blue ring or outline on any control, page or dialog after a tap, a click or a script moving focus on open. Only keyboard focus shows (:focus-visible while html[data-ism-input] is not "pointer"): a soft grey fill, an inset tint of the control's own ink,
   so it works on grey, white, blue and dark controls alike; a checkbox or radio gets a grey halo. Text fields (they match :focus-visible on a click in WebKit and Chromium) show the fill only after a key press (html[data-ism-input="keyboard"]);
   on a tap their cue is the caret and the field's own border colour. Loaded by design-system.css AND design-system-light.css (staff pages) and, as dist/app-vue/focus-ring.css, by the public marketing layout and the stand-alone Email Preferences page.
   The cascade: layer ism is the first layer, so these important rules beat every page and Razor stylesheet's important rule; four ids beat the other rules in this layer. Forced-colors (Windows high contrast) keeps the system focus outline. */
:root { --ism-focus-fill: color-mix(in srgb, currentColor 14%, transparent); }
@layer ism {
  @media not (forced-colors: active) {
    html:root body *:is(:focus, :focus-visible):not(#nbr1):not(#nbr2):not(#nbr3):not(#nbr4) { outline: none !important; }
    /* Edit-list rows use their own neutral background on keyboard focus. */
    html:root:not([data-ism-input="pointer"]) body :is(a[href], button, summary, select, [role="button"], [role="link"], [role="tab"], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"], [role="gridcell"], [role="radio"], [role="switch"], [tabindex="0"]:not(div, section, article, main, aside, nav, ul, ol, dialog, input, textarea, [contenteditable="true"], [role="region"], [role="group"], [role="list"], [role="combobox"])):focus-visible:not(#nbr1):not(#nbr2):not(#nbr3):not(#nbr4):not(:where(.mg-open.ism-button-bare)) { box-shadow: inset 0 0 0 999px var(--ism-focus-fill) !important; }
    html:root[data-ism-input="keyboard"] body :is(textarea, input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), [role="combobox"], [contenteditable="true"]):focus-visible:not(#nbr1):not(#nbr2):not(#nbr3):not(#nbr4) { box-shadow: inset 0 0 0 999px var(--ism-focus-fill) !important; }
    html:root:not([data-ism-input="pointer"]) body :is(input[type="checkbox"], input[type="radio"], input[type="range"], input[type="file"]):focus-visible:not(#nbr1):not(#nbr2):not(#nbr3):not(#nbr4) { box-shadow: 0 0 0 5px var(--ism-focus-fill) !important; }
  }
}
