/* Ecostrat news-article styling for bdozone.org posts that should look exactly
   like their ecostrat.com counterpart (same fonts, sizes, colours, spacing).
   Opt-in: only pages that link this file and use the .eco-hero / .eco-wrap
   markup pick it up. Values mirror app/news/article.module.css and
   app/globals.css in the ecostrat-website repo. */

@font-face { font-family: 'Eco Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Eco Inter'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Eco Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Eco Schibsted Grotesk'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/schibsted-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.eco-hero, .eco-wrap {
  --eco-green: #2d6e3e;
  --eco-green-dk: #1a4a28;
  --eco-green-pale: #f0f7f2;
  --eco-blue: #0f3d7d;
  --eco-text: #0a0a0a;
  --eco-text-2: #3a3a3a;
  --eco-ink: #191b1f;
  --eco-rule: rgba(26, 26, 22, 0.12);
  --eco-gutter: clamp(20px, 4vw, 64px);
  --eco-body: 'Eco Inter', 'Inter', Arial, sans-serif;
  --eco-display: 'Eco Schibsted Grotesk', 'Schibsted Grotesk', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- hero: the full photo, title and tag at the bottom-left ---- */
#hero-section.eco-hero {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 600px;
  margin-bottom: 48px;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-color: #eaecee;
  color: #fff;
  text-align: left;
  font-family: var(--eco-body);
  line-height: 1.6;
}
/* From tablet up the hero takes the photo's own 16:9 shape, so none of the
   photo is cropped. */
@media (min-width: 768px) {
  #hero-section.eco-hero { min-height: 0; aspect-ratio: 16 / 9; }
}
/* bdozone.org's header is fixed (100px on phones, 120px from 768px up) and
   would otherwise cover the top of the photo. */
#hero-section.eco-hero { margin-top: 100px; }
@media (min-width: 768px) {
  #hero-section.eco-hero { margin-top: 120px; }
}
#hero-section.eco-hero:before { display: none; }
#hero-section.eco-hero .eco-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 20, 16, 0.34), rgba(12, 20, 16, 0.1) 38%, rgba(12, 20, 16, 0.86));
}
#hero-section.eco-hero .eco-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--eco-gutter);
}
#hero-section.eco-hero .eco-hero-inner {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 0 52px;
}
#hero-section.eco-hero .eco-back {
  display: inline-block;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-bottom: 32px;
}
#hero-section.eco-hero .eco-back:hover { color: #fff; }
#hero-section.eco-hero .eco-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
#hero-section.eco-hero .eco-tag {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--eco-green);
  background: var(--eco-green-pale);
  border-radius: 999px;
  padding: 5px 13px;
}
#hero-section.eco-hero .eco-date {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
#hero-section.eco-hero h1 {
  position: static;
  transform: none;
  margin: 0;
  padding: 0;
  font-family: var(--eco-display);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  text-align: left;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
/* the chosen line break only where each line fits; narrower screens balance
   the wrap instead */
@media (max-width: 1199px) {
  #hero-section.eco-hero h1 { text-wrap: balance; }
  #hero-section.eco-hero h1 br { display: none; }
}

/* ---- article column ---- */
#content-section.eco-wrap {
  padding: 0 0 52px;
  background: #fff;
  font-family: var(--eco-body);
  color: var(--eco-text);
  line-height: 1.6;
}
#content-section.eco-wrap .eco-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--eco-gutter);
}
.eco-wrap .eco-body {
  max-width: 1040px;
  margin: 0 auto;
}
.eco-wrap .eco-logos {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--eco-rule);
}
.eco-wrap .eco-logos img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
.eco-wrap h2.eco-title {
  font-family: var(--eco-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--eco-ink);
  text-align: center;
  text-transform: none;
  margin: 0 0 28px;
  padding: 0;
}
/* as on ecostrat.com: the title's line break only applies above 900px;
   narrower screens drop it and balance the wrap */
@media (max-width: 900px) {
  .eco-wrap h2.eco-title { text-wrap: balance; }
  .eco-wrap h2.eco-title br { display: none; }
}
.eco-wrap h2.eco-h {
  font-family: var(--eco-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--eco-ink);
  text-align: left;
  text-transform: none;
  margin: 16px 0;
  padding: 0;
}
#content-section.eco-wrap .eco-body p {
  font-family: var(--eco-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--eco-text);
  margin: 0 0 24px;
  text-align: justify;
  text-align-last: left;
}
#content-section.eco-wrap .eco-body p.eco-dek {
  font-size: 17px;
  font-style: italic;
  color: var(--eco-text-2);
  text-align: center;
  text-align-last: center;
  margin: 0;
}
.eco-wrap .eco-body strong { font-weight: 600; color: var(--eco-ink); }
.eco-wrap .eco-body em { font-style: italic; }
.eco-wrap .eco-body a {
  color: var(--eco-blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.eco-wrap .eco-body a:hover { opacity: 0.78; }
.eco-wrap .eco-body a strong { color: inherit; }
.eco-wrap hr.eco-hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--eco-rule);
  margin: 30px 0;
  background: none;
}
.eco-wrap hr.eco-hr-title { margin-top: 28px; margin-bottom: 20px; }
.eco-wrap hr.eco-hr-dek { margin-top: 20px; }
/* where the article switches language */
.eco-wrap hr.eco-hr-language { border-top: 3px dotted rgba(26, 26, 22, 0.4); }
.eco-wrap img.eco-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 28px auto;
}
/* photo caption, as .bodyCaption on ecostrat.com */
#content-section.eco-wrap .eco-body p.eco-caption {
  font-size: 15px;
  font-style: italic;
  color: var(--eco-text-2);
  text-align: center;
  text-align-last: center;
  margin: -18px 0 28px;
}
.eco-wrap .eco-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0 28px;
}
.eco-wrap .eco-body a.eco-btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--eco-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.eco-wrap .eco-body a.eco-btn:hover { background: var(--eco-green-dk); opacity: 1; transform: translateY(-1px); }
