/* Footer refinement — isolated overrides, preserving existing components. */
:root {
    /* The browser's user-preferred root font size remains authoritative (usually 16px). */
    --footer-edge-offset: var(--page-padding-y);
}

.site-footer,
.site-footer.site-footer--subpage {
    bottom: var(--footer-edge-offset);
}

.site-footer--subpage .site-footer__workshops,
.site-footer__workshops {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(0.25rem, 0.7vw, 0.625rem);
    justify-content: flex-start;
    letter-spacing: 0.07em;
    line-height: 1.4;
    white-space: nowrap;
}

.site-footer__workshops a {
    color: var(--color-red);
    font-size: inherit;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__workshops a:focus-visible,
.site-footer__workshops a:hover {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer__workshops > span {
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 47.99875rem) {
    /* In normal flow, the footer cannot obscure scrollable page content. */
    .site-footer,
    .site-footer.site-footer--subpage {
        position: relative;
        inset: auto;
        bottom: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 0;
        gap: 0.45rem;
        margin: 1.25rem var(--page-padding-x) var(--footer-edge-offset);
        padding: 0;
        text-align: center;
    }

    .site-footer--subpage .site-footer__workshops,
.site-footer__workshops {
        justify-content: center;
        flex-wrap: nowrap;
        gap: clamp(0.15rem, 1.4vw, 0.5rem);
        font-size: clamp(0.55rem, 2.2vw, 0.7rem);
        letter-spacing: 0;
        line-height: 1.5;
    }

    .site-footer--subpage .site-footer__edition,
.site-footer__edition {
        display: none;
    }

    .site-footer .scroll-cue {
        display: none;
    }
}
