.project-funding-footer {
    --project-footer-green: #2b8a3e;
    --project-footer-green-dark: #174f25;
    --project-footer-border: #dcebdd;
    width: min(1120px, calc(100% - 32px));
    margin: clamp(32px, 6vw, 64px) auto 0;
    padding: clamp(20px, 3vw, 30px) clamp(16px, 4vw, 36px);
    border: 1px solid var(--project-footer-border);
    border-top: 4px solid var(--project-footer-green);
    border-radius: 14px 14px 0 0;
    background: #fff;
    color: #26372a;
    box-shadow: 0 -8px 30px rgba(28, 75, 38, 0.06);
    clear: both;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.project-funding-footer__inner {
    display: grid;
    gap: clamp(16px, 3vw, 24px);
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.project-funding-footer__logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: clamp(14px, 3vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-funding-footer__logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 220px);
    height: 116px;
    min-width: 0;
    overflow: hidden;
}

.project-funding-footer__logo-frame[data-logo="ncbr"] {
    justify-self: start;
}

.project-funding-footer__logo-frame[data-logo="gs"] {
    justify-self: center;
}

.project-funding-footer__logo-frame[data-logo="enviagri"] {
    justify-self: end;
}

.project-funding-footer__logo {
    display: block;
    flex: 0 0 auto;
    width: min(var(--project-logo-size, 220px), 100%);
    max-width: none;
    height: auto;
}

.project-funding-footer__logo-frame[data-logo="ncbr"] {
    --project-logo-size: 240px;
}

.project-funding-footer__logo-frame[data-logo="gs"] {
    --project-logo-size: 220px;
}

.project-funding-footer__logo-frame[data-logo="enviagri"] {
    --project-logo-size: 150px;
}

.project-funding-footer__copy {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    color: var(--project-footer-green-dark);
    font-size: clamp(0.84rem, 1.3vw, 0.95rem);
    font-weight: 650;
    line-height: 1.45;
    text-wrap: balance;
}

@media (min-width: 1160px) {
    .project-funding-footer__copy {
        white-space: nowrap;
    }
}

html.a11y-high-contrast .project-funding-footer {
    border-color: #fff !important;
    border-top-color: #ff0 !important;
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}

html.a11y-high-contrast .project-funding-footer__copy {
    color: #fff !important;
}

html.a11y-high-contrast .project-funding-footer__logos {
    padding: 4px;
    border: 2px solid #ff0;
    border-radius: 8px;
    background: #fff !important;
}

@media (max-width: 620px) {
    .project-funding-footer {
        width: calc(100% - 20px);
        padding-right: 12px;
        padding-left: 12px;
    }

    .project-funding-footer__logos {
        gap: 6px;
    }

    .project-funding-footer__logo-frame {
        width: 100%;
        height: 78px;
    }

    .project-funding-footer__logo {
        width: min(var(--project-logo-size, 132px), 100%);
    }
}

@media print {
    .project-funding-footer {
        break-inside: avoid;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        box-shadow: none;
    }
}