@import url("https://lalten.github.io/lmweb/style/latinmodern-roman.css");
/* Futures Balance v203 — size and transparency of the shared institutional footer.
   Matches the expanded document-reader footer from v202 without altering its own copy. */
html body footer.footer,
html body .fbp-details-stage .fbp-partners-slot-v94 > footer.footer,
html body:has(.paper-page) > footer.footer {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
html body footer.footer > .container > span,
html body .fbp-details-stage .fbp-partners-slot-v94 footer.footer > .container > span,
html body:has(.paper-page) > footer.footer > .container > span {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 16px 22px !important;
    white-space: normal !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
html body footer.footer a[href*="thebeyondlab.org"],
html body footer.footer a[href*="commission.europa.eu"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
html body footer.footer a img {
    display: block !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
/* The same two image limits as the v202 reader's partner row. */
html body footer.footer a[href*="thebeyondlab.org"] img,
html body .fbp-details-stage .fbp-partners-slot-v94 footer.footer a[href*="thebeyondlab.org"] img,
html body:has(.paper-page) > footer.footer a[href*="thebeyondlab.org"] img {
    max-width: min(370px, 76vw) !important;
    max-height: 84px !important;
}
html body footer.footer a[href*="commission.europa.eu"] img,
html body .fbp-details-stage .fbp-partners-slot-v94 footer.footer a[href*="commission.europa.eu"] img,
html body:has(.paper-page) > footer.footer a[href*="commission.europa.eu"] img {
    max-width: min(220px, 56vw) !important;
    max-height: 85px !important;
}
@media (max-width: 760px) {
    html body footer.footer > .container > span,
    html body .fbp-details-stage .fbp-partners-slot-v94 footer.footer > .container > span,
    html body:has(.paper-page) > footer.footer > .container > span {
        gap: 10px 14px !important;
        font-size: 12px !important;
    }
    html body footer.footer a[href*="thebeyondlab.org"] img,
    html body .fbp-details-stage .fbp-partners-slot-v94 footer.footer a[href*="thebeyondlab.org"] img,
    html body:has(.paper-page) > footer.footer a[href*="thebeyondlab.org"] img {
        max-width: min(280px, 74vw) !important;
        max-height: 64px !important;
    }
    html body footer.footer a[href*="commission.europa.eu"] img,
    html body .fbp-details-stage .fbp-partners-slot-v94 footer.footer a[href*="commission.europa.eu"] img,
    html body:has(.paper-page) > footer.footer a[href*="commission.europa.eu"] img {
        max-width: min(165px, 50vw) !important;
        max-height: 65px !important;
    }
}

/* FB HOME WHITE LOGO BAND v204 */
/* Home landing page only: full-width white band, with footer in its original
   position and original v203 logo sizes. All other pages stay transparent. */
html body.fb-home-white-logo-band-v204 footer.footer,
html body.fb-home-white-logo-band-v204 footer.border-top.footer {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* FB HOME FOOTER BUTTON ALIGNMENT v205 */
/* The white band remains page-wide; only the logo group moves horizontally. */
html body.fb-home-white-logo-band-v204 footer.footer > .container > span {
  transform: translateX(var(--fb-home-logo-shift-v205, 0px)) !important;
  will-change: auto;
}
