/* Consensus Economics — Research Quotations link treatment
   Scoped to /quotes/ so global buttons/navigation are unaffected. */

.research-quotes-page .special-research-content a,
.research-quotes-page .special-research-content a:visited,
.research-quotes-page .special-research-content a *,
.research-quotes-page .special-research-content a:visited * {
    color: #2874a6;
    text-decoration: none;
}

.research-quotes-page .special-research-content a:hover,
.research-quotes-page .special-research-content a:focus,
.research-quotes-page .special-research-content a:hover *,
.research-quotes-page .special-research-content a:focus * {
    color: #2874a6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Keep the citation/source copy itself neutral; only actual links are blue. */
.research-quotes-page .special-research-content .research-quote-source {
    color: #153b5c;
}

/* ========================================================================
   CEI 2026-10-02 — Main-site typography alignment
   Bring the Quotes hero and section hierarchy into the same editorial system
   used by the site's primary informational pages. Layout/content unchanged.
   ======================================================================== */
.research-quotes-page .special-research-hero .special-research-title,
.research-quotes-page .special-research-hero h1 {
    font-family: var(--cei-font-editorial, Georgia, "Times New Roman", serif);
    font-size: clamp(40px, 4.5vw, 54px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.research-quotes-page .special-research-hero .special-research-deck,
.research-quotes-page .special-research-hero > p {
    font-family: 'Rubik', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

.research-quotes-page .special-research-content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.015em;
}

.research-quotes-page .special-research-content h3,
.research-quotes-page .special-research-content h4 {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
}

.research-quotes-page .special-research-content,
.research-quotes-page .special-research-content p {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.68;
}

@media (max-width: 767px) {
    .research-quotes-page .special-research-hero .special-research-title,
    .research-quotes-page .special-research-hero h1 {
        font-size: 35px;
        font-weight: 400;
        line-height: 1.08;
    }

    .research-quotes-page .special-research-content h2 {
        font-size: 27px;
        line-height: 1.2;
    }
}

/* Quotes editorial grouping: the sources and quotations themselves are not
   rewritten. The jump menu is emitted only when grouping was possible. */
.research-quotes-page .research-quotes-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 0 0 28px;
    padding: 14px 0;
    border-top: 1px solid #dce6ed;
    border-bottom: 1px solid #dce6ed;
}
.research-quotes-page .research-quotes-jump span {
    color: #738494;
    font-size: 13px;
    font-weight: 600;
}
.research-quotes-page .research-quotes-jump a {
    color: #2874a6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.research-quotes-page .research-quotes-jump a:hover,
.research-quotes-page .research-quotes-jump a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.research-quotes-page .research-quotes-group {
    max-width: 100%;
    scroll-margin-top: 100px;
}
.research-quotes-page .research-quotes-group + .research-quotes-group {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid #dce6ed;
}
.research-quotes-page .special-research-content .research-quotes-group-title {
    margin: 0 0 18px;
    padding: 0;
    color: #153b5c;
    font-family: var(--cei-font-editorial, Georgia, 'Times New Roman', serif);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.2;
}
.research-quotes-page .research-quotes-entry {
    margin-bottom: 26px;
}
@media (max-width: 640px) {
    .research-quotes-page .research-quotes-jump span { width: 100%; }
    .research-quotes-page .research-quotes-entry { margin-bottom: 22px; }
}

.research-quotes-page .special-research-content .research-quotes-intro {
    margin: 0 0 24px;
    max-width: 880px;
    color: #536b7d;
    font-weight: 400;
}


/* Research & Insights — coordinated editorial readability pass. */
.research-quotes-page .special-research-content { font-size: 16px; line-height: 1.65; }
.research-quotes-page .research-quotes-group-title { letter-spacing: -.025em; line-height: 1.2; }
.research-quotes-page .research-quotes-entry { margin-bottom: 30px; padding-bottom: 22px; }
.research-quotes-page .research-quotes-entry p { max-width: 78ch; line-height: 1.67; }
.research-quotes-page .research-quotes-entry .research-quote-source { margin-top: 10px; font-size: 14px; line-height: 1.5; }
.research-quotes-page a:focus-visible { outline: 2px solid #2876a6; outline-offset: 3px; }
@media (max-width: 767px) {
 .research-quotes-page .research-quotes-entry { margin-bottom: 22px; padding-bottom: 16px; }
 .research-quotes-page .research-quotes-entry p { font-size: 15.5px; line-height: 1.62; }
 .research-quotes-page .research-quotes-group-title { line-height: 1.24; }
}

/* Quotes page: keep the research text and bottom CTA in document flow.
   Legacy grid/float styles must not collapse the CTA heading into a narrow rail. */
.research-quotes-page .special-research-shell > .special-research-content {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.research-quotes-page .special-research-shell > .special-research-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    clear: both;
    width: 100%;
    min-width: 0;
    margin-top: 34px;
}

.research-quotes-page .special-research-cta-copy {
    flex: 1 1 360px;
    min-width: min(100%, 280px);
}

.research-quotes-page .special-research-cta-copy strong {
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 900px) {
    .research-quotes-page .special-research-cta-copy {
        flex-basis: 100%;
        min-width: 0;
    }
}

/* Quotes page is a full-width research article, not a legacy WP two-column page.
   Match the desktop selector in style.css that floats .entry-content to the right
   at 58% width; do not modify that shared rule for other page templates. */
body.page-two-column:not(.archive) #primary article.research-quotes-page .entry-content.special-research-content,
body #primary article.research-quotes-page .entry-content.special-research-content {
    display: block;
    box-sizing: border-box;
    float: none;
    clear: both;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Quotes: use the full centred editorial rail, not the legacy split-page width. */
@media (min-width: 768px) {
    body .site-content .special-research-wrap:has(.research-quotes-page) {
        box-sizing: border-box;
        width: min(100% - 48px, 1280px);
        max-width: 1280px;
        margin-inline: auto;
        padding-inline: 0;
    }
    body .site-content .special-research-wrap .research-quotes-page .special-research-shell {
        width: 100%;
        max-width: none;
        margin-inline: auto;
    }
    body .site-content .special-research-wrap:has(.research-quotes-page) #primary.special-research-primary {
        width: 100%;
        max-width: none;
        float: none;
    }
}
