/* 888 Capital Home Health Indicator */
.home-health-widget {
    position: fixed;
    top: 78px;
    right: 24px;
    z-index: 1020;
    display: flex;
    width: min(430px, calc(100vw - 48px));
    min-height: 70px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(13, 17, 23, .94);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .38);
    backdrop-filter: blur(12px);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.home-health-widget:hover { transform: translateY(-1px); }
.home-health-main {
    display: flex;
    flex: 1;
    gap: 13px;
    align-items: center;
    min-width: 0;
    padding: 13px 15px;
    color: #fff;
    text-decoration: none;
}
.home-health-main:hover { color: #fff; }
.home-health-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    font-size: 19px;
    background: rgba(255, 255, 255, .08);
}
.home-health-copy { display: grid; min-width: 0; line-height: 1.2; }
.home-health-copy strong { font-size: 13px; letter-spacing: .06em; }
.home-health-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255, 255, 255, .64);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-health-arrow { margin-left: auto; color: rgba(255, 255, 255, .38); }
.home-health-alerts {
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    border-left: 1px solid rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}
.home-health-alerts:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.home-health-healthy { border-color: rgba(49, 210, 132, .44); box-shadow: 0 12px 35px rgba(0, 0, 0, .38), 0 0 22px rgba(49, 210, 132, .08); }
.home-health-healthy .home-health-icon { color: #31d284; background: rgba(49, 210, 132, .12); }
.home-health-warning { border-color: rgba(255, 184, 44, .58); box-shadow: 0 12px 35px rgba(0, 0, 0, .38), 0 0 24px rgba(255, 184, 44, .11); }
.home-health-warning .home-health-icon { color: #ffb82c; background: rgba(255, 184, 44, .14); }
.home-health-critical { border-color: rgba(255, 76, 91, .66); box-shadow: 0 12px 35px rgba(0, 0, 0, .38), 0 0 28px rgba(255, 76, 91, .14); }
.home-health-critical .home-health-icon { color: #ff4c5b; background: rgba(255, 76, 91, .15); animation: home-health-pulse 1.9s infinite; }
.home-health-loading .home-health-icon { color: #42d4f4; }
@keyframes home-health-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 76, 91, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 76, 91, .28); } }
@media (max-width: 1199.98px) {
    .home-health-widget {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        z-index: 2;
        width: calc(100% - 24px);
        margin: 12px;
    }
}
@media (max-width: 767.98px) {
    .home-health-copy small { white-space: normal; }
}

/* 888_HOME_BLUE_GAP_FIX_V1
   The health strip supplies the spacing at compact widths. */
@media (max-width: 1199.98px) {
    .home-health-widget + .hc-home .hc-copy {
        padding-top: 0 !important;
    }
}

/* 888_HOME_HALF_SCREEN_FINAL_V1
   Half-screen laptop layout only; genuine phones remain vertical. */
@media (min-width: 600px) and (max-width: 767.98px) {
    .home-health-widget {
        margin-top: 20px !important;
    }

    .home-health-widget + .hc-home .hc-copy {
        width: 100% !important;
        padding: 18px 24px 14px !important;
    }

    .home-health-widget + .hc-home .hc-hero {
        padding-top: 0 !important;
        padding-bottom: 18px !important;
    }

    .home-health-widget + .hc-home .hc-pillars {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-template-rows: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        min-height: 150px !important;
        padding: 18px 12px 24px !important;
    }

    .home-health-widget + .hc-home .hc-pillar {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
        padding: 14px 10px !important;
    }

    .home-health-widget + .hc-home .hc-pillar h2 {
        margin: 0 0 8px !important;
        font-size: 16px !important;
        letter-spacing: .08em !important;
        white-space: nowrap !important;
    }

    .home-health-widget + .hc-home .hc-pillar h2::after {
        width: 76% !important;
        margin: 7px auto 0 !important;
    }

    .home-health-widget + .hc-home .hc-pillar p {
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    .home-health-widget + .hc-home .hc-pillar:not(:last-child)::after {
        display: block !important;
        content: "" !important;
        top: 12px !important;
        right: 0 !important;
        bottom: 12px !important;
        left: auto !important;
        width: 1px !important;
        height: auto !important;
        background: linear-gradient(180deg, transparent, rgba(157,183,197,.42), transparent) !important;
    }
}

/* 888_HOME_HALF_SCREEN_BOTTOM_V1
   Use the whole half-screen height and anchor the three principles. */
@media (min-width: 600px) and (max-width: 767.98px) {
    .home-health-widget + .hc-home {
        display: flex !important;
        flex-direction: column !important;
        min-height: calc(100svh - 172px) !important;
    }

    .home-health-widget + .hc-home .hc-hero {
        flex: 1 1 auto !important;
        min-height: 0 !important;
    }

    .home-health-widget + .hc-home .hc-pillars {
        flex: 0 0 auto !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
        padding-bottom: 16px !important;
    }
}

/* 888_HOME_SPREAD_MAIN_CONTENT_V1 */
.hc-identity {
    display: contents;
}

@media (min-width: 600px) and (max-width: 767.98px) {
    .home-health-widget + .hc-home .hc-hero {
        display: flex !important;
    }

    .home-health-widget + .hc-home .hc-copy {
        flex: 1 1 auto !important;
        align-self: stretch !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        padding: 28px 24px 30px !important;
    }

    .home-health-widget + .hc-home .hc-identity {
        display: block !important;
    }

    .home-health-widget + .hc-home .hc-identity .hc-signal {
        margin-bottom: 0 !important;
    }

    .home-health-widget + .hc-home .hc-intro,
    .home-health-widget + .hc-home .hc-quote {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

