/* Minimal overrides */
:root {
    --pico-font-size: 16px;
}
/* Make the body a flex column so main can grow and push the footer
   to the viewport bottom even when content is shorter than viewport.
*/
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto }
/* Hide elements waiting for alpine to bind. visibility (not display)
   preserves layout boxes so Chart.js / Leaflet can size canvases
   correctly during their IIFE. Soft fade once Alpine remove the
   attribute, so the page comes in as one composed block.
*/
[x-cloak] { visibility: hidden; opacity: 0; }
[x-data] { transition: opacity 150ms ease-out }
nav .brand {
    font-weight: 700;
    font-size: 1.2rem;
}
/* Keep site nav anchored to the top of the viewport so any sticky
   page-level HUD can dock just beneath it.
*/
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--pico-background-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
}
/* Mirror nav at the bottom: footer stays at viewport bottom while
   overflowing content scrolls under it. Falls back to its natural
   position when there's no overflow.
*/
.site-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: var(--pico-background-color);
    border-top: 1px solid var(--pico-muted-border-color);
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--pico-border-radius);
    margin-bottom: 1rem;
}
.flash-success { background: var(--pico-ins-color); }
.flash-error { background: var(--pico-del-color); }
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline;
}
