/*
    Mixin to progressively-enhance :focus-visible, keeping :focus where not supported
    Add an arbitrary list of selectors into the arguments, and the styling in the block.
    I you pass no selectors to the mixin the parent ("ampersand") operator is used instead.

    There are two mixins: 
    - focus-visible: a generic focus-visible, giving you "slots" to decide what to render for :focus, :focus reset, and :focus-visible
    - focus-visible-outline: a focus-visible, which only resets the outline. If you don't need more custom resets, use this one!

    Use focus-visible:
    The key thing here is checking which slot is being rendered.
    For example, you can reset box-shadow here, or anything else.

    @include focus-visible using ($slot) {
        @if $slot == focus {
            outline: 2px solid transparent;
            box-shadow: 0 0 0 4px blue;
        }
        @if $slot == focusReset {
            box-shadow: none;
        }
        @if $slot == focusVisible {
            box-shadow: 0 0 0 4px blue;
        }
    }

    Use focus-visible-outline:
    @include focus-visible-outline("button", "a[href]") {
        outline: 2px solid blue;
    }

    Resulting CSS (compressed):

    button:focus,
    a[href]:focus {
        outline: 2px solid blue;
    }

    button:focus:not(:focus-visible),
    a[href]:focus:not(:focus-visible) {
        outline: none;
    }
    button:focus-visible,
    a[href]:focus-visible {
        outline: 2px solid blue;
    }
*/
.uic-tag {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--uic-dim-height);
  padding: 0 8px;
  margin: 8px 4px;
  color: var(--uic-color-blue4);
  background: var(--uic-color-blue6a20);
  border: 1px solid transparent;
  font-size: var(--uic-font-size-normal);
  line-height: var(--uic-line-height-normal);
  font-weight: var(--uic-font-weight-bold);
  cursor: default;
}
.uic-tag:focus {
  outline: 2px solid var(--uic-color-blue2);
  outline-offset: -2px;
  color: var(--uic-color-blue4);
}
.uic-tag:hover {
  outline: 1px solid var(--uic-color-blue2);
  outline-offset: -1px;
  color: var(--uic-color-blue3);
}
.uic-tag:hover .uic-tag__clear {
  color: inherit;
}
.uic-tag--disabled {
  border: 1px solid var(--uic-color-grey2a25);
  color: var(--uic-color-grey5);
  background: var(--uic-color-white);
  font-weight: var(--uic-font-weight-normal);
  pointer-events: none;
}
.uic-tag--disabled .uic-tag__clear {
  color: inherit;
}
.uic-tag__clear {
  width: var(--uic-icon-dimensions-default);
  height: var(--uic-icon-dimensions-default);
  color: var(--uic-color-grey3);
  margin-left: 8px;
  margin-right: 4px;
  cursor: pointer;
}