/*
    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;
    }
*/
/**
* @prop --uic-header-height: height of the header
* @prop --uic-header-bg-color: default background color
* @prop --uic-header-bg-color-secondary: secondary background color used for the home button
* @prop --uic-header-text-color: default text and icon color
* @prop --uic-header-text-color-active: text, icon and outline color for active elements
* @prop --uic-header-text-color-disabled: text, icon and outline color for disabled elements
* @prop --uic-header-z-index: z-index of the header
*/
uic-header {
  --uic-icon-width: var(--uic-header-icon-size);
  --uic-icon-height: var(--uic-header-icon-size);
  position: relative;
  width: 100%;
  height: var(--uic-header-height);
  overflow: visible;
  display: block;
  z-index: var(--uic-header-z-index);
}
uic-header .uic-header__home {
  z-index: 1;
}
uic-header .uic-header__nav, uic-header .uic-header__menu-left, uic-header .uic-header__menu-right {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  height: 100%;
}
uic-header .uic-header__nav {
  width: 100%;
  height: 100%;
  justify-content: space-between;
  background-color: var(--uic-header-bg-color);
  color: var(--uic-header-text-color);
}
uic-header .uic-header__menu-wrapper {
  flex: 1 1 auto;
  overflow: hidden;
  height: 100%;
}
uic-header .uic-header__menu-left {
  flex: 1 0 auto;
  overflow: hidden;
  scroll-behavior: smooth;
}
uic-header .uic-header__spacer {
  flex: 1 1 auto;
}
uic-header .uic-header__flyouts {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
}
uic-header .uic-header__flyouts > *:not(uic-flyout) {
  display: none;
}
uic-header uic-flyout {
  top: 0;
}
uic-header [slot=home] uic-header-menu-item {
  min-width: 85px;
  margin-right: 1px;
}
@media only screen and (max-width: 667px) {
  uic-header [slot=home] uic-header-menu-item {
    min-width: 65px;
  }
}

.uic-header__submenu {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
}
.uic-header__submenu--hidden {
  display: none;
}

.uic-header__menu-wrapper {
  position: relative;
}
.uic-header__menu-wrapper--cropped::before, .uic-header__menu-wrapper--cropped::after {
  content: "";
  display: block;
  width: 40px;
  height: 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
.uic-header__menu-wrapper--cropped::before {
  left: 0;
  background: linear-gradient(90deg, var(--uic-header-bg-color, rgba(0, 0, 0, 0)) 0%, var(--uic-header-bg-color-transparent, rgba(0, 0, 0, 0)) 100%);
}
.uic-header__menu-wrapper--cropped::after {
  right: 0;
  background: linear-gradient(90deg, var(--uic-header-bg-color-transparent, rgba(0, 0, 0, 0)) 0%, var(--uic-header-bg-color) 100%);
}
.uic-header__menu-wrapper--cropped-left::before {
  opacity: 1;
}
.uic-header__menu-wrapper--cropped-right::after {
  opacity: 1;
}