/* Static YouTube placeholders: no YouTube request before the visitor follows the link. */
.head_panel #head_panel_slider.static-single-hero {
    display: block !important;
}

/* The theme uses a translucent fallback for unknown social services. */
.mainbar .team_social.showLinks,
.mainbar .team_social.show {
    opacity: 1 !important;
}

.mainbar .team_social.showLinks a i,
.mainbar .team_social.show a i {
    filter: none !important;
    opacity: 1 !important;
}

.mainbar .team_social a[href^="mailto:"] i {
    background-color: #4e8cba !important;
}

/* Keep the four homepage navigation tiles aligned even when one label wraps. */
@media (min-width: 768px) {
    .home .folded_section {
        margin-top: 151px !important;
    }

    .home .folded_section > .container > .row {
        align-items: stretch;
        display: flex;
    }

    .home .folded_section > .container > .row > .wpb_column {
        align-self: stretch;
        display: flex;
        vertical-align: top;
    }

    .home .folded_section > .container > .row > .wpb_column > .wpb_wrapper {
        display: flex;
        width: 100%;
    }

    .home .folded_section > .container > .row > .wpb_column .teaser_box {
        height: auto !important;
        width: 100%;
    }
}

.stretchy_wrapper > .static-youtube-placeholder {
    background: #182840;
    color: #fff;
    display: block;
    inset: 0;
    overflow: hidden;
    position: absolute;
    text-decoration: none;
}

.static-youtube-placeholder::after {
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.62));
    content: "";
    inset: 0;
    position: absolute;
}

.static-youtube-placeholder img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.static-youtube-play {
    background: #f03;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    height: 58px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 82px;
    z-index: 2;
}

.static-youtube-play::after {
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    content: "";
    left: 34px;
    position: absolute;
    top: 17px;
}

.static-youtube-label {
    bottom: 18px;
    font-weight: 700;
    left: 22px;
    position: absolute;
    right: 22px;
    text-align: center;
    text-shadow: 0 1px 4px #000;
    z-index: 2;
}

.static-youtube-placeholder:focus-visible {
    outline: 4px solid #fff;
    outline-offset: -7px;
}

@media (max-width: 767px) {
    .static-youtube-play {
        height: 48px;
        width: 68px;
    }

    .static-youtube-play::after {
        border-bottom-width: 10px;
        border-left-width: 17px;
        border-top-width: 10px;
        left: 28px;
        top: 14px;
    }

    .static-youtube-label {
        bottom: 12px;
        font-size: 14px;
    }
}

/* Local language menu: every language links to a page hosted on this site. */
.main_menu .static-language-menu {
    position: relative;
}

@media (min-width: 992px) {
    .main_menu > li:not(.static-language-menu) {
        transform: translateX(88px);
    }

    .main_menu .static-language-menu {
        transform: translateX(128px);
    }
}

.static-language-picker {
    font-family: Arial, sans-serif;
    position: relative;
}

.static-language-picker > summary {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 2px;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 9px;
    line-height: 20px;
    list-style: none;
    min-height: 32px;
    padding: 5px 27px 5px 10px;
    position: relative;
    transition: color 160ms ease;
}

.static-language-picker > summary:hover,
.static-language-picker[open] > summary {
    background: transparent;
    color: #168dcc;
}

.static-language-picker img {
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    display: block;
    flex: 0 0 auto;
    height: auto;
    width: 18px;
}

.static-language-picker > summary::-webkit-details-marker {
    display: none;
}

.static-language-picker > summary::after {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555;
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-45%);
}

.static-language-picker[open] > summary::after {
    transform: translateY(-55%) rotate(180deg);
}

.static-language-picker > summary:focus-visible,
.static-language-panel a:focus-visible {
    outline: 3px solid #087fc2;
    outline-offset: 2px;
}

.static-language-panel {
    background: #fff;
    border: 0;
    border-top: 3px solid #45aaff;
    border-radius: 0 0 3px 3px;
    box-shadow: none;
    color: #333;
    min-width: 100px;
    overflow: hidden;
    padding: 4px;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 10000;
}

.static-language-panel p {
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 9px;
    text-transform: none;
}

.static-language-panel p a {
    color: #087fc2;
    display: inline;
    font-weight: 700;
    padding: 0;
    text-decoration: underline;
}

.translation-notice {
    background: #eef7ff;
    border-left: 4px solid #087fc2;
    margin: 0 0 28px;
    padding: 12px 16px;
}

.main_menu .static-language-panel ul {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
}

.main_menu .static-language-panel li {
    margin: 0;
    padding: 0;
}

.main_menu .static-language-panel li a {
    align-items: center !important;
    background: #fff;
    border: 0;
    color: #333;
    display: flex !important;
    font-size: 13px;
    font-weight: 700;
    flex-wrap: nowrap !important;
    gap: 11px !important;
    justify-content: flex-start !important;
    line-height: 20px;
    min-height: 38px !important;
    padding: 7px 11px !important;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.main_menu .static-language-panel li:last-child a {
    border-bottom: 0;
}

.main_menu .static-language-panel li a:hover,
.main_menu .static-language-panel li a[aria-current="page"] {
    background: #eaf6fe;
    box-shadow: none;
    color: #168dcc;
}

@media (max-width: 991px) {
    .static-language-picker > summary {
        margin: 8px 15px;
    }

    .static-language-panel {
        box-shadow: none;
        margin: 0 15px 12px;
        min-width: 108px;
        position: static;
    }

    .main_menu .static-language-panel li a {
        min-height: 42px;
    }
}

.legal-content {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 900px;
    padding: 38px 0 28px;
}

/* Stabilize the legal-page title bar: do not derive its blue area from
   collapsible margins on the floated theme heading column. */
body.privacy-policy .page_title_in_content,
body.page-id-2313 .page_title_in_content {
    box-sizing: border-box;
    padding-bottom: 32px;
    padding-top: 32px;
}

body.privacy-policy .page_title_in_content .section_header,
body.page-id-2313 .page_title_in_content .section_header {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/*
 * Legal pages must never slide underneath the theme's fixed header. The
 * original theme recalculates the sticky-header offset after fonts and images
 * load; on high-DPI, ultra-wide displays that can sporadically leave the page
 * title partly covered. Keep the header in normal document flow on these two
 * informational pages so both elements always share the same layout context.
 */
body.privacy-policy.sticky_header,
body.page-id-2313.sticky_header {
    margin-top: 0 !important;
}

body.privacy-policy.sticky_header .header,
body.page-id-2313.sticky_header .header {
    position: relative !important;
    top: auto !important;
}

.legal-content h2 {
    font-size: 26px;
    line-height: 1.25;
    margin: 38px 0 14px;
}

.legal-content address {
    font-style: normal;
    line-height: 1.65;
}

.legal-content__updated {
    color: #505b66;
    margin-bottom: 24px;
}

@media (max-width: 767px) {
    .legal-content {
        font-size: 16px;
        padding: 28px 0 18px;
    }

    .legal-content h2 {
        font-size: 22px;
        margin-top: 30px;
    }
}
