/*
 * Shared site footer — single source of truth.
 *
 * Loaded by every public page (landing, leaderboard, map, guide) via
 * `<link rel="stylesheet" href="/footer.css">`. The markup is injected from
 * `partials/footer.html` (Vite transformIndexHtml + gen_guide), so neither
 * markup nor styling is duplicated per page.
 *
 * Rules are deliberately SELF-CONTAINED: explicit font-family, line-height and
 * margins so the footer renders identically regardless of the host page's
 * global styles (the landing app stylesheet vs the static site-pages.css set
 * inherit different body line-heights and `li`/`a:hover` rules — this file
 * neutralises all of that). Relies only on the shared CSS custom properties
 * (--accent, --text-dim, --panel-border) that both stylesheets define.
 */

.site-footer {
    border-top: 1px solid var(--panel-border);
    margin-top: 32px;
    font-family:
        "Inter",
        -apple-system,
        system-ui,
        sans-serif;
    /* Pin line-height — host bodies differ (site-pages.css sets 1.6, the
     * landing stylesheet leaves it at normal), and the list `<li>` strut
     * inherits it, so unpinned the footer link rows are taller on one host
     * than the other. Multi-line bits (tagline/about) override below. */
    line-height: 1.2;
    /* Pin smoothing — the landing stylesheet leaves it at the OS default
     * (subpixel/heavier) while site-pages.css sets antialiased. Without this
     * the same footer text renders at a different weight per host page. */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 24px 96px;
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
    gap: 64px;
    align-items: start;
    color: var(--text-dim);
}

.site-footer-inner > div {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer-brand img {
    display: block;
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.site-footer-name {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 13px;
    font-weight: 600;
}

.site-footer-tagline {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dim);
    max-width: 28ch;
}

.site-footer-label {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 10px;
    font-family: ui-monospace, "JetBrains Mono", monospace;
}

.site-footer-about {
    margin: 0;
    max-width: 64ch;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-dim);
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer-links li {
    margin: 0;
}

.site-footer-links a {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.site-footer-links a:hover {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 720px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
