/* ============================================================
   CNP global chrome (header + footer)
   Ported from the Action Center reference (CNP Header_Footer.html).
   Palette values extracted from actioncenter.centerpointenergy.com
   compiled CSS. Header height lives in site.css (--header-height).
   ============================================================ */
:root {
    --cnp-dark-blue: #1a4570;
    --cnp-darkest-blue: #1a4570;
    --cnp-primary-blue: #0070cc;
    --cnp-primary-blue-hover: #005fad;
    --cnp-primary-blue-active: #004782;
    --cnp-secondary-grey: #f1f5f9;
    --cnp-grey-2: #e2e8f0;
    --cnp-grey-3: #cbd5e1;
    --cnp-dark-grey: #28333c;
    --cnp-light-grey: #c8c8c8;
    --cnp-container-max-width: 120rem;
}

/* TrustArc injects its Cookie Preferences widget into #teconsent and forces it
   visible with an inline style; the footer's "Your Privacy Choices" button is
   the user-facing entry point, so keep the widget hidden (!important beats the
   inline style). Its trigger still works hidden — .click() fires regardless. */
#teconsent {
    display: none !important;
}

/* TrustArc's fade=15000 adds .ta-hide/.ta-display-hide to the cookie banner
   15s after load, but its own `div#truste-consent-track:not(.manual-close)`
   rule (specificity 1-1-1, later in cascade) force-shows the banner until
   manually closed, so the configured fade never lands — same on the live
   Action Center. These selectors (1-2-1) outrank it so the fade works. */
div#truste-consent-track.ta-hide:not(.manual-close) {
    visibility: hidden !important;
    opacity: 0 !important;
}

div#truste-consent-track.ta-display-hide:not(.manual-close) {
    display: none !important;
}

/* ─────────────── Header ─────────────── */
.cnp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: var(--header-height);
    background-color: var(--cnp-dark-blue);
}

.cnp-header-inner {
    max-width: var(--cnp-container-max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
}

.cnp-header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.cnp-header-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.cnp-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cnp-header-nav li {
    display: flex;
    height: 100%;
    margin: 0;
}

.cnp-header-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    padding: 0 1.5rem;
    background-color: var(--cnp-darkest-blue);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cnp-header-nav-item:hover,
.cnp-header-nav-item:focus-visible {
    background-color: #fff;
    color: var(--cnp-primary-blue-hover);
    border-bottom-color: var(--cnp-primary-blue-hover);
    outline: none;
}

.cnp-header-nav-item.active {
    border-bottom-color: #fff;
}

/* Counter site.css's global .dropdown-toggle !important hover/focus rules
   so the account item matches the other header nav items */
.cnp-header .cnp-header-nav-item.dropdown-toggle:hover,
.cnp-header .cnp-header-nav-item.dropdown-toggle:focus {
    background-color: #fff !important;
    color: var(--cnp-primary-blue-hover) !important;
    border-color: transparent transparent var(--cnp-primary-blue-hover) !important;
    box-shadow: none !important;
}

/* Account dropdown wrapper — full bar height so the item fills it */
.cnp-header-account {
    height: 100%;
    align-items: center;
}

.cnp-header-account .dropdown-menu {
    margin-top: 0;
}

/* Mobile hamburger (two bars, per reference) */
.cnp-header-toggler {
    background: none;
    border: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0.375rem;
}

.cnp-header-toggler span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: #fff;
}

.cnp-header-toggler:focus-visible {
    outline: 2px solid #fff;
}

@media (max-width: 991.98px) {
    .cnp-header-inner {
        padding: 0 1.5rem;
    }
}

/* ─────────────── Footer ─────────────── */
.cnp-footer {
    width: 100%;
}

/* Band 1 — grey corporate links */
.cnp-footer-corporate {
    background-color: var(--cnp-secondary-grey);
    border-top: 1px solid var(--cnp-grey-3);
}

.cnp-footer-corporate-inner {
    max-width: var(--cnp-container-max-width);
    margin: 0 auto;
    padding: 2.5rem 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 4rem;
}

.cnp-footer-corporate-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cnp-primary-blue);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cnp-footer-corporate-link:hover,
.cnp-footer-corporate-link:focus-visible {
    color: var(--cnp-primary-blue-hover);
    text-decoration: underline;
}

.cnp-footer-corporate-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Band 2 — dark blue */
.cnp-footer-main {
    background-color: var(--cnp-dark-blue);
    color: #fff;
}

.cnp-footer-main-inner {
    max-width: var(--cnp-container-max-width);
    margin: 0 auto;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.cnp-footer-logo img {
    height: 87px;
    width: auto;
    display: block;
}

.cnp-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.cnp-footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.cnp-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    transition: opacity 0.15s ease;
}

.cnp-footer-social a:hover,
.cnp-footer-social a:focus-visible {
    opacity: 0.75;
}

.cnp-footer-social svg {
    width: 24px;
    height: 24px;
}

.cnp-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.cnp-footer-legal a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.cnp-footer-legal a:hover,
.cnp-footer-legal a:focus-visible {
    text-decoration: underline;
}

.cnp-footer-legal-sep {
    color: #fff;
    font-weight: 700;
}

.cnp-footer-copyright {
    color: var(--cnp-light-grey);
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .cnp-footer-corporate-inner {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .cnp-footer-main-inner {
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .cnp-footer-logo img {
        height: 78px;
    }

    .cnp-footer-right {
        align-items: flex-start;
        width: 100%;
    }

    .cnp-footer-social {
        justify-content: flex-start;
    }

    .cnp-footer-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        font-size: 1.125rem;
    }

    .cnp-footer-legal-sep {
        display: none;
    }

    .cnp-footer-copyright {
        font-size: 0.9375rem;
    }
}
