/* Consensus Economics — editorial typography hierarchy.
 * Keep this stylesheet after page, wide-layout and icon styles.
 * Only secondary/card/directory/form typography is refined here.
 * It does NOT alter H1/display titles, navigation, primary CTAs,
 * numbered steps, statistic numbers, charts, tables or layout geometry.
 * Applies at all breakpoints so the weight hierarchy stays consistent.
 */
:root {
    --cei-type-body: 400;
    --cei-type-label: 500;
    --cei-type-section: 600;
    --cei-type-display: 700;
}

/* Homepage — use-case cards and delivery route cards. */
body.home .home-decisions-benefits .home-decisions-benefit h4,
body.home .home-decisions-benefits .home-decisions-benefit h4 a,
body.home .home-data-delivery-route-title h3 {
    font-weight: var(--cei-type-section);
}
body.home .home-decisions-benefit p,
body.home .home-decisions-intro,
body.home .home-data-delivery-route-copy > p,
body.home .home-data-delivery-intro-note {
    font-weight: var(--cei-type-body);
}
body.home .home-data-delivery-route-proof,
body.home .home-data-delivery-use {
    font-weight: var(--cei-type-label);
}

/* Publication discovery — the product titles remain clear, but not
 * as dense as the important page titles and numerical information. */
.efp-page .efp-choice strong,
.efp-page .efp-publications .forecast-card h3,
.efp-page .efp-publications .forecast-card h3 a {
    font-weight: var(--cei-type-section);
}
.efp-page .efp-choice > span:not(.efp-choice-label),
.efp-page .efp-section-heading p,
.efp-page .efp-support p {
    font-weight: var(--cei-type-body);
}
.efp-page .efp-choice-label,
.efp-page .efp-publications .forecast-card-kicker {
    font-weight: var(--cei-type-label);
}

/* Country directory — keep links easy to scan without changing
 * their four-column layout or their existing font sizes. */
.efc-page .efc-region-card h3,
.efc-page .efc-country-page-feature h3 {
    font-weight: var(--cei-type-section);
}
.efc-page .efc-region-country-links a,
.efc-page .efc-letter-block a,
.efc-page .efc-region-card > p,
.efc-page .efc-country-page-feature p {
    font-weight: var(--cei-type-body);
}
.efc-page .efc-country-name,
.efc-page .efc-directory-help {
    font-weight: var(--cei-type-label);
}

/* Data access, Excel and API — moderate feature titles and labels. */
.dd-route h3,
.dd-institutional-card h3,
.dd-use-grid h3,
.cei-excel-feature h3,
.cei-api-benefit h3,
.cei-api-compare-card h3 {
    font-weight: var(--cei-type-section);
}
.dd-route p,
.dd-institutional-card p,
.dd-use-grid p,
.cei-api-benefit p,
.cei-excel-feature p,
.cei-api-compare-card p {
    font-weight: var(--cei-type-body);
}
.dd-route-label,
.dd-proof span,
.dd-card-kicker,
.cei-api-proof span,
.cei-api-tech-card__label,
.cei-api-compare-card__eyebrow {
    font-weight: var(--cei-type-label);
}

/* Statistical captions only. The numbers themselves remain unchanged. */
body.home .cei-home-hero__stat span,
.about-modern-stats .cei-home-hero__stat span,
.efc-proof-item span {
    font-weight: var(--cei-type-label);
}

/* Form fields — preserve action buttons, required markers and steps. */
.registration-modern .registration-field label,
.registration-modern .registration-field .control-label,
.cei-order-modern-body .order-field > label {
    font-weight: var(--cei-type-label);
}
.registration-modern .registration-agreement p,
.cei-order-modern-body .order-field label small {
    font-weight: var(--cei-type-body);
}

/* FAQ titles are questions, rather than large section headings. */
.cei-common-faq summary,
.cei-site-faq summary {
    font-weight: var(--cei-type-section);
}
.cei-common-faq__answer p,
.cei-site-faq__answer p {
    font-weight: var(--cei-type-body);
}

/* Footer — restrained link typography with clear group headings. */
.site-footer .cei-footer-column h2 {
    font-weight: var(--cei-type-section);
}
.site-footer .cei-footer-column a:not(.cei-footer-action) {
    font-weight: var(--cei-type-body);
}

/* Selected long-form pages: compact in-page navigation; never part of the site header. */
.cei-page-jumps { padding: 16px 24px; background: #f4f8fb; border-block: 1px solid #dce6ee; font-family: Rubik, Arial, sans-serif; }
.cei-page-jumps__inner { max-width: 1180px; margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.cei-page-jumps__title { flex: 0 0 auto; color: #173f63; font-size: 13px; font-weight: 700; }
.cei-page-jumps__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 19px; }
.cei-page-jumps__links a, .cei-page-jumps__mobile-links a { color: #235c86; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.cei-page-jumps a:hover { color: #153c5d; text-decoration: underline; text-underline-offset: 3px; }
.cei-page-jumps a:focus-visible, .cei-page-jumps summary:focus-visible { outline: 2px solid #2874a6; outline-offset: 3px; border-radius: 2px; }
.cei-page-jumps__mobile { display: none; }
:is(.data-delivery-page, .cei-excel-page, .cei-api-page, .efp-page, .consensus-explainer-page) [id]:target { scroll-margin-top: 100px; }
@media (max-width: 767px) {
  .cei-page-jumps { padding: 10px 16px; }
  .cei-page-jumps__title, .cei-page-jumps__links { display: none; }
  .cei-page-jumps__mobile { display: block; width: 100%; }
  .cei-page-jumps__mobile summary { padding: 9px 2px; min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #173f63; font-size: 14px; font-weight: 700; }
  .cei-page-jumps__mobile-links { display: grid; gap: 0; padding-block: 4px 10px; }
  .cei-page-jumps__mobile-links a { display: block; padding: 12px 6px; min-height: 44px; border-top: 1px solid #dae6ee; }
  :is(.data-delivery-page, .cei-excel-page, .cei-api-page, .efp-page, .consensus-explainer-page) [id]:target { scroll-margin-top: 76px; }
}

/* Compact related-page navigation for selected long-form pages. */
.cei-related-pages { padding: 36px 24px 40px; background: #f7f9fb; border-block: 1px solid #e0e8ee; font-family: Rubik, Arial, sans-serif; }
.cei-related-pages__inner { max-width: 1180px; margin: 0 auto; }
.cei-related-pages__intro { margin-bottom: 18px; }
.cei-related-pages__eyebrow { display: block; margin-bottom: 5px; color: #396d93; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.cei-related-pages__intro h2 { margin: 0; color: #173f63; font-size: clamp(22px, 2.5vw, 27px); line-height: 1.25; text-align: left; }
.cei-related-pages__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cei-related-pages__card { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 20px; background: #fff; border: 1px solid #dce6ee; border-radius: 10px; color: #173f63; text-decoration: none; transition: border-color .18s ease, background-color .18s ease; }
.cei-related-pages__card:visited { color: #173f63; }
.cei-related-pages__card:hover { border-color: #8eafc6; background: #fbfdff; text-decoration: none; }
.cei-related-pages__card:focus-visible { outline: 3px solid #2874a6; outline-offset: 3px; }
.cei-related-pages__card strong { font-size: 17px; line-height: 1.3; font-weight: 650; }
.cei-related-pages__description { color: #506679; font-size: 14px; line-height: 1.5; }
.cei-related-pages__arrow { margin-top: auto; padding-top: 5px; color: #246b9a; font-size: 13px; font-weight: 700; }
@media (max-width: 767px) {
  .cei-related-pages { padding: 28px 16px 30px; }
  .cei-related-pages__grid { grid-template-columns: 1fr; gap: 9px; }
  .cei-related-pages__card { padding: 16px 18px; gap: 7px; }
  .cei-related-pages__card strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cei-related-pages__card { transition: none; } }
