/* Visual edition — local artwork, paper surfaces and comfortable long reads. */
:root { --ep-muted: #626d77; --text-muted: #626d77; }
[data-theme="dark"] { --ep-muted: #a5b0bc; --text-muted: #a5b0bc; }
body.ep-body {
    background-image: radial-gradient(var(--ep-line) .65px, transparent .65px);
    background-size: 7px 7px;
}
.ep-home { background: var(--ep-paper); }
.ep-main :is(h1,h2,h3,h4) { text-wrap: pretty; overflow-wrap: break-word; }
.ep-main :is(a,button,input,select,textarea,summary):focus-visible {
    outline: 3px solid var(--ep-accent); outline-offset: 4px;
}
.ep-main :is(.content-primary,.content-sidebar) { min-width: 0; }
[data-theme="dark"] .ep-logo__mark { color: var(--ep-blue); }
.ep-main .btn-primary { color: #fff; background: #17466b; }
.ep-btn--accent { color: #fff; background: #a92d2b; }
.ep-main :is(.btn,.share-btn) { min-height: 44px; }
.ep-lead__art { height: auto; aspect-ratio: 16 / 9; background: #eae2cb; }
.ep-lead__art::after { background: linear-gradient(0deg,rgba(7,27,38,.68),transparent 38%); }
.ep-cover-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.ep-lead__art :is(.ep-lead__art-grid,.ep-lead__art-route,.ep-lead__art-index,.ep-lead__art-corner) { display: none; }
.ep-lead__art-stamp { top: auto; bottom: 18px; left: 22px; font-size: 13px; letter-spacing: .14em; }
.ep-lead__art-stamp small { font-size: 10px; color: #fff; margin-top: 5px; }
.ep-lead__title { font-size: clamp(29px,2.8vw,40px); line-height: 1.2; }
.ep-sublead__image { display: block; margin-bottom: 18px; overflow: hidden; border-radius: 3px; }
.ep-sublead__image img { display: block; width: 100%; height: auto; aspect-ratio: 2.9; object-fit: cover; transition: transform .35s ease; }
.ep-sublead__image:hover img { transform: scale(1.035); }
.ep-sublead__title { line-height: 1.3; }
.ep-byline__text { min-width: 0; }
.ep-byline__text small { line-height: 1.5; max-width: 45ch; }
.ep-byline__date { flex-shrink: 0; }
.ep-section-lead,.ep-rubric p,.ep-tool p { font-size: 15px; line-height: 1.7; }
.ep-rubrics__grid { gap: 16px; border: 0; background: transparent; }
.ep-rubric { border: 1px solid var(--ep-line); border-radius: 4px; background-image: linear-gradient(135deg,transparent 65%,var(--ep-cream) 65%); }
.ep-rubric__icon { color: var(--ep-blue); opacity: .45; }
.ep-country { overflow: hidden; border-radius: 4px; padding-right: 30px; }
.ep-country::before { content: ''; position: absolute; width: 140px; height: 140px; right: -35px; top: -35px; border: 1px solid var(--ep-line); border-radius: 50%; box-shadow: 0 0 0 16px var(--ep-cream),0 0 0 17px var(--ep-line); pointer-events: none; }
.ep-country > * { position: relative; }
.ep-country__exports { font-size: 13px; line-height: 1.65; }
.ep-feature::before { background: url('/assets/images/editorial/markets.svg') right center / auto 120% no-repeat; opacity: .16; }
.ep-feature__intro p { color: #d1dce3; font-size: 16px; }
.ep-feature__item-cat { color: #bcccd5; }
.ep-cta { background-image: linear-gradient(120deg,transparent,var(--ep-cream)); }
/* A defined reading column instead of a dense full-width wall of text. */
.ep-main .main-content-layout { gap: 32px; padding-top: 32px; padding-bottom: 64px; }
.ep-main :is(.single-article-view,.country-guide-view) { border-radius: 5px; padding: clamp(22px,3.2vw,44px); box-shadow: 0 10px 40px -25px #173c5040; }
.ep-main .article-title { font-size: clamp(28px,3vw,42px); line-height: 1.19; letter-spacing: -.025em; }
.ep-main .article-meta-top { font-size: 12px; gap: 10px 16px; }
.ep-main .article-lead { font-size: 18px; line-height: 1.75; padding: 20px 24px; background: var(--ep-cream); border-left-color: var(--ep-accent); }
.ep-main .article-author-card { background: transparent; border: 0; padding: 0; }
.ep-main .author-avatar { flex-shrink: 0; }
.ep-main .author-role { line-height: 1.6; }
.ep-main .article-body { max-width: 72ch; margin-inline: auto; font-size: 18px; line-height: 1.85; letter-spacing: 0; }
.ep-main .article-body p { font-size: inherit; line-height: inherit; margin-bottom: 1.3em; }
.ep-main .article-body :is(h2,h3) { scroll-margin-top: 100px; line-height: 1.3; }
.ep-main .article-body h2 { font-size: clamp(24px,2.2vw,30px); margin-top: 1.9em; padding-top: 22px; border-top: 1px solid var(--ep-line); }
.ep-main .article-body h3 { font-size: 22px; margin-top: 1.5em; }
.ep-main .article-body :is(ul,ol) { padding-left: 1.5em; }
.ep-main .article-body li { margin-bottom: .65em; }
.ep-main .article-body a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* Do not underline every UI link just because it is inside an article. */
.ep-main .single-article-view :is(.badge,.share-btn,.related-card,.btn) { text-decoration: none; }
.ep-main .single-article-view .btn-primary { color: #fff; background: #17466b; }
.ep-article-visual { margin: 0 0 30px; }
.ep-article-visual img { width: 100%; height: auto; max-height: 275px; aspect-ratio: 2.7; object-fit: cover; border-radius: 3px; display: block; }
.ep-article-visual figcaption { font-size: 11px; color: var(--ep-muted); padding-top: 8px; letter-spacing: .03em; }
.ep-reading-toc { background: var(--ep-cream); padding: 20px 24px; border: 1px solid var(--ep-line); border-radius: 4px; margin-bottom: 32px; }
.ep-reading-toc summary { font-weight: 700; font-size: 16px; cursor: pointer; }
.ep-reading-toc ol { padding-left: 22px; margin: 16px 0 0; display: grid; gap: 10px; }
.ep-main .ep-reading-toc a { color: var(--ep-blue); text-decoration: none; font-size: 14px; line-height: 1.55; }
.ep-main .ep-reading-toc a:hover { text-decoration: underline; }
.ep-main .table-responsive { border: 1px solid var(--ep-line); border-radius: 4px; margin: 28px 0; max-width: 100%; }
.ep-main .article-body table { font-size: 15px; line-height: 1.65; margin: 0; }
.ep-main .article-body th { background: var(--ep-navy-2); color: #fff; font-weight: 600; }
.ep-main .article-body :is(td,th) { padding: 14px 16px; vertical-align: top; }
.ep-main .article-body tbody tr:nth-child(even) { background: var(--ep-cream); }
.ep-main :is(.article-takeaways-box,.country-block) { background: var(--ep-cream); border-color: var(--ep-line); }
.ep-main :is(.article-share-bar,.archive-card-footer) { flex-wrap: wrap; gap: 12px; }
.ep-main :is(input,select,textarea) { max-width: 100%; }
.ep-main :is(.sidebar-widget,.related-card,.archive-article-card) { border-radius: 4px; }
.ep-main .sidebar-widget { padding: 24px; }
.ep-main .trending-title { line-height: 1.5; }
.ep-main .tool-mini-desc { font-size: 12px; }
/* Rubric opening artwork sits beside text, never behind it. */
.ep-main .section-archive-header { position: relative; overflow: hidden; padding: 28px; background: var(--ep-surface); border: 1px solid var(--ep-line); border-top: 3px solid var(--ep-accent); border-radius: 4px; }
.ep-archive-visual { width: 100%; height: auto; aspect-ratio: 3.2; object-fit: cover; display: block; border-radius: 2px; margin-bottom: 24px; }
.ep-main .archive-title { font-size: clamp(29px,3vw,40px); line-height: 1.2; }
.ep-main .archive-description { font-size: 16px; line-height: 1.75; }
.ep-main .archive-article-card { padding: 28px; margin-bottom: 18px; }
.ep-main .archive-card-title { font-size: 25px; line-height: 1.35; }
.ep-main .archive-card-excerpt { font-size: 16px; line-height: 1.8; }
.ep-main .filter-pill { font-size: 13px; padding: 9px 14px; }
.ep-main .block-text { font-size: 17px; line-height: 1.85; }
.ep-main .country-guide-header { background: var(--ep-cream); padding: 24px; border-radius: 4px; }
.ep-main .guide-title { line-height: 1.2; }
@media(min-width: 1200px) {
    .ep-main .main-content-layout { grid-template-columns: minmax(0,1fr) 290px; }
}
@media(max-width: 760px) {
    .ep-main .main-content-layout { gap: 28px; padding-top: 20px; }
    .ep-main :is(.single-article-view,.country-guide-view) { padding: 22px 18px; }
    .ep-main .article-body { font-size: 17px; line-height: 1.8; }
    .ep-main .article-lead { font-size: 17px; padding: 16px; }
    .ep-main .article-meta-top { gap: 8px 12px; }
    .ep-main :is(.section-archive-header,.archive-article-card) { padding: 22px 18px; }
    .ep-main .archive-card-title { font-size: 23px; }
    .ep-reading-toc { padding: 18px; }
    .ep-article-visual img { aspect-ratio: 2; }
    .ep-main .country-key-stats-grid { grid-template-columns: 1fr; }
    .ep-main .country-hero-badge { flex-wrap: wrap; }
    .ep-byline { flex-wrap: wrap; }
    .ep-byline__text { flex: 1; }
    .ep-byline__date { margin-left: 45px; }
}
@media(max-width: 680px) {
    .ep-front__head-left { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px 14px; }
    .ep-front__rule { width: 28px; }
    .ep-front__label { white-space: nowrap; }
    .ep-front__issue { grid-column: 2; font-size: 10px; }
}
@media(max-width: 380px) {
    .ep-logo__mark { display: none; }
    .ep-masthead__inner { gap: 12px; }
    .ep-logo__word { font-size: 23px; }
}
@media(prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ep-sublead__image img { transition: none; }
}
