/* Consensus Economics — News & Articles index */

body.cei-news-index .site-content,
body.cei-news-index .site-content > .wrap,
body.cei-news-index .site-content .wrap {
    max-width: none;
}

body.cei-news-index #primary.cei-news-primary,
.site-content #primary.cei-news-primary,
#primary.cei-news-primary {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.cei-news-page {
    --news-navy: #123f69;
    --news-blue: #2776b9;
    --news-blue-dark: #185d93;
    --news-slate: #5d7184;
    --news-text: #30495d;
    --news-border: #d9e4ec;
    --news-soft: #f4f8fb;
    --news-pale: #eef6fb;
    color: var(--news-text);
    font-family: 'Rubik', Arial, sans-serif;
}

.cei-news-page *,
.cei-news-page *::before,
.cei-news-page *::after {
    box-sizing: border-box;
}

.cei-news-shell {
    width: calc(100% - 48px);
    max-width: 1180px;
    margin: 0 auto;
}

.cei-news-hero {
    padding: 72px 0 58px;
    background: linear-gradient(180deg, #f5f9fc 0%, #fff 100%);
    border-bottom: 1px solid #edf2f6;
}

.cei-news-hero-inner {
    text-align: center;
}

.cei-news-eyebrow,
.cei-news-section-eyebrow {
    display: block;
    margin-bottom: 11px;
    color: var(--news-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.cei-news-hero h1 {
    max-width: 820px;
    margin: 0 auto;
    color: var(--news-navy);
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-align: center;
    text-transform: none;
    word-spacing: normal;
}

.cei-news-hero > .cei-news-shell > p,
.cei-news-hero-inner > p {
    max-width: 700px;
    margin: 19px auto 0;
    color: var(--news-slate);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    text-align: center;
}

.cei-news-topics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 930px;
    margin: 30px auto 0;
}

.cei-news-topics-label {
    color: #748596;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cei-news-topic-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.cei-news-topic-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #ccdae5;
    border-radius: 999px;
    background: #fff;
    color: #41627d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.cei-news-topic-links a:hover,
.cei-news-topic-links a:focus-visible {
    border-color: #92b8d4;
    background: var(--news-pale);
    color: var(--news-navy);
}

.cei-news-content {
    padding-top: 58px;
    padding-bottom: 66px;
}

.cei-news-section-head {
    margin-bottom: 22px;
}

.cei-news-section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.cei-news-section-head h2 {
    margin: 0;
    color: var(--news-navy);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.02em;
    text-align: left;
    text-transform: none;
    word-spacing: normal;
}

.cei-news-feature-section {
    margin-bottom: 64px;
}

.cei-news-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    overflow: hidden;
    min-height: 380px;
    background: #fff;
}

.cei-news-feature-card.no-media {
    grid-template-columns: 1fr;
    min-height: 0;
}

.cei-news-feature-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 44px 38px 0;
}

.cei-news-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.cei-news-topic {
    color: var(--news-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cei-news-meta-row time {
    color: #7a8b99;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.cei-news-feature-card h3,
.cei-news-card h3 {
    margin: 0;
    padding: 0;
    text-align: left;
    text-transform: none;
    word-spacing: normal;
}

.cei-news-feature-card h3 {
    max-width: 720px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.cei-news-feature-card h3 a,
.cei-news-card h3 a {
    color: var(--news-navy);
    text-decoration: none;
}

.cei-news-feature-card h3 a:hover,
.cei-news-feature-card h3 a:focus-visible,
.cei-news-card h3 a:hover,
.cei-news-card h3 a:focus-visible {
    color: var(--news-blue);
}

.cei-news-feature-copy > p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #52697b;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    text-align: left;
}

.cei-news-read {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-top: 24px;
    color: var(--news-blue);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}

.cei-news-read:hover,
.cei-news-read:focus-visible {
    color: var(--news-blue-dark);
    text-decoration: none;
    text-underline-offset: 3px;
}

.cei-news-feature-media,
.cei-news-card-media {
    display: block;
    overflow: hidden;
    background: #eaf1f6;
}

.cei-news-feature-media {
    min-height: 400px;
}

.cei-news-feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.cei-news-card-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 245px;
    object-fit: contain;
}

.cei-news-feature-card:hover .cei-news-feature-media img {
    transform: scale(1.015);
}

.cei-news-samples-link {
    color: var(--news-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cei-news-samples-link:hover,
.cei-news-samples-link:focus-visible {
    color: var(--news-blue-dark);
    text-decoration: none;
    text-underline-offset: 3px;
}

.cei-news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 40px;
}

.cei-news-card {
    display: flex;
    min-width: 0;
    min-height: 245px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cei-news-card-media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 40%;
    min-height: 0;
    padding: 8px 0;
    overflow: visible;
    background: transparent;
}

.cei-news-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 8px 0 10px 22px;
}

.cei-news-card:not(:has(.cei-news-card-media)) .cei-news-card-body {
    padding-left: 0;
}

.cei-news-card h3 {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -.012em;
}

.cei-news-card-body > p {
    margin: 13px 0 0;
    color: #5b6f80;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.62;
    text-align: left;
}

.cei-news-card .cei-news-read {
    margin-top: auto;
    padding-top: 19px;
}

.cei-news-pagination {
    margin-top: 42px;
}

.cei-news-pagination .navigation.pagination {
    margin: 0;
    padding: 0;
    border: 0;
}

.cei-news-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
}

.cei-news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid #cfdce6;
    border-radius: 7px;
    background: #fff;
    color: var(--news-navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.cei-news-pagination .page-numbers.current {
    border-color: var(--news-navy);
    background: var(--news-navy);
    color: #fff;
}

.cei-news-pagination a.page-numbers:hover,
.cei-news-pagination a.page-numbers:focus-visible {
    border-color: #93b7d1;
    background: var(--news-pale);
}

.cei-news-empty {
    padding: 50px 0;
    text-align: center;
}

.cei-news-empty h2 {
    color: var(--news-navy);
    text-align: center;
}

.cei-news-cta {
    padding: 54px 0;
    background: var(--news-soft);
    border-top: 1px solid #e5edf3;
}

.cei-news-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.cei-news-cta-inner h2 {
    margin: 0;
    color: var(--news-navy);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.018em;
    text-align: left;
    text-transform: none;
    word-spacing: normal;
}

.cei-news-cta-inner p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--news-slate);
    font-size: 15.5px;
    line-height: 1.6;
}

.cei-news-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.cei-news-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.cei-news-button-secondary {
    border: 1px solid #a9c6da;
    background: #fff;
    color: var(--news-navy);
}

.cei-news-button-primary {
    gap: 7px;
    border: 1px solid var(--news-navy);
    background: var(--news-navy);
    color: #fff;
}

.cei-news-button:hover,
.cei-news-button:focus-visible {
    transform: translateY(-1px);
}

.cei-news-button-secondary:hover,
.cei-news-button-secondary:focus-visible {
    background: #eef6fb;
}

.cei-news-button-primary:hover,
.cei-news-button-primary:focus-visible {
    border-color: #18567f;
    background: #18567f;
    color: #fff;
}

@media (max-width: 1000px) {
    .cei-news-feature-card {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .cei-news-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .cei-news-card-media {
        flex-basis: 36%;
    }
}

@media (max-width: 767px) {
    .cei-news-shell {
        width: calc(100% - 32px);
    }

    .cei-news-hero {
        padding: 48px 0 40px;
    }

    .cei-news-hero h1 {
        font-size: 38px;
        line-height: 1.1;
    }

    .cei-news-hero-inner > p {
        margin-top: 14px;
        font-size: 16px;
    }

    .cei-news-topics {
        align-items: stretch;
        flex-direction: column;
        margin-top: 24px;
    }

    .cei-news-topics-label {
        text-align: center;
    }

    .cei-news-content {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .cei-news-feature-section {
        margin-bottom: 48px;
    }

    .cei-news-section-head-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .cei-news-section-head h2 {
        font-size: 27px;
    }

    .cei-news-feature-card,
    .cei-news-feature-card.has-media {
        display: flex;
        flex-direction: column-reverse;
        min-height: 0;
    }

    .cei-news-feature-copy {
        padding: 28px 24px 30px;
    }

    .cei-news-feature-card h3 {
        font-size: 28px;
    }

    .cei-news-feature-media {
        min-height: 230px;
        max-height: 300px;
    }

    .cei-news-card {
        flex-direction: column;
        min-height: 0;
    }

    .cei-news-grid {
        gap: 42px;
    }

    .cei-news-card-media {
        flex: none;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .cei-news-card-media img {
        max-height: 240px;
    }

    .cei-news-card-body {
        padding: 18px 0 6px;
    }

    .cei-news-card h3 {
        font-size: 20px;
    }

    .cei-news-cta-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
    }

    .cei-news-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cei-news-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .cei-news-shell {
        width: calc(100% - 24px);
    }

    .cei-news-hero h1 {
        font-size: 34px;
    }

    .cei-news-topic-links a {
        font-size: 14px;
    }

    .cei-news-meta-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .cei-news-feature-copy {
        padding: 24px 20px 26px;
    }

    .cei-news-feature-card h3 {
        font-size: 25px;
    }

    .cei-news-card-media img {
        max-height: 185px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cei-news-page *,
    .cei-news-page *::before,
    .cei-news-page *::after {
        scroll-behavior: auto;
        transition: none;
    }
}

/* Featured research: keep supporting charts secondary to the article copy. */
@media (min-width: 1001px) {
    .cei-news-feature-card.has-media {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
        min-height: 360px;
    }

    .cei-news-feature-card.has-media .cei-news-feature-media {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 360px;
        padding: 22px 20px;
        background: #fff;
    }

    .cei-news-feature-card.has-media .cei-news-feature-media img {
        width: 100%;
        height: auto;
        max-width: 470px;
        max-height: 300px;
        margin: auto;
        object-fit: contain;
    }
}

@media (min-width: 768px) and (max-width: 1000px) {
    .cei-news-feature-card.has-media {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 42%);
        min-height: 350px;
    }

    .cei-news-feature-card.has-media .cei-news-feature-media {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 350px;
        padding: 18px;
        background: #fff;
    }

    .cei-news-feature-card.has-media .cei-news-feature-media img {
        width: 100%;
        height: auto;
        max-height: 285px;
        object-fit: contain;
    }
}

@media (max-width: 767px) {
    .cei-news-feature-card.has-media .cei-news-feature-media img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
    }
}


/* Editorial metadata + excerpt refinement */
.cei-news-page .cei-news-meta-row {
    justify-content: flex-start;
    gap: 9px;
}

.cei-news-page .cei-news-meta-row time {
    display: inline-flex;
    align-items: center;
}

.cei-news-page .cei-news-meta-row time::before {
    margin-right: 9px;
    color: #a8b6c1;
    content: "•";
}

.cei-news-page .cei-news-card-body > p {
    margin-top: 14px;
}

.cei-news-page .cei-news-feature-copy > p {
    margin-top: 17px;
}

.cei-news-page .cei-news-topic {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6fb;
}

@media (max-width: 420px) {
    .cei-news-page .cei-news-meta-row {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px;
    }

    .cei-news-page .cei-news-meta-row time::before {
        margin-right: 7px;
    }
}
/* News & Articles hero subtitle — keep on one line on desktop. */
@media (min-width: 768px) {
    .cei-news-hero > .cei-news-shell > p,
    .cei-news-hero-inner > p {
        max-width: none;
        white-space: nowrap;
    }




/* CEI — calmer editorial hero weight */

    .cei-news-hero h1 {
        font-weight: 550;
        line-height: 1.08;
    }
}
@media (max-width: 767px) {
    .cei-news-hero h1 {
        font-weight: 600;
    }
}
