/* ============================================================
   MAIN — global styles only
   Component CSS lives in components/*.css and is loaded
   individually by base.html so each file stays focused.
   Tokens come from theme.css (loaded first).
   ============================================================ */

/* ----- Reset & base ----- */
html, body {
    height: 100%;
    margin: 0;
}

body {
    height: 100vh;
    overflow: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

/* ----- Accessibility: respect reduced-motion users (NFR-07) ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

main, #main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content-row {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    min-height: 0;
}

.content-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ----- Responsive visibility helpers ----- */
/* .mobile-only  — shown only at ≤991.98px
   .desktop-only — shown only at ≥992px
   Use plain `hidden`/inline styles to override per-element if needed. */

.mobile-only {
    display: none;
}
