/* Shared homepage / Recent Data credibility cards — sole style owner. */
/* First-screen credibility strip: deliberately inside the hero, below the CTAs.
   Shared proof-card component; keep cards visually separate without a
   container rule above them. */
.cei-home-hero__proof {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 57px;
    padding: 0 0 24px;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.cei-home-hero__stat {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 144px;
    padding: 22px 22px 20px;
    border: 1px solid #dbe6ed;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(18, 55, 82, .045);
    text-align: left;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.cei-home-hero__stat::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 20px;
    width: 42px;
    height: 2px;
    border-radius: 2px;
    background: #2874a6;
}
.cei-home-hero__stat strong,
.cei-home-hero__stat span {
    display: block;
    text-align: left;
    text-justify: auto;
    word-spacing: normal;
}
.cei-home-hero__stat strong {
    min-height: 1.15em;
    margin: 0;
    color: #153f62;
    font-size: clamp(29px, 2.3vw, 36px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.04;
}
.cei-home-hero__stat span {
    min-height: 2.8em;
    margin-top: 9px;
    color: #637789;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
/* Keep "Point-in-time forecasts" on the first grey line on wide screens.
   Its existing HTML line break puts "since 1989" on the second line. */
.cei-home-hero__stat--forecast-total span {
    max-width: none;
}
@media (min-width: 1280px) {
    .cei-home-hero__stat--forecast-total span {
        white-space: nowrap;
    }
}

@media (hover: hover) and (pointer: fine) {
    .cei-home-hero__stat:hover,
    .cei-home-hero__stat:focus-visible {
        transform: translateY(-2px);
        border-color: #c6d9e6;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 12px 28px rgba(18, 55, 82, .075);
    }
}


/* Premium homepage proof band: desktop-only. Tablet/phone cards and About-page
   shared styles retain their existing layout. Five links remain independently clickable. */
@media (min-width: 901px) {
    body.home .cei-home-hero__proof {
        gap: 0;
        margin-top: 60px;
        margin-bottom: 28px;
        padding: 12px 0;
        border: 1px solid #dce5ed;
        border-radius: 10px;
        background: rgba(255, 255, 255, .90);
        box-shadow: 0 6px 24px rgba(18, 55, 82, .025);
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat {
        min-height: 106px;
        padding: 16px clamp(12px, 1.65vw, 26px);
        border: 0;
        border-right: 1px solid #dce5ed;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat:last-child {
        border-right: 0;
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat::after {
        content: none;
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat strong {
        font-size: clamp(27px, 2.15vw, 33px);
        line-height: 1.08;
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat span {
        min-height: 0;
        margin-top: 10px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.45;
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat:hover,
    body.home .cei-home-hero__proof > .cei-home-hero__stat:focus-visible {
        background: #f4f8fb;
        box-shadow: none;
        transform: none;
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat:focus-visible {
        outline: 2px solid #3275a7;
        outline-offset: -3px;
    }
}

@media (max-width: 900px) {
    .cei-home-hero__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 42px; }
    .cei-home-hero__stat { min-height: 118px; padding: 20px 20px 18px; }
    .cei-home-hero__stat strong,
    .cei-home-hero__stat span { min-height: 0; max-width: none; }
    .cei-home-hero__stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .cei-home-hero__proof { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; padding-bottom: 18px; }
    .cei-home-hero__stat { min-height: 0; padding: 19px 20px 18px; }
    .cei-home-hero__stat:last-child { grid-column: auto; }
    .cei-home-hero__stat strong { font-size: 26px; }
    .cei-home-hero__stat span { font-size: 12px; }
}
/* Long-form forecast total: retain the full figure without crowding the five-column strip. */
.cei-home-hero__stat--forecast-total strong {
    font-size: clamp(27px, 2.05vw, 33px);
    letter-spacing: -0.035em;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cei-home-hero__stat--forecast-total strong {
        font-size: clamp(22px, 7vw, 29px);
    }
}


/* Shared statistics cards: the homepage and About page use the same
   one-time, opacity-only left-to-right entrance. No surrounding text moves. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes cei-home-stat-entrance {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    body.home .cei-home-hero__proof > .cei-home-hero__stat,
    .about-modern-page .about-modern-stats > .cei-home-hero__stat {
        animation: cei-home-stat-entrance 1500ms cubic-bezier(0.42, 0, 0.58, 1) both;
    }
    body.home .cei-home-hero__proof > .cei-home-hero__stat:nth-child(2),
    .about-modern-page .about-modern-stats > .cei-home-hero__stat:nth-child(2) { animation-delay: 300ms; }
    body.home .cei-home-hero__proof > .cei-home-hero__stat:nth-child(3),
    .about-modern-page .about-modern-stats > .cei-home-hero__stat:nth-child(3) { animation-delay: 600ms; }
    body.home .cei-home-hero__proof > .cei-home-hero__stat:nth-child(4),
    .about-modern-page .about-modern-stats > .cei-home-hero__stat:nth-child(4) { animation-delay: 900ms; }
    body.home .cei-home-hero__proof > .cei-home-hero__stat:nth-child(5),
    .about-modern-page .about-modern-stats > .cei-home-hero__stat:nth-child(5) { animation-delay: 1200ms; }
}
