/*
 * portal-base.css
 * ----------------------------------------------------------------------------
 * Cross-portal base styles.
 *
 * Phase 1: intentionally EMPTY. Phase 2 (and the per-portal migrations in
 * Phases 2–4) will land here when a clearly cross-portal style is identified
 * (e.g. a focus utility used by every portal's session-warning modal).
 *
 * Rules for this file:
 *   - No portal-specific selectors (no `.member-portal-...` etc.).
 *   - No tenant-specific overrides (those stay in per-portal Brand/ChildCss).
 *   - Use Bootstrap 5 utility classes whenever possible — only add CSS here
 *     when no BS5 utility exists.
 * ----------------------------------------------------------------------------
 */

/* CPV2 shell: pin footer to the bottom of the viewport when page content is short */
body[data-testid="cpv2-shell"] > #mainwrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body[data-testid="cpv2-shell"] > #mainwrapper > #mainContent {
    flex: 1 0 auto;
}

/* One modal backdrop everywhere Bootstrap modals are used (BS5 + legacy .in). */
.modal-backdrop {
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: 0.5;
    background-color: var(--bs-backdrop-bg);
}

.modal-backdrop.show,
.modal-backdrop.in {
    opacity: var(--bs-backdrop-opacity);
}

