@import url(/nw/site-assets/font/stylesheet.css);

/*
 * Book area header bar, shared by all brands (Trello #122): the logo in the middle, the account
 * button on the right, and the bar scrolls along. Sizes follow the new public sites and are the
 * same for every brand. Brands only set the colours below and the bar's own background (.header
 * and .tab-bar) in their brand stylesheet.
 */
:root {
    --header-text: #ffffff;
    --header-menu-bg: #ffffff;
    --header-menu-text: #000000;
    --header-menu-hover: #eeeeee;
    --header-menu-active: var(--header-menu-hover);
    --header-button-hover-text: var(--header-menu-text); /* text on the filled button on hover */
    --header-mobile-height: 56px;
}

/* overflow: hidden on the off-canvas wrapper would stop the header from sticking; clip does not */
.off-canvas-wrap {overflow: clip;}

.header.header-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
}

.header-bar .header-logo {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    text-indent: 0;
    overflow: visible;
}

.header-bar .header-logo a img {
    width: auto;
    height: 46px;
    padding-top: 0;
}

.header-bar .header-login {
    top: 0;
    right: 40px;
    bottom: 0;
    width: auto !important;
    height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--header-text);
}

.header-bar .working-on-book {
    color: var(--header-text);
    font-size: 14px;
}

/* Below this width the line runs into the centred logo */
@media (max-width: 1299px) {
    .header-bar .working-on-book {display: none;}
}

.header-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border: 1px solid var(--header-text);
    border-radius: 4px;
    background: transparent;
    color: var(--header-text) !important;
    font-family: 'helvetica_neue_lt_std67MdCn', Helvetica, Arial, sans-serif !important; /* mvb.css forces a font on every button */
    font-size: 12px;
    line-height: 18px;
    text-decoration: none !important;
    cursor: pointer;
}

.header-button:hover,
.header-button:focus {
    background: var(--header-text);
    color: var(--header-button-hover-text) !important;
    outline: none;
}

/* Like the public sites: bigger above 1600px */
@media (min-width: 1601px) {
    .header-button {
        font-size: 16px;
        line-height: 24px;
    }
}

.header-button-caret {
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.header-account {position: relative;}

.header-account #uitklap {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100%;
    margin-top: 6px;
    padding: 6px 0;
    background-color: var(--header-menu-bg);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-account #uitklap li {
    float: none;
    display: block;
}

.header-account #uitklap li a {
    width: auto;
    padding: 6px 20px;
    background-color: transparent !important;
    color: var(--header-menu-text) !important;
    text-align: right;
}

.header-account #uitklap li a:hover {background-color: var(--header-menu-hover) !important;}

/*
 * Mobile: the logo in the middle of the tab bar, the hamburger on the right, and a menu panel that
 * slides in from the right over the page, in the fold-out colours.
 */
.tab-bar.visible-xs,
.tab-bar.visible-xs .tab-bar-section {height: var(--header-mobile-height);}

.tab-bar-section.middle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-bar-section.middle img {height: 38px;}

/* The tab bar is fixed, so push the first section of the page down from under it */
@media (max-width: 767px) {
    .inner-wrap > .middenkarton:not(.middenkarton ~ .middenkarton) {padding-top: var(--header-mobile-height);}
}

.tab-bar .right-small {
    right: 8px;
    width: auto;
    height: 100%;
    border: 0;
    display: flex;
    align-items: center;
}

.mobile-menu-toggle,
.mobile-menu-close {
    padding: 8px;
    border: 0;
    background: none;
    line-height: 0;
    cursor: pointer;
}

.mobile-menu-toggle {color: var(--header-text);}

.mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--header-menu-text);
}

.left-off-canvas-menu.mobile-menu-right {
    position: fixed;
    top: var(--header-mobile-height);
    right: 0;
    bottom: auto;
    left: auto;
    width: 80%;
    max-width: 320px;
    max-height: calc(100vh - var(--header-mobile-height));
    box-sizing: border-box;
    padding: 50px 30px 30px 30px;
    background: var(--header-menu-bg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s, visibility 0.4s;
}

body.mobile-menu-open .left-off-canvas-menu.mobile-menu-right {
    transform: none;
    visibility: visible;
}

.mobile-menu-account {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--header-menu-hover);
    color: var(--header-menu-text);
}

.mobile-menu-account a,
.mobile-menu-account span {display: block;}

.mobile-menu-account a {
    color: var(--header-menu-text);
    font-weight: bold;
    text-decoration: underline;
}

.mobile-menu-right ul.off-canvas-list li label {display: none;}

.mobile-menu-right ul.off-canvas-list ul {
    margin: 0 0 8px 0;
    padding-left: 15px;
    list-style: none;
}

.mobile-menu-right ul.off-canvas-list li a {
    display: inline-block;
    padding: 4px 6px;
    border: 0;
    color: var(--header-menu-text);
    font-family: 'helvetica_neue_lt_std65Md', Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

/* Main items bold, sub-items with a dot in front */
.mobile-menu-right ul.off-canvas-list > li > a {font-weight: bold;}

/* Uitloggen: normal weight, one empty line above it */
.mobile-menu-right ul.off-canvas-list > li.menu-logout {margin-top: 1.5em;}

.mobile-menu-right ul.off-canvas-list > li.menu-logout > a {font-weight: normal;}

.mobile-menu-right ul.off-canvas-list ul li a {text-transform: none;}

.mobile-menu-right ul.off-canvas-list ul li::before {
    content: "\2022";
    margin-right: 2px;
    color: var(--header-menu-text);
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* The current page; no hover colour, this menu is for touch screens */
.mobile-menu-right ul.off-canvas-list li a:hover {
    background: transparent;
    text-decoration: none;
}

/* Only the sub-item is highlighted; a main item only when it has no sub-items (e.g. Uitnodigen) */
.mobile-menu-right ul.off-canvas-list ul li.active > a,
.mobile-menu-right ul.off-canvas-list > li.active:not(:has(ul)) > a {background: var(--header-menu-active);}
