/* Shared site footer */

.site-footer {
    margin-top: 0;
    padding: 1.25rem clamp(24px, 5vw, 60px) 1.5rem;
    border-top-width: 3px;
    border-top-style: solid;
    background: var(--bg-primary, #0F1626);
    color: var(--text-primary, #CBA052);
    border-top-color: var(--text-primary, #CBA052);
}

.site-footer-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.site-footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem 2.5rem;
    font-size: 0.95rem;
    padding: 0;
    margin: 0;
}

.site-footer-links > li {
    display: inline-flex;
    align-items: center;
}

.site-footer-links > li:not(.site-footer-meta) {
    min-height: 56px;
}

.site-footer-meta {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 0;
}

.site-footer-meta-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.65rem;
}

.site-footer-contact-spacer {
    display: none;
}

.site-footer-contact-label,
.site-footer-photo-credit-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary, #DEBA84);
    line-height: 1.2;
}

.site-footer-meta-sep {
    color: var(--text-secondary, #DEBA84);
    font-weight: 700;
    line-height: 1;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    color: var(--text-primary, #CBA052);
    font-weight: 600;
}

.site-footer-meta-row a {
    gap: 0;
}

.site-footer-links a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: var(--gold-muted-faint, #8A7348);
}

.site-footer-links a span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-seal {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.footer-seal-nighttime {
    border: 1px solid #ffffff;
    border-radius: 50%;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 1.25rem clamp(36px, 11vw, 56px) 1.5rem;
    }

    .site-footer-inner {
        max-width: none;
        margin-inline: 0;
        text-align: left;
    }

    .site-footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        width: 100%;
    }

    .site-footer-links > li {
        width: 100%;
        min-height: 0;
    }

    .site-footer-meta {
        align-items: flex-start;
        gap: 12px;
        justify-content: flex-start;
    }

    .site-footer-contact-spacer {
        display: block;
        flex: 0 0 46px;
        width: 46px;
    }

    .footer-seal {
        width: 46px;
        height: 46px;
    }

    .site-footer-meta-row {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .site-footer-meta-sep {
        display: none;
    }

    .site-footer-photo-credit-label {
        margin-top: 0.65rem;
    }
}
