/* Public site — fixed top/bottom chrome; page content scrolls between them */
:root {
    --site-header-h: 3.5rem;
    --site-footer-h: 3.35rem;
}

.site-shell {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: var(--site-footer-h);
}

.site-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(100vh - var(--site-header-h) - var(--site-footer-h));
    min-height: calc(100dvh - var(--site-header-h) - var(--site-footer-h));
}

.site-main {
    flex: 1 1 auto;
    padding-bottom: 0.75rem;
}

.site-footer {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    background: color-mix(in oklab, var(--header-bg, var(--panel)) 92%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 color-mix(in oklab, var(--border) 80%, transparent);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem 1rem;
    min-height: var(--site-footer-h);
    padding: 0.5rem 1rem;
}

@media (min-width: 640px) {
    .site-footer__inner {
        padding-inline: 1.5rem;
    }
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.site-footer__logo {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.4rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.site-footer__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-footer__name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-footer__ad {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.site-footer__ad .ads-inline {
    width: 100%;
    max-width: 28rem;
    padding: 0;
}

.site-footer__ad .ads-slot--inline,
.site-footer .ads-slot-compact {
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    line-height: 1.15;
    border-radius: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-sidebar > .sticky {
    height: calc(100vh - var(--site-header-h) - var(--site-footer-h)) !important;
    height: calc(100dvh - var(--site-header-h) - var(--site-footer-h)) !important;
}

.toast-chip {
    bottom: calc(var(--site-footer-h) + 0.75rem) !important;
}

@media (max-width: 640px) {
    :root {
        --site-footer-h: 3.85rem;
    }

    .site-footer__inner {
        gap: 0.4rem 0.55rem;
        padding-inline: 0.65rem;
    }

    .site-footer__name {
        font-size: 0.72rem;
        max-width: 5.5rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-footer__copy {
        font-size: 0.62rem;
    }
}
