/*
 * Footer
 *
 * City brand mark + copyright, then the link list (one link style, links.css).
 * Phones: stacked and left-aligned. From md: brand left, links right.
 * D3: the official city logo lives here; the navbar wordmark is the site's brand
 * point (docs/ui-design-consistency-plan.md).
 */

.jena-footer {
    padding-block: var(--jena-space-lg);
    margin-top: var(--jena-space-xl);
    border-top: var(--jena-border-width-sm) var(--jena-border-style) var(--jena-color-border-neutral-subtle);
}

.jena-footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--jena-space-md);
}

.jena-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--jena-space-sm);
    align-items: flex-start;
}

.jena-footer-logo-link {
    display: inline-flex;
    padding-block: var(--jena-space-xs);
}

img.jena-footer-logo {
    width: auto;
    height: 20px;
    object-fit: contain;
}

.jena-footer-copy {
    font-size: var(--jena-font-size-sm);
    color: var(--jena-color-text-primary-muted);
}

.jena-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--jena-space-xs) var(--jena-space-md);
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Standalone links start flush with the brand mark */
.jena-footer-links .jena-link {
    margin-inline: 0;
}

@media (width >= 768px) {
    .jena-footer-inner {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .jena-footer-brand {
        flex: 0 0 auto;
    }

    .jena-footer-links {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
}
