/* Country-forecast cover: delivery-format card below the report image.
   Country detail routes do not always load the publication showcase CSS. */
.country-forecast-modern .country-modern-hero .g7-delivery-formats {
    width: min(100%, 350px);
    margin: 20px auto 0;
    padding: 14px 16px 15px;
    border: 1px solid #dbe5ec;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    text-align: left;
}

.country-forecast-modern .country-modern-hero .g7-delivery-formats-title {
    display: block;
    margin-bottom: 12px;
    color: #6b7d8b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.country-forecast-modern .country-modern-hero .g7-delivery-formats-grid {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: 12px 14px;
    align-items: center;
}

.country-forecast-modern .country-modern-hero .g7-delivery-format {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-width: 0;
    min-height: 30px;
}

.country-forecast-modern .country-modern-hero .g7-delivery-format-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #176a9d;
}

.country-forecast-modern .country-modern-hero .g7-delivery-format-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.country-forecast-modern .country-modern-hero .g7-delivery-format-label {
    color: #214860;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.18;
}

@media (max-width: 767px) {
    .country-forecast-modern .country-modern-hero .g7-delivery-formats {
        width: min(100%, 310px);
        margin-top: 18px;
    }
}

body.single-publications.country-forecast-modern {
    background: #fff;
}
/* Apply the approved homepage grid texture to the country hero only, keeping
   the publication cover and text above the decorative layer. */
.country-forecast-modern .country-modern-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.country-forecast-modern .country-modern-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("images/banner-bg-img.jpg");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
    opacity: .38;
    -webkit-mask-image: radial-gradient(ellipse 66% 76% at 57% 42%, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .62) 34%, rgba(0, 0, 0, .26) 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 66% 76% at 57% 42%, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .62) 34%, rgba(0, 0, 0, .26) 70%, transparent 100%);
}

.country-forecast-modern .country-modern-hero > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .country-forecast-modern .country-modern-hero::before {
        background-position: 62% center;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 52%, #000 100%);
        mask-image: linear-gradient(to right, transparent 0%, transparent 52%, #000 100%);
    }
}
.country-forecast-modern .country-forecast-page-v3 {
    padding-top: 34px;
    padding-bottom: 64px;
}
.country-forecast-modern .country-modern-hero .g7-hero-lead {
    max-width: 730px;
    color: #3f4f5e;
    font-size: 17px;
    line-height: 1.66;
}
.country-forecast-modern .country-modern-hero .country-hero-secondary,
.country-forecast-modern .country-modern-hero .country-hero-secondary p {
    max-width: 730px;
    color: #5d6f7d;
    font-size: 17px;
    line-height: 1.62;
}
.country-forecast-modern .country-snapshot-card {
    margin: 0 0 34px;
    padding: 0 0 26px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #dfe7ed;
    border-radius: 0;
}
.country-forecast-modern .country-snapshot-copy,
.country-forecast-modern .country-snapshot-copy p {
    max-width: none;
    color: #3f4f5e;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}
.country-forecast-modern .country-section-stack {
    gap: 0;
}
.country-forecast-modern .country-detail-section {
    padding: 32px 0 34px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.country-forecast-modern .country-detail-section-heading {
    margin-bottom: 17px;
}
.country-forecast-modern .country-detail-section-heading h2 {
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -.018em;
}
.country-forecast-modern .country-detail-section-body,
.country-forecast-modern .country-detail-section-body p {
    max-width: none;
    color: #4a5e70;
    font-size: 14.5px;
    line-height: 1.7;
    text-align: left;
}
.country-forecast-modern .country-module-list-variables {
    border-top: 1px solid #d9e3ea;
    border-bottom: 1px solid #d9e3ea;
}
.country-forecast-modern .country-module-list-variables li {
    border-bottom: 1px solid #e7edf1;
    column-gap: 10px;
}
.country-forecast-modern .country-module-list-variables li:nth-child(odd) {
    border-right: 1px solid #d9e3ea;
}
.country-forecast-modern .country-section-consensus {
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
    background: #f7f9fb;
    border-color: #d9e3ea;
}
.country-forecast-modern .country-section-consensus .country-detail-section-body img {
    border-radius: 5px;
    box-shadow: 0 6px 18px rgba(21,59,92,.045);
}
.country-forecast-modern .country-section-special,
.country-forecast-modern .country-section-sources,
.country-forecast-modern .country-section-coverage {
    background: transparent;
}
.country-forecast-modern .country-special-survey-grid,
.country-forecast-modern .country-module-list-sources {
    gap: 0;
    border-top: 1px solid #d9e3ea;
    border-bottom: 1px solid #d9e3ea;
}
.country-forecast-modern .country-special-survey-card,
.country-forecast-modern .country-module-list-sources li {
    min-height: 0;
    padding: 18px 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.country-forecast-modern .country-special-survey-card:nth-child(odd),
.country-forecast-modern .country-module-list-sources li:nth-child(odd) {
    border-right: 1px solid #d9e3ea;
}
.country-forecast-modern .country-special-survey-card:nth-child(n+3),
.country-forecast-modern .country-module-list-sources li:nth-child(n+3) {
    border-top: 1px solid #e7edf1;
}
.country-forecast-modern a.country-special-survey-card,
.country-forecast-modern .country-detail-section-body a.country-special-survey-card {
    border-bottom: 0;
}
.country-forecast-modern .country-special-survey-card.is-linked:hover,
.country-forecast-modern .country-special-survey-card.is-linked:focus {
    background: #fbfcfd;
    border-color: #d9e3ea;
    box-shadow: none;
    transform: none;
}
.country-forecast-modern .country-section-coverage {
    border-bottom: 0;
}
.country-forecast-modern .country-data-cta {
    min-width: 0;
    padding: 0 0 4px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(40,116,166,.35);
    border-radius: 0;
    color: #2874a6;
}
.country-forecast-modern .country-data-cta:hover,
.country-forecast-modern .country-data-cta:focus {
    background: transparent;
    color: #153b5c;
    border-color: #153b5c;
    transform: none;
}
.country-forecast-modern .country-additional-panel {
    padding: 20px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.country-forecast-modern .country-region-explore {
    margin-top: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

@media (max-width: 640px) {
    .country-forecast-modern .country-modern-hero .g7-hero-lead,
    .country-forecast-modern .country-modern-hero .country-hero-secondary,
    .country-forecast-modern .country-modern-hero .country-hero-secondary p {
        font-size: 16px;
    }
    .country-forecast-modern .country-detail-section,
    .country-forecast-modern .country-snapshot-card {
        padding-left: 0;
        padding-right: 0;
    }
    .country-forecast-modern .country-section-consensus {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .country-forecast-modern .country-module-list-variables li:nth-child(odd),
    .country-forecast-modern .country-special-survey-card:nth-child(odd),
    .country-forecast-modern .country-module-list-sources li:nth-child(odd) {
        border-right: 0;
    }
    .country-forecast-modern .country-module-list-variables li + li,
    .country-forecast-modern .country-special-survey-card + .country-special-survey-card,
    .country-forecast-modern .country-module-list-sources li + li {
        border-top: 1px solid #e7edf1;
    }
}
body.cei-country-forecast-normalized .entry-header,
body.cei-country-forecast-normalized .page-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 52px 24px 30px;
    text-align: center;
}

body.cei-country-forecast-normalized .entry-title,
body.cei-country-forecast-normalized .page-title {
    color: #153b5c;
    font-size: clamp(38px, 4.2vw, 50px);
    line-height: 1.07;
    letter-spacing: -.028em;
    text-align: center;
}

body.cei-country-forecast-normalized .entry-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

body.cei-country-forecast-normalized .entry-content h2 {
    margin: 42px 0 16px;
    padding-top: 0;
    border-top: 0;
    color: #153b5c;
    font-size: 28px;
    line-height: 1.2;
    text-align: left;
}

body.cei-country-forecast-normalized .entry-content h2:not(:first-child) {
    padding-top: 32px;
    border-top: 1px solid #d9e3ea;
}

body.cei-country-forecast-normalized .entry-content h3 {
    color: #173f5e;
    font-size: 18px;
    line-height: 1.3;
    text-align: left;
}

body.cei-country-forecast-normalized .entry-content p,
body.cei-country-forecast-normalized .entry-content li {
    color: #3f4f5e;
    font-size: 14px;
    line-height: 1.68;
    text-align: left;
    text-justify: auto;
}

body.cei-country-forecast-normalized .entry-content ul,
body.cei-country-forecast-normalized .entry-content ol {
    margin-left: 20px;
}

body.cei-country-forecast-normalized .entry-content table {
    width: 100%;
    margin: 22px 0 34px;
    border: 1px solid #d9e3ea;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

body.cei-country-forecast-normalized .entry-content table th,
body.cei-country-forecast-normalized .entry-content table td {
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #e7edf1;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
@media (min-width: 992px) {
    .g7-section-heading {
        text-align: left;
    }

    .g7-section-heading > h2::before {
        margin-left: 0;
        margin-right: 0;
    }
}

.country-variables-grid,
.country-variable-grid,
.forecast-variables-grid,
.variables-surveyed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    border: 0;
    background: transparent;
}

.country-variables-grid > *,
.country-variable-grid > *,
.forecast-variables-grid > *,
.variables-surveyed-grid > * {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 14px 10px 30px;
    margin: 0;
    border: 1px solid #d9e3ea;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: none;

    color: #183e5c;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
}
.country-variables-grid > *::before,
.country-variable-grid > *::before,
.forecast-variables-grid > *::before,
.variables-surveyed-grid > *::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 50%;
    width: 8px;
    height: 2px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #5f9ec7;
    transform: translateY(-50%);
}
.country-variables-grid > *::marker,
.country-variable-grid > *::marker,
.forecast-variables-grid > *::marker,
.variables-surveyed-grid > *::marker {
    content: "";
}
@media (hover: hover) and (pointer: fine) {
    .country-variables-grid > a:hover,
    .country-variable-grid > a:hover,
    .forecast-variables-grid > a:hover,
    .variables-surveyed-grid > a:hover,
    .country-variables-grid > li:has(a):hover,
    .country-variable-grid > li:has(a):hover,
    .forecast-variables-grid > li:has(a):hover,
    .variables-surveyed-grid > li:has(a):hover {
        border-color: #b7cbd8;
        background: #fbfdfe;
        box-shadow: 0 6px 14px rgba(21, 59, 92, .045);
    }
}

@media (max-width: 991px) {
    .country-variables-grid,
    .country-variable-grid,
    .forecast-variables-grid,
    .variables-surveyed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .country-variables-grid,
    .country-variable-grid,
    .forecast-variables-grid,
    .variables-surveyed-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .country-variables-grid > *,
    .country-variable-grid > *,
    .forecast-variables-grid > *,
    .variables-surveyed-grid > * {
        min-height: 44px;
        padding-top: 9px;
        padding-bottom: 9px;
        font-size: 13px;
    }
}

.country-forecast-modern .country-section-variables {
    background: transparent;
}

.country-forecast-modern .country-section-variables .country-detail-section-body {
    background: transparent;
}
.country-forecast-modern .country-section-variables
.country-detail-section-body > table:empty,
.country-forecast-modern .country-section-variables
.country-detail-section-body > p:empty,
.country-forecast-modern .country-section-variables
.country-detail-section-body > div:empty,
.country-forecast-modern .country-section-variables
.country-detail-section-body > hr {
    display: none;
}
.country-forecast-modern .country-module-list-variables {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
}

.country-forecast-modern .country-module-list-variables li {
    padding: 10px 14px 10px 31px;

    background: #ffffff;
    border: 1px solid #d8e3ea;
    border-radius: 6px;
    box-shadow: none;

    color: #183e5c;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    position: relative;
    margin: 0;
    list-style: none;
    align-items: center;
}
.country-forecast-modern .country-module-list-variables li::before {
    border: 0;
    display: block;
    left: 16px;
    content: "";
    width: 4px;
    height: 4px;
    align-self: center;
    justify-self: center;
    position: static;
    margin: 0;
}
.country-forecast-modern .country-module-list-variables li a {
    color: inherit;
    border-bottom: 0;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .country-forecast-modern .country-module-list-variables li:has(a):hover,
    .country-forecast-modern .country-module-list-variables li:has(a):focus-within {
        background: #fbfdfe;
        border-color: #b7cbd8;
        box-shadow: 0 6px 14px rgba(21, 59, 92, .045);
    }
}

@media (max-width: 900px) {
    .country-forecast-modern .country-module-list-variables {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .country-forecast-modern .country-module-list-variables {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .country-forecast-modern .country-module-list-variables li {
        min-height: 44px;
        padding-top: 9px;
        padding-bottom: 9px;
        font-size: 13px;
    }
    .country-forecast-modern .country-module-list-variables li:nth-child(odd) {
        border-right: 1px solid #d8e3ea;
    }

    .country-forecast-modern .country-module-list-variables li + li {
        border-top: 1px solid #d8e3ea;
    }
}
.country-forecast-modern .country-module-list-variables li {
    padding-top: 5px;
    padding-bottom: 5px;
    display: grid;
    grid-template-columns: 6px minmax(0, 1fr);
    min-height: 48px;
    line-height: 1.30;
}

.country-forecast-modern .country-module-list-variables li::before {
    background: #5f9ec7;
    border-radius: 50%;
}

.country-forecast-modern .country-module-list-variables li {
    padding-left: 14px;
    padding-right: 14px;
}
.country-forecast-modern .country-section-stack {
    border-top: 0;
}

.country-forecast-modern .country-detail-section {
    border-bottom: 0;
}

.country-forecast-modern .country-detail-section + .country-detail-section {
    margin-top: 4px;
    padding-top: 30px;
}
.country-forecast-modern .country-additional-panel {
    border-top: 0;
}
@media (min-width: 900px) {
    .country-forecast-modern .country-forecast-page-v3 .country-forecast-shell,
    .country-forecast-modern .country-forecast-page-v3 .country-forecast-content {
        max-width: 1080px;
    }

    .country-forecast-modern .country-detail-section-heading {
        max-width: 900px;
    }

    .country-forecast-modern .country-snapshot-copy,
    .country-forecast-modern .country-snapshot-copy p,
    .country-forecast-modern .country-detail-section-body,
    .country-forecast-modern .country-detail-section-body p {
        max-width: 920px;
    }
    .country-forecast-modern .country-detail-section-body table,
    .country-forecast-modern .country-detail-section-body figure,
    .country-forecast-modern .country-detail-section-body img,
    .country-forecast-modern .country-detail-section-body .wp-block-table,
    .country-forecast-modern .country-detail-section-body .wp-block-image {
        max-width: 100%;
    }
    body.regional-publication-modern .g7-modern-hero p,
    body.foreign-exchange-modern .g7-modern-hero p,
    body.energy-metals-modern .g7-modern-hero p,
    .g7-western-europe-modern .g7-modern-hero .g7-hero-lead,
    .g7-western-europe-modern .g7-modern-hero .g7-hero-lead p {
        max-width: 900px;
    }

    body.regional-publication-modern .g7-section-heading,
    body.foreign-exchange-modern .g7-section-heading,
    body.energy-metals-modern .g7-section-heading,
    .g7-western-europe-modern .g7-publication-page .g7-section-heading,
    .g7-western-europe-modern .g7-included .g7-section-heading {
        max-width: 940px;
    }
    .special-publication-modern .special-publication-detail-content {
        max-width: 1040px;
    }

    .special-publication-modern .special-publication-detail-content > p,
    .special-publication-modern .special-publication-detail-content > ul,
    .special-publication-modern .special-publication-detail-content > ol {
        max-width: 920px;
    }



    body.single-publications.country-forecast-modern .country-snapshot-copy,
    body.single-publications.country-forecast-modern .country-snapshot-copy > p,
    body.single-publications.country-forecast-modern .country-detail-section-heading,
    body.single-publications.country-forecast-modern .country-detail-section-body,
    body.single-publications.country-forecast-modern .country-detail-section-body > p,
    body.single-publications.country-forecast-modern .country-detail-section-body > ul,
    body.single-publications.country-forecast-modern .country-detail-section-body > ol {
        max-width: none;
        width: 100%;
    }

    body.single-publications.country-forecast-modern .country-region-explore-heading {
        max-width: none;
        width: 100%;
    }

    body.single-publications.country-forecast-modern .country-region-explore-heading > p {
        max-width: none;
        width: 100%;
    }
}
