/* ESB native multilingual presentation. No GTranslate or parent-theme mutation. */
.esb-multilingual { --esb-blue: #000080; --esb-ivory: #fdf5e6; }
.esb-multilingual #masthead { position: relative; }
.esb-ml-switcher { position: absolute; top: 18px; right: 20px; z-index: 1001; font-size: 16px; }
.esb-ml-switcher summary { min-height: 44px; display: flex; align-items: center; gap: .5em; padding: 4px 12px; cursor: pointer; list-style: none; color: var(--esb-ivory); border: 1px solid currentColor; border-radius: 4px; background: var(--esb-blue); }
.esb-ml-switcher summary::-webkit-details-marker { display: none; }
.esb-ml-switcher nav { position: absolute; right: 0; width: 240px; max-width: calc(100vw - 40px); max-height: 65vh; overflow-y: auto; margin-top: 6px; background: var(--esb-ivory); color: var(--esb-blue); border: 1px solid var(--esb-blue); box-shadow: 0 3px 9px #0003; }
.esb-ml-switcher ul { list-style: none; margin: 0; padding: 5px; }
.esb-ml-switcher li { margin: 0; }
.esb-ml-switcher a, .esb-ml-switcher [aria-disabled] { display: block; padding: 10px; min-height: 44px; box-sizing: border-box; color: var(--esb-blue); line-height: 1.4; }
.esb-ml-switcher a:hover, .esb-ml-switcher a[aria-current] { text-decoration: underline; background: #f2e8d4; }
.esb-ml-switcher [aria-disabled] { color: #514b40; }
.esb-ml-switcher small { display: block; font-size: .85em; }
.esb-ml-switcher :focus-visible, .esb-ml-navigation :focus-visible, .esb-ml-menu-toggle:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.esb-ml-menu-toggle { position: absolute; top: 18px; left: 20px; min-width: 44px; min-height: 44px; color: var(--esb-ivory); border: 1px solid currentColor; background: var(--esb-blue); font-size: 24px; padding: 0 8px; box-shadow: none; text-shadow: none; }
.esb-ml-navigation { background: var(--esb-ivory); color: var(--esb-blue); border-bottom: 1px solid var(--esb-blue); }
.esb-ml-navigation > .wrapper { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 10px 20px; box-sizing: border-box; }
.esb-ml-menu, .esb-ml-menu ul { list-style: none; margin: 0; padding: 0; }
.esb-ml-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; }
.esb-ml-menu li { position: relative; margin: 0; }
.esb-ml-menu a, .esb-ml-login { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; box-sizing: border-box; color: var(--esb-blue); line-height: 1.4; overflow-wrap: anywhere; }
.esb-ml-menu a:hover { text-decoration: underline; }
.esb-ml-menu .sub-menu { min-width: 240px; max-width: 320px; padding-left: 14px; }
.esb-ml-menu li:is(.current-menu-item, .current-menu-ancestor) > a { background: var(--esb-blue); color: var(--esb-ivory); }
.esb-ml-menu li:is(.current-menu-item, .current-menu-ancestor) > :focus-visible { outline-offset: -3px; }
.esb-ml-navigation [hidden], .esb-ml-menu-toggle[hidden] { display: none; }
.esb-ml-search { display: flex; align-items: stretch; gap: 6px; max-width: 100%; margin: 0; }
.esb-ml-search label { min-width: 0; margin: 0; }
.esb-ml-search input[type="search"] { width: 140px; max-width: 100%; min-height: 44px; box-sizing: border-box; }
.esb-ml-search button { min-height: 44px; color: var(--esb-ivory); background: var(--esb-blue); font-size: 14px; padding: 8px 12px; box-shadow: none; text-shadow: none; }
.esb-ml-search-disclosure { position: relative; }
.esb-ml-search-disclosure > summary { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; cursor: pointer; list-style: none; font-size: 26px; }
.esb-ml-search-disclosure > summary::-webkit-details-marker { display: none; }
.esb-ml-search-disclosure .esb-ml-search { padding: 12px; background: var(--esb-ivory); border: 1px solid var(--esb-blue); }
@media (min-width: 991px) {
    .esb-multilingual #site-branding { max-width: calc(100% - 180px); }
    .esb-ml-switcher { top: 50%; transform: translateY(-50%); }
    .esb-ml-menu-toggle { display: none; }
    .esb-ml-search-disclosure .esb-ml-search { position: absolute; right: 0; top: 100%; z-index: 1001; width: 320px; max-width: none; }
    .esb-ml-navigation > .wrapper { position: relative; padding-left: 16px; padding-right: 70px; gap: 0; }
    .esb-ml-menu { flex: 1; min-width: 0; flex-wrap: nowrap; justify-content: space-between; gap: 0; }
    .esb-ml-menu > li { flex: 0 0 auto; }
    .esb-ml-menu > li > a { white-space: nowrap; overflow-wrap: normal; }
    .esb-ml-search-disclosure { position: absolute; right: 16px; top: 10px; }
    .esb-ml-navigation.is-enhanced .sub-menu { position: absolute; z-index: 1000; top: 100%; left: 0; padding: 8px; background: var(--esb-ivory); border: 1px solid var(--esb-blue); box-shadow: 0 3px 8px #0003; }
    .esb-ml-navigation.is-enhanced .sub-menu .sub-menu { position: static; border: 0; box-shadow: none; }
    .esb-ml-navigation.is-enhanced .esb-ml-menu > li:last-child .sub-menu { left: auto; right: 0; }
}
/* Reuse the mobile presentation when translated labels exceed the desktop row. */
@media (min-width: 991px) {
    .esb-ml-compact #masthead > .wrapper { padding-top: 58px; }
    .esb-ml-compact #site-branding { max-width: 100%; }
    .esb-ml-compact .esb-ml-switcher { top: 12px; transform: none; }
    .esb-ml-compact .esb-ml-menu-toggle { display: block; top: 12px; }
    .esb-ml-compact .esb-ml-navigation[hidden] { display: none; }
    .esb-ml-compact .esb-ml-navigation > .wrapper { display: block; padding: 16px 25px; }
    .esb-ml-compact .esb-ml-menu { display: block; }
    .esb-ml-compact .esb-ml-menu li { border-bottom: 1px solid #00008026; }
    .esb-ml-compact .esb-ml-menu a { display: flex; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .esb-ml-compact .esb-ml-navigation.is-enhanced .sub-menu { position: static; min-width: 0; max-width: none; padding: 0 0 0 14px; border: 0; box-shadow: none; }
    .esb-ml-compact .esb-ml-search-disclosure { position: relative; right: auto; top: auto; }
    .esb-ml-compact .esb-ml-search-disclosure .esb-ml-search { position: static; width: auto; max-width: 100%; margin-top: 12px; }
    .esb-ml-compact .esb-ml-search label { flex: 1; }
    .esb-ml-compact .esb-ml-search input[type="search"] { width: 100%; }
}
@media (max-width: 600px) {
    /* Give the two controls their own row; keep the logo and title centred at 320px. */
    .esb-multilingual #masthead > .wrapper { padding-top: 58px; }
}
@media (max-width: 990px) {
    /* Presentation only: the local protection notice remains visible and all guards remain active. */
    .esb-multilingual #esb-multilingue-local { position: static !important; margin: 12px auto; max-width: calc(100% - 24px); box-sizing: border-box; width: fit-content; }
    .esb-ml-navigation[hidden] { display: none; }
    .esb-ml-navigation > .wrapper { display: block; padding: 16px 25px; }
    .esb-ml-menu { display: block; }
    .esb-ml-menu li { border-bottom: 1px solid #00008026; }
    .esb-ml-menu .sub-menu { min-width: 0; max-width: none; }
    .esb-ml-menu a { display: flex; width: 100%; max-width: 100%; }
    .esb-ml-search { margin-top: 12px; }
    .esb-ml-search label { flex: 1; }
    .esb-ml-search input[type="search"] { width: 100%; }
    .esb-ml-switcher { right: 16px; top: 12px; }
    .esb-ml-menu-toggle { left: 16px; top: 12px; }
}

/* Shared footer layout: credits left, legal links right, compact on mobile. */
#site-generator.esb-site-footer nav.esb-footer-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}
#site-generator.esb-site-footer .esb-footer-split .esb-footer-links {
    justify-content: flex-start;
    text-align: left;
}
#site-generator.esb-site-footer .esb-footer-split .esb-footer-legal {
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
}
#site-generator.esb-site-footer .esb-footer-legal li + li::before { content: "·"; }
@media (max-width: 600px) {
    .esb-multilingual #colophon #site-generator.esb-site-footer {
        padding-top: 16px;
    }
    #site-generator.esb-site-footer nav.esb-footer-split {
        justify-content: center;
        gap: 6px;
    }
    #site-generator.esb-site-footer .esb-footer-split .esb-footer-links {
        width: 100%;
        justify-content: center;
        text-align: center;
        margin: 0;
    }
    #site-generator.esb-site-footer .esb-footer-split #footer-content {
        display: block;
    }
    #site-generator.esb-site-footer .esb-footer-split .esb-footer-copyright {
        display: block;
    }
    #site-generator.esb-site-footer .esb-footer-split .esb-footer-credit {
        display: inline;
        white-space: normal;
    }
    #site-generator.esb-site-footer .esb-footer-split .esb-footer-credit span {
        white-space: nowrap;
    }
    #site-generator.esb-site-footer .esb-footer-split .esb-footer-credit a {
        vertical-align: middle;
    }
    #site-generator.esb-site-footer .esb-footer-split .esb-footer-credit + .esb-footer-credit::before {
        content: " · ";
    }
}

/* Align desktop credits and legal links with the footer edges. */
@media (min-width: 601px) {
    .esb-multilingual #colophon #site-generator.esb-site-footer {
        padding-left: 0;
        padding-right: 0;
    }
}
