/* ==========================================================================
   Pixel LED Animator 3 — shared chrome (2026-11-26)
   Extracted from v3-home-20260929d.css. The homepage loads this sheet instead
   of that file; every other page still loads v3-home-20260929d.css.

   Only the rules the homepage still needs live here: the --pla-* tokens the
   shared header/footer partials read, document-level defaults, the footer
   layout grid and the screenshot dialog's box and close button. Colour and
   typography for the homepage chrome belong to v3-home-20261125a.css, which
   loads after this sheet.
   ========================================================================== */

:root {
    --pla-surface: #ffffff;
    --pla-surface-2: #e9edf1;
    --pla-surface-3: #dce2e8;
    --pla-text: #15181d;
    --pla-muted: #5c6570;
    --pla-border: #cdd4dc;
    --pla-accent: #087f8c;
    --pla-focus: #12aebe;
    --pla-shadow: 0 18px 50px rgba(17, 22, 29, 0.16);
}

html.dark {
    --pla-surface: #171b21;
    --pla-surface-2: #1e242c;
    --pla-surface-3: #272e37;
    --pla-text: #f4f7fa;
    --pla-muted: #bdc6d0;
    --pla-border: #303843;
    --pla-accent: #2bc2d1;
    --pla-focus: #51d4df;
    --pla-shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    color: var(--pla-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

.v3-home {
    overflow: hidden;
}

.v3-lightbox {
    max-width: 1500px;
    margin: auto;
    overflow: auto;
}

.v3-lightbox p {
    margin: 0;
}

.v3-lightbox-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: var(--pla-surface-2);
    border: 1px solid var(--pla-border);
    border-radius: 4px;
    color: var(--pla-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.v3-footer-inner {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(120px, auto) minmax(160px, auto) auto;
    align-items: start;
    margin: 0 auto;
}

.v3-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v3-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.v3-footer-links > strong {
    font-weight: 700;
    text-transform: uppercase;
}

.v3-site-footer nav,
.v3-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

#top-link {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .v3-footer-inner {
        grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(140px, auto));
    }

    .v3-footer-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 62px;
    }

    .v3-footer-inner {
        grid-template-columns: 1fr;
    }

    .v3-footer-meta {
        grid-column: auto;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
