/* Two colours keep focus visible on both light and dark backgrounds. */
/* An opaque surface keeps hero text readable throughout every video frame. */
.rev_slider .tp-caption[data-type="text"]:not(:empty) {
    background-color: #001652 !important;
    color: #fff !important;
    box-shadow: 0 0 0 6px #001652;
    border-radius: 3px;
}
.rev_slider .tp-caption[data-type="text"] .tp-splitted { color: inherit !important; }

body a:focus,
body button:focus,
body input:focus,
body select:focus,
body textarea:focus,
body [tabindex]:focus {
    outline: 3px solid #001652 !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff !important;
}

body .skip-link:focus {
    clip: auto !important;
    clip-path: none !important;
    position: fixed !important;
    top: 12px;
    left: 12px;
    width: auto !important;
    height: auto !important;
    padding: 12px 18px;
    background: #fff;
    color: #001652;
    font-size: 18px;
    z-index: 1000000;
}

#content { scroll-margin-top: 120px; color: #001552; }
#content .haidem-frame-skip-link,
#content .haidem-frame-link a { color: #b5121b; text-decoration: underline; text-underline-offset: .15em; }
.haidem-frame-link { scroll-margin-top: 120px; }
#content .printsolution .uvc-sub-heading { color: #62666d !important; }
#content .wpb_text_column a { color: #b5121b; text-decoration: underline; text-underline-offset: .15em; }
#content .contact .uvc-main-heading :is(h2, h3) { color: #62666d !important; }
#content img { max-width: 100%; }
#content .wpb_text_column { overflow-wrap: break-word; }
#content .entry-meta,
#content .entry-meta a,
#content .entry-meta .fn,
#content .entry-meta time { color: #526078 !important; }
#content .entry-meta a { text-decoration: underline; text-underline-offset: .15em; }
.haidem-search-form { display: flex; flex-wrap: wrap; gap: 10px; }
.haidem-search-form input.field { flex: 1 1 160px; width: auto; min-width: 0; padding: 10px 12px; color: #27354a; background: #fff; border: 1px solid #62666d; }
.haidem-search-form input.field::placeholder { color: #62666d; opacity: 1; }
.haidem-search-form .haidem-search-submit { padding: 10px 14px; background: #001652; border: 2px solid #001652; color: #fff; font: inherit; cursor: pointer; border-radius: 4px; }

/* One continuous navy surface, including the space outside the centred bars. */
.masthead,
.masthead .top-bar-bg,
.masthead .header-bar,
.masthead .top-bar,
#phantom,
#phantom .ph-wrap { background-color: #001652 !important; }
.masthead { box-shadow: 0 3px 16px rgba(0, 10, 40, .16) !important; }
.masthead .top-bar { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.masthead .top-bar .mini-contacts { font-size: 12px; line-height: 1.6; }
.masthead .main-nav > li > a,
#phantom .main-nav > li > a {
    margin: 22px 2px !important;
    padding: 10px !important;
    border-radius: 6px;
    transition: background-color .15s ease;
}
.masthead .main-nav > li > a .menu-text,
#phantom .main-nav > li > a .menu-text { font-size: 15px; font-weight: 600; line-height: 1.5; }
.masthead .main-nav > li > a:hover,
.masthead .main-nav > li > a:focus-visible,
.masthead .main-nav > li.act > a,
#phantom .main-nav > li > a:hover,
#phantom .main-nav > li > a:focus-visible,
#phantom .main-nav > li.act > a { background-color: rgba(255, 255, 255, .12); }
.masthead .top-bar .mini-contacts,
.masthead .mobile-mini-widgets .mini-contacts,
.masthead .mobile-mini-widgets .mini-nav > ul > li > a,
.masthead .mobile-mini-widgets .menu-text,
.masthead .mobile-mini-widgets .soc-font-icon,
.masthead .top-bar .mini-nav > ul > li > a,
.masthead .top-bar .mini-nav > ul > li > a .menu-text,
.masthead .main-nav > li > a .menu-text,
#phantom .main-nav > li > a .menu-text { color: #fff !important; }
.masthead .main-nav > li.act > a .menu-text,
.masthead .main-nav > li > a:hover .menu-text,
.masthead .main-nav > li > a:focus .menu-text,
#phantom .main-nav > li.act > a .menu-text { text-decoration: underline; text-underline-offset: .2em; }

/* The off-canvas menu uses the same palette as the desktop header. */
.dt-mobile-header,
.dt-mobile-header .mobile-header-scrollbar-wrap { background: #001652 !important; }
.dt-mobile-header .mobile-main-nav > li > a { padding: 14px 12px; border-radius: 6px; }
.dt-mobile-header .mobile-main-nav > li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.dt-mobile-header .mobile-main-nav > li > a .menu-text,
.dt-mobile-header .mini-widgets,
.dt-mobile-header .mini-widgets a,
.dt-mobile-header .mobile-mini-widgets-in-menu a,
.dt-mobile-header .mobile-mini-widgets-in-menu .menu-text { color: #fff !important; }
.dt-close-mobile-menu-icon span { background: #001652 !important; border: 1px solid #fff; border-radius: 5px; }
.dt-mobile-header .mobile-main-nav > li > a:hover,
.dt-mobile-header .mobile-main-nav > li > a:focus-visible,
.dt-mobile-header .mobile-main-nav > li.act > a { background-color: rgba(255, 255, 255, .12); }
.dt-mobile-header .mobile-main-nav > li > a:hover .menu-text,
.dt-mobile-header .mobile-main-nav > li.act > a .menu-text { text-decoration: underline; text-underline-offset: .2em; }

/* Descriptions remain readable without hover, rotation or fixed-height clipping. */
#content .flip-box-wrap,
#content .flip-box-wrap .flip-box,
#content .flip-box-wrap .ifb-flip-box,
#content .flip-box-wrap .ifb-face {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    transform: none !important;
    perspective: none !important;
    transition: none !important;
    cursor: auto;
}
#content .flip-box-wrap .ifb-face,
#content .flip-box-wrap .ifb-flip-box-section,
#content .flip-box-wrap .ifb-flip-box-section-content,
#content .flip-box-wrap .ifb-desc-back {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    overflow: visible !important;
    backface-visibility: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: auto !important;
}
#content .flip-box-wrap .ifb-face { padding: 20px !important; }
#content .flip-box-wrap .ifb-back p { overflow: visible !important; }

/* A nested half-width VC column must not halve an already narrow card again. */
#content .haidem-feature-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 24px !important;
    margin-bottom: 32px !important;
}
#content .haidem-feature-grid::before,
#content .haidem-feature-grid::after { display: none !important; }
#content .haidem-feature-grid > .vc_column_container { width: auto !important; float: none; min-width: 0; }
#content .haidem-feature-grid .vc_column_container { padding: 0 !important; margin: 0 !important; box-sizing: border-box; }
#content .haidem-feature-grid .vc_inner { margin: 0 !important; }
#content .haidem-feature-grid .vc_inner > .vc_column_container { width: 100% !important; float: none; }
#content .haidem-feature-grid .vc_column-inner { padding: 0 !important; margin: 0 !important; }
#content .haidem-feature-grid .flip-box-wrap .ifb-face { width: 100% !important; box-sizing: border-box; }
#content .haidem-feature-grid .ifb-flip-box-section,
#content .haidem-feature-grid .ifb-flip-box-section-content { display: block !important; width: 100% !important; padding: 0 !important; box-sizing: border-box; }
#content .haidem-feature-grid .flipbox_heading { font-size: 24px !important; line-height: 1.4 !important; overflow-wrap: anywhere; }
#content .haidem-feature-grid .ifb-back { background: #23262d !important; color: #fff !important; }
#content .haidem-feature-grid .ifb-back .ifb-flip-box-section-content,
#content .haidem-feature-grid .ifb-back p { font-size: 16px !important; line-height: 1.7 !important; color: #fff !important; text-align: left; overflow-wrap: anywhere; }

/* Documents and photos stay in source order, with no cloned or timed slides. */
.haidem-accessible-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 24px;
    align-items: start;
    margin: 20px 0 35px;
}
.haidem-accessible-gallery > * { min-width: 0; margin: 0 !important; }
.haidem-accessible-gallery img { height: auto; }
.haidem-document-text-link { margin: 12px 0 8px; font-size: 16px; line-height: 1.5; }
#content .haidem-document-text-link a { color: #b5121b; text-decoration: underline; text-underline-offset: .15em; }
.haidem-document-status { color: #001652; font-size: 14px; line-height: 1.6; }
.haidem-certificate-card { display: flex; flex-direction: column; padding: 18px; border: 1px solid #dbe2ed; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(0,22,82,.05); }
.haidem-accessible-gallery:has(> .haidem-certificate-card) { align-items: stretch; }
#content .haidem-certificate-card h4 { margin: 0 0 16px; font-size: 18px; line-height: 1.5; font-weight: 700; color: #001652; }
.haidem-certificate-card .wpb_single_image { margin: 0 0 16px !important; }
.haidem-certificate-card figure { width: 100%; }
.haidem-certificate-card .vc_single_image-wrapper { display: flex !important; justify-content: center; width: 100%; box-sizing: border-box; padding: 14px; border: 1px solid #e3e9f1; border-radius: 7px; background: #f2f5f9 !important; }
#content .haidem-certificate-card img { width: auto !important; max-width: 100%; height: 200px !important; object-fit: contain; box-shadow: 0 3px 9px rgba(0,22,82,.12); }
.haidem-certificate-card .haidem-document-text-link { margin: 0; }
#content .haidem-certificate-card .haidem-document-text-link a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 6px; background: #001652; color: #fff; font-size: 14px; line-height: 1.6; }
#content .haidem-certificate-card .haidem-document-text-link a:hover { background: #102c67; }
.haidem-certificate-card .haidem-document-status { margin: 12px 0 0; font-size: 12px; line-height: 1.65; color: #526078; }
.haidem-accessible-gallery .wpb_singleimage_heading {
    color: #001652;
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
}
.haidem-document-accordion { margin: 20px 0 35px; }
.haidem-disclosure { margin: 0 0 12px; border: 1px solid #62666d; background: #fff; color: #222; }
.haidem-disclosure > summary {
    padding: 16px 20px;
    color: #001652;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 700;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.haidem-disclosure > summary:focus {
    outline: 3px solid #001652;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
}
.haidem-disclosure[open] > summary { border-bottom: 1px solid #62666d; background: #f0f2f7; }
.haidem-disclosure-content { padding: 20px; overflow-wrap: anywhere; }
.haidem-disclosure-content a { text-decoration: underline; }
#content .haidem-disclosure-content a,
#content .haidem-frame-link a,
.page-id-15224 #content .wpb_text_column a,
.page-id-15343 #content .wpb_text_column a {
    color: #b5121b;
}
.haidem-disclosure-content :last-child { margin-bottom: 0; }
.haidem-table-scroll { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.haidem-data-table { min-width: 1080px; width: 100%; border-collapse: collapse; color: #222; background: #fff; font-size: 16px; line-height: 1.5; }
.haidem-data-table caption { text-align: left; color: #001652; font-weight: 700; padding: 12px 0; }
.haidem-data-table th, .haidem-data-table td { border: 1px solid #62666d; padding: 12px; vertical-align: top; }
.haidem-data-table thead th { background: #eef1f6; color: #001652; }
.haidem-data-table tbody th { min-width: 180px; text-align: left; font-weight: 600; }
.haidem-data-table td { text-align: right; white-space: nowrap; }
.haidem-table-total { background: #eef1f6; font-weight: 700; }
.haidem-footer-utilities { grid-column: 1 / -1; grid-row: footer-end; min-width: 0; }
.haidem-cookie-settings { padding: 16px; text-align: center; background: #f0f2f7; }
.haidem-project-information { max-width: 1200px; margin: 0 auto; padding: 20px 16px 8px; }
.masthead .mobile-header-bar { background: #001652 !important; }
.masthead .mobile-header-bar .dt-mobile-menu-icon .lines,
.masthead .mobile-header-bar .dt-mobile-menu-icon .lines::before,
.masthead .mobile-header-bar .dt-mobile-menu-icon .lines::after { background: #fff !important; }
.haidem-project-information h2 { color: #001652; font-size: 24px; line-height: 1.4; }
.haidem-project-information a { color: #b5121b; text-decoration: underline; }
.haidem-project-facts { margin: 20px 0; }
.haidem-project-facts dt { font-weight: 700; }
.haidem-project-facts dd { margin: 0 0 16px; }
#espa1 .haidem-project-text-link {
    display: block; padding: 8px 12px; background: #fff; color: #001652;
    font-size: 16px; line-height: 1.5; text-decoration: underline; overflow-wrap: anywhere;
}
.haidem-cookie-settings[hidden] { display: none; }
.haidem-cookie-settings-button {
    padding: 10px 18px; border: 2px solid #001652; border-radius: 4px;
    background: #001652; color: #fff; font: inherit; line-height: 1.5; cursor: pointer;
}
#cookie-notice { max-height: 85vh; overflow-y: auto; box-sizing: border-box; }
#cookie-notice.cn-animated { animation-duration: .001s !important; }
#cookie-notice.cookie-notice-visible { opacity: 1 !important; }
#cookie-notice .cookie-notice-container { padding: 16px 64px; min-height: 76px; box-sizing: border-box; }
#cookie-notice .cn-button {
    font: inherit; line-height: 1.5; white-space: normal; cursor: pointer;
    color: #fff !important; background: #b5121b !important; border: 2px solid #fff;
    max-width: 100%; box-sizing: border-box;
}
#cookie-notice .cn-button:hover { background: #8e0e15 !important; text-decoration: underline; }
#cookie-notice :is(#cn-accept-cookie, #cn-refuse-cookie, #cn-more-info) {
    color: #fff !important; background-color: #b5121b !important; opacity: 1 !important;
}
#cookie-notice :is(#cn-accept-cookie, #cn-refuse-cookie, #cn-more-info):hover {
    background-color: #8e0e15 !important;
}
#cookie-notice button.cn-close-icon {
    padding: 0; border: 2px solid #fff; border-radius: 4px; min-width: 44px; min-height: 44px;
    background: #001652; color: #fff; box-shadow: none; cursor: pointer; opacity: 1;
    top: 12px; left: 12px; right: auto; width: 44px; height: 44px; margin-top: 0; transform: none;
}
#cookie-notice button.cn-close-icon::before,
#cookie-notice button.cn-close-icon::after {
    background-color: #fff; width: 2px; height: 20px; left: 19px; top: 10px;
}
/* Footer navigation stays a list of explicit links, without change-on-select. */
.haidem-statement-link { display: block; margin-bottom: 4px; }
#bottom-bar .haidem-statement-link a { color: #fff !important; text-decoration: underline; text-underline-offset: .15em; }
#bottom-bar .mini-nav > ul { display: flex !important; flex-wrap: wrap; gap: 12px; justify-content: center; }
#bottom-bar .mini-nav .menu-select,
#bottom-bar .mini-nav select { display: none !important; }
@media (max-width: 600px) {
    #main #espa1 {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100%;
        max-width: 450px;
        box-sizing: border-box;
        padding: 0 16px;
        margin: 0 auto 24px;
    }
    #main #espa1 img { display: block; width: 100% !important; max-width: 100%; height: auto; }
}
.haidem-motion-controls {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    max-width: min(calc(100% - 40px), calc(100vw - 40px));
}
.haidem-motion-control {
    display: inline-block;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    padding: 10px 16px;
    border: 2px solid #fff;
    border-radius: 4px;
    background: #001652;
    color: #fff;
    font: inherit;
    line-height: 1.5;
    cursor: pointer;
}
.haidem-video-description-link { text-decoration: underline; }
.haidem-policy-text-link { display: inline-block; margin: 6px 0 12px; font-weight: 600; text-decoration: underline; text-underline-offset: .15em; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    #content .wpb_animate_when_almost_visible { opacity: 1 !important; animation: none !important; }
}
