/* National Trade News — Economist-inspired */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --eco-red: #e3120b;
  --eco-red-dark: #b80f09;
  --eco-text: #0d0d0d;
  --eco-muted: #666;
  --eco-border: #e5e5e5;
}

body.theme-economist {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--eco-text);
  background: #fff;
}

.theme-economist a { color: inherit; text-decoration: none; }
.theme-economist a:hover { color: var(--eco-red); }

.eco-wrap {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* —— Top bar —— */
.eco-topbar {
  background: var(--eco-red);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 0;
}
.eco-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* —— Masthead —— */
.eco-masthead {
  border-bottom: 3px solid var(--eco-red);
  padding: 20px 0 16px;
  text-align: center;
}
.eco-date {
  font-size: 12px;
  color: var(--eco-muted);
  margin: 0 0 10px;
}
.eco-logo {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: var(--eco-text);
}
.eco-tagline {
  font-size: 13px;
  color: var(--eco-muted);
  margin: 10px 0 0;
  font-style: italic;
}

/* —— Nav —— */
.eco-nav {
  border-bottom: 1px solid var(--eco-border);
  margin-bottom: 0;
}
.eco-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-size: 13px;
  font-weight: 600;
}
.eco-nav a:hover { color: var(--eco-red); text-decoration: underline; }

/* —— Flytitle (Economist section label) —— */
.eco-flytitle {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eco-red);
  margin: 0 0 6px;
}

/* —— Ads —— */
.eco-ad-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eco-muted);
  margin-bottom: 4px;
}
.eco-leader-ad {
  background: #fafafa;
  border-bottom: 1px solid var(--eco-border);
  padding: 12px 0;
  font-size: 14px;
}
.eco-leader-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
}
.eco-rail-ad, .eco-inline-ad, .eco-banner-ad, .eco-mid-ad {
  border: 1px solid var(--eco-border);
  padding: 16px;
  margin: 20px 0;
  background: #fafafa;
}
.eco-rail-name { font-weight: 700; margin-bottom: 6px; }
.eco-banner-ad { text-align: center; margin: 24px 0; }
.eco-btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--eco-text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
}
.eco-btn:hover { background: var(--eco-text); color: #fff !important; }
.eco-btn--red {
  background: var(--eco-red);
  border-color: var(--eco-red);
  color: #fff !important;
}
.eco-btn--red:hover { background: var(--eco-red-dark); border-color: var(--eco-red-dark); }

/* —— Hero —— */
.eco-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--eco-border);
  align-items: start;
}
.eco-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/10;
}
.eco-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 700;
}
.eco-hero-deck {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  margin: 0 0 10px;
}
.eco-meta { font-size: 12px; color: var(--eco-muted); }

/* —— Features row —— */
.eco-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--eco-border);
}
.eco-feature img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}
.eco-feature h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 6px;
}

/* —— Layout —— */
.eco-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 28px 0;
}
.eco-section-h {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--eco-red);
}
.eco-story {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--eco-border);
}
.eco-story img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.eco-story h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  margin: 0 0 6px;
  line-height: 1.25;
}
.eco-text-list { margin-top: 8px; }
.eco-text-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--eco-border);
}
.eco-text-item h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  margin: 0 0 4px;
  line-height: 1.25;
}

/* —— Rail —— */
.eco-rail h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eco-red);
  border-bottom: 1px solid var(--eco-border);
  padding-bottom: 8px;
  margin: 0 0 12px;
}
.eco-rail-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 15px;
  line-height: 1.3;
}

/* —— Article —— */
.eco-article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 24px 0;
}
.eco-article-header h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 8px 0 12px;
}
.eco-article-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 16px 0 24px;
  display: block;
}
.eco-article-body {
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}
.eco-article-body p { margin: 0 0 1.1em; }
.eco-source {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--eco-border);
  font-size: 13px;
  color: var(--eco-muted);
}
.eco-source a { text-decoration: underline; }

.eco-page-h {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 26px;
  margin: 16px 0;
}
.eco-breadcrumb { font-size: 13px; color: var(--eco-muted); margin: 12px 0; }
.eco-story--text { grid-template-columns: 1fr; }
.eco-pagination {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  font-weight: 600;
  font-size: 14px;
}

.eco-footer {
  border-top: 3px solid var(--eco-red);
  margin-top: 40px;
  padding: 24px 0 32px;
  font-size: 12px;
  color: var(--eco-muted);
}
.eco-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.eco-footer a { margin-right: 12px; color: #444; }

@media (max-width: 900px) {
  .eco-hero, .eco-layout, .eco-article-layout { grid-template-columns: 1fr; }
  .eco-features { grid-template-columns: 1fr; }
  .eco-story { grid-template-columns: 90px 1fr; }
}
