.header {
    display: flex;
    background-color: var(--tHeaderColorContrast0);
    color: var(--tHeaderColorContrast100);
    height: var(--tHeaderHeight);
    --tOutlineColor: var(--tHeaderColorContrast60);
    justify-content: space-between;
}

a.header__textbrand {
    color: var(--tHeaderColorContrast100);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: var(--tContainerSidePadding);
    padding-right: var(--tHspacingMedium);
}
a.header__textbrand:visited {
    color: var(--tHeaderColorContrast100);
    text-decoration: none;
}
a.header__textbrand:hover, a.header__textbrand:focus {
    outline: none;
}
.header__textbrand-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}
a.header__textbrand:focus .header__textbrand-text {
    outline: var(--tOutlineColor) solid var(--tBorderWidth);
}

a.header__imagebrand {
    color: var(--tHeaderColorContrast100);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: var(--tContainerSidePadding);
    padding-right: var(--tHspacingMedium);
}
a.header__imagebrand:visited {
    color: var(--tHeaderColorContrast100);
    text-decoration: none;
}
a.header__imagebrand:hover, a.header__imagebrand:focus {
    outline: none;
}
img.header__imagebrand-image {
    display: inline-block;
    width: 200px;
    height: calc(var(--tHeaderHeight) * 0.65);
    object-fit: contain;
    object-position: left center;
}
a.header__imagebrand:focus img.header__imagebrand-image {
    outline: var(--tOutlineColor) solid var(--tBorderWidth);
}

/* Always visible menu */
.header__focusmenu {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
}
a.header__focusmenu-item {
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    margin-left: var(--tHspacingMedium);
    white-space: nowrap;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tHeaderColorContrast100);
}

a.header__focusmenu-item:visited {
    color: var(--tHeaderColorContrast100);
}
a.header__focusmenu-item:hover, a.header__focusmenu-item:active, a.header__focusmenu-item:focus {
    color: var(--tHeaderColorContrast80);
    text-decoration: underline;
}

/* Hamburger menu */
.header__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: var(--tHspacingMedium);
    margin-right: var(--tContainerSidePadding);
}
.header__menu-openbutton {
    color: var(--tHeaderColorContrast100);
    text-decoration: none;
    font-weight: bold;
    padding: 0;
    margin: 0;
    line-height: normal;
}

.header__menu-openbutton-svgicon {
    width: var(--tLineHeightDefault);
    height: var(--tLineHeightDefault);
    fill: var(--tHeaderColorContrast100);
    margin-bottom: calc(calc(var(--tLineHeightDefault) * 0.25) * -1); /* Visual fine adjustment */
}

.header__menu-content {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    flex-direction: row;
    z-index: var(--tZindex4);
}
.header__menu-content--visible {
    display: flex;
}

.header__menu-backdrop {
    display: none;
    flex: 1 1 auto;
    min-width: 0;
    background-color: var(--tBackdropColor);
    cursor: pointer;
}
.header__menu-body {
    flex-direction: column;
    width: 100%;
    background-color: var(--tMenuColorContrast0);
    color: var(--tMenuColorContrast100);
    flex: 100 0 auto;
}

.header__menu-header {
    padding: 0 var(--tContainerSidePadding);
    height: var(--tHeaderHeight);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}
.header__menu-closebutton {
    color: var(--tMenuColorContrast100);
    font-size: var(--tLineHeightDefault);
    padding: var(--tVspacingSmall) var(--tHspacingSmall); 
    padding: 0;
    margin: 0;
}
.header__menu-closebutton:hover, .header__menu-closebutton:focus, .header__menu-closebutton:active {
    color: var(--tMenuColorContrast80);
}
.header__menu-list {
    flex: 1 1 auto;
    overflow-y: auto;
}
.header__menu-list-item {
    display: block;
    padding: var(--tVspacingSmall) var(--tContainerSidePadding);
    color: var(--tMenuColorContrast100);
    text-decoration: none;
    font-weight: bold;
}
.header__menu-list-item:hover, .header__menu-list-item:focus, .header__menu-list-item:active {
    background-color: var(--tMenuColorContrast1);
    text-decoration: none;
}


@media (min-width: 700px) {
    .header__menu-backdrop {
        display: block;
    }
    .header__menu-body {
        max-width: 400px;
    }    
}
@media (min-width: 1050px) {
    .header__focusmenu {
        display: flex;
    }
}

