/* Legacy consensus/publication content bridges extracted from custom.css; preserve source order. */
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content {
    color: var(--cei-text, #3f4f5e);
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-header .entry-title {
    margin: 0 0 22px;
    padding: 0;
    color: var(--cei-navy, #153b5c);
    font-family: 'Rubik', sans-serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: left;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > p:first-of-type {
    max-width: 960px;
    margin-bottom: 28px;
    color: #40566a;
    font-size: 17px;
    line-height: 1.65;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h2 {
    clear: both;
    margin: 36px 0 18px;
    padding: 0 0 10px;
    color: var(--cei-blue, #2874a6);
    font-family: 'Rubik', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    border-bottom: 1px solid var(--cei-border, #d9e3ea);
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h3:empty {
    display: none;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h3:not(:empty) {
    clear: both;
    box-sizing: border-box;
    margin: 24px 0 14px;
    padding: 11px 14px;
    background: #eef5fa;
    border: 1px solid #d9e3ea;
    border-radius: 8px;
    color: var(--cei-navy, #153b5c);
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h3:not(:empty) a {
    color: inherit;
    font-weight: inherit;
    text-decoration: none;
    box-shadow: none;
}

body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h3:not(:empty) a:hover,
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h3:not(:empty) a:focus {
    color: var(--cei-blue, #2874a6);
    text-decoration: none;
    text-underline-offset: 3px;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content p {
    color: inherit;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content img {
    display: block;
    float: left;
    box-sizing: border-box;
    width: auto;
    max-width: min(180px, 32%);
    height: auto;
    margin: 3px 22px 12px 0;
    padding: 0;
    background: #fff;
    border: 1px solid #d9e3ea;
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(1, 50, 93, 0.07);
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a:has(> img) {
    text-decoration: none;
    box-shadow: none;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content p a:not(:has(img)),
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content li a {
    color: var(--cei-link, #2874a6);
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 2px;
}

body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content p a:not(:has(img)):hover,
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content p a:not(:has(img)):focus,
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content li a:hover,
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content li a:focus {
    color: var(--cei-link-hover, #153b5c);
    text-decoration: underline;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h3,
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h2 {
    clear: both;
}
@media (max-width: 767px) {
    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-header .entry-title {
        margin-bottom: 18px;
        font-size: 26px;
    }

    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > p:first-of-type {
        margin-bottom: 24px;
        font-size: 16px;
    }

    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h2 {
        margin-top: 30px;
        font-size: 25px;
    }

    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content > h3:not(:empty) {
        margin-top: 20px;
        padding: 10px 12px;
        font-size: 19px;
        border-radius: 7px;
    }

    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content img {
        float: none;
        width: auto;
        max-width: min(100%, 280px);
        margin: 4px 0 14px;
    }

    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content p {
        font-size: 15.5px;
    }
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content :is(p, div):has(> a[href*="/registration/"]):has(> a[href*="/order-forecast-publications/"]) {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 32px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid #d9e3ea;
    text-align: left;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/registration/"],
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/order-forecast-publications/"] {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    min-height: 46px;
    margin: 0 8px 8px 0;
    padding: 11px 20px;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/registration/"] {
    color: #2874a6;
    background: #fff;
    border: 1px solid #9fc2dd;
}

body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/registration/"]:hover,
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/registration/"]:focus {
    color: #153b5c;
    background: #eef5fa;
    border-color: #6fa3c9;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(1, 50, 93, .08);
}
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/order-forecast-publications/"] {
    color: #fff;
    background: #2874a6;
    border: 1px solid #2874a6;
}

body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/order-forecast-publications/"]:hover,
body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/order-forecast-publications/"]:focus {
    color: #fff;
    background: #153b5c;
    border-color: #153b5c;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(1, 50, 93, .16);
}

@media (max-width: 520px) {
    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content :is(p, div):has(> a[href*="/registration/"]):has(> a[href*="/order-forecast-publications/"]) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/registration/"],
    body:has(.entry-content img[alt*="hardcopy" i]):has(.entry-content a[href*="api-continuous-consensus-forecasts"]) .site-content #primary .entry-content a[href*="/order-forecast-publications/"] {
        width: 100%;
        min-width: 0;
        margin: 0;
    }
}
body.page-template-default:has(.entry-content a[href*="/what-are-consensus-forecasts/"]):has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/quotes/"])
#primary:not(.left-content-publication) .entry-content figure.wp-caption {
    float: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 30px auto 8px;
    padding: 0;
    background: transparent;
    text-align: center;
}

body.page-template-default:has(.entry-content a[href*="/what-are-consensus-forecasts/"]):has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/quotes/"])
#primary:not(.left-content-publication) .entry-content figure.wp-caption img,
body.page-template-default:has(.entry-content a[href*="/what-are-consensus-forecasts/"]):has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/quotes/"])
#primary:not(.left-content-publication) .entry-content > img {
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--cei-border, #d9e3ea);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(1, 50, 93, .08);
}

body.page-template-default:has(.entry-content a[href*="/what-are-consensus-forecasts/"]):has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/quotes/"])
#primary:not(.left-content-publication) .entry-content figure.wp-caption .wp-caption-text,
body.page-template-default:has(.entry-content a[href*="/what-are-consensus-forecasts/"]):has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/quotes/"])
#primary:not(.left-content-publication) .entry-content figcaption {
    width: auto;
    margin: 8px 0 0;
    color: var(--cei-muted, #3f4f5e);
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-style: normal;
    line-height: 1.45;
    text-align: center;
}
body.page-template-default:has(.entry-content a[href*="/what-are-consensus-forecasts/"]):has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/quotes/"])
#primary:not(.left-content-publication) .entry-content > h2:first-of-type + p {
    color: #40566a;
    font-size: 17px;
    line-height: 1.65;
}

@media (max-width: 767px) {

    body.page-template-default:has(.entry-content a[href*="/what-are-consensus-forecasts/"]):has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/quotes/"])
    #primary:not(.left-content-publication) .entry-content > h2:first-of-type + p {
        font-size: 16px;
    }
}
body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content :is(p, div):has(> a[href*="/registration/"]):has(> a[href*="/order-forecast-publications/"]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 30px 0 34px;
    padding: 0;
    text-align: left;
}

body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/registration/"],
body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/order-forecast-publications/"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    min-height: 42px;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/registration/"] {
    color: #153b5c;
    background: #eef6fb;
    border-color: #9fc2dd;
}

body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/registration/"]:hover,
body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/registration/"]:focus {
    color: #153b5c;
    background: #dceef8;
    border-color: #6fa3c9;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(1, 50, 93, .10);
    transform: translateY(-1px);
}
body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/order-forecast-publications/"] {
    color: #fff;
    background: #153b5c;
    border-color: #153b5c;
}

body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/order-forecast-publications/"]:hover,
body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
#primary:not(.left-content-publication) .entry-content a[href*="/order-forecast-publications/"]:focus {
    color: #fff;
    background: #153b5c;
    border-color: #153b5c;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(1, 50, 93, .16);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
    #primary:not(.left-content-publication) .entry-content :is(p, div):has(> a[href*="/registration/"]):has(> a[href*="/order-forecast-publications/"]) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
    #primary:not(.left-content-publication) .entry-content a[href*="/registration/"],
    body.page-template-default:has(.entry-content a[href*="/research-bibliography/"]):has(.entry-content a[href*="/registration/"]):has(.entry-content a[href*="/order-forecast-publications/"])
    #primary:not(.left-content-publication) .entry-content a[href*="/order-forecast-publications/"] {
        width: 100%;
        min-width: 0;
    }
}
body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content p:has(a[href*="/registration/"]):has(a[href*="/order-forecast-publications/"]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 30px 0 34px;
    padding: 0;
    text-align: left;
}
body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/registration/"],
body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/order-forecast-publications/"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 154px;
    min-height: 42px;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/registration/"] {
    color: #153b5c;
    background: #eef6fb;
    border-color: #9fc2dd;
}

body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/registration/"]:hover,
body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/registration/"]:focus {
    color: #153b5c;
    background: #dceef8;
    border-color: #6fa3c9;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(1, 50, 93, .10);
    transform: translateY(-1px);
}
body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/order-forecast-publications/"] {
    color: #fff;
    background: #153b5c;
    border-color: #153b5c;
}

body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/order-forecast-publications/"]:hover,
body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
#primary .entry-content a[href*="/order-forecast-publications/"]:focus {
    color: #fff;
    background: #153b5c;
    border-color: #153b5c;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(1, 50, 93, .16);
    transform: translateY(-1px);
}

@media (max-width: 520px) {
    body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
    #primary .entry-content p:has(a[href*="/registration/"]):has(a[href*="/order-forecast-publications/"]) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
    #primary .entry-content a[href*="/registration/"],
    body:has(#primary .entry-content a[href*="/research-bibliography/"]):has(#primary .entry-content a[href*="/registration/"]):has(#primary .entry-content a[href*="/order-forecast-publications/"])
    #primary .entry-content a[href*="/order-forecast-publications/"] {
        width: 100%;
        min-width: 0;
    }
}
