/*
 * Mierlo voor Mierlo Header v1
 * Standalone responsive header for the MvM platform.
 */
:root {
    --mvm-blue: #1966AE;
    --mvm-blue-hover: #155A94;
    --mvm-blue-deep: #0F4F88;
    --mvm-white: #FFFFFF;
    --mvm-text: #162333;
    --mvm-muted: #465767;
    --mvm-border: #DCE6EF;
    --mvm-surface: #FFFFFF;
    --mvm-surface-soft: #F5F8FB;
    --mvm-shadow: 0 6px 24px rgba(19, 46, 72, .12);
}

/* The parent Newsup header remains only as a non-rendered fallback. */
html body .mg-standhead {
    display: none !important;
}

#mvm-header-v1,
#mvm-header-v1 * {
    box-sizing: border-box;
}

#mvm-header-v1 {
    position: relative;
    z-index: 1000;
    width: 100%;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-shadow: var(--mvm-shadow);
}

#mvm-header-v1 a {
    text-decoration: none;
}

.mvm-header-utility {
    background: var(--mvm-surface);
    border-bottom: 1px solid var(--mvm-border);
}

.mvm-header-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: clamp(12px, 2.2vw, 36px);
    padding-right: clamp(12px, 2.2vw, 36px);
}

.mvm-header-utility .mvm-header-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mvm-live-clock-wrap {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mvm-blue);
}

.mvm-live-clock {
    min-width: 0;
    color: var(--mvm-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.mvm-live-clock-wrap .fa-clock {
    font-size: 14px;
}

.mvm-header-tools {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mvm-newsletter-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--mvm-blue);
    border-radius: 9px;
    background: var(--mvm-blue);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.mvm-newsletter-header-cta:hover,
.mvm-newsletter-header-cta:focus-visible {
    background: var(--mvm-blue-deep);
    border-color: var(--mvm-blue-deep);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 3px 12px rgba(15,79,136,.2);
}

.mvm-newsletter-header-cta i {
    font-size: 14px;
}

.mvm-newsletter-mobile-cta {
    display: none;
}

.mvm-header-tool {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--mvm-blue);
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.mvm-header-tool:hover,
.mvm-header-tool:focus-visible,
.mvm-header-tool[aria-expanded="true"] {
    background: var(--mvm-surface-soft);
    color: var(--mvm-blue-deep);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--mvm-border);
}

.mvm-header-tool i {
    font-size: 17px;
}

.mvm-header-search-panel {
    display: none;
    background: var(--mvm-surface-soft);
    border-top: 1px solid var(--mvm-border);
}

.mvm-header-search-panel.is-open {
    display: block;
}

.mvm-header-search-panel .mvm-header-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

.mvm-header-search-form {
    display: flex;
    gap: 8px;
    max-width: 720px;
    margin-left: auto;
}

.mvm-header-search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #BFCEDC;
    border-radius: 8px;
    background: #fff;
    color: var(--mvm-text);
    font: inherit;
    font-size: 14px;
}

.mvm-header-search-form input[type="search"]:focus {
    border-color: var(--mvm-blue);
    outline: 2px solid rgba(25, 102, 174, .18);
    outline-offset: 0;
}

.mvm-header-search-form button {
    flex: 0 0 auto;
    min-width: 96px;
    height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: var(--mvm-blue);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.mvm-header-search-form button:hover,
.mvm-header-search-form button:focus-visible {
    background: var(--mvm-blue-deep);
    outline: none;
}

.mvm-header-main {
    background: var(--mvm-blue);
}

.mvm-header-main .mvm-header-inner {
    min-height: 58px;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.mvm-home-button,
.mvm-menu-toggle {
    flex: 0 0 46px;
    width: 46px;
    min-height: 46px;
    margin: 6px 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.mvm-home-button:hover,
.mvm-home-button:focus-visible,
.mvm-menu-toggle:hover,
.mvm-menu-toggle:focus-visible,
.mvm-menu-toggle[aria-expanded="true"] {
    background: var(--mvm-blue-hover);
    color: #fff;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.mvm-home-button {
    background: var(--mvm-blue);
    color: #fff;
    box-shadow: none;
}

body.home .mvm-home-button,
body.home .mvm-home-button:hover,
body.home .mvm-home-button:focus-visible {
    background: #fff;
    color: var(--mvm-blue);
    box-shadow: none;
}

.mvm-home-button i {
    font-size: 18px;
}

.mvm-menu-toggle {
    display: none;
}

.mvm-menu-toggle-lines,
.mvm-menu-toggle-lines::before,
.mvm-menu-toggle-lines::after {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: "";
}

.mvm-menu-toggle-lines {
    position: relative;
}

.mvm-menu-toggle-lines::before {
    position: absolute;
    left: 0;
    top: -6px;
}

.mvm-menu-toggle-lines::after {
    position: absolute;
    left: 0;
    top: 6px;
}

.mvm-primary-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.mvm-primary-nav > ul,
.mvm-primary-nav .mvm-primary-menu {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mvm-primary-nav li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Home is a dedicated icon button in Header v1; hide the duplicate menu entry. */
.mvm-primary-nav > ul > li.home,
.mvm-primary-nav .mvm-primary-menu > li.home {
    display: none !important;
}

.mvm-primary-nav > ul > li,
.mvm-primary-nav .mvm-primary-menu > li {
    display: flex;
    align-items: stretch;
}

.mvm-primary-nav > ul > li > a,
.mvm-primary-nav .mvm-primary-menu > li > a {
    min-height: 46px;
    margin: 6px 1px;
    padding: 0 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.mvm-primary-nav > ul > li > a:hover,
.mvm-primary-nav > ul > li > a:focus-visible,
.mvm-primary-nav > ul > li:hover > a,
.mvm-primary-nav .mvm-primary-menu > li > a:hover,
.mvm-primary-nav .mvm-primary-menu > li > a:focus-visible,
.mvm-primary-nav .mvm-primary-menu > li:hover > a {
    background: var(--mvm-blue-hover);
    color: #fff !important;
    outline: none;
}

.mvm-primary-nav > ul > li.current-menu-item > a,
.mvm-primary-nav > ul > li.current_page_item > a,
.mvm-primary-nav > ul > li.current-menu-parent > a,
.mvm-primary-nav > ul > li.current-menu-ancestor > a,
.mvm-primary-nav .mvm-primary-menu > li.current-menu-item > a,
.mvm-primary-nav .mvm-primary-menu > li.current_page_item > a,
.mvm-primary-nav .mvm-primary-menu > li.current-menu-parent > a,
.mvm-primary-nav .mvm-primary-menu > li.current-menu-ancestor > a {
    background: var(--mvm-blue-hover);
    font-weight: 800;
    box-shadow: inset 0 -3px 0 #fff;
}

.mvm-primary-nav .sub-menu {
    position: absolute;
    z-index: 1010;
    top: 100%;
    left: 0;
    min-width: 225px;
    margin: 0;
    padding: 6px;
    border: 0;
    border-radius: 0 0 10px 10px;
    background: var(--mvm-blue-hover);
    box-shadow: 0 12px 24px rgba(15, 44, 68, .22);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-3px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.mvm-primary-nav li:hover > .sub-menu,
.mvm-primary-nav li:focus-within > .sub-menu,
.mvm-primary-nav li.mvm-submenu-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mvm-primary-nav .sub-menu li a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 7px;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.mvm-primary-nav .sub-menu li a:hover,
.mvm-primary-nav .sub-menu li a:focus-visible,
.mvm-primary-nav .sub-menu li.current-menu-item > a {
    background: var(--mvm-blue-deep);
    color: #fff !important;
    outline: none;
}

.mvm-primary-nav .menu-item-has-children > a::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
    line-height: 1;
}

.mvm-primary-nav .mvm-staff-menu-link i,
.mvm-primary-nav .mvm-staff-menu-link span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* Dark surface for the new header utility row. The site-wide Newsup engine controls content. */
body.mvm-header-dark .mvm-header-utility,
body.mvm-header-dark .mvm-header-search-panel {
    background: #17222D;
    border-color: #344453;
}

body.mvm-header-dark .mvm-live-clock,
body.mvm-header-dark .mvm-header-tool {
    color: #fff;
}

body.mvm-header-dark .mvm-header-tool:hover,
body.mvm-header-dark .mvm-header-tool:focus-visible,
body.mvm-header-dark .mvm-header-tool[aria-expanded="true"] {
    background: #263746;
    color: #fff;
    box-shadow: inset 0 0 0 1px #3E5365;
}

body.mvm-header-dark .mvm-header-search-form input[type="search"] {
    background: #202F3C;
    border-color: #415465;
    color: #fff;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .mvm-primary-nav > ul > li > a,
    .mvm-primary-nav .mvm-primary-menu > li > a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .mvm-header-utility .mvm-header-inner {
        min-height: 40px;
    }

    .mvm-newsletter-header-cta {
        display: none;
    }

    .mvm-newsletter-mobile-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 46px;
        margin: 5px 0 5px auto;
        padding: 0 14px;
        border: 1px solid #fff;
        border-radius: 8px;
        background: #fff;
        color: var(--mvm-blue) !important;
        -webkit-text-fill-color: var(--mvm-blue) !important;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(15,79,136,.16);
        transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
    }

    .mvm-newsletter-mobile-cta:hover,
    .mvm-newsletter-mobile-cta:focus-visible {
        background: #F5F8FB;
        color: var(--mvm-blue-deep) !important;
        -webkit-text-fill-color: var(--mvm-blue-deep) !important;
        outline: none;
        box-shadow: 0 3px 12px rgba(15,79,136,.2);
    }

    .mvm-newsletter-mobile-cta i {
        font-size: 14px;
    }

    .mvm-header-main .mvm-header-inner {
        min-height: 56px;
        align-items: center;
        flex-wrap: wrap;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mvm-menu-toggle {
        display: grid;
        margin-left: auto;
    }

    .mvm-primary-nav {
        order: 10;
        flex-basis: calc(100% + 16px);
        width: calc(100% + 16px);
        margin: 0 -8px;
        border-top: 1px solid rgba(255,255,255,.18);
        display: none;
    }

    .mvm-primary-nav.is-open {
        display: block;
    }

    .mvm-primary-nav > ul,
    .mvm-primary-nav .mvm-primary-menu {
        display: block;
        height: auto;
        padding: 6px 0 8px;
    }

    .mvm-primary-nav > ul > li,
    .mvm-primary-nav .mvm-primary-menu > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .mvm-primary-nav > ul > li:last-child,
    .mvm-primary-nav .mvm-primary-menu > li:last-child {
        border-bottom: 0;
    }

    .mvm-primary-nav > ul > li > a,
    .mvm-primary-nav .mvm-primary-menu > li > a {
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 11px 16px;
        border-radius: 0;
        justify-content: flex-start;
        font-size: 15px;
        white-space: normal;
    }

    .mvm-primary-nav .menu-item-has-children > a {
        padding-right: 44px;
    }

    .mvm-primary-nav .menu-item-has-children > a::after {
        margin-left: auto;
    }

    .mvm-primary-nav .sub-menu {
        position: static;
        min-width: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 4px 0 6px;
        border-radius: 0;
        box-shadow: inset 4px 0 0 rgba(255,255,255,.3);
    }

    .mvm-primary-nav li:hover > .sub-menu,
    .mvm-primary-nav li:focus-within > .sub-menu {
        display: none;
    }

    .mvm-primary-nav li.mvm-submenu-open > .sub-menu {
        display: block;
    }

    .mvm-primary-nav .sub-menu li a {
        min-height: 44px;
        padding: 10px 18px 10px 30px;
        border-radius: 0;
    }
}

@media (max-width: 560px) {
    .mvm-header-inner {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mvm-live-clock {
        font-size: 12px;
        gap: 6px;
    }

    .mvm-header-tool {
        width: 34px;
        height: 34px;
    }

    .mvm-header-search-form {
        max-width: none;
    }

    .mvm-header-search-form button {
        min-width: 46px;
        width: 46px;
        padding: 0;
        font-size: 0;
    }

    .mvm-header-search-form button::before {
        content: "\f002";
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .mvm-header-utility .mvm-header-inner {
        gap: 6px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .mvm-live-clock-wrap {
        flex: 1 1 auto;
        min-width: 0;
        gap: 5px;
    }

    .mvm-live-clock {
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: 11px;
        line-height: 1.25;
    }

    .mvm-header-tools {
        flex: 0 0 auto;
        gap: 2px;
    }

    .mvm-header-tool {
        width: 32px;
        height: 32px;
    }
}

/* Logged-in PeepSo userbar: keep only the actual user controls; no legacy widget spacing. */
.mvm-peepso-userbar-strip {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: var(--mvm-surface);
}

.mvm-peepso-userbar-strip > .mvm-header-inner,
.mvm-peepso-userbar-strip__inner {
    min-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.mvm-peepso-userbar-strip .mg-widget,
.mvm-peepso-userbar-strip .widget,
.mvm-peepso-userbar-strip .ps-widget,
.mvm-peepso-userbar-strip .psw-userbar {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.mvm-peepso-userbar-strip .mg-widget:empty,
.mvm-peepso-userbar-strip .widget:empty {
    display: none !important;
}

#mvm-header-v1 a:focus-visible,
#mvm-header-v1 button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Search v2 autocomplete: shared by Header v1 and the universal search page. */
.mvm-search-autocomplete-host {
    position: relative !important;
}

.mvm-search-suggestions {
    position: absolute;
    z-index: 1400;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #C9D7E4;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 16px 38px rgba(19, 46, 72, .16);
    color: #172333;
    scrollbar-width: thin;
}

.mvm-search-suggestions[hidden] {
    display: none !important;
}

.mvm-search-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #172333 !important;
    -webkit-text-fill-color: #172333 !important;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
}

.mvm-search-suggestion:hover,
.mvm-search-suggestion.is-active,
.mvm-search-suggestion[aria-selected="true"] {
    background: #EAF4FC;
    color: #0F4F88 !important;
    -webkit-text-fill-color: #0F4F88 !important;
}

.mvm-search-suggestion__title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mvm-search-suggestion__badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #1966AE;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

body.mvm-header-dark .mvm-search-suggestions,
body[data-mvm-theme="dark"] .mvm-search-suggestions {
    border-color: #415465;
    background: #18232D;
    color: #F4F7FA;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .34);
}

body.mvm-header-dark .mvm-search-suggestion,
body[data-mvm-theme="dark"] .mvm-search-suggestion {
    color: #F4F7FA !important;
    -webkit-text-fill-color: #F4F7FA !important;
}

body.mvm-header-dark .mvm-search-suggestion:hover,
body.mvm-header-dark .mvm-search-suggestion.is-active,
body.mvm-header-dark .mvm-search-suggestion[aria-selected="true"],
body[data-mvm-theme="dark"] .mvm-search-suggestion:hover,
body[data-mvm-theme="dark"] .mvm-search-suggestion.is-active,
body[data-mvm-theme="dark"] .mvm-search-suggestion[aria-selected="true"] {
    background: #203B52;
    color: #DDEEFF !important;
    -webkit-text-fill-color: #DDEEFF !important;
}

@media (prefers-reduced-motion: reduce) {
    #mvm-header-v1 *,
    #mvm-header-v1 *::before,
    #mvm-header-v1 *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    #mvm-header-v1 .mvm-primary-nav .sub-menu {
        transform: none !important;
    }
}
