/* =========================================================
   APPLICATION FOOTER
   ========================================================= */
.vrms-app-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.vrms-app-shell > .content-container {
    flex: 1 0 auto;
}

.vrms-footer {
    flex: 0 0 auto;
    width: 100%;
    margin-top: var(--app-space-6);
    border-top: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-text);
}

.vrms-footer-inner {
    display: grid;
    width: min(100%, 96rem);
    margin: 0 auto;
    padding: var(--app-space-4) clamp(var(--app-space-3), 3vw, var(--app-space-6));
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: var(--app-space-4);
}

.vrms-footer-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: var(--app-space-3);
}

.vrms-footer-brand-mark {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-muted);
    color: var(--app-action-primary);
}

.vrms-footer-brand-logo {
    display: block;
    width: 1.7rem;
    height: 1.7rem;
    object-fit: contain;
}

.vrms-footer-brand-copy {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.vrms-footer-app-name,
.vrms-footer-federation {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vrms-footer-app-name {
    color: var(--app-text);
    font-size: .95rem;
    line-height: 1.25;
}

.vrms-footer-federation {
    color: var(--app-text-muted);
    font-size: .78rem;
}

.vrms-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--app-space-2);
}

.vrms-footer-link {
    display: inline-flex;
    min-height: 2.5rem;
    padding: .55rem .8rem;
    align-items: center;
    gap: .45rem;
    border: 1px solid transparent;
    border-radius: var(--app-radius-md);
    color: var(--app-text-muted);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease;
}

.vrms-footer-link:hover,
.vrms-footer-link:focus-visible {
    border-color: var(--app-border);
    background: var(--app-surface-muted);
    color: var(--app-link-hover);
}

.vrms-footer-meta {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
    gap: .1rem;
    color: var(--app-text-muted);
    font-size: .76rem;
    line-height: 1.35;
    text-align: right;
}

.vrms-footer-version,
.vrms-footer-copyright {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .vrms-footer-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .vrms-footer-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .vrms-footer {
        margin-top: var(--app-space-4);
    }

    .vrms-footer-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--app-space-3);
    }

    .vrms-footer-brand,
    .vrms-footer-links,
    .vrms-footer-meta {
        width: 100%;
    }

    .vrms-footer-links {
        grid-column: auto;
        grid-row: auto;
        align-items: stretch;
        flex-direction: column;
    }

    .vrms-footer-link {
        width: 100%;
        justify-content: flex-start;
        border-color: var(--app-border);
        background: var(--app-surface-muted);
    }

    .vrms-footer-meta {
        align-items: flex-start;
        padding-top: var(--app-space-3);
        border-top: 1px solid var(--app-border);
        text-align: left;
    }
}
