:root {
    --app-footer-blue: #3b82f6;
    --app-footer-blue-dark: #1d4ed8;
    --app-footer-green: #10b981;
    --app-footer-ink: #172033;
    --app-footer-muted: #64748b;
    --app-footer-line: #dbe5f1;
    --app-footer-background: #f8fafc;
}

.app-footer {
    width: 100%;
    margin-top: auto;
    color: var(--app-footer-muted);
    background: var(--app-footer-background);
    border-top: 1px solid var(--app-footer-line);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.app-footer__inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 88px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 22px;
}

.app-footer__identity {
    display: grid;
    gap: 3px;
}

.app-footer__brand {
    width: fit-content;
    color: var(--app-footer-ink);
    font-weight: 800;
    text-decoration: none;
}

.app-footer__navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.app-footer a {
    color: var(--app-footer-muted);
    font-weight: 700;
    text-underline-offset: 0.2em;
    transition: color 150ms ease;
}

.app-footer__navigation a {
    text-decoration: none;
}

.app-footer a:hover,
.app-footer a:focus-visible,
.app-footer a[aria-current="page"] {
    color: var(--app-footer-blue-dark);
}

.app-footer a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--app-footer-green);
    text-decoration-thickness: 3px;
}

.app-footer--authenticated {
    flex: 0 0 auto;
    background: #ffffff;
    font-size: 0.78rem;
}

.app-footer--authenticated .app-footer__inner {
    min-height: 52px;
    padding-block: 8px;
}

.app-footer--authenticated .app-footer__identity {
    gap: 0;
}

.app-footer--authenticated .app-footer__navigation {
    gap: 8px 18px;
}

.app-footer--compact .app-footer__inner {
    min-height: 72px;
    padding-block: 16px;
}

@media (max-width: 720px) {
    .app-footer__inner {
        width: min(100% - 28px, 1180px);
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .app-footer__navigation {
        justify-content: flex-start;
    }

    .app-footer--authenticated .app-footer__inner {
        min-height: 0;
        gap: 10px;
        padding-block: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-footer a {
        transition: none;
    }
}
