/* Footer — compact one-line layout for the report editor / view pages.
   Goal: keep the brand marks visible without consuming a fifth of the
   viewport. Total height target ~64–72px on desktop (was ~220px). */
.footer {
    background-color: #ffffff;
    color: #4a4a4a;
    padding: 0.6rem 0;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
    white-space: normal;
    line-height: 1.4;
    font-size: 0.78rem;
}

.footer .footer-info,
.footer .footer-links,
.footer .footer-content,
.footer .footer-bottom {
    white-space: normal;
    min-width: 0;
}

.footer a {
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #00689D;
    text-decoration: underline;
}

/* Single-row flex layout: logo · copyright · links · social · SDGs */
.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

/* The Razor markup ships footer-top + divider + footer-bottom; flatten
   them so everything sits on one line and the divider disappears. */
.footer-top {
    display: contents;
}

.footer-bottom {
    display: contents;
    padding-top: 0;
    border-top: 0;
}

.footer-logo img {
    height: 32px;
    max-width: 100%;
    display: block;
}

/* Put SDG badges at the far right of the row, regardless of where they
   appear in the DOM (they live inside .footer-top, which we flatten). */
.sdg-goals {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    align-items: center;
    order: 99;
}

.sdg-goals img {
    height: 28px;
    width: auto;
    border-radius: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.sdg-goals img:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.footer-info {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.3;
}

.footer-links {
    display: flex;
    gap: 0.85rem;
    font-size: 0.78rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    color: #6c757d;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    color: #00689D;
    transform: translateY(-2px);
}

/* On narrower viewports, allow wrapping into two rows but keep it tight. */
@media (max-width: 768px) {
    .footer-content {
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }
    .sdg-goals {
        margin-left: 0;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 0.85rem;
    }
    .footer {
        padding: 0.5rem 0;
    }
} 