/* Sticky footer: when main content is shorter than the viewport, footer sits at
   the bottom with no white gap below (layout-shell used by _Layout.cshtml). */

/* Page chrome background — loaded in AEM + non-AEM (site.css is skipped in AEM mode).
   html + body + main paint #F5F5F7 so margins/gaps between widgets show grey, not default white. */
html {
    height: 100%;
    background-color: #F5F5F7;
}

body.layout-body {
    background-color: #F5F5F7;
    /* Match AEM origin's default text color (clientlib-site.css ships
       `body { color: #2B2B2B }`). Bootstrap's reset would otherwise leave
       inherited text at #212529 — visibly blacker than origin on widget
       headings/paragraphs that have no inline color. */
    color: #2B2B2B;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body.layout-body.layout-body--minimal > .layout-main--minimal {
    flex: 1 1 auto;
    width: 100%;
    background-color: #F5F5F7;
}

body.layout-body:not(.layout-body--minimal) .layout-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    background-color: #F5F5F7;
}

body.layout-body:not(.layout-body--minimal) .layout-main {
    flex: 1 1 auto;
    width: 100%;
    background-color: #F5F5F7;
}

/* Bootstrap path: inner container still inherits grey strip behind full-width widgets */
body.layout-body .layout-main .layout-content {
    background-color: #F5F5F7;
}

body.layout-body:not(.layout-body--minimal) .layout-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* AEM CTA button (default variant): origin's clientlib-site.css paints
   `.cta-button-root .btn` with white text on orange bg. SIT inherits
   Bootstrap's `.btn { color: #212529 }`, leaving the CTA text dark on
   orange — visible regression on banner CTAs like "Pay Now" on
   /personal/postpaid-pay-bill banner 2. Force white for the default
   variant only.
   AEM marks non-default variants with EITHER prefix `variant-*` OR
   `ss-*` (sample classes observed on origin pages):
     - variant-orange-outline-transparent-bg
     - ss-orange-outline-transparent-bg
   Both paint their own colors (typically orange text on transparent
   bg) and MUST NOT be overridden — otherwise the white text becomes
   invisible against a white parent background, which regressed the
   pill buttons reported after !40211. */
body.layout-body
    .cta-button-root:not([class*="variant-"]):not([class*="ss-"]) .btn {
    color: #fff;
}
