/* Consensus Economics — country forecast detail page widths
   Loaded after shared/custom styles. Intentionally scoped to the
   country-forecast-modern body class so it cannot affect search/nav. */

@media (min-width: 900px) {
  body.single-publications.country-forecast-modern .country-forecast-page-v3 {
    max-width: 1220px;
  }

  body.single-publications.country-forecast-modern .country-forecast-page-v3 .country-forecast-shell,
  body.single-publications.country-forecast-modern .country-forecast-page-v3 .country-forecast-content,
  body.single-publications.country-forecast-modern .country-content-body-v3 {
    max-width: 1180px;
  }

  /* Keep country introduction copy comfortably readable on wide screens.
     Only the text is capped; the hero layout and the rest of the page stay wide. */
  body.single-publications.country-forecast-modern .country-modern-hero .g7-hero-lead,
  body.single-publications.country-forecast-modern .country-modern-hero .g7-hero-lead p,
  body.single-publications.country-forecast-modern .country-modern-hero .country-hero-secondary,
  body.single-publications.country-forecast-modern .country-modern-hero .country-hero-secondary p {
    max-width: 900px;
  }

  /* Economic snapshot. */
  body.single-publications.country-forecast-modern .country-snapshot-card {
    max-width: none;
  }

  .country-forecast-modern .country-snapshot-copy,
  .country-forecast-modern .country-snapshot-copy p {
    display: block;
    max-width: none;
  }

  /* Country analysis and equivalent editorial modules. */
  body.single-publications.country-forecast-modern .country-detail-section {
    max-width: none;
  }

  .country-forecast-modern .country-detail-section-heading,
  .country-forecast-modern .country-detail-section-body,
  .country-forecast-modern .country-detail-section-body > p,
  .country-forecast-modern .country-detail-section-body > ul:not(.country-module-list),
  .country-forecast-modern .country-detail-section-body > ol:not(.country-module-list) {
    display: block;
    max-width: none;
  }

  body.single-publications.country-forecast-modern .country-detail-section-body table,
  body.single-publications.country-forecast-modern .country-detail-section-body figure,
  body.single-publications.country-forecast-modern .country-detail-section-body img,
  body.single-publications.country-forecast-modern .country-detail-section-body .wp-block-table,
  body.single-publications.country-forecast-modern .country-detail-section-body .wp-block-image {
    max-width: 100%;
  }

  /* Regional coverage. */
  body.single-publications.country-forecast-modern .country-region-explore {
    max-width: 1180px;
  }

  .country-forecast-modern .country-region-explore-heading,
  .country-forecast-modern .country-region-explore-heading p {
    display: block;
    max-width: none;
  }
}

/* Decorative graph-paper texture is not used on country detail surfaces. */
body.single-publications.country-forecast-modern .country-snapshot-card,
body.single-publications.country-forecast-modern .country-detail-section,
body.single-publications.country-forecast-modern .country-region-explore,
body.single-publications.country-forecast-modern .country-proof-strip {
  background-image: none;
}

body.single-publications.country-forecast-modern .country-snapshot-card::before,
body.single-publications.country-forecast-modern .country-detail-section::before,
body.single-publications.country-forecast-modern .country-region-explore::before,
body.single-publications.country-forecast-modern .country-proof-strip::before {
  background-image: none;
}


/* Final country-detail width authority: these sections should use the full module width. */
@media (min-width: 900px) {
  .country-forecast-modern .country-snapshot-card .country-snapshot-copy,
  .country-forecast-modern .country-snapshot-card .country-snapshot-copy > p,
  .country-forecast-modern .country-detail-section .country-detail-section-heading,
  .country-forecast-modern .country-detail-section .country-detail-section-body,
  .country-forecast-modern .country-detail-section .country-detail-section-body > p,
  .country-forecast-modern .country-region-explore .country-region-explore-heading,
  .country-forecast-modern .country-region-explore .country-region-explore-heading > p {
    max-width: none;
  }
}

/* Avoid short, isolated final lines in introductory country descriptions.
   Do not change headings, body copy, card grids, or mobile container widths. */
body.single-publications.country-forecast-modern .country-modern-hero .g7-hero-lead,
body.single-publications.country-forecast-modern .country-modern-hero .g7-hero-lead p,
body.single-publications.country-forecast-modern .country-modern-hero .country-hero-secondary,
body.single-publications.country-forecast-modern .country-modern-hero .country-hero-secondary p {
  text-wrap: pretty;
}
